/* =============================================================
   AXIOM — Design System
   A near-monochrome editorial language.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Ink & surface — a warm-cool near-black */
  --ink-900: #0A0A0B;
  --ink-800: #101013;
  --ink-700: #17171B;
  --ink-600: #1F1F24;
  --ink-500: #2A2A31;

  --paper: #F7F7F5;   /* warm paper for text on dark */
  --paper-dim: #A7A7AD;
  --paper-faint: #6E6E76;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Single accent — electric crimson */
  --accent: #EE314F;
  --accent-soft: #FF6B82;
  --accent-glow: rgba(238, 49, 79, 0.35);

  /* Type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  /* Fluid scale */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.3rem + 1.9vw, 2.8rem);
  --step-3:  clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --step-4:  clamp(3.2rem, 1.8rem + 6.4vw, 8rem);

  /* Space — 8pt rhythm, fluid section padding */
  --gutter: clamp(1.25rem, 5vw, 8rem);
  --section-y: clamp(6rem, 12vh, 12rem);
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 64px -32px rgba(0,0,0,.7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "cv05", "ss01";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ambient grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll rail ---------- */
.scroll-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent;
}
.scroll-rail__fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 16px var(--accent-glow);
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled] {
  padding-top: .7rem; padding-bottom: .7rem;
  background: rgba(10,10,11,.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 500; letter-spacing: -.01em; }
.mark { color: var(--accent); display: grid; place-items: center; }
.nav__wordmark { font-size: 1.05rem; }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: var(--step--1); color: var(--paper-dim); position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--paper); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 1.4rem; }
.nav__ghost { font-size: var(--step--1); color: var(--paper-dim); transition: color .3s; }
.nav__ghost:hover { color: var(--paper); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav__burger span { width: 22px; height: 1.5px; background: var(--paper); transition: transform .4s var(--ease), opacity .3s; }
.nav[data-open] .nav__burger span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav[data-open] .nav__burger span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  --pad-y: .72rem; --pad-x: 1.35rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  font-size: var(--step--1); font-weight: 500; letter-spacing: -.005em;
  border-radius: 100px; border: 1px solid transparent;
  background: var(--paper); color: var(--ink-900);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(255,255,255,.4); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--sm { --pad-y: .5rem; --pad-x: 1rem; }
.btn--lg { --pad-y: .95rem; --pad-x: 1.7rem; font-size: var(--step-0); }
.btn--block { width: 100%; justify-content: center; }

.btn--outline { background: transparent; color: var(--paper); border-color: var(--hairline-strong); }
.btn--outline:hover { background: rgba(255,255,255,.05); border-color: var(--paper-faint); box-shadow: none; }

.btn--text {
  background: transparent; color: var(--paper-dim); padding-left: .4rem; padding-right: .4rem;
  border-radius: 0;
}
.btn--text:hover { color: var(--paper); transform: none; box-shadow: none; }

/* =============================================================
   REVEAL / MOTION PRIMITIVES
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(26px);
  filter: blur(8px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(9rem, 22vh, 14rem) var(--gutter) var(--section-y);
  display: flex; flex-direction: column; justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__ambient {
  position: absolute; z-index: -1; inset: auto;
  top: 8%; right: -6%; width: min(60vw, 720px); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 62%);
  filter: blur(30px); opacity: .8;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, transparent, rgba(238,49,79,.04) 60%, transparent),
    radial-gradient(120% 80% at 100% 0%, rgba(238,49,79,.06), transparent 55%);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; width: fit-content;
  font-size: var(--step--1); color: var(--paper-dim); letter-spacing: .04em;
  padding: .5rem .9rem; border: 1px solid var(--hairline); border-radius: 100px;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
  background: rgba(255,255,255,.02);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero__title {
  font-size: var(--step-4);
  line-height: .98; letter-spacing: -.035em; font-weight: 500;
  max-width: 15ch;
}
.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-soft); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span {
  display: block; transform: translateY(105%); padding-bottom: .04em;
  transition: transform 1s var(--ease-out); transition-delay: var(--d, 0ms);
}
.hero[data-lit] .line > span { transform: translateY(0); }

.hero__lede {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: var(--paper-dim);
  font-weight: 300; --d: 550ms;
}
.hero__actions { display: flex; align-items: center; gap: 1.4rem; margin-top: clamp(2rem, 4vw, 3rem); --d: 700ms; flex-wrap: wrap; }

.hero__ticker {
  margin-top: clamp(4rem, 9vh, 8rem); --d: 850ms;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.hero__ticker > span { font-size: var(--step--1); color: var(--paper-faint); letter-spacing: .04em; }
.hero__logos { display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 3.4rem); }
.hero__logos span {
  font-size: var(--step--1); font-weight: 500; letter-spacing: .12em;
  color: var(--paper-faint); opacity: .7; transition: opacity .4s, color .4s;
}
.hero__logos span:hover { opacity: 1; color: var(--paper); }

/* =============================================================
   SECTION HEADS (shared)
   ============================================================= */
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 20ch; }
.section-head--right { margin-left: auto; text-align: right; }
/* Keep the block on the right, but read all lines flush-left so the
   index ("02 — System") and the title share one left edge. */
