/* ─── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body { -webkit-font-smoothing: antialiased; }

/* ─── Navigation ────────────────────────────────────── */
#nav { background: transparent; transition: background 200ms ease, box-shadow 200ms ease; }

#nav.scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.07);
}

/* ─── Scroll-reveal ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .spin-slow { animation: none; }
}

/* ─── Buttons ───────────────────────────────────────── */
.btn { cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease; }
.btn:active { transform: scale(0.97); }

/* ─── Floating hero cards ───────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-card {
  animation: float 4s ease-in-out infinite;
}

.float-card-delay {
  animation: float 4s ease-in-out 1s infinite;
}

/* ─── Pulse ring in hero illustration ───────────────── */
@keyframes ping-slow {
  0%    { transform: scale(1);   opacity: 0.25; }
  80%   { transform: scale(1.5); opacity: 0; }
  100%  { transform: scale(1.5); opacity: 0; }
}

.ping-slow { animation: ping-slow 2.5s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* ─── Hover — touch devices skip hover states ───────── */
@media (hover: hover) {
  .card-hover:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
  }
  .link-arrow:hover svg { transform: translateX(3px); }
}

.link-arrow svg { transition: transform 150ms ease; }
.card-hover { transition: box-shadow 200ms ease, transform 200ms ease; }

/* ─── Process step connector line ───────────────────── */
.step-connector {
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 1px;
  background: linear-gradient(90deg, #CBD5E1 0%, #E2E8F0 100%);
}

/* ─── Typography helpers ────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Max line length for body copy */
.prose-width { max-width: 60ch; }

/* Tabular numbers for stats */
.tabular { font-variant-numeric: tabular-nums; }

/* ─── Section divider ───────────────────────────────── */
.section-divider {
  width: 40px;
  height: 3px;
  background: #3B82F6;
  border-radius: 2px;
}
