/* agentiscale.net. Self-contained: fonts and favicon live in site/assets.
   Type: Cabinet Grotesk (display, Fontshare, ITF Free Font License), Inter (text, OFL), JetBrains Mono (code, OFL).
   Colours reuse the brand's lime, amber and ink. */

@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("assets/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --display: "Cabinet Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --lime: #c5ed93; --lime-hi: #e4f8c9; --lime-deep: #2c3d20; --amber: #f0c578;
  --ease-x: cubic-bezier(0.4, 0.14, 0.3, 1); --ease-in: cubic-bezier(0, 0, 0.38, 0.9); --ease-s: cubic-bezier(0.2, 0, 0.38, 0.9);
  --r: 14px;

  /* light theme (default for the middle of the page) */
  --bg: #f4f5f1; --surface: #ffffff; --surface-2: #eceee8; --text: #12171d; --muted: #4f5a66; --line: rgba(18, 23, 29, .1); --line-2: rgba(18, 23, 29, .18);
  --accent-text: #3f6b22; --code-bg: rgba(18, 23, 29, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1319; --surface: #151b22; --surface-2: #1a212a; --text: #eef2f6; --muted: #a3afbc; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
    --accent-text: var(--lime); --code-bg: rgba(255, 255, 255, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1319; --surface: #151b22; --surface-2: #1a212a; --text: #eef2f6; --muted: #a3afbc; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --accent-text: var(--lime); --code-bg: rgba(255, 255, 255, .07);
  color-scheme: dark;
}
/* hero, agents band and finale are ink in both themes */
.dark { --bg: #07090c; --surface: #0f141a; --surface-2: #151b23; --text: #f4f7fa; --muted: #a3afbc; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --accent-text: var(--lime); --code-bg: rgba(255, 255, 255, .07); color-scheme: dark; background: var(--bg); color: var(--text); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
main:focus { outline: none; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
code { overflow-wrap: anywhere; font-size: .88em; padding: .1em .35em; border-radius: 5px; background: var(--code-bg); color: var(--text); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
:root:not(.dark) .sec :where(a, button, summary):focus-visible { outline-color: var(--accent-text); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--lime); color: var(--lime-deep); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s var(--ease-s), border-color .12s var(--ease-s), transform .12s var(--ease-s), box-shadow .12s var(--ease-s); }
.btn-s { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--lime); color: var(--lime-deep); box-shadow: 0 0 0 1px rgba(197, 237, 147, .5), 0 8px 30px -8px rgba(197, 237, 147, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background: var(--lime-hi); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }
.copy[data-copied] { border-color: var(--lime); color: var(--lime); }

/* ---------- glass nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 12, .84); color: #f4f7fa; border-bottom: 1px solid rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); --text: #f4f7fa; --line-2: rgba(255, 255, 255, .16); }
.nav-in { display: flex; align-items: center; gap: 12px 32px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand svg { fill: var(--lime); }
.nav nav { display: flex; gap: 4px 28px; margin-left: auto; font-size: 14.5px; flex-wrap: wrap; }
.nav nav a { color: #b9c4cf; text-decoration: none; padding: 6px 0; transition: color .12s; }
.nav nav a:hover { color: #fff; }
.nav-install { margin-left: 8px; }
.ex-more { margin-top: 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 56px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; left: 50%; top: -260px; width: 1300px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(197, 237, 147, .20), transparent 70%), radial-gradient(closest-side at 30% 60%, rgba(120, 170, 255, .10), transparent 70%), radial-gradient(closest-side at 72% 55%, rgba(240, 197, 120, .07), transparent 70%);
  filter: blur(20px); }
.aurora.low { top: -200px; }
.floor { position: absolute; left: -10%; right: -10%; bottom: -10%; height: 70%; transform: perspective(900px) rotateX(62deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%); }
.grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font: 500 12.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #c9d3dd; }
.kicker-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--lime); transform: skewX(-15deg); }
.headline { margin: 22px 0 22px; font: 800 clamp(40px, 6vw, 80px)/.98 var(--display); letter-spacing: -0.035em; max-width: 16ch;
  background: linear-gradient(180deg, #ffffff 30%, #b9c4cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline em { position: relative; display: inline-block; font-style: normal; background: linear-gradient(100deg, var(--lime) 10%, var(--lime-hi) 50%, var(--lime) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.headline .w { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 72ch; font-size: 19px; line-height: 1.6; color: #b4bfcb; }
.lede b { color: #f4f7fa; font-weight: 600; }

.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 60px -30px rgba(0, 0, 0, .8); }
.cmd { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 30px; padding: 14px 14px 14px 20px; border-radius: var(--r); text-align: left; width: min(100%, 560px); }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: 4px 0; font: 400 14.5px/1.75 var(--mono); color: #eef2f6; white-space: pre; overflow-x: auto; }
.cmd .ln { display: block; }
.cmd .pr { color: #7e8b99; user-select: none; }
.cmd .dim { color: #a3afbc; user-select: none; }
.cmd .copy { flex: none; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.note { margin-top: 16px; font-size: 14px; color: #a3afbc; }
.note code { color: #eef2f6; }
.proof { margin-top: 10px; font: 500 12.5px/1.5 var(--mono); letter-spacing: .02em; color: #a3afbc; }
.proof a { color: #eef2f6; text-underline-offset: 3px; }

/* spotlight: a soft light follows the pointer across cards */
[data-spot] { --mx: 50%; --my: 0%; }
[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(197, 237, 147, .10), transparent 60%); }
[data-spot]:hover::before { opacity: 1; }

/* ---------- agent atoms: runtime mark, name, machine, skills ---------- */
.rt { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.rt svg { width: 22px; height: 22px; fill: currentColor; }
.rt-claude { background: rgba(217, 119, 87, .16); color: #e08a6b; box-shadow: inset 0 0 0 1px rgba(217, 119, 87, .4); }
.rt-openai { background: rgba(255, 255, 255, .08); color: #f4f7fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ag { display: grid; min-width: 0; }
.ag b { font: 700 17px/1.2 var(--sans); white-space: nowrap; }
.mach { font-size: 12px; color: #c9d3dd; }
.run { font-size: 12px; color: #a3afbc; white-space: nowrap; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill { padding: 3px 8px; border-radius: 6px; background: rgba(197, 237, 147, .08); border: 1px solid rgba(197, 237, 147, .22); color: #dbeec2; font: 500 12px/1.3 var(--mono); white-space: nowrap; }

/* ---------- the story: agents on three machines, encrypted tasks, a relay that sees only who and how much ---------- */
.story { margin: 40px auto 0; position: relative; }
.stage { position: relative; container-type: inline-size; aspect-ratio: 1000 / 560; max-width: 1136px; margin: 0 auto; }
.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail { opacity: .22; }
.pads ellipse { opacity: 0; transition: opacity .5s var(--ease-s); }
.pads ellipse.on, .story:not(.playing) .pads ellipse { opacity: 1; }
.ag-card { position: absolute; display: grid; gap: .8cqw; padding: 1.2cqw 1.4cqw; width: 23cqw; border-radius: 1.3cqw; transform: translate(-50%, -100%);
  background: linear-gradient(160deg, rgba(27, 35, 45, .92), rgba(13, 18, 24, .92)); border: 1px solid rgba(255, 255, 255, .12); color: #f4f7fa;
  box-shadow: 0 2cqw 4cqw -1.5cqw rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .4s var(--ease-s), box-shadow .4s var(--ease-s), transform .4s var(--ease-x); }
.ag-card.on { border-color: rgba(197, 237, 147, .7); box-shadow: 0 0 0 1px rgba(197, 237, 147, .35), 0 0 3cqw rgba(197, 237, 147, .25), 0 2cqw 4cqw -1.5cqw rgba(0, 0, 0, .9); transform: translate(-50%, calc(-100% - .5cqw)); }
.ag-card[data-node="a"] { left: 24%; top: 57%; }
.ag-card[data-node="b"] { left: 50%; top: 35%; }
.ag-card[data-node="c"] { left: 76%; top: 63%; }
.ag-top { display: flex; align-items: center; gap: 1cqw; min-width: 0; }
.ag-card .rt { width: 3.4cqw; height: 3.4cqw; border-radius: .9cqw; }
.ag-card .rt svg { width: 1.9cqw; height: 1.9cqw; fill: currentColor; }
.ag-card .ag b { font: 700 max(13px, 1.55cqw)/1.2 var(--sans); white-space: nowrap; }
.ag-card .mach { font-size: max(11px, 1.05cqw); white-space: nowrap; }
.ag-card .run { font-size: max(11px, 1cqw); }
.ag-card .skills { gap: .5cqw; }
.ag-card .skill { font-size: max(11px, 1.02cqw); padding: .25cqw .7cqw; border-radius: .5cqw; }
.bubble2 { position: absolute; margin: 0; width: 24cqw; padding: 1cqw 1.3cqw; border-radius: 1.3cqw 1.3cqw 1.3cqw .3cqw; transform: translateX(-50%); text-align: left;
  background: rgba(244, 247, 250, .96); color: #12171d; font: 500 max(12px, 1.3cqw)/1.4 var(--sans); box-shadow: 0 1.5cqw 3cqw -1cqw rgba(0, 0, 0, .8); }
.bubble2 .who { display: block; font: 600 max(11px, .95cqw)/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #3f6b22; }
.bubble2.you { background: var(--lime); }
.bubble2.you .who { color: var(--lime-deep); }
/* each bubble sits on its agent's card, so it never covers the name */
.bubble2 { left: 50%; bottom: calc(100% + .7cqw); }
.bubble2[data-bubble="a"] { left: 42%; }
.bubble2[data-bubble="c"] { left: 58%; }
.flyer { position: absolute; left: 0; top: 0; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; transform: translate(-50%, -50%);
  background: #f4ffe6; box-shadow: 0 0 0 .5cqw rgba(197, 237, 147, .25), 0 0 2.6cqw .4cqw rgba(197, 237, 147, .9); opacity: 0; pointer-events: none; }
.netlock { position: absolute; left: 50%; top: 94.6%; transform: translate(-50%, -50%); margin: 0; display: inline-flex; align-items: center; gap: .7cqw; padding: .7cqw 1.4cqw .7cqw 1cqw; border-radius: 99px;
  background: #0d1218; border: 1.5px solid var(--lime); color: #eef6e4; font: 600 max(11px, 1.2cqw)/1.2 var(--sans); white-space: nowrap; box-shadow: 0 0 2.4cqw rgba(197, 237, 147, .35); }
.netlock svg { width: 1.6cqw; height: 1.6cqw; color: var(--lime); }
.relay2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; max-width: 1136px; margin: 34px auto 0; padding: 14px 18px; border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .26); background: rgba(7, 9, 12, .5); color: #c9d3dd; }
.relay-h { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.45; color: #a3afbc; flex: 1 1 280px; }
.relay-h b { color: #f4f7fa; font-weight: 600; }
.relay-log { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #dfe6ed; flex: 0 1 auto; justify-content: flex-end; }
.relay-log li { display: inline-flex; gap: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.relay-log span { color: var(--lime); }
.steps2 { list-style: none; counter-reset: st; margin: 24px auto 0; padding: 0; max-width: 1136px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps2 li { counter-increment: st; position: relative; padding-top: 14px; border-top: 2px solid rgba(255, 255, 255, .12); font-size: 14px; line-height: 1.5; color: #a3afbc; transition: border-color .3s, color .3s; }
.steps2 li::before { content: "0" counter(st) / ""; display: block; font: 600 12px/1.4 var(--mono); color: #7e8b99; margin-bottom: 4px; }
.steps2 li b { color: #f4f7fa; font-weight: 600; }
.steps2 li.now { border-top-color: var(--lime); color: #dfe6ed; }
.story-toggle { display: flex; width: fit-content; margin: 20px 0 0 auto; }
.story-toggle[hidden] { display: none; }
/* while the story plays, its pieces start hidden; without motion the whole story shows at once */
.playing .bubble2, .playing .relay-log li { opacity: 0; }
.bubble2, .relay-log li { transition: opacity .35s var(--ease-in), transform .35s var(--ease-x); }
.playing .bubble2.show, .playing .relay-log li.show { opacity: 1; }
.playing .trail { opacity: 0; }

/* ---------- sections ---------- */
.sec { position: relative; padding: 140px 0 40px; }
.eyebrow { font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.sec h2, .finale h2, .nf-title { font: 800 clamp(34px, 4.4vw, 54px)/1.02 var(--display); letter-spacing: -0.03em; max-width: 16ch; }
.sec h3, .sec h4 { font: 700 21px/1.25 var(--display); letter-spacing: -0.01em; }
.sec p { color: var(--muted); }

/* Examples */
.bento { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento .card { grid-column: span 3; grid-row: span 1; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; padding: 28px; overflow: hidden; }
.bento .card > p:last-child { margin-top: auto; padding-top: 4px; }
.bento .bento-chat { grid-row: span 2; }
.bento .bento-ci { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
.bento .bento-ci > .tag, .bento .bento-ci > h3, .bento .bento-ci > p:last-child { grid-column: 1; }
.bento .bento-ci > .tag { justify-self: start; }
.bento .bento-ci > .snip { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.bento .card::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(63, 107, 34, .08), transparent 60%); }
.bubble { position: relative; max-width: 92%; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); color: var(--text); font-size: 15.5px; line-height: 1.5; }
.bubble.from { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #0f141a; color: #eef2f6; border: 1px solid rgba(197, 237, 147, .35); }
.bubble .who { display: block; margin-bottom: 2px; font: 600 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bubble.from .who { color: var(--lime); }
.snip { margin: 4px 0 0; padding: 16px 18px; border-radius: 12px; background: #0b0f14; color: #e8edf2; font: 400 13.5px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid rgba(255, 255, 255, .08); }
.snip .ln { display: block; padding-left: 2ch; text-indent: -2ch; }
.snip .pr { color: #7e8b99; user-select: none; }

/* Control */
.controls { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.controls li { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.controls li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.controls-5 { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.controls-5 li:first-child { grid-row: span 2; }
.controls-5 li:first-child h3 { font-size: 28px; line-height: 1.15; }
.controls-5 li:first-child p { font-size: 17px; }
.controls-5 li:nth-child(4), .controls-5 li:nth-child(5) { border-top: 1px solid var(--line); }
.ctl-tag { align-self: flex-start; font-size: 12.5px; color: var(--muted); }
.controls li a { color: var(--text); text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 641px) { .controls code { white-space: nowrap; } }
.ctl-cmd { align-self: flex-start; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: var(--code-bg); color: var(--accent-text); }

/* Trust */
.trust { list-style: none; margin: 64px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); }
.trust li { font-size: 15px; line-height: 1.6; color: var(--muted); }
.trust b { color: var(--text); font-weight: 600; }
@media (min-width: 641px) { .trust code { white-space: nowrap; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font: 700 20px/1.3 var(--display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; flex: none; font: 400 26px/1 var(--sans); color: var(--accent-text); transition: transform .2s var(--ease-s); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 62ch; }

/* How it works */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { position: relative; padding-top: 24px; border-top: 1px solid var(--line-2); }
.num { display: block; font: 800 88px/1 var(--display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.25px var(--muted); margin-bottom: 18px; }
.steps li:first-child .num { -webkit-text-stroke-color: var(--accent-text); }
.steps h3 { margin-bottom: 10px; }
.sec h3 code { background: none; padding: 0; font-size: .92em; }
.term { margin: 64px 0 0; border-radius: 16px; overflow: hidden; background: #0b0f14; color: #e8edf2; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px -40px rgba(10, 13, 17, .55), 0 0 0 1px rgba(197, 237, 147, .06); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.term-bar span { margin-left: 10px; font: 500 12.5px/1 var(--mono); color: #8c99a8; }
.term pre { margin: 0; padding: 22px 24px 26px; font: 400 15px/1.85 var(--mono); white-space: pre-wrap; }
.term .tl { display: block; }
.term .dim { color: #7e8b99; }
.caret { display: inline-block; width: .6em; height: 1.15em; margin-left: 6px; vertical-align: -.22em; background: var(--lime); }

/* Agents band */
.band { overflow: hidden; padding-bottom: 140px; margin-top: 140px; border-top: 1px solid rgba(197, 237, 147, .16); border-bottom: 1px solid rgba(197, 237, 147, .1); }
.band-glow { position: absolute; right: -200px; top: -120px; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(197, 237, 147, .12), transparent 70%); pointer-events: none; }
.intro { margin-top: 20px; max-width: 52ch; font-size: 19px; }
.agents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; margin-top: 56px; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card { position: relative; padding: 24px; border-radius: var(--r); }
.card h3, .card h4 { margin-bottom: 8px; }
.card code { overflow-wrap: anywhere; }
.roster { margin: 0; padding: 8px 8px 10px; border-radius: 18px; }
.roster-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px 14px; font-size: 13px; color: #a3afbc; }
.roster-h .mono { color: var(--lime); }
.roster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roster li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
.roster li > div { min-width: 0; display: grid; gap: 2px; }
.roster .r1 { display: flex; align-items: center; gap: 10px; }
.roster .r1 b { font: 600 15.5px/1.3 var(--mono); color: #f4f7fa; }
.roster .r2 { font-size: 13.5px; color: #a3afbc; }
.roster .r3 { margin-top: 6px; font-size: 15px; color: #dfe6ed; }
.st { padding: 2px 8px; border-radius: 99px; font: 600 11.5px/1.4 var(--mono); color: #a3afbc; border: 1px solid rgba(255, 255, 255, .16); }
.st.busy { color: var(--lime-deep); background: var(--lime); border-color: var(--lime); }

/* Encryption */
.enc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.enc-copy .big { margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--text); }
.enc-copy p + p { margin-top: 16px; font-size: 17px; }
.letter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sheet, .envelope { position: relative; padding: 26px; border-radius: 16px; min-height: 300px; display: flex; flex-direction: column; gap: 4px; }
.sheet { padding-bottom: 92px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -36px rgba(10, 13, 17, .45); overflow: hidden; }
.envelope { border: 1.5px dashed var(--line-2); background: transparent; }
.sheet-h { font: 700 19px/1.25 var(--display); color: var(--text) !important; }
.sheet-s { font-size: 14.5px; }
.cipher { display: grid; gap: 10px; margin-top: 26px; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: break-word; }
.cipher span { display: block; }
.seal { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--lime-hi), var(--lime) 55%, #9fcf63);
  box-shadow: 0 0 0 5px rgba(197, 237, 147, .22), 0 10px 24px -6px rgba(63, 107, 34, .5); }
.seal::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; border: 2px solid rgba(44, 61, 32, .55); }
.meta { margin: auto 0 0; padding-top: 26px; display: grid; gap: 10px; font-size: 15px; }
.meta div { display: grid; grid-template-columns: 9ch minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; color: var(--text); }

/* Ways to join */
.ways { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ways-h { margin-top: 72px; font: 700 24px/1.25 var(--display); letter-spacing: -0.01em; }
.ways-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.ww { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.ww li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.ww li:last-child { border-bottom: 1px solid var(--line); }
.ww-name { display: flex; flex-direction: column; gap: 0; }
.ww b { font: 700 17px/1.3 var(--display); color: var(--text); }
.ww small { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.ww-cmd { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px 4px 10px; border: 1px solid transparent; border-radius: 8px; background: var(--code-bg); color: var(--text); cursor: pointer; text-align: left; }
.ww-cmd code { background: none; padding: 0; font-size: 12.5px; white-space: nowrap; }
.ww-cmd svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .55; }
.ww-cmd:hover, .ww-cmd:focus-visible { border-color: var(--line-2); }
.ww-cmd:hover svg, .ww-cmd:focus-visible svg { opacity: 1; }
.ww-cmd[data-copied] svg { opacity: 1; color: var(--accent-text); }
.ww-cards .card .tag { margin-top: auto; padding-top: 0; align-self: flex-start; }
#works-with { padding-top: 96px; }
#works-with h2 { font-size: clamp(28px, 3vw, 36px); max-width: none; }
#works-with .card:hover { transform: none; border-color: var(--line); }
@media (max-width: 560px) { #works-with { padding-top: 72px; } .ww li { flex-direction: column; align-items: flex-start; } .ww-cmd { max-width: 100%; } .ww-cmd code { white-space: normal; } }
.ways .card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; padding: 28px; transition: border-color .2s, transform .2s var(--ease-s); }
.ways .card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ways .card::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(63, 107, 34, .08), transparent 60%); }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: var(--code-bg); font-size: 12.5px; color: var(--text) !important; }
.ways h3 a, .ways h4 a { text-decoration: none; background-image: linear-gradient(var(--accent-text), var(--accent-text)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s var(--ease-s); }
.ways h3 a:hover, .ways h3 a:focus-visible, .ways h4 a:hover, .ways h4 a:focus-visible { background-size: 100% 2px; }
.ways h3 a::after, .ways h4 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.ways .for { font: 500 13px/1.4 var(--mono); color: var(--accent-text) !important; }

/* Finale and footer */
.finale { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid rgba(197, 237, 147, .16); margin-top: 140px; padding: 140px 0 40px; text-align: center; }
.finale-in { display: flex; flex-direction: column; align-items: center; }
.finale h2 { max-width: none; background: linear-gradient(180deg, #fff 30%, #b9c4cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finale-lede { max-width: 56ch; margin-top: 18px; font-size: 19px; line-height: 1.6; color: #b4bfcb; }
.finale-lede code { color: #eef2f6; }
.finale-cmd { width: min(100%, 680px); margin-top: 36px; padding: 20px 20px 20px 28px; border-color: rgba(197, 237, 147, .28); }
.finale-cmd pre { font-size: 17px; }
.finale .note a { color: #f4f7fa; }
.foot { position: relative; overflow: hidden; padding: 24px 0 0; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.legal { max-width: 70ch; text-align: center; font-size: 12.5px; line-height: 1.5; color: #8c99a8; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; font-size: 14.5px; }
.foot nav a { color: #b9c4cf; padding: 8px 0; }
.foot nav a:hover { color: #fff; }
.giant { margin: 10px 0 -0.24em; text-align: center; font: 800 clamp(80px, 21vw, 300px)/1 var(--display); letter-spacing: -0.05em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(197, 237, 147, .55), rgba(197, 237, 147, 0) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- motion (only when allowed; see the inline script in index.html) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion .headline .w { animation: word-in .9s var(--ease-x) both; animation-delay: calc(var(--i, 0) * 55ms); }
  @keyframes word-in { from { opacity: 0; filter: blur(12px); transform: translateY(.35em); } }
  .motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-in), transform .7s var(--ease-x); }
  .motion .reveal.in { opacity: 1; transform: none; }
  .motion [data-term]:not(.played) .tl { opacity: 0; }
  .motion .reveal:focus-within { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .btn-primary:hover, .ways .card:hover { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .agents, .enc { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .num { font-size: 64px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .bento .card, .bento .bento-chat { grid-column: span 6; grid-row: auto; }
  .bento .bento-ci { display: flex; }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls li:nth-child(3) { padding-left: 0; border-left: 0; }
  .controls-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls-5 li:first-child { grid-column: 1 / -1; grid-row: auto; padding-bottom: 28px; }
  .controls-5 li:nth-child(even) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .controls-5 li:nth-child(odd):not(:first-child) { padding-left: 28px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .trust, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sec { padding-top: 100px; }
  .band, .finale { margin-top: 100px; padding-top: 100px; }
  .band { padding-bottom: 100px; }
}
/* below 900px the stage keeps its shapes and the words move to the numbered steps */
@media (max-width: 900px) {
  .stage { aspect-ratio: 1000 / 620; }
  .bubble2, .ag-card .skills, .ag-card .mach, .ag-card .run { display: none; }
  .ag-card { width: max-content; padding: 6px 10px; border-radius: 10px; gap: 0; }
  .ag-card .rt { width: 24px; height: 24px; border-radius: 7px; }
  .ag-card .rt svg { width: 14px; height: 14px; }
  .ag-card .ag b { font-size: 13px; }
  .ag-top { gap: 7px; }
  .flyer { width: 10px; height: 10px; }
  .netlock { top: 90.3%; font-size: 11.5px; gap: 6px; padding: 5px 12px 5px 9px; }
  .netlock svg { width: 13px; height: 13px; }
  .steps2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relay-log { justify-content: flex-start; }
}
@media (max-width: 640px) {
  /* phones: the stage keeps its shapes, the words move to the numbered steps below it */
  .stage { aspect-ratio: 1000 / 620; }
  .ag-card { padding: 5px 8px; border-radius: 9px; }
  .ag-card .rt { width: 20px; height: 20px; border-radius: 6px; }
  .ag-card .rt svg { width: 12px; height: 12px; }
  .ag-card .ag b { font-size: 11.5px; }
  .ag-top { gap: 6px; }
  .netlock { font-size: 11px; gap: 5px; padding: 4px 10px 4px 8px; }
  .netlock svg { width: 12px; height: 12px; }
  .relay2 { padding: 12px 14px; }
  .nav { position: static; }
  .kicker { white-space: nowrap; font-size: 11px; letter-spacing: .04em; }
  .lede { font-size: 16.5px; }
  .steps2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wrap { padding: 0 16px; }
  .nav-in { min-height: 0; padding-top: 12px; padding-bottom: 10px; }
  .nav nav { order: 3; width: 100%; margin-left: 0; gap: 18px; font-size: 13.5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav nav a { white-space: nowrap; }
  .nav > .wrap > .btn { margin-left: auto; min-height: 44px; }
  .nav > .wrap > .nav-install + .btn { margin-left: 8px; }
  .hero { padding-top: 56px; }
  .hero-copy { align-items: flex-start; text-align: left; }
  .ctas { justify-content: flex-start; }
  .headline { font-size: clamp(42px, 12.4vw, 60px); }
  .cmd { padding: 10px 10px 10px 14px; }
  .cmd pre { white-space: pre-wrap; font-size: 13.5px; overflow-x: visible; }
  .cmd .ln { padding-left: 2ch; text-indent: -2ch; }
  .cmd .copy { min-height: 44px; }
  .hero .ctas, .hero .cmd { margin-top: 22px; }
  .cmd pre { overflow-wrap: anywhere; }
  .sec h2, .finale h2 { font-size: clamp(34px, 10vw, 44px); }
  .letter { grid-template-columns: minmax(0, 1fr); }
  .controls, .controls-5 { grid-template-columns: minmax(0, 1fr); }
  .controls li, .controls li + li { padding: 24px 0 4px; border-left: 0; }
  .controls li + li { border-top: 1px solid var(--line); }
  .controls-5 li:nth-child(n):not(:first-child) { padding: 24px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .controls-5 li:first-child { padding-bottom: 4px; }
  .bento .card { padding: 22px; }
  .faq summary { font-size: 18px; }
  .sheet, .envelope { min-height: 0; }
  .term pre { font-size: 13px; padding: 18px; }
  .finale { text-align: left; }
  .finale-in { align-items: flex-start; }
}
