/* ============================================================
   PRISMO — Design system
   One accent (the prism spectrum), near-black on white,
   1.25 type ratio, 4px grid, dark mode day one, reduced-motion safe.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Spectrum = the prism. One accent, used sparingly. (matches logo) */
  --spectrum: linear-gradient(118deg, #0EC48D 0%, #00A0E8 34%, #2B46E0 68%, #7A2BE2 100%);
  --teal: #0EC48D;
  --blue: #2B46E0;
  --violet: #7A2BE2;

  /* Accessible text accent (passes 4.5:1 on light + dark) */
  --accent: #2545d6;
  --accent-hover: #1b34ad;

  /* Light (default) */
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --ink: #0e1116;      /* near-black, never pure #000 */
  --ink-2: #2a3140;
  --muted: #545d6e;     /* AA body text on white */
  --faint: #66708a;
  --border: #e6e8ee;
  --border-2: #d6dae2;
  --shadow-sm: 0 1px 2px rgba(16, 20, 30, .05), 0 2px 6px rgba(16, 20, 30, .04);
  --shadow-md: 0 6px 24px -8px rgba(16, 20, 30, .14), 0 2px 8px rgba(16, 20, 30, .05);
  --shadow-lg: 0 24px 60px -20px rgba(16, 20, 30, .22);
  --ring: rgba(24, 137, 210, .45);
  --nav-bg: rgba(255, 255, 255, .78);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Type — 1.25 (major third) from 17px base */
  --fs-1: 1rem;          /* 17 */
  --fs-2: 1.25rem;       /* 21.25 */
  --fs-3: 1.5625rem;     /* 26.5 */
  --fs-4: 1.9531rem;     /* 33 */
  --fs-5: 2.4414rem;     /* 41.3 */
  --fs-6: 3.0518rem;     /* 51.6 */

  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.1rem + .6vw, 1.5625rem);
  --step-2: clamp(1.5625rem, 1.2rem + 1.4vw, 2.4414rem);
  --step-3: clamp(1.9531rem, 1.2rem + 3vw, 3.4rem);
  --step-4: clamp(2.4rem, 1.1rem + 6vw, 4.6rem);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --measure: 62ch;
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --nav-h: 68px;
  --brand-ink: #0A1A3C; /* logo wordmark navy */
}

/* Dark mode */
html[data-theme="dark"],
:root { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c10;
    --bg-soft: #0e1117;
    --surface: #12151c;
    --surface-2: #171b24;
    --ink: #f3f5f8;
    --ink-2: #c9d0dc;
    --muted: #98a2b3;
    --faint: #828ba0;
    --border: #222834;
    --border-2: #2d3443;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 30px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.7);
    --ring: rgba(60,160,235,.5);
    --nav-bg: rgba(10,12,16,.78);
    --accent: #6f92ff;
    --accent-hover: #93b0ff;
    --brand-ink: #f3f5f8;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-soft: #0e1117;
  --surface: #12151c;
  --surface-2: #171b24;
  --ink: #f3f5f8;
  --ink-2: #c9d0dc;
  --muted: #98a2b3;
  --faint: #828ba0;
  --border: #222834;
  --border-2: #2d3443;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 30px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.7);
  --ring: rgba(60,160,235,.5);
  --nav-bg: rgba(10,12,16,.78);
  --accent: #6f92ff;
  --accent-hover: #93b0ff;
  --brand-ink: #f3f5f8;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--violet); color: #fff; }

/* Focus */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ring);
  border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: var(--measure); }

/* Eyebrow / mono label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--spectrum);
  border-radius: 2px;
}
.eyebrow--spectrum { color: var(--ink-2); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.h1 { font-size: var(--step-4); letter-spacing: -.03em; }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.p { color: var(--muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lead { margin-top: 1rem; }
.section-head.center { margin-inline: auto; }

/* Gradient emphasis word (spectrum, used once per big headline) */
.grad {
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  padding: .85em 1.4em;
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .28s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--bg); box-shadow: var(--shadow-sm); position: relative; }
.btn--primary::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px;
  background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.btn--primary:hover { box-shadow: var(--shadow-md); }
.btn--primary:hover::after { opacity: 1; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--ink-2); background: var(--surface-2); }
.btn--lg { font-size: 1.125rem; padding: 1em 1.7em; }
.btn--sm { font-size: .9rem; padding: .6em 1em; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  color: var(--accent); font-weight: 500;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0% 1.5px;
  transition: background-size .3s ease, color .2s ease;
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -.015em; color: var(--brand-ink); }
.nav__brand svg { height: 28px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link { font-size: .95rem; color: var(--ink-2); font-weight: 500; transition: color .18s ease; position: relative; }
.nav__link:hover { color: var(--ink); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--spectrum); transition: right .25s ease; }
.nav__link:hover::after { right: 0; }

