/* Layout: a calm operations console. Glass nav, split hero with a floating control-plane mock,
   bento capabilities, policy-as-code terminal, engagement tiers and a conversion banner.
   Dark-first: dark values on :root, light values behind the theme toggle or a light OS setting. */
:root {
  --bg: #0A0D14;
  --surface: #111622;
  --surface-2: #161C2B;
  --raised: #1A2132;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --dim: #7A8AA3;
  --line: rgb(148 163 184 / .14);
  --line-strong: rgb(148 163 184 / .26);
  --accent: #3B82F6;
  --accent-2: #8B5CF6;
  --accent-rgb: 59 130 246;
  --accent-2-rgb: 139 92 246;
  --cta-from: #2563EB;
  --cta-to: #7C3AED;
  --on-cta: #FFFFFF;
  --glass: rgb(10 13 20 / .62);
  --dot-rgb: 148 163 184;
  --aura: .24;
  --ai-layer: .9;
  --lens-filter: brightness(1.15) saturate(1.4);
  /* Light theme backdrop gradient (also read by landing.js for the WebGL shader). */
  --mist-1: #DAE6FF;
  --mist-2: #EBDDFF;
  --mist-3: #FAFBFF;
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;
  --shadow: 0 30px 80px -30px rgb(0 0 0 / .75);

  /* The terminal and the audit log stay dark in both themes. */
  --term-bg: #0B0F19;
  --term-line: rgb(148 163 184 / .16);
  --term-text: #E2E8F0;
  --term-dim: #8291A7;
  --term-accent: #60A5FA;
  --term-ok: #34D399;
  --code-key: #93C5FD;
  --code-str: #C4B5FD;
  --code-num: #FBBF24;

  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #F8FAFD; --raised: #FFFFFF;
    --text: #0A0D14; --muted: #475569; --dim: #5B6B82;
    --line: rgb(15 23 42 / .09); --line-strong: rgb(15 23 42 / .17);
    --accent: #2563EB; --accent-2: #7C3AED; --accent-rgb: 37 99 235; --accent-2-rgb: 124 58 237;
    --glass: rgb(245 247 251 / .74); --dot-rgb: 71 85 105; --aura: .12; --ai-layer: .75; --lens-filter: saturate(1.5) contrast(1.04);
    --ok: #047857; --warn: #B45309; --danger: #DC2626;
    --shadow: 0 30px 70px -32px rgb(15 23 42 / .28);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #F8FAFD; --raised: #FFFFFF;
  --text: #0A0D14; --muted: #475569; --dim: #5B6B82;
  --line: rgb(15 23 42 / .09); --line-strong: rgb(15 23 42 / .17);
  --accent: #2563EB; --accent-2: #7C3AED; --accent-rgb: 37 99 235; --accent-2-rgb: 124 58 237;
  --glass: rgb(245 247 251 / .74); --dot-rgb: 71 85 105; --aura: .12; --ai-layer: .75; --lens-filter: saturate(1.5) contrast(1.04);
  --ok: #047857; --warn: #B45309; --danger: #DC2626;
  --shadow: 0 30px 70px -32px rgb(15 23 42 / .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(var(--accent-rgb) / .3); }
.mono { font-family: var(--font-mono); }
.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; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: calc(16px + env(safe-area-inset-top, 0px)); }
.shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
main, .footer { position: relative; z-index: 1; }

/* Background: particle grid (canvas) under two slow glowing auras. */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%); }
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura span { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; opacity: var(--aura); filter: blur(90px); animation: drift 28s ease-in-out infinite alternate; }
.aura span:first-child { top: -32vmax; left: -14vmax; background: radial-gradient(circle, rgb(var(--accent-rgb)), transparent 62%); }
.aura span:last-child { top: 6vmax; right: -30vmax; background: radial-gradient(circle, rgb(var(--accent-2-rgb)), transparent 62%); animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.08); } }