.section-head--right {
  width: fit-content;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.section-head--right .section-title { text-align: left; }
.section-index {
  display: inline-block; font-size: var(--step--1); letter-spacing: .1em;
  color: var(--accent-soft); margin-bottom: 1.4rem; text-transform: uppercase;
}
.section-title {
  font-size: var(--step-3); line-height: 1.02; letter-spacing: -.03em; font-weight: 500;
}
.section-title .muted { color: var(--paper-faint); }
.section-title em { font-family: var(--serif); font-style: italic; color: var(--accent-soft); }

/* =============================================================
   SHOWCASE
   ============================================================= */
.showcase { padding: var(--section-y) var(--gutter); }
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: clamp(1rem, 1.6vw, 1.6rem);
}
.feature {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(1.6rem, 2.4vw, 2.4rem);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  display: flex; flex-direction: column;
  transition: border-color .5s var(--ease), transform .5s var(--ease), background .5s var(--ease);
  position: relative; overflow: hidden;
}
.feature:hover { border-color: var(--hairline-strong); transform: translateY(-4px); }
.feature--wide { grid-column: span 1; grid-row: span 2; }
.feature--tall { grid-row: span 2; }
.feature__glyph { color: var(--accent-soft); margin-bottom: auto; opacity: .9; }
.feature__glyph svg { width: 44px; height: 44px; }
.feature h3 { font-size: var(--step-1); font-weight: 500; letter-spacing: -.02em; margin-top: 1.6rem; }
.feature p { color: var(--paper-dim); margin-top: .7rem; font-weight: 300; font-size: var(--step-0); max-width: 32ch; }
.feature__chip {
  align-self: flex-start; margin-top: 1.4rem; font-size: var(--step--1);
  color: var(--accent-soft); padding: .35rem .8rem; border-radius: 100px;
  border: 1px solid var(--accent-glow); background: rgba(238,49,79,.06);
}

/* =============================================================
   STATS
   ============================================================= */
.stats {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.stats__lead {
  font-family: var(--serif); font-style: italic; font-size: var(--step-2);
  line-height: 1.2; letter-spacing: -.01em; color: var(--paper);
  max-width: 24ch; margin-bottom: clamp(3rem, 6vw, 5rem);
}
.stats__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.stat { display: flex; flex-direction: column; gap: .6rem; }
.stat__num {
  font-size: var(--step-3); font-weight: 500; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--step--1); color: var(--paper-faint); max-width: 18ch; }

/* =============================================================
   BENTO
   ============================================================= */
.bento { padding: var(--section-y) var(--gutter); }
.bento__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.6rem);
}
.bento__cell {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 2.6vw, 2.8rem);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  position: relative; overflow: hidden;
  transition: border-color .5s var(--ease), transform .3s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.bento__cell:hover { border-color: var(--hairline-strong); }
.bento__cell--hero { grid-column: span 2; grid-row: span 2; }
.bento__cell--dark { background: var(--ink-800); border-color: var(--hairline-strong); }
.bento__meta {
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 1.4rem;
}
.bento__cell h3 { font-size: var(--step-1); font-weight: 500; letter-spacing: -.02em; }
.bento__cell--hero h3 { font-size: var(--step-2); max-width: 16ch; }
.bento__cell p { color: var(--paper-dim); margin-top: .7rem; font-weight: 300; max-width: 34ch; }
.bento__viz {
  margin-top: 2.2rem; display: flex; align-items: flex-end; gap: 10px; height: 120px;
}
.bento__viz span {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  opacity: .8; transform-origin: bottom; transform: scaleY(.15);
  transition: transform 1s var(--ease-out);
}
.bento__cell--hero.is-in .bento__viz span { transform: scaleY(var(--h, .5)); }
.bento__viz span:nth-child(1){--h:.4}
.bento__viz span:nth-child(2){--h:.7}
.bento__viz span:nth-child(3){--h:.5}
.bento__viz span:nth-child(4){--h:.9}
.bento__viz span:nth-child(5){--h:.65}
.bento__viz span:nth-child(6){--h:1}
.bento__viz span:nth-child(even){ transition-delay: .12s; }