/* Solutions dropdown */
.nav__drop { position: relative; }
.nav__drop-btn { display: inline-flex; align-items: center; gap: .35rem; }
.nav__drop-btn svg { transition: transform .2s ease; }
.nav__drop:hover .nav__drop-btn svg, .nav__drop:focus-within .nav__drop-btn svg { transform: rotate(180deg); }
.nav__drop-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 340px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  display: flex; flex-direction: column; gap: .15rem;
}
.nav__drop:hover .nav__drop-panel, .nav__drop:focus-within .nav__drop-panel, .nav__drop.is-open .nav__drop-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__drop-panel a { display: block; padding: .65rem .7rem; border-radius: var(--radius-sm); }
.nav__drop-panel a:hover { background: var(--surface-2); }
.nav__drop-panel a b { display: block; font-size: .92rem; color: var(--ink); font-weight: 600; }
.nav__drop-panel a span { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; }
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.theme-toggle { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--ink-2); }
.theme-toggle:hover { color: var(--ink); border-color: var(--border-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { margin-top: 1.1rem; }
.hero__sub { margin-top: 1.4rem; font-size: var(--step-1); color: var(--ink-2); max-width: 34rem; line-height: 1.5; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__trust { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--font-mono); font-size: .78rem; color: var(--faint); letter-spacing: .02em; }
.hero__trust span { display: inline-flex; align-items: center; gap: .5em; }
.hero__trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* ---------- Embed / demo frame (the visual center) ---------- */
.demo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--spectrum); opacity: .55; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.demo-frame__bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.demo-frame__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.demo-frame__dot:nth-child(1){ background:#ff5f57; } .demo-frame__dot:nth-child(2){ background:#febc2e; } .demo-frame__dot:nth-child(3){ background:#28c840; }
.demo-frame__url { margin-left: .5rem; font-family: var(--font-mono); font-size: .74rem; color: var(--faint); letter-spacing: .02em; }
.demo-frame__live { margin-left: auto; display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; }
.demo-frame__live::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(20,179,155,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(20,179,155,.55);} 70%{box-shadow:0 0 0 8px rgba(20,179,155,0);} 100%{box-shadow:0 0 0 0 rgba(20,179,155,0);} }
.demo-frame__stage { aspect-ratio: 16/10; background: radial-gradient(120% 120% at 50% 0%, var(--surface-2), var(--bg-soft)); position: relative; }
.demo-frame__stage iframe, .demo-frame__stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Honest drop-in slot */
.demo-slot { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .6rem; padding: 2rem; }
.demo-slot__mark { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.demo-slot__text { color: var(--muted); font-size: .95rem; max-width: 26ch; }
.demo-slot .prism-mini { width: 54px; height: 54px; margin-inline: auto; opacity: .9; }

/* Caption chips (fade in, never bounce) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border); padding: .45em .8em; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: .5em; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--spectrum); }

/* ---------- Section: How it works (5 outcomes) ---------- */
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.outcome { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; }
.outcome__idx { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); letter-spacing: .1em; }
.outcome__idx b { color: transparent; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; font-weight: 600; }
.outcome h3 { font-size: var(--step-1); margin-top: .6rem; letter-spacing: -.02em; }
.outcome p { margin-top: .5rem; color: var(--muted); font-size: .98rem; }
.outcome--lead { grid-column: 1 / -1; background: var(--ink); color: var(--bg); }
.outcome--lead h2 { color: var(--bg); font-size: var(--step-2); }
.outcome--lead p { color: color-mix(in srgb, var(--bg) 72%, transparent); font-size: var(--step-1); max-width: 40rem; }

/* ---------- Section: Channels (2 cards) ---------- */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.channel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .3s ease, border-color .2s ease; }
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.channel__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.channel h3 { font-size: var(--step-2); margin-top: .8rem; }
.channel p { margin-top: .7rem; color: var(--muted); }
.channel__list { margin-top: 1.25rem; display: grid; gap: .6rem; }
.channel__list li { display: flex; gap: .65em; color: var(--ink-2); font-size: .96rem; list-style: none; }
.channel__list li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }
.channel__glow { position: absolute; top: -30%; right: -20%; width: 240px; height: 240px; background: var(--spectrum); opacity: .07; filter: blur(60px); pointer-events: none; }