/* Light theme backdrop: an animated WebGL gradient, over a static CSS version used until it draws or without WebGL. */
.gradient { position: fixed; inset: 0; z-index: 0; display: none; pointer-events: none; background: radial-gradient(70% 60% at 12% 8%, var(--mist-1), transparent 72%), radial-gradient(60% 65% at 92% 35%, var(--mist-2), transparent 70%), var(--mist-3); }
:root[data-theme="light"] .gradient { display: block; }
:root[data-theme="light"] .aura { display: none; }
.gradient canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.gradient.is-ready canvas { opacity: 1; }
/* Fine grain keeps the large soft areas from banding. */
.gradient::after { content: ""; position: absolute; inset: 0; opacity: .03; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMCCgkGBAVJOAVJAAAASklEQVQ4y2NgGAWjYBSMglEwCgY/YGRgZBQUYmJiZGQEkYwMjIyMgoKCjIyMIJKBgRFIMjIyAklGRkYGRkFBYEcwMDIyMjAOUQAA1I4HwVwZAkYAAAAASUVORK5CYII=") 0 0 / 200px repeat; }

/* Hidden AI layer: neural nets, agents and agent code, invisible until the cursor moves.
   A soft mask reveals it under a frosted lens, a fainter trail lags behind, and it fades once the cursor rests. */
.ai-reveal { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); --cx: -999px; --cy: -999px; --tx: -999px; --ty: -999px; }
.ai-reveal.is-active { opacity: 1; }
.ai-layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--ai-layer, .9);
  -webkit-mask-image: radial-gradient(circle 250px at var(--cx) var(--cy), #000 0%, #000 30%, rgb(0 0 0 / .45) 62%, transparent 100%), radial-gradient(circle 360px at var(--tx) var(--ty), rgb(0 0 0 / .35), transparent 100%);
  mask-image: radial-gradient(circle 250px at var(--cx) var(--cy), #000 0%, #000 30%, rgb(0 0 0 / .45) 62%, transparent 100%), radial-gradient(circle 360px at var(--tx) var(--ty), rgb(0 0 0 / .35), transparent 100%); }
.ai-lens { position: absolute; left: 0; top: 0; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; transform: translate3d(var(--cx), var(--cy), 0); border: 1px solid rgb(var(--accent-rgb) / .16); background: radial-gradient(circle, transparent 55%, rgb(var(--accent-rgb) / .06) 80%, rgb(var(--accent-2-rgb) / .1) 100%); box-shadow: inset 0 0 50px -10px rgb(var(--accent-rgb) / .25), 0 0 80px -30px rgb(var(--accent-2-rgb) / .45); -webkit-backdrop-filter: var(--lens-filter); backdrop-filter: var(--lens-filter); }
.ai-net path, .ai-bot path, .ai-bot rect, .ai-chip path, .ai-chip rect { fill: none; stroke: rgb(var(--accent-rgb) / .75); stroke-width: 1.4; stroke-linecap: round; }
.ai-net circle, .ai-bot circle { fill: var(--bg); stroke: rgb(var(--accent-rgb) / .95); stroke-width: 1.6; }
.ai-net .ai-hot, .ai-bot .ai-hot { fill: rgb(var(--accent-2-rgb)); stroke: none; }
/* Outlined lettering: a transparent fill with a faint wash, so the dots show through the letters. */
.ai-big { fill: rgb(var(--accent-2-rgb) / .08); stroke: rgb(var(--accent-2-rgb) / .85); stroke-width: 1.5; font: 800 104px/1 var(--font-display); letter-spacing: -.04em; }
.ai-big-alt { fill: rgb(var(--accent-rgb) / .06); stroke: rgb(var(--accent-rgb) / .8); font-size: 60px; }
.ai-code text { fill: rgb(var(--accent-rgb)); font: 500 14px var(--font-mono); letter-spacing: .02em; }

/* Navigation */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid transparent; transition: var(--t); }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgb(0 0 0 / .5); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1.1 var(--font-display); letter-spacing: -.01em; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
.brand small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 9px; color: var(--muted-foreground); font-size: 15px; font-weight: 500; transition: var(--t); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); background: rgb(var(--dot-rgb) / .1); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; transition: var(--t); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { border-color: rgb(var(--accent-rgb) / .6); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12), 0 0 22px -4px rgb(var(--accent-rgb) / .55); transform: translateY(-1px) scale(1.02); }
.icon-moon { display: none !important; }
:root[data-theme="light"] .icon-sun { display: none !important; }
:root[data-theme="light"] .icon-moon { display: block !important; }
.menu-toggle { display: none; }

