/* ═══════════════════════════════════════════════════════════════════════
   MAIA — Marketing site design system
   Dark, cinematic, enterprise. Mobile-first; tablet/desktop enhancement.
   See site/design.md for the full contract.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --spec-1: #6366f1; --spec-2: #8b5cf6; --spec-3: #ec4899;
  --holograph: #6d28d9;

  --bg: #07070c;
  --surface-1: #0c0b16;
  --surface-2: #141226;
  --surface-3: #1b1830;

  --ink: #f4f3fb;
  --ink-2: rgba(244,243,251,0.66);
  --ink-3: rgba(244,243,251,0.40);
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.06);

  --ok: #34d399; --warn: #fbbf24;

  --grad-spectrum: linear-gradient(100deg, var(--spec-1), var(--spec-2) 48%, var(--spec-3));
  --grad-135: linear-gradient(135deg, var(--spec-1), var(--spec-3));

  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px;
  --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px; --s-10:128px;

  --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 16px 40px -18px rgba(0,0,0,0.6);
  --shadow-lg: 0 50px 120px -30px rgba(0,0,0,0.8);
  --glow: 0 16px 60px -20px color-mix(in oklab, var(--spec-2) 70%, transparent);

  --maxw: 1240px;
  --maxw-wide: 1440px;
  --header-h: 68px;

  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Fira Code", SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--spec-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in oklab, var(--spec-2) 50%, transparent); color: #fff; }

/* ── Type ────────────────────────────────────────────────────────────── */
.t-display { font-size: clamp(40px, 6vw, 88px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
.t-h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.018em; line-height: 1.05; text-wrap: balance; }
.t-h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
.t-h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.t-lead { font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.t-eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--spec-2); }
.t-meta { font-size: 13px; color: var(--ink-3); }
p { color: var(--ink-2); text-wrap: pretty; }
.t-grad {
  background-image: var(--grad-spectrum);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ink { color: var(--ink); }
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--inline { color: var(--spec-2); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.wrap--wide { max-width: var(--maxw-wide); }
.section { padding-block: var(--s-7); position: relative; }
@media (min-width: 768px) { .section { padding-block: var(--s-8); } }
@media (min-width: 1024px) { .section { padding-block: var(--s-10); } }
.section--tight { padding-block: var(--s-7); }
.section--light { background: #e9ebf3; color: #191734; }
.section--light p { color: rgba(25,23,52,0.7); }
.section--light .t-eyebrow { color: var(--holograph); }
.section--s1 { background: var(--surface-1); }
.section--s2 { background: var(--surface-2); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }
.lede { max-width: 640px; }
.lede.center { margin-inline: auto; }

/* hairline divider */
.rule { height: 1px; background: var(--line); border: 0; }
.rule--spectral { height: 1px; border: 0; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--spec-2) 60%, transparent), transparent); }