/* ---------- Section: Brain (4 blocks) ---------- */
.brain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.block { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1.75rem 1.5rem; transition: transform .2s ease, box-shadow .3s ease; }
.block:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.block__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); margin-bottom: 1rem; }
.block__icon svg { width: 22px; height: 22px; }
.block h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.block p { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* ---------- Section: Ask the bot ---------- */
.ask { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.ask::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 80% -10%, rgba(90,43,201,.4), transparent 60%), radial-gradient(70% 120% at 10% 120%, rgba(20,179,155,.28), transparent 60%); pointer-events: none; }
.ask > * { position: relative; z-index: 1; }
.ask h2 { color: var(--bg); font-size: var(--step-3); }
.ask p { color: color-mix(in srgb, var(--bg) 74%, transparent); margin-top: 1rem; max-width: 42rem; font-size: var(--step-1); }
.ask__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.ask .btn--primary { --btn-bg: var(--bg); --btn-fg: var(--ink); }
.ask__note { font-family: var(--font-mono); font-size: .78rem; color: color-mix(in srgb, var(--bg) 60%, transparent); }
/* Bot panel */
.bot { margin-top: 1.5rem; border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 6%, transparent); padding: 1.25rem; display: none; }
.bot.is-open { display: block; }
.bot__row { display: flex; gap: .75rem; }
.bot__input { flex: 1; background: transparent; border: 1px solid color-mix(in srgb, var(--bg) 24%, transparent); border-radius: var(--radius-pill); padding: .7em 1.1em; color: var(--bg); }
.bot__input::placeholder { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.bot__msg { font-size: .9rem; color: color-mix(in srgb, var(--bg) 78%, transparent); margin-bottom: .85rem; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final h2 { font-size: var(--step-4); letter-spacing: -.03em; }
.final p { margin: 1.25rem auto 0; max-width: 40rem; color: var(--muted); font-size: var(--step-1); }
.final__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer__brand svg { height: 28px; width: auto; margin-bottom: .9rem; }
.footer__tag { color: var(--muted); font-size: .95rem; max-width: 24ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--ink-2); font-size: .95rem; padding: .35em 0; transition: color .18s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__base { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--faint); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { transition-delay: 0ms; }
.stagger > *:nth-child(1){ transition-delay:.04s } .stagger > *:nth-child(2){ transition-delay:.1s }
.stagger > *:nth-child(3){ transition-delay:.16s } .stagger > *:nth-child(4){ transition-delay:.22s }
.stagger > *:nth-child(5){ transition-delay:.28s } .stagger > *:nth-child(6){ transition-delay:.34s }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .channel, .block { transition: none; }
  .btn:hover, .channel:hover, .block:hover { transform: none; }
  .demo-frame__live::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: 40rem; }
  .brain { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 1rem var(--gutter) 1.4rem;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__link { padding: .7rem .5rem; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__drop-panel { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; box-shadow: none; border: 0; background: transparent; display: none; padding-left: .75rem; }
  .nav__drop.is-open .nav__drop-panel { display: block; }
  .theme-toggle { justify-content: flex-start; width: 100%; margin-top: .5rem; }
  .nav__links .btn { display: inline-flex; justify-content: center; margin-top: .5rem; }
  .nav__toggle { display: inline-flex; }
  .outcomes { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .section-head { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .brain { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .final__cta .btn { width: 100%; }
}

/* ---------- Solutions / About components ---------- */
.hero--page { text-align: center; padding-top: clamp(3.5rem,8vw,6rem); }
.hero--page .container { max-width: 52rem; }
.hero--page .lead { margin: 1.4rem auto 0; max-width: 40rem; }
.hero--page .hero__cta { justify-content: center; }
.crumbs { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--faint); margin-bottom: 1.25rem; display: inline-flex; gap: .5em; align-items: center; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.feat { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.5rem; transition: transform .2s ease, box-shadow .3s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); margin-bottom: 1rem; }
.feat__icon svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.15rem; }
.feat p { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

.usecases { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.usecase { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.usecase__n { font-family: var(--font-mono); font-size: 1rem; color: transparent; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; font-weight: 600; }
.usecase h3 { font-size: var(--step-1); letter-spacing: -.02em; }
.usecase p { margin-top: .5rem; color: var(--muted); }
.usecase ul { margin-top: 1rem; display: grid; gap: .5rem; }
.usecase li { list-style: none; display: flex; gap: .65em; color: var(--ink-2); font-size: .96rem; }
.usecase li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }

/* About vision essay */
.essay { max-width: 46rem; }
.essay p { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); margin-top: 1.4rem; }
.essay p.big { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; color: var(--ink); letter-spacing: -.02em; }
.essay .drop { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.story-slot { border: 1px dashed var(--border-2); border-radius: var(--radius); background: var(--surface-2); padding: 1.5rem; margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
.story-slot b { color: var(--ink-2); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.beliefs { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.belief { background: var(--surface); padding: 1.4rem 1.6rem; font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -.02em; color: var(--ink); display: flex; gap: .9rem; align-items: baseline; }
.belief span { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }

@media (max-width: 760px) {
  .usecase { grid-template-columns: 1fr; gap: .7rem; }
  .hero--page .hero__cta .btn { width: 100%; }
}