/* Buttons */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 15px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: var(--t); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: var(--t); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { color: var(--on-cta); background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 10px 30px -12px rgb(var(--accent-rgb) / .75); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%) -150% 0 / 220% 100% no-repeat; transition: background-position .9s var(--ease); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 0 0 1px rgb(var(--accent-rgb) / .45), 0 18px 44px -14px rgb(var(--accent-2-rgb) / .8), 0 0 36px -8px rgb(var(--accent-rgb) / .55); }
.btn-primary:hover::before { background-position: 150% 0; }
.btn-ghost { color: var(--text); background: rgb(var(--dot-rgb) / .06); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px) scale(1.02); border-color: rgb(var(--accent-rgb) / .6); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .1), 0 14px 34px -16px rgb(var(--accent-rgb) / .7); }
.btn:active { transform: scale(.98); transition-duration: .15s; }
.play { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(var(--accent-rgb) / .16); color: var(--accent); transition: var(--t); }
.play svg { width: 10px; height: 10px; fill: currentColor; }
.btn-ghost:hover .play { background: var(--accent); color: var(--on-cta); box-shadow: 0 0 16px rgb(var(--accent-rgb) / .7); }
.text-button { padding: 6px 0; border: 0; background: none; color: var(--muted-foreground); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: var(--t); }
.text-button:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 72px 112px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgb(var(--dot-rgb) / .06); color: var(--muted-foreground); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.display { font: 800 clamp(2.8rem, 5.8vw, 4.9rem)/1.02 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.gradient-text { display: inline-block; padding-bottom: .06em; background: linear-gradient(100deg, var(--accent) 8%, var(--accent-2) 72%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 33rem; color: var(--muted-foreground); font-size: clamp(1.05rem, 1.35vw, 1.18rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Hero stage: a tilted control-plane mock with floating layers. */
.stage { position: relative; margin: 0; min-width: 0; perspective: 1600px; --rx: 7deg; --ry: -13deg; }
.rig { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 1.2s var(--ease); }
.mock { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow), 0 40px 120px -40px rgb(var(--accent-2-rgb) / .5), 0 0 0 1px rgb(var(--accent-rgb) / .05); font-size: 13px; }
.mock::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgb(255 255 255 / .07), transparent 38%); }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-url { flex: 1; min-width: 0; overflow: hidden; color: var(--dim); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.mock-body { display: grid; gap: 12px; padding: 16px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-stats div { display: grid; gap: 6px; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--dot-rgb) / .05); }
.mock-stats span { overflow: hidden; color: var(--dim); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.mock-stats strong { font: 700 22px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mock-stats .is-warn { color: var(--warn); }
.mock-chart { padding: 12px 14px 14px; border-radius: 12px; border: 1px solid var(--line); }
.mock-chart-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--muted-foreground); font-size: 12px; }
.mock-chart-head .mono { color: var(--dim); font-size: 10.5px; }
.chart-plot { position: relative; height: 72px; }
.chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-grid { fill: none; stroke: var(--line); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#area-fill); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .is-in .chart-line { animation: draw 2.2s .5s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.chart-end { position: absolute; right: 0; top: 22.75%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .2), 0 0 16px rgb(var(--accent-rgb) / .9); transform: translate(50%, -50%); }
.mock-agents { display: grid; margin: 0; padding: 0; list-style: none; border-radius: 12px; border: 1px solid var(--line); }
.mock-agents li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; font-size: 12px; }
.mock-agents li + li { border-top: 1px solid var(--line); }
.agent-dot { width: 7px; height: 7px; border-radius: 50%; }
.agent-dot.is-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.agent-dot.is-warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: blink 1.4s ease-in-out infinite; }
.pill { padding: 3px 8px; border-radius: 999px; font: 500 10px/1.3 var(--font-mono); letter-spacing: .03em; white-space: nowrap; }
.pill.is-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill.is-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.mock-log { display: grid; align-content: start; gap: 2px; height: calc(4 * 1.7em + 22px); margin: 0; padding: 10px 12px; overflow: hidden; list-style: none; border-radius: 12px; background: var(--term-bg); color: var(--term-text); font-size: 11px; line-height: 1.7; }
.mock-log li { display: flex; gap: 10px; min-width: 0; white-space: nowrap; }
.mock-log time { color: var(--term-dim); font-variant-numeric: tabular-nums; }
.mock-log b { color: var(--term-accent); font-weight: 500; }
.mock-log span { overflow: hidden; text-overflow: ellipsis; }
.mock-log li.is-new { animation: log-in .7s var(--ease) both; }
@keyframes log-in { from { opacity: 0; transform: translateY(10px); } }