/* section heading block */
.shead { max-width: 720px; }
.shead.center { margin-inline: auto; }
.shead .t-eyebrow { display: block; margin-bottom: var(--s-3); }
.shead .t-lead { margin-top: var(--s-4); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-md); min-height: 48px;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background .18s, border-color .18s, color .18s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: #fff; background-image: var(--grad-135); box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 70px -18px color-mix(in oklab, var(--spec-2) 85%, transparent); }
.btn--ghost { color: var(--ink); background: rgba(255,255,255,0.04); border-color: var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); border-color: color-mix(in oklab, var(--spec-2) 50%, transparent); transform: translateY(-2px); }
.btn--lg { padding: 17px 28px; font-size: 16px; min-height: 54px; }
.btn--sm { padding: 10px 16px; font-size: 14px; min-height: 40px; }
.section--light .btn--ghost { color: #191734; border-color: rgba(20,18,50,0.16); background: rgba(20,18,50,0.03); }
.section--light .btn--ghost:hover { background: rgba(20,18,50,0.07); }

/* arrow link */
.alink { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 15px; color: var(--ink); transition: gap .2s, color .2s; }
.alink svg { width: 16px; height: 16px; transition: transform .2s; }
.alink:hover { color: var(--spec-2); }
.alink:hover svg { transform: translateX(3px); }
.section--light .alink:hover { color: var(--holograph); }

/* pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 12.5px; color: var(--ink-2); font-family: var(--mono);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; backdrop-filter: blur(8px);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,0.55); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,0.5);} 70%{box-shadow:0 0 0 7px rgba(52,211,153,0);} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }
@media (prefers-reduced-motion: reduce){ .pill__dot { animation: none; } }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background-image: var(--grad-135); border-radius: 6px; padding: 3px 9px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 60; }
.hd__bar {
  display: flex; align-items: center; gap: var(--s-5);
  height: var(--header-h);
  background: color-mix(in oklab, var(--surface-2) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hd.is-scrolled .hd__bar { border-bottom-color: var(--line); background: color-mix(in oklab, var(--surface-2) 92%, transparent); }
.hd__inner { display: flex; align-items: center; gap: var(--s-5); width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: var(--s-5); }
.brandmark { display: inline-flex; align-items: baseline; gap: 9px; }
.brandmark__name { font-size: 22px; font-weight: 800; letter-spacing: 0.01em; background-image: var(--grad-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brandmark__by { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.hd__nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.hd__link { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 9px 13px; border-radius: 9px; transition: color .18s, background .18s; }
.hd__link:hover, .hd__link[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,0.05); }
.hd__actions { display: none; align-items: center; gap: var(--s-3); margin-left: auto; }
.lang { position: relative; flex: none; }
.lang__current {
  min-width: 58px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); color: var(--ink);
  font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0;
  cursor: pointer; list-style: none; user-select: none;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .18s, border-color .18s, color .18s;
}
.lang__current::-webkit-details-marker { display: none; }
.lang__current::after {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: 0.72;
}
.lang__current:hover { background: rgba(255,255,255,0.09); border-color: color-mix(in oklab, var(--spec-2) 50%, transparent); transform: translateY(-2px); }
.lang[open] .lang__current { background: rgba(255,255,255,0.09); border-color: color-mix(in oklab, var(--spec-2) 48%, transparent); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 90;
  min-width: 184px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in oklab, var(--surface-2) 96%, transparent);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(16px);
}
.lang__option {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 10px 11px; border-radius: 10px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.lang__option small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; }
.lang__option:hover, .lang__option[aria-current="true"] { color: var(--ink); background: rgba(255,255,255,0.06); }
.hd__burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; color: var(--ink); }
.hd__burger:hover { background: rgba(255,255,255,0.06); }
.hd__burger svg { width: 24px; height: 24px; }
@media (min-width: 1024px) {
  .hd__nav { display: flex; }
  .hd__actions { display: flex; }
  .hd__burger { display: none; }
}

/* mobile menu overlay */
.mnav { position: fixed; inset: 0; z-index: 80; background: color-mix(in oklab, var(--bg) 96%, transparent); backdrop-filter: blur(18px); display: flex; flex-direction: column; padding: var(--s-5); opacity: 0; visibility: hidden; transform: translateX(100%); transition: opacity .25s, visibility .25s, transform .25s; }
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mnav__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); }
.mnav__close:hover { background: rgba(255,255,255,0.06); }
.mnav__close svg { width: 26px; height: 26px; }
.mnav__links { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s-6); }
.mnav__link { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); padding: 13px 6px; border-bottom: 1px solid var(--line-2); }
.mnav__link:hover { color: var(--spec-2); }
.mnav__lang { margin-top: var(--s-5); }
.mnav__lang .lang { width: 100%; }
.mnav__lang .lang__current { width: 100%; justify-content: space-between; min-height: 48px; padding-inline: 14px; }
.mnav__lang .lang__menu { position: static; margin-top: 10px; box-shadow: none; min-width: 0; }
.mnav__cta { margin-top: auto; padding-top: var(--s-6); }
.mnav__cta .btn { width: 100%; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.ft { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: var(--s-9) var(--s-6); }
.ft__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
@media (min-width: 640px) { .ft__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ft__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.ft__brand { max-width: 320px; }
.ft__brandmark { display: inline-flex; align-items: baseline; gap: 9px; margin-bottom: var(--s-4); }
.ft__desc { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.ft__hmark { margin-top: var(--s-5); width: 120px; height: 84px; }
.ft__col h4 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: var(--s-4); font-weight: 600; }
.ft__col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color .18s; }
.ft__col a:hover { color: var(--ink); }
.ft__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-2); }
.ft__legal a, .ft__legal span { font-size: 12.5px; color: var(--ink-3); }
.ft__legal a:hover { color: var(--ink-2); }
.ft__provenance { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.ft__socials { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.ft__socials a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-2); transition: all .18s; }
.ft__socials a:hover { color: var(--ink); border-color: color-mix(in oklab, var(--spec-2) 50%, transparent); background: rgba(255,255,255,0.04); }
.ft__socials svg { width: 18px; height: 18px; }