.code {
  margin-top: 2rem; background: var(--ink-900); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 1.1rem 1.3rem; font-size: var(--step--1);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto;
}
.code code { color: var(--paper); line-height: 1.7; }
.tok-c { color: var(--paper-faint); }
.tok-f { color: var(--accent-soft); }
.tok-s { color: #7EE0C0; }

/* =============================================================
   TIMELINE
   ============================================================= */
.timeline { padding: var(--section-y) var(--gutter); }
.timeline__list {
  list-style: none; border-top: 1px solid var(--hairline);
}
.timeline__item {
  display: grid; grid-template-columns: 160px 1fr; gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.8rem, 3.5vw, 3rem) 0; border-bottom: 1px solid var(--hairline);
  align-items: baseline; transition: background .5s var(--ease);
}
.timeline__item:hover { background: linear-gradient(90deg, rgba(238,49,79,.04), transparent); }
.timeline__year { font-size: var(--step-1); color: var(--accent-soft); font-weight: 500; letter-spacing: -.02em; }
.timeline__item h3 { font-size: var(--step-2); font-weight: 500; letter-spacing: -.02em; }
.timeline__item p { color: var(--paper-dim); margin-top: .5rem; font-weight: 300; max-width: 52ch; }

/* =============================================================
   PRICING
   ============================================================= */
.pricing { padding: var(--section-y) var(--gutter); }
.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.6rem); align-items: stretch;
}
.plan {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 2.6vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1.6rem; position: relative;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.plan:hover { transform: translateY(-6px); border-color: var(--hairline-strong); }
.plan--featured {
  border-color: var(--accent-glow);
  background: linear-gradient(180deg, rgba(238,49,79,.09), rgba(238,49,79,.01));
  box-shadow: 0 40px 90px -50px var(--accent-glow);
}
.plan__flag {
  position: absolute; top: -12px; left: clamp(1.8rem, 2.6vw, 2.6rem);
  font-size: var(--step--1); background: var(--accent); color: #fff;
  padding: .3rem .8rem; border-radius: 100px; letter-spacing: .02em;
}
.plan header h3 { font-size: var(--step-1); font-weight: 500; }
.plan header p { color: var(--paper-dim); font-weight: 300; font-size: var(--step-0); margin-top: .4rem; }
.plan__price { display: flex; align-items: baseline; gap: .5rem; }
.plan__amount { font-size: var(--step-2); font-weight: 500; letter-spacing: -.03em; }
.plan__per { color: var(--paper-faint); font-size: var(--step--1); }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: .8rem; margin-top: auto; }
.plan__list li {
  position: relative; padding-left: 1.6rem; color: var(--paper-dim); font-weight: 300; font-size: var(--step-0);
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px;
  border-left: 1.5px solid var(--accent-soft); border-bottom: 1.5px solid var(--accent-soft);
  transform: rotate(-45deg) translateY(-2px);
}

/* =============================================================
   FAQ
   ============================================================= */
