/* Synapse landing. Palette and type follow managed-code.com. */
:root {
  --paper: #f9f7f5; --tile: #f2ede8; --tile-2: #e9e2da; --ink: #161616; --ink-2: #5d5953; --line: rgba(22, 22, 22, .12);
  --night: #0d0c0b; --night-2: #171513; --snow: #f3f1ee; --snow-2: #a8a29a; --night-line: rgba(243, 241, 238, .13);
  --coral: #ff7e5d; --orange: #ed732e; --magenta: #db3276; --blue: #2d40ea; --tan: #cfa37e;
  --grad: linear-gradient(100deg, var(--orange), var(--magenta));
  --ok: #1f7a48; --now: #ed732e; --built: #2d40ea;
  --r: 20px;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 999px; background: var(--snow); color: var(--ink); }
.skip:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soft { color: var(--ink-2); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 11px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; font-style: normal; vertical-align: middle; background: rgba(243, 241, 238, .1); color: var(--snow-2); }
.tag-next { background: rgba(255, 126, 93, .16); color: var(--coral); }
.tag-built { background: rgba(109, 123, 255, .18); color: #a9b2ff; }
.sheet .tag { background: var(--tile-2); color: var(--ink-2); }
.sheet .tag-next { background: rgba(237, 115, 46, .14); color: #b8480f; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; border-bottom: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; }
.nav[data-theme="dark"] { color: var(--snow); }
.nav[data-theme="light"] { color: var(--ink); background: color-mix(in srgb, var(--paper) 84%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.brand path, .brand .off { fill: none; opacity: .55; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; opacity: .66; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.pill { display: inline-flex; gap: 6px; padding: 9px 18px; border-radius: 999px; background: var(--snow); color: var(--night); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav[data-theme="light"] .pill { background: var(--ink); color: var(--paper); }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 40px -10px rgba(219, 50, 118, .7); }
.btn-grad:hover { box-shadow: 0 14px 50px -8px rgba(237, 115, 46, .8); }
.btn-glass { color: var(--snow); border: 1px solid rgba(243, 241, 238, .28); background: rgba(243, 241, 238, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(243, 241, 238, .14); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-clear { border: 1px solid rgba(22, 22, 22, .3); color: var(--ink); }

/* Scroll story over the sticky 3D stage */
.scrolly { position: relative; color: var(--snow); background: radial-gradient(60% 50% at 75% 40%, #2a1512 0%, transparent 70%), radial-gradient(50% 45% at 90% 85%, #2b0f22 0%, transparent 70%), var(--night); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(13, 12, 11, .9) 0%, rgba(13, 12, 11, .5) 34%, transparent 60%), linear-gradient(0deg, rgba(13, 12, 11, .8) 0%, transparent 22%); }
.stage-word { position: absolute; left: 50%; bottom: -3vw; z-index: 0; transform: translateX(-50%); font-size: 23vw; font-weight: 800; line-height: .8; letter-spacing: -.06em; text-transform: uppercase; color: rgba(243, 241, 238, .045); white-space: nowrap; transition: opacity .8s; }
.stage:not([data-state="hero"]) .stage-word { opacity: 0; }
.stage-legend { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 28px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--snow-2); transition: opacity .6s; }
.stage[data-state="hero"] .stage-legend, .stage[data-state="wall"] .stage-legend { opacity: 0; }
.stage-legend span { display: inline-flex; align-items: center; gap: 8px; }
.stage-legend i { width: 9px; height: 9px; border-radius: 50%; }
.lg-att { background: #ff8a4c; box-shadow: 0 0 10px #ff8a4c; }
.lg-exp { background: #ee4080; box-shadow: 0 0 10px #ee4080; }
.lg-off { border: 1.5px solid var(--snow-2); }
.stage-dots { position: absolute; right: clamp(16px, 3vw, 32px); top: 50%; z-index: 3; display: grid; gap: 10px; transform: translateY(-50%); }
.stage-dots li { width: 6px; height: 6px; border-radius: 50%; background: rgba(243, 241, 238, .25); transition: transform .3s, background .3s; }
.stage-dots li.on { background: var(--coral); transform: scale(1.6); }
.no-webgl .stage canvas, .no-webgl .stage-legend { display: none; }

.story { position: relative; z-index: 5; margin-top: -100vh; margin-top: -100svh; }
.step { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 96px 0; }
.step-hero { position: relative; align-items: flex-end; padding-bottom: clamp(80px, 13vh, 136px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--snow-2); }
.pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--coral); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 126, 93, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 126, 93, 0); } }
.step-hero h1 { font-size: clamp(52px, 8.4vw, 132px); font-weight: 700; line-height: .9; letter-spacing: -.05em; }
.hero-sub { max-width: 34em; margin: 28px 0 34px; font-size: clamp(17px, 1.6vw, 21px); color: #cfc9c1; }
.proof { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; }
.proof li { display: grid; gap: 2px; }
.proof b { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.proof li:first-child b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof span { font-size: 14px; color: var(--snow-2); }
.fine { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.scrolly .fine { color: var(--snow-2); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--snow-2); text-decoration: none; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--coral), transparent); transform-origin: top; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.step-card { max-width: 520px; }
.step-card .kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--snow-2); }
.step-card .n { font-family: var(--mono); letter-spacing: 0; color: var(--coral); }
.step-card h2 { margin-bottom: 22px; font-size: clamp(40px, 5.4vw, 76px); font-weight: 650; line-height: .96; letter-spacing: -.045em; }
.step-card p { font-size: clamp(17px, 1.45vw, 20px); color: #cfc9c1; }
.step-card a { color: var(--snow); }
.step-card .step-big { display: grid; gap: 2px; margin-top: 26px; }
.step-big b { font-size: clamp(48px, 6vw, 84px); font-weight: 700; line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-big span { font-size: 14px; color: var(--snow-2); }

/* Light sheet */
.sheet { position: relative; z-index: 10; margin-top: -40px; background: var(--paper); border-radius: 40px 40px 0 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .35); }
.section { padding-top: clamp(80px, 11vw, 150px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); }
.sec-head h2 { max-width: 16em; font-size: clamp(40px, 6vw, 86px); font-weight: 650; line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Proof */
.ci-metrics { margin-bottom: 84px; scroll-margin-top: 92px; }
.ci-metrics .sec-head { margin-bottom: 26px; }
.ci-metrics .sec-head p:last-child { max-width: 65ch; color: var(--ink-2); }
.metric-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; font-weight: 600; }
.metric-status { margin-top: 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.metric-stream { margin-top: 36px; }
.metric-stream-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.metric-stream-head h3 { font-size: 27px; font-weight: 650; letter-spacing: -.025em; }
.metric-run { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.metric-run a { color: var(--ink); }
.metric-run time { flex-basis: 100%; text-align: right; }
.metric-run-status { text-transform: capitalize; }
.metric-commit { font-family: var(--mono); }
.verification-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.verification-card { padding: 24px; border-radius: var(--r); background: var(--tile); }
.verification-card h4 { margin: 0; font: 600 17px var(--mono); }
.metric-scope { margin-top: 6px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.metric-test-status { margin-top: 18px; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.metric-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.metric-counts dt { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.metric-counts dd { margin: 3px 0 0; font: 600 24px var(--sans); letter-spacing: -.04em; }
.metric-note { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.metric-diagnostics { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.metric-diagnostics summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.metric-diagnostics ul { display: grid; gap: 6px; margin: 10px 0 0 16px; list-style: disc; }
.metric-diagnostics li { overflow-wrap: anywhere; }
.metric-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.metric-filters label { display: grid; gap: 7px; min-width: 170px; flex: 1; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.metric-filters select { max-width: 100%; width: 100%; padding: 11px 34px 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 14px var(--sans); }
.metric-filters[hidden] { display: none; }
@media (max-width: 760px) {
  .metric-run time { text-align: left; }
  .metric-filters label { min-width: 100%; }
  .ci-metrics { margin-bottom: 64px; }
}
.bench { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.panel { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r); background: var(--tile); }
.panel:first-child { background: var(--ink); color: var(--snow); }
.panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.panel h3 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.panel-big { display: flex; align-items: baseline; gap: 12px; font-size: clamp(56px, 6vw, 88px); font-weight: 700; line-height: .9; letter-spacing: -.05em; }
.panel-big small { font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .6; }
.panel:first-child .panel-big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(243, 241, 238, .1); }
.seg button { padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 500 12.5px var(--sans); cursor: pointer; opacity: .7; }
.seg button[aria-pressed="true"] { background: var(--snow); color: var(--ink); opacity: 1; }
.bars { display: grid; gap: 12px; margin-top: auto; }
.bars li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.bars i { height: 10px; border-radius: 99px; background: rgba(127, 120, 110, .16); overflow: hidden; }
.bars b { display: block; height: 100%; width: var(--w); border-radius: 99px; background: #8c857c; transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), width .6s cubic-bezier(.2, .7, .2, 1); }
.js .bars b, .js .climb b { transform: scaleX(0); }
.js .in .bars b, .js .climb.in b { transform: scaleX(1); }
.bars .me span { font-weight: 700; }
.bars .me b { background: var(--ok); }
.bars .c1 b { background: var(--blue); }
.bars .c2 b { background: var(--tan); }
.bars em { min-width: 64px; font-family: var(--mono); font-size: 13px; font-style: normal; text-align: right; }
.panel:first-child .bars .c1 b { background: #6d7bff; }
.unit { font-size: 12.5px; opacity: .6; }
.ctx-head { margin-top: 72px; }
.longctx { margin-top: 4px; }
.longctx .ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.longctx .seg { background: rgba(127, 120, 110, .14); }
.longctx .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ctx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ctx-grid > div { display: flex; flex-direction: column; gap: 12px; }
.ctx-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.ctx-grid .bars { margin-top: 0; }
.ctx-grid .bars li { grid-template-columns: 70px 1fr auto; }
.bars .c4 b { background: #7354b5; }
.ctx-tokens { font-size: 14px; font-weight: 600; color: #114e0b; }
.ctx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.ctx-duo .panel-big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ctx-duo .bars li { grid-template-columns: 112px 1fr auto; }
.notyet { margin-top: 48px; padding: 30px; border: 1px dashed rgba(22, 22, 22, .25); border-radius: var(--r); }
.notyet h3 { margin-bottom: 20px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.notyet ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.notyet li { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.notyet b { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* Why */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r); background: var(--tile); transition: transform .3s, background .3s; }
.feat:hover { transform: translateY(-4px); background: var(--tile-2); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font: 500 16px var(--mono); }
.feat:first-child .ico { background: var(--grad); }
.feat h3 { font-size: 23px; font-weight: 650; line-height: 1.12; letter-spacing: -.02em; }
.feat p { color: var(--ink-2); }

/* Architecture */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.pipe li { position: relative; display: grid; align-content: start; gap: 8px; padding: 28px; border-radius: var(--r); background: var(--tile); }
.pipe li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; transform: translateY(-50%); border-radius: 50%; background: var(--paper); color: var(--ink-2); font-size: 14px; }
.pipe .n { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.pipe h3 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.pipe p { color: var(--ink-2); }
.pipe .hot { background: var(--grad); color: #fff; }
.pipe .hot .n, .pipe .hot p { color: rgba(255, 255, 255, .85); }
.runtime { display: grid; gap: 14px; margin-top: 12px; padding: 28px; border-radius: var(--r); background: var(--ink); color: var(--snow); }
.runtime .kicker { color: var(--snow-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--night-line); font-size: 14px; }
.chips .plan { border-style: dashed; color: var(--snow-2); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mode { display: grid; gap: 8px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); }
.mode h3 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.mode p { color: var(--ink-2); }
.more { display: inline-flex; gap: 8px; margin-top: 24px; font-weight: 600; text-decoration: none; }
.more span { transition: transform .2s; }
.more:hover span { transform: translateX(4px); }

/* Roadmap */
.climb { display: grid; gap: 14px; padding: 32px; border-radius: var(--r); background: var(--tile); }
.climb-row { position: relative; display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 16px; font-size: 15px; }
.climb-row i { position: relative; height: 26px; border-radius: 8px; background: rgba(127, 120, 110, .14); }
.climb-row i::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: 98%; width: 2px; background: var(--ink); opacity: .5; }
.climb b { display: block; height: 100%; width: calc(var(--w) * .98); border-radius: 8px; background: #8c857c; transform-origin: left; transition: transform 1.3s cubic-bezier(.2, .7, .2, 1); }
.climb-row:nth-child(2) b { transition-delay: .15s; background: var(--tan); }
.climb-row.me b { transition-delay: .3s; background: var(--grad); }
.climb-row em { font: 700 20px var(--sans); font-style: normal; letter-spacing: -.02em; text-align: right; }
.climb-row.me span { font-weight: 700; }
.columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.col { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); }
.col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.col li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.dot.ok { background: var(--ok); border-color: var(--ok); }
.dot.now { background: var(--now); border-color: var(--now); }
.dot.built { background: var(--built); border-color: var(--built); }

/* Start */
.start { padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--night); color: var(--snow); }
.start .sec-head { border-top-color: var(--night-line); }
.start .kicker { color: var(--snow-2); }
.term { margin-top: 14px; border: 1px solid var(--night-line); border-radius: 16px; background: #060606; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3836; }
.term-dots i:first-child { background: var(--coral); }
.term-title { font-size: 13px; color: var(--snow-2); }
.copy { margin-left: auto; padding: 5px 12px; border: 1px solid var(--night-line); border-radius: 999px; background: transparent; color: var(--snow); font: 500 12px var(--sans); cursor: pointer; }
.copy:hover { border-color: var(--snow); }
.copy.done { background: var(--ok); border-color: var(--ok); }
.term pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 14px; line-height: 1.7; color: #e9e5df; }
.term pre::before { content: "$ "; color: var(--coral); }
.needs { margin-top: 24px; line-height: 2; color: var(--snow-2); }
.needs .tag { background: rgba(243, 241, 238, .1); color: var(--snow); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.needs a { color: var(--snow); }

/* CTA, credits, footer */
.cta-band { position: relative; display: grid; justify-items: start; gap: 18px; padding: clamp(32px, 6vw, 80px); border-radius: 32px; overflow: hidden; isolation: isolate; color: var(--ink);
  background: radial-gradient(55% 60% at 95% 0%, rgba(150, 104, 214, .9), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(251, 211, 132, .95), transparent 72%), linear-gradient(120deg, #f0955f, #ec8aa0); }
.cta-band h2 { max-width: 12em; font-size: clamp(40px, 6vw, 84px); font-weight: 650; line-height: .95; letter-spacing: -.045em; }
.cta-band p { max-width: 32em; font-size: 19px; }
.cta-band .cta { margin-top: 10px; }
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.credits h3 { margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.credits p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.credits a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.credits a:hover { border-color: var(--ink); }
.mc-sec { padding-top: clamp(40px, 5vw, 64px); }
.mc-band { position: relative; display: grid; justify-items: start; gap: 14px; padding: clamp(24px, 3.5vw, 38px); border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 90% 20%, rgba(237, 115, 46, .14), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(219, 50, 118, .12), transparent 70%), var(--night);
  color: var(--snow); border: 1px solid var(--night-line); }
.mc-band h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 650; line-height: 1.1; letter-spacing: -.03em; color: var(--snow); }
.mc-band p { max-width: 44em; font-size: 15.5px; line-height: 1.55; color: var(--snow-2); }
.mc-band .cta { margin-top: 4px; gap: 10px; }
.mc-band .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.mc-band .btn-grad { box-shadow: 0 8px 30px -8px rgba(219, 50, 118, .45); }
.foot { margin-top: clamp(64px, 9vw, 120px); padding-bottom: 32px; overflow: hidden; }
.foot-mark { margin-bottom: 10px; font-size: min(18.5vw, 252px); font-weight: 700; line-height: .9; letter-spacing: -.055em; text-transform: uppercase; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--ink-2); }
.foot-row a { color: var(--ink); text-decoration: none; }
.foot-links { display: inline-flex; gap: 20px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .pill { margin-left: auto; }
  .bench { grid-template-columns: 1fr 1fr; }
  .ctx-grid { grid-template-columns: 1fr 1fr; }
  .bench .panel:first-child { grid-column: 1 / -1; }
  .notyet ul, .columns { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .pipe li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .stage::after { background: linear-gradient(0deg, rgba(13, 12, 11, .95) 0%, rgba(13, 12, 11, .75) 45%, rgba(13, 12, 11, .1) 75%); }
  .stage-legend { left: 16px; right: auto; bottom: 16px; }
  .stage-dots { display: none; }
  .step { align-items: flex-end; padding-bottom: 72px; }
  .scroll-hint { display: none; }
  .proof { gap: 14px 26px; }
  .ctx-grid, .ctx-duo,
  .bench, .notyet ul, .columns, .features, .pipe, .modes, .credits { grid-template-columns: 1fr; }
  .pipe li::after { display: none; }
  .climb { padding: 20px; }
  .climb-row { grid-template-columns: 1fr 56px; }
  .climb-row i { grid-column: 1 / -1; grid-row: 2; }
  .bars li { grid-template-columns: 84px 1fr auto; gap: 8px; }
  .term pre { padding: 16px; font-size: 12.5px; }
  .sheet { border-radius: 28px 28px 0 0; }
  .mc-band .btn { width: 100%; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bars b, .js .climb b { transform: none; }
}

/* Foundry Local (ADR-011): a separate test, shown apart from the Q8_0 panels. */
.foundry { margin-top: 24px; }
.foundry .bars li { grid-template-columns: 128px 1fr auto; }
.bars .fl b { background: var(--ok); }
@media (max-width: 760px) { .foundry .bars li { grid-template-columns: 118px 1fr auto; } }

/* 7B on the Apple GPU (ADR-019, ADR-020, ADR-021): three equal panels and the layer-drop row. */
@media (min-width: 1081px) { .big7 { grid-template-columns: 1fr 1fr 1fr; } }
.big7 .panel-big span, .drop .panel-big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big7 .bars li { grid-template-columns: 96px 1fr auto; }
.drop .bars li { grid-template-columns: 112px 1fr auto; }
.bars .off b { opacity: .45; }
@media (max-width: 760px) {
  .big7 .bars li { grid-template-columns: 90px 1fr auto; }
  .drop .bars li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .drop .bars li i { grid-column: 1 / -1; grid-row: 2; }
}