/* ── Hero (Home) ─────────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; overflow: hidden; }
.hero__brain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 28%, transparent 38%, rgba(7,7,12,0) 70%),
    linear-gradient(to bottom, rgba(7,7,12,0.55), transparent 18%, transparent 40%, rgba(7,7,12,0.82) 86%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--s-9) var(--s-8); }
/* mobile: brain is full-size at the top (matching the other pages), and the
   copy starts partway down so the heading OVERLAPS the brain's lower, faded
   area a little — core stays above the text so it reads cleanly. */
@media (max-width: 767px) {
  .hero { display: block; min-height: 0; }
  .hero__inner { padding-top: 300px; padding-bottom: var(--s-8); }
  .hero__brain { inset: 0 0 auto 0; height: 460px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 95%); }
  .hero__title { max-width: none; }
}
.hero__eyebrow { margin-bottom: var(--s-5); }
.hero__title { max-width: 16ch; }
.hero__sub { margin-top: var(--s-5); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }

/* ── Cards / grids ───────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr; } .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3,1fr); } .grid--4 { grid-template-columns: repeat(4,1fr); } }

.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); transition: transform .2s cubic-bezier(.2,.7,.3,1), border-color .2s, box-shadow .2s, background .2s; }
.card--link:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--spec-2) 45%, transparent); box-shadow: var(--shadow-md); background: var(--surface-3); }
.card__ico,
.card__num { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: rgba(255,255,255,0.05); border: 1px solid var(--line); margin-bottom: var(--s-5); }
.card__ico svg { width: 22px; height: 22px; }
.card--accent .card__ico { background-image: var(--grad-135); border: 0; color: #fff; }
.card h3 { margin-bottom: var(--s-3); }
.card p { font-size: 15px; }
.card__foot { margin-top: var(--s-5); }
.section--light .card { background: #fff; border-color: rgba(20,18,50,0.1); }
.section--light .card p { color: rgba(25,23,52,0.66); }
.section--light .card__ico,
.section--light .card__num { background: rgba(20,18,50,0.05); color: var(--holograph); }

/* numbered card */
.card__num { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--spec-2); }

/* ── Feature split (media + copy) ────────────────────────────────────── */
.fsplit { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .fsplit { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .fsplit--rev .fsplit__media { order: 2; } }
.fsplit__copy .t-eyebrow { display: block; margin-bottom: var(--s-3); }
.fsplit__copy h2 { margin-bottom: var(--s-4); }
.fsplit__list { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.fsplit__list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.fsplit__list svg { width: 22px; height: 22px; flex: none; color: var(--spec-2); margin-top: 1px; }

/* ── Media frame (holding/asset slot) ────────────────────────────────── */
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-1); aspect-ratio: 16/9; }
.media-frame--4-5 { aspect-ratio: 4/5; }
.media-frame--1-1 { aspect-ratio: 1/1; }
.media-frame--21-9 { aspect-ratio: 21/9; }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame__cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: rgba(7,7,12,0.6); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; backdrop-filter: blur(6px); }
/* holding placeholder look */
.media-frame--holding { background:
    radial-gradient(120% 90% at 20% 0%, rgba(99,102,241,0.22), transparent 55%),
    radial-gradient(120% 90% at 90% 100%, rgba(236,72,153,0.18), transparent 55%),
    var(--surface-1); }
.media-frame__slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--s-5); text-align: center; }
.media-frame__slot span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }

/* ── Stat row (proof) ────────────────────────────────────────────────── */
.statrow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (min-width: 900px) { .statrow { grid-template-columns: repeat(4,1fr); gap: var(--s-6); } }
.stat { padding: var(--s-5) 0; }
.stat__fig { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat__fig .t-grad, .stat__fig.t-grad { background-image: var(--grad-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-top: var(--s-3); line-height: 1.5; }

/* ── Trust grid ──────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 640px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(3,1fr); } }
.trust__item { display: flex; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-1); }
.trust__ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--spec-2); background: rgba(139,92,246,0.1); border: 1px solid color-mix(in oklab, var(--spec-2) 24%, transparent); }
.trust__ico svg { width: 24px; height: 24px; }
.trust__item h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.trust__item p { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* ── Step flow ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--s-5); counter-reset: step; }
@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3,1fr); } .steps--4 { grid-template-columns: repeat(4,1fr); } }
.step { position: relative; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-1); }
.step__n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background-image: var(--grad-135); margin-bottom: var(--s-4); }
.step h3 { font-size: 19px; margin-bottom: var(--s-3); }
.step p { font-size: 14.5px; }

/* ── Pull quote ──────────────────────────────────────────────────────── */
.pullquote { max-width: 880px; margin-inline: auto; text-align: center; }
.pullquote blockquote { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.pullquote cite { display: block; margin-top: var(--s-5); font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); text-align: left; padding: var(--s-5) 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq__q svg { width: 22px; height: 22px; flex: none; color: var(--spec-2); transition: transform .25s; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a > div { padding-bottom: var(--s-5); color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.faq__item.is-open .faq__a { max-height: 400px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band__inner { position: relative; z-index: 2; padding-block: var(--s-9); }
.cta-band__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 50%, rgba(139,92,246,0.2), transparent 70%); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .btn { margin-top: var(--s-6); }
.cta-band__hmark { width: 150px; height: 100px; margin: 0 auto var(--s-5); }

/* ── Anchor rail (interior pages) ────────────────────────────────────── */
.with-rail { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
@media (min-width: 1100px) { .with-rail { grid-template-columns: 220px 1fr; gap: var(--s-9); } }
.rail { display: none; }
@media (min-width: 1100px) { .rail { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.rail a { display: block; font-size: 14px; color: var(--ink-3); padding: 8px 12px; border-left: 2px solid var(--line); transition: color .18s, border-color .18s; }
.rail a:hover, .rail a.is-active { color: var(--ink); border-left-color: var(--spec-2); }

/* page hero (interior) */
.phero { position: relative; padding-block: var(--s-9) var(--s-7); overflow: hidden; }
.phero__brain { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
.phero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(7,7,12,0.4), var(--bg)); }
.phero__inner { position: relative; z-index: 2; }
.phero .t-eyebrow { display: block; margin-bottom: var(--s-4); }
.phero__lede { margin-top: var(--s-5); max-width: 620px; }
.breadcrumb { display: flex; gap: var(--s-2); align-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: var(--s-5); }
.breadcrumb a:hover { color: var(--ink-2); }

/* ── Reveal animation ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Utilities ───────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.maxw-720 { max-width: 720px; } .maxw-640 { max-width: 640px; }

/* ═══════════════════════════════════════════════════════════════════════
   THEME — light/dark. Default is dark. A [data-theme="light"] attribute on
   <html> flips the tokens. Cinematic zones (.hero/.phero/.showcase) stay dark
   in both themes so the brain + smoke read correctly.
   ═══════════════════════════════════════════════════════════════════════ */
:root[data-theme="light"] {
  --bg: #eceef6;
  --surface-1: #ffffff;
  --surface-2: #f4f5fb;
  --surface-3: #e9ebf5;
  --ink: #16142f;
  --ink-2: rgba(22,20,47,0.70);
  --ink-3: rgba(22,20,47,0.48);
  --line: rgba(20,18,50,0.12);
  --line-2: rgba(20,18,50,0.07);
}

/* the video showcase is a media surface — it stays dark in both themes */
.showcase {
  --ink: #f4f3fb;
  --ink-2: rgba(244,243,251,0.66);
  --ink-3: rgba(244,243,251,0.40);
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.06);
  --surface-1: #0c0b16;
  --surface-2: #141226;
  --surface-3: #1b1830;
}
/* hero & interior headers theme fully: the brain + smoke flip light too,
   so the scrim must lighten to keep dark text legible on the light brain. */
[data-theme="light"] .hero__scrim {
  background:
    radial-gradient(80% 60% at 50% 28%, transparent 38%, rgba(236,238,246,0) 70%),
    linear-gradient(to bottom, rgba(236,238,246,0.55), transparent 18%, transparent 38%, rgba(236,238,246,0.88) 86%);
}
[data-theme="light"] .phero__scrim {
  background:
    radial-gradient(75% 60% at 50% 30%, transparent 42%, rgba(236,238,246,0) 72%),
    linear-gradient(to bottom, rgba(236,238,246,0.5), transparent 26%, transparent 50%, rgba(236,238,246,0.92));
}
[data-theme="light"] .mh-greet, [data-theme="light"] .hero__title { text-shadow: 0 2px 30px rgba(210,214,232,0.6); }

/* light-theme component fixes (hardcoded white rgbas → readable on light) */
[data-theme="light"] .btn--ghost { color: var(--ink); background: rgba(20,18,50,0.04); border-color: var(--line); }
[data-theme="light"] .btn--ghost:hover { background: rgba(20,18,50,0.08); }
[data-theme="light"] .lang__current { color: var(--ink); background: rgba(20,18,50,0.04); border-color: var(--line); }
[data-theme="light"] .lang__current:hover, [data-theme="light"] .lang[open] .lang__current { background: rgba(20,18,50,0.08); }
[data-theme="light"] .pill { background: rgba(255,255,255,0.7); }
[data-theme="light"] .hd__link:hover, [data-theme="light"] .hd__link[aria-current="page"] { background: rgba(20,18,50,0.05); }
[data-theme="light"] .hd__theme { background: rgba(20,18,50,0.04); }
[data-theme="light"] .card--link:hover { background: #fff; box-shadow: 0 16px 40px -18px rgba(20,18,50,0.16); }
[data-theme="light"] .card__ico { background: rgba(20,18,50,0.05); }
[data-theme="light"] .card--accent .card__ico { background-image: var(--grad-135); }
[data-theme="light"] .trust__item, [data-theme="light"] .step, [data-theme="light"] .dim__card, [data-theme="light"] .scrolly__step, [data-theme="light"] .demo-embed { background: #fff; }
[data-theme="light"] .rules-wrap, [data-theme="light"] .form { background: #fff; }
[data-theme="light"] .rules thead th { background: var(--surface-2); }
[data-theme="light"] .field input[type=text], [data-theme="light"] .field input[type=email], [data-theme="light"] .field textarea, [data-theme="light"] .field select { background: #f7f8fc; color: var(--ink); }
[data-theme="light"] .chip-toggle { background: rgba(20,18,50,0.03); color: var(--ink-2); }
[data-theme="light"] .logorow__slot { background: var(--surface-1); }
[data-theme="light"] .mnav { background: color-mix(in oklab, var(--bg) 95%, transparent); }
[data-theme="light"] .demobar { background: color-mix(in oklab, var(--surface-2) 94%, transparent); }
[data-theme="light"] .ft__socials a:hover { background: rgba(20,18,50,0.04); }
[data-theme="light"] .orch__node { background: #fff; }
[data-theme="light"] .iso-note { background: #fff; }
[data-theme="light"] .media-frame--holding { background:
    radial-gradient(120% 90% at 20% 0%, rgba(99,102,241,0.16), transparent 55%),
    radial-gradient(120% 90% at 90% 100%, rgba(236,72,153,0.14), transparent 55%),
    var(--surface-1); }
/* smooth the flip */
body, .card, .trust__item, .step, .dim__card, .form, .field input, .field textarea { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
@media (prefers-reduced-motion: reduce) { body, .card, .trust__item, .step, .dim__card, .form { transition: none; } }

/* ═══════════ Theme toggle button (header) ═══════════ */
.hd__theme {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--ink-2);
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  transition: all .18s;
}
.hd__theme:hover { color: var(--ink); border-color: color-mix(in oklab, var(--spec-2) 50%, transparent); }
.hd__theme svg { width: 20px; height: 20px; }
.hd__theme .ico-moon { display: none; }
[data-theme="light"] .hd__theme .ico-sun { display: none; }
[data-theme="light"] .hd__theme .ico-moon { display: block; }
@media (min-width: 1024px) { .hd__theme { margin-left: var(--s-2); } }

/* ═══════════ ISO 27001 trust note ═══════════ */
.iso-note {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  font-size: 13px; color: var(--ink-2);
}
.iso-note__mark {
  width: 34px; height: 34px; flex: none; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--spec-2); background: rgba(139,92,246,0.12);
  border: 1px solid color-mix(in oklab, var(--spec-2) 26%, transparent);
}
.iso-note__mark svg { width: 18px; height: 18px; }
.iso-note b { color: var(--ink); font-weight: 700; }
.ft__iso { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.ft__iso svg { width: 15px; height: 15px; color: var(--spec-2); }

/* ═══════════ Mobile menu theme toggle (replaces the in-bar button) ═══════════ */
.mnav__theme { display: flex; align-items: center; width: 100%; font-size: 20px; font-weight: 600; color: var(--ink); padding: 14px 6px; border-top: 1px solid var(--line-2); margin-top: var(--s-3); text-align: left; }
.mnav__theme .theme-when-dark, .mnav__theme .theme-when-light { display: inline-flex; align-items: center; gap: 12px; }
.mnav__theme .theme-when-light { display: none; }
.mnav__theme svg { width: 24px; height: 24px; color: var(--spec-2); }
[data-theme="light"] .mnav__theme .theme-when-dark { display: none; }
[data-theme="light"] .mnav__theme .theme-when-light { display: inline-flex; }
/* the in-bar mobile toggle no longer exists; keep desktop .hd__theme only */
.hd__theme--m { display: none; }