.float { position: absolute; z-index: 2; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--raised) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow), 0 0 40px -14px rgb(var(--accent-rgb) / .5); transform: translateZ(90px); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.float-approval { left: -7%; top: 34%; width: 232px; }
.float-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--warn); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.float-kicker i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.float-approval strong { font: 700 15px/1.3 var(--font-display); }
.float-meta { color: var(--muted-foreground); font-size: 12px; }
.float-actions { display: flex; gap: 6px; margin-top: 8px; }
.mini { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 11.5px; font-weight: 600; }
.mini.is-primary { border-color: transparent; color: var(--on-cta); background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); }
.float-policy { right: -5%; top: -22px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12px; animation-delay: -3.5s; }
.check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-size: 11px; }

/* Sections */
.section { padding-block: clamp(80px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; max-width: 660px; margin-bottom: 52px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
h2 { font: 700 clamp(2.05rem, 3.9vw, 3.15rem)/1.08 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.section-head > p:last-child { max-width: 36rem; color: var(--muted-foreground); font-size: 1.075rem; }

/* Cards share a cursor spotlight and a glowing edge. */
.tile, .tier, .portal, .cta { --mx: 50%; --my: 0%; }
.tile::before, .tier::before, .portal::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), rgb(var(--accent-rgb) / .13), transparent 62%); opacity: 0; transition: var(--t); }
.tile::after, .tier::after, .portal::after { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; background: radial-gradient(320px circle at var(--mx) var(--my), rgb(var(--accent-rgb) / .85), rgb(var(--accent-2-rgb) / .45) 45%, transparent 75%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; transition: var(--t); pointer-events: none; }
.tile:hover::before, .tile:hover::after, .tier:hover::before, .tier:hover::after, .portal:hover::before, .portal:hover::after { opacity: 1; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; padding: 30px; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: var(--t); }
.tile:hover { transform: translateY(-5px) scale(1.01); border-color: var(--line-strong); box-shadow: 0 30px 70px -36px rgb(var(--accent-rgb) / .6), 0 0 0 1px rgb(var(--accent-rgb) / .08); }
.tile-agents, .tile-gov { grid-column: span 2; flex-direction: row; align-items: center; }
.tile-agents .tile-copy, .tile-gov .tile-copy { flex: 1 1 0; }
.tile-copy { display: grid; gap: 12px; min-width: 0; }
.tile-kicker { color: var(--accent); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.tile h3 { font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.tile-copy > p:not(.tile-kicker) { max-width: 30rem; color: var(--muted-foreground); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.chips li { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgb(var(--dot-rgb) / .05); color: var(--muted-foreground); font-size: 11.5px; transition: var(--t); }
.tile:hover .chips li { border-color: rgb(var(--accent-rgb) / .35); color: var(--text); }
.tile-art { flex: 1.1 1 0; min-width: 0; }

.flow { width: 100%; height: auto; overflow: visible; }
.flow-base path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow-line path { fill: none; stroke: url(#flow-grad); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 12; animation: flow 1.6s linear infinite; opacity: .75; transition: var(--t); }
.flow-line .flow-human { stroke: var(--warn); stroke-dasharray: 2 8; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.flow-node rect { fill: var(--surface); stroke: var(--line-strong); transition: var(--t); }
.flow-node text, .flow-core-label { fill: var(--muted-foreground); font: 500 12px var(--font-mono); text-anchor: middle; }
.flow-node-human text { fill: var(--warn); }
.flow-halo { fill: url(#core-grad); transform-origin: 200px 100px; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.flow-core { fill: var(--surface-2); stroke: url(#flow-grad); stroke-width: 2; transition: var(--t); }
.flow-core-label { fill: var(--text); font-weight: 600; }
.tile:hover .flow-line path { opacity: 1; stroke-width: 2.5; }
.tile:hover .flow-node rect { stroke: rgb(var(--accent-rgb) / .7); filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / .45)); }
.tile:hover .flow-node-human rect { stroke: var(--warn); }
.tile:hover .flow-core { filter: drop-shadow(0 0 14px rgb(var(--accent-2-rgb) / .8)); }

.pipeline { position: relative; display: grid; gap: 8px; margin: 0; padding: 0 0 0 4px; list-style: none; font-size: 12px; }
.pipeline::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: 18px; width: 1px; background: var(--line-strong); }
.pipeline::after { content: ""; position: absolute; left: 8px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: travel 4.8s var(--ease) infinite; }
@keyframes travel { 0%, 8% { transform: translateY(0); } 30%, 38% { transform: translateY(40px); } 60%, 68% { transform: translateY(80px); } 90%, 100% { transform: translateY(120px); } }
.pipeline li { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 6px 12px 6px 0; border-radius: 10px; color: var(--muted-foreground); transition: var(--t); }
.pipeline li i { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); transition: var(--t); }
.pipeline li span { color: var(--dim); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.pipeline li.is-human span { color: var(--warn); }
.tile:hover .pipeline li { color: var(--text); }
.tile:hover .pipeline li i { border-color: var(--accent); box-shadow: 0 0 10px rgb(var(--accent-rgb) / .6); }
.tile:hover .pipeline li.is-human i { border-color: var(--warn); box-shadow: 0 0 10px color-mix(in srgb, var(--warn) 60%, transparent); }
.pipeline li:nth-child(2), .pipeline li:nth-child(2) i { transition-delay: 70ms; }
.pipeline li:nth-child(3), .pipeline li:nth-child(3) i { transition-delay: 140ms; }
.pipeline li:nth-child(4), .pipeline li:nth-child(4) i { transition-delay: 210ms; }

.signals { position: relative; display: grid; gap: 8px; margin: 0; padding: 0; overflow: hidden; list-style: none; font-size: 12px; }
.signals::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgb(var(--accent-rgb) / .16), transparent); animation: scan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { to { top: 100%; } }
.signals li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgb(var(--dot-rgb) / .04); color: var(--text); transition: var(--t); }
.signals em { color: var(--dim); font-style: normal; font-size: 10.5px; }
.sev { min-width: 42px; padding: 2px 6px; border-radius: 6px; font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.sev.is-high { color: var(--danger); background: color-mix(in srgb, var(--danger) 15%, transparent); }
.sev.is-med { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.sev.is-low { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.tile:hover .signals li:first-child { border-color: color-mix(in srgb, var(--danger) 45%, transparent); box-shadow: 0 0 22px -8px var(--danger); }

.controls { flex: 1.1 1 0; display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.controls li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgb(var(--dot-rgb) / .04); color: var(--muted-foreground); font-size: 13.5px; line-height: 1.45; transition: var(--t); }
.controls strong { display: block; margin-bottom: 2px; color: var(--text); font: 600 14.5px/1.3 var(--font-display); }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgb(var(--accent-rgb) / .25); border: 1px solid rgb(var(--accent-rgb) / .45); transition: var(--t); }
.switch i { position: absolute; top: 3px; left: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transition: var(--t); }
.tile:hover .controls li { border-color: rgb(var(--accent-rgb) / .3); transform: translateX(4px); }
.tile:hover .switch { background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); border-color: transparent; box-shadow: 0 0 16px rgb(var(--accent-rgb) / .6); }
.tile:hover .switch i { background: #fff; }
.controls li:nth-child(2), .controls li:nth-child(2) .switch { transition-delay: 90ms; }
.controls li:nth-child(3), .controls li:nth-child(3) .switch { transition-delay: 180ms; }

.portal { position: relative; isolation: isolate; display: flex; align-items: center; gap: 20px; margin-top: 16px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: var(--t); }
.portal:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 60px -34px rgb(var(--accent-rgb) / .6); }
.portal-rack { display: grid; gap: 4px; width: 46px; padding: 8px; border-radius: 10px; border: 1px solid var(--line-strong); }
.portal-rack i { height: 5px; border-radius: 2px; background: var(--line-strong); transition: var(--t); }
.portal:hover .portal-rack i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgb(var(--accent-rgb) / .6); }
.portal:hover .portal-rack i:nth-child(2) { transition-delay: 80ms; }
.portal:hover .portal-rack i:nth-child(3) { transition-delay: 160ms; }
.portal-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.portal-copy .mono { color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.portal-copy strong { font: 700 1.1rem/1.3 var(--font-display); letter-spacing: -.015em; }
.portal .arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--muted-foreground); transition: var(--t); }
.portal:hover .arrow { color: var(--accent); transform: translateX(4px); }

/* Architecture: timeline steps drive the terminal. */
.arch { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 32px; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; width: 100%; padding: 18px 20px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: var(--t); }
.step:hover { border-color: var(--line-strong); background: rgb(var(--dot-rgb) / .05); transform: translateX(4px); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--muted-foreground); font-size: 12px; transition: var(--t); }
.step-text { display: grid; gap: 2px; min-width: 0; }
.step-label { color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.step-text strong { font: 700 1.05rem/1.35 var(--font-display); }
.step-text > span:last-child { color: var(--muted-foreground); font-size: 14px; }
.step[aria-current="step"] { border-color: rgb(var(--accent-rgb) / .5); background: rgb(var(--accent-rgb) / .07); box-shadow: 0 18px 40px -28px rgb(var(--accent-rgb) / .7); }
.step[aria-current="step"] .step-num { border-color: transparent; color: var(--on-cta); background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); box-shadow: 0 0 18px rgb(var(--accent-rgb) / .5); }
.step[aria-current="step"] .step-label { color: var(--accent); }
.step-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; }
.step.is-holding .step-progress { animation: hold var(--hold, 3200ms) linear forwards; }
@keyframes hold { to { transform: scaleX(1); } }

.terminal { position: relative; min-width: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--term-line); background: var(--term-bg); color: var(--term-text); box-shadow: var(--shadow), 0 40px 100px -50px rgb(var(--accent-rgb) / .7); }
.terminal::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / .8), rgb(var(--accent-2-rgb) / .8), transparent); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--term-line); }
.term-bar .dots i { background: rgb(148 163 184 / .3); }
.term-title { flex: 1; min-width: 0; overflow: hidden; color: var(--term-dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.copy { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--term-line); background: rgb(255 255 255 / .04); color: var(--term-text); font-size: 12px; cursor: pointer; transition: var(--t); }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy:hover { border-color: rgb(96 165 250 / .6); box-shadow: 0 0 0 3px rgb(96 165 250 / .12), 0 0 20px -4px rgb(96 165 250 / .6); transform: translateY(-1px) scale(1.02); }
.copy.is-copied { color: var(--term-ok); border-color: rgb(52 211 153 / .5); }
.term-body { min-height: 360px; margin: 0; padding: 22px 22px 26px; overflow-x: auto; font: 400 13.5px/1.8 var(--font-mono); tab-size: 2; }
.term-body:focus-visible { outline-offset: -3px; }
.t-line { display: block; min-height: 1.8em; white-space: pre; }
.t-line.is-new { animation: line-in .45s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } }
.t-prompt, .t-ok { color: var(--term-ok); }
.t-dim, .t-com { color: var(--term-dim); }
.t-accent { color: var(--term-accent); }
.t-key { color: var(--code-key); }
.t-str { color: var(--code-str); }
.t-num { color: var(--code-num); }
.caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--term-text); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term-foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--term-line); color: var(--term-dim); font-size: 11px; letter-spacing: .05em; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.tier { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 32px 28px 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: var(--t); }
.tier:hover { transform: translateY(-6px) scale(1.02); border-color: rgb(var(--accent-rgb) / .4); box-shadow: 0 34px 80px -40px rgb(var(--accent-rgb) / .7), 0 0 40px -20px rgb(var(--accent-2-rgb) / .6); }
.tier-featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(150deg, var(--accent), var(--accent-2)) border-box; box-shadow: 0 30px 80px -44px rgb(var(--accent-2-rgb) / .8); }
.tier-featured:hover { border-color: transparent; }
.tier-flag { position: absolute; top: -12px; left: 28px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); color: var(--on-cta); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.tier-head { display: grid; gap: 6px; }
.tier h3 { font: 700 1.6rem/1.1 var(--font-display); letter-spacing: -.03em; }
.tier-head p { color: var(--muted-foreground); }
.tier-price { display: grid; gap: 2px; padding-block: 18px; border-block: 1px solid var(--line); font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; }
.tier-price span { color: var(--dim); font: 400 13px/1.4 var(--font-body); letter-spacing: 0; }
.tier-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--muted-foreground); font-size: 14.5px; }
.tier-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.tier-list li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgb(var(--accent-rgb) / .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%233B82F6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tier .btn { width: 100%; margin-top: auto; }

/* Conversion banner */
.cta { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; padding: clamp(28px, 5vw, 60px); overflow: hidden; border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(640px 320px at 0% 0%, rgb(var(--accent-rgb) / .2), transparent 70%), radial-gradient(520px 320px at 100% 100%, rgb(var(--accent-2-rgb) / .2), transparent 70%), var(--surface); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000, transparent 60%); mask-image: radial-gradient(circle at var(--mx) var(--my), #000, transparent 60%); opacity: .7; }
.cta-copy { display: grid; align-content: start; gap: 18px; min-width: 0; }
.cta-copy > p:not(.kicker) { color: var(--muted-foreground); font-size: 1.075rem; }
.signup { display: grid; gap: 10px; margin-top: 8px; }
.field-row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg); transition: var(--t); }
.field-row:focus-within, .field-row.is-highlight { border-color: rgb(var(--accent-rgb) / .7); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .14), 0 0 34px -8px rgb(var(--accent-rgb) / .6); }
.field-row input { flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 12px; border: 0; background: transparent; outline: none; font-size: 15px; }
.field-row input::placeholder { color: var(--dim); }
.field-row input[aria-invalid="true"] { color: var(--danger); }
.field-row select { height: 40px; padding: 0 10px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted-foreground); font-size: 14px; cursor: pointer; }
.field-row select:focus-visible { outline-offset: -2px; }
.form-note { color: var(--dim); font-size: 13px; }
.form-note.is-error { color: var(--danger); }
.cta-side { display: grid; align-content: start; gap: 22px; min-width: 0; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--dot-rgb) / .05); color: var(--text); font-size: 12px; line-height: 1.35; transition: var(--t); }
.trust li:hover { border-color: rgb(var(--accent-rgb) / .45); box-shadow: 0 0 24px -10px rgb(var(--accent-rgb) / .7); transform: translateY(-2px); }
.trust svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-lines { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.contact-lines .mono { color: var(--dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contact-lines a { width: fit-content; max-width: 100%; overflow-wrap: anywhere; font-weight: 500; background: linear-gradient(90deg, var(--accent), var(--accent-2)) 0 100% / 0 1px no-repeat; transition: var(--t); }
.contact-lines a:hover { color: var(--accent); background-size: 100% 1px; }
.contact-tags { color: var(--muted-foreground); font-size: 13px; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 40px 48px; border-top: 1px solid var(--line); color: var(--muted-foreground); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { transition: var(--t); }
.footer-links a:hover { color: var(--text); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

/* Scroll reveals: headings, then copy, then cards. Uses `translate` so hover transforms still compose. */
.motion [data-reveal] { opacity: 0; translate: 0 28px; transition: var(--t); transition-delay: var(--d, 0ms); }
.motion .stage[data-reveal] { translate: 0 44px; scale: .96; }
.motion [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* Responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 72px; padding-block: 56px 96px; }
  .stage { width: 100%; max-width: 620px; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .cta { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; margin: 0; padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--t); }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-agents, .tile-gov { grid-column: auto; flex-direction: column; align-items: stretch; }
  .tile { padding: 24px; }
}
@media (max-width: 560px) {
  .nav-tools .btn-sm { padding: 0 12px; }
  .brand > span { font-size: 15px; }
  .stage { --rx: 4deg; --ry: -6deg; padding-block: 18px 40px; }
  .mock-body { padding: 12px; gap: 10px; }
  .mock-stats strong { font-size: 18px; }
  .float-approval { left: 6px; top: auto; bottom: 0; width: 210px; }
  .float-policy { right: 6px; top: 0; }
  .term-body { min-height: 330px; padding: 18px 16px 22px; font-size: 12px; }
  .field-row { flex-wrap: wrap; }
  .field-row input { flex-basis: 100%; }
  .field-row select { flex: 1; border-left: 0; }
  .field-row .btn { flex: 1; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .brand > span { display: none; }
}

/* Touch screens: keep glow and colour feedback, drop hover movement. */
@media (hover: none) {
  .tile:hover, .tier:hover, .portal:hover, .step:hover, .btn:hover, .icon-button:hover, .copy:hover, .trust li:hover, .tile:hover .controls li { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .tile:hover, .tier:hover, .portal:hover, .step:hover, .btn:hover, .icon-button:hover, .copy:hover, .trust li:hover, .tile:hover .controls li, .btn:hover .arrow, .portal:hover .arrow { transform: none; }
  .pipeline::after, .signals::after { display: none; }
}
@media (forced-colors: active) {
  .tile::before, .tile::after, .tier::before, .tier::after, .portal::before, .portal::after, .aura, .field, .ai-reveal, .gradient { display: none !important; }
  .gradient-text { color: CanvasText; background: none; }
}