.faq { padding: var(--section-y) var(--gutter); }
.faq__list { border-top: 1px solid var(--hairline); max-width: 62rem; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  font-size: var(--step-1); font-weight: 500; letter-spacing: -.015em;
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-soft); }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--paper-dim); transition: transform .4s var(--ease), background .3s;
}
.faq__icon::before { width: 16px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__item[open] summary { color: var(--paper); }
.faq__item p {
  color: var(--paper-dim); font-weight: 300; max-width: 60ch;
  padding-bottom: clamp(1.4rem, 2.6vw, 2rem); font-size: var(--step-0);
  animation: faqIn .5s var(--ease-out);
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* =============================================================
   CTA
   ============================================================= */
.cta { padding: var(--section-y) var(--gutter); }
.cta__inner {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline-strong); border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  text-align: center; isolation: isolate;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(238,49,79,.16), transparent 60%),
    var(--ink-800);
}
.cta__inner::after {
  content: ""; position: absolute; z-index: -1;
  /* Square that fully covers the box at any rotation angle:
     side = diagonal (150%) so corners never expose the edges when spinning. */
  top: 50%; left: 50%;
  width: 150%; aspect-ratio: 1;
  background: conic-gradient(from 180deg at 50% 50%, transparent, var(--accent-glow), transparent 30%);
  opacity: .5;
  transform-origin: center;
  animation: spin 14s linear infinite;
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.cta__title { font-size: var(--step-3); letter-spacing: -.03em; font-weight: 500; line-height: 1.02; }
.cta__title em { font-family: var(--serif); font-style: italic; color: var(--accent-soft); }
.cta__lede { color: var(--paper-dim); font-weight: 300; max-width: 42ch; margin: 1.4rem auto 0; font-size: var(--step-1); }
.cta__form {
  display: flex; gap: .7rem; max-width: 30rem; margin: clamp(2rem, 4vw, 3rem) auto 0;
  flex-wrap: wrap; justify-content: center;
}
.cta__form input {
  flex: 1 1 15rem; min-width: 12rem;
  background: rgba(0,0,0,.35); border: 1px solid var(--hairline-strong);
  border-radius: 100px; padding: .95rem 1.3rem; color: var(--paper);
  font-size: var(--step-0); font-family: inherit; transition: border-color .3s;
}
.cta__form input::placeholder { color: var(--paper-faint); }
.cta__form input:focus { outline: none; border-color: var(--accent-soft); }
.cta__fine { display: block; margin-top: 1.4rem; color: var(--paper-faint); font-size: var(--step--1); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) 3rem;
  border-top: 1px solid var(--hairline);
  display: grid; gap: clamp(3rem, 6vw, 5rem);
}
.footer__top { max-width: 40ch; }
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--step-1); font-weight: 500; }
.footer__stmt { color: var(--paper-dim); font-weight: 300; margin-top: 1rem; font-size: var(--step-1); line-height: 1.35; }
.footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.footer__cols h4 { font-size: var(--step--1); color: var(--paper-faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.2rem; font-weight: 500; }
.footer__cols a { display: block; color: var(--paper-dim); padding: .35rem 0; font-size: var(--step-0); transition: color .3s, transform .3s; }
.footer__cols a:hover { color: var(--paper); transform: translateX(3px); }
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--hairline);
  color: var(--paper-faint); font-size: var(--step--1);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* ---- Tablet / small laptop ---- */
@media (max-width: 940px) {
  .nav__links, .nav__ghost { display: none; }
  .nav__burger { display: flex; }
  .nav[data-open] .nav__links {
    display: flex; position: fixed; inset: 64px 0 auto; flex-direction: column;
    gap: 0; padding: 1rem var(--gutter) 2rem;
    background: rgba(10,10,11,.9); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
    max-height: calc(100svh - 64px); overflow-y: auto;
  }
  .nav[data-open] .nav__links a { padding: 1rem 0; font-size: var(--step-1); border-bottom: 1px solid var(--hairline); }

  .showcase__grid, .bento__grid, .pricing__grid { grid-template-columns: 1fr 1fr; }
  .feature--wide, .feature--tall, .bento__cell--hero { grid-column: span 2; grid-row: auto; }
  .stats__row { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---- Large phone / small tablet ---- */
@media (max-width: 620px) {
  .showcase__grid, .bento__grid, .pricing__grid, .stats__row { grid-template-columns: 1fr; }
  .feature--wide, .feature--tall, .bento__cell--hero { grid-column: auto; }
  .plan--featured { order: -1; }
  .timeline__item { grid-template-columns: 1fr; gap: .5rem; }
  .section-head--right { text-align: left; margin-left: 0; }
  .hero__actions { gap: .8rem; }
  .hero__actions .btn--lg { flex: 1 1 100%; justify-content: center; }
  .cta__form { flex-direction: column; }
  .cta__form input, .cta__form .btn { width: 100%; flex: 1 1 auto; }
  .faq__item summary { gap: 1rem; font-size: var(--step-0); }
}

/* ---- Small phone ---- */
@media (max-width: 420px) {
  :root { --gutter: 1.1rem; }
  .nav__actions .btn--sm { --pad-x: .8rem; }
  .stat__num { font-size: var(--step-2); }
  .footer__base { flex-direction: column; gap: .4rem; }
  .footer__cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__logos { gap: 1rem 1.4rem; }
}

/* ---- Short landscape screens (phones held sideways) ---- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 3rem; }
  .hero__ticker { margin-top: 2rem; }
}

/* ---- Coarse pointers: neutralise hover-only transforms ---- */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
  .feature:hover, .plan:hover, .bento__cell:hover { transform: none; }
}
