:root {
  --ink: #f4f2ec;
  --muted: #9b9a94;
  --dim: #64645f;
  --bg: #080808;
  --panel: #11110f;
  --panel-2: #171714;
  --line: #2b2b27;
  --yellow: #ffd400;
  --yellow-soft: #e7c51a;
  --green: #71d98b;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: #000;
  background: var(--yellow);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 48px), var(--max));
  height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.14);
  transform: translateX(-50%);
}

.brand { display: flex; align-items: center; gap: 11px; font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.brand img { border-radius: 50%; }
.site-header nav { display: flex; align-items: center; gap: 30px; color: #c8c7c1; font-size: .84rem; }
.site-header nav a { transition: color .2s ease; }
.site-header nav a:hover { color: #fff; }
.site-header .nav-cta { padding: 11px 18px; border: 1px solid #fff; color: #fff; }
.site-header .nav-cta:hover { color: #000; background: #fff; }
.menu-toggle { display: none; border: 0; background: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 790px;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  align-items: center;
  gap: 40px;
  padding: 150px max(24px, calc((100vw - var(--max)) / 2)) 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(255,212,0,.07);
  filter: blur(120px);
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0 0 0 50%;
  opacity: .16;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, transparent 92%);
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-index { font: 600 .68rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 30px; color: #b6b5af; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(113,217,139,.12); }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 740px; margin-bottom: 30px; font-size: clamp(3.6rem, 6.1vw, 6.7rem); line-height: .92; letter-spacing: -.065em; }
h1 span { color: var(--yellow); }
.hero-lede { max-width: 670px; margin-bottom: 36px; color: #b4b3ad; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 14px; padding: 0 21px; font-size: .88rem; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #070707; background: var(--yellow); }
.button-primary:hover { background: #ffe04a; }
.button-secondary { border: 1px solid #3d3d39; background: rgba(13,13,12,.55); }
.button-secondary:hover { background: #191917; }
.button-secondary svg { width: 18px; fill: currentColor; }
.hero-meta { display: flex; gap: 26px; padding: 0; color: var(--dim); font: 500 .69rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; list-style: none; text-transform: uppercase; }
.hero-meta li:not(:first-child)::before { margin-right: 26px; color: #353531; content: "/"; }
.hero-command { color: #8f8e88; text-transform: none; }
.hero-command span { margin-right: 7px; color: var(--yellow); }

.hero-orchestration { position: relative; z-index: 2; width: min(100%, 550px); aspect-ratio: 1; justify-self: end; }
.orbit { position: absolute; border: 1px solid #282824; border-radius: 50%; }
.orbit-one { inset: 9%; }
.orbit-two { inset: 24%; border-style: dashed; }
.agent-node { position: absolute; z-index: 2; display: flex; width: 80px; align-items: center; flex-direction: column; gap: 9px; }
.node-id { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--yellow); border-radius: 50%; color: #111; background: var(--yellow); font: 800 .9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 0 30px rgba(255,212,0,.14); }
.node-label { color: #96958f; font: 600 .61rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; text-transform: uppercase; }
.planner-node { top: 8%; left: 50%; transform: translateX(-50%); }
.planner-node .node-id { border-radius: 3px; color: var(--yellow); background: #171713; }
.worker-one { top: 41%; left: 2%; }
.worker-two { top: 39%; right: 1%; }
.worker-node .node-id { width: 48px; height: 48px; color: #d8d7d1; border-color: #5a5a54; background: #171715; }
.review-node { position: absolute; top: 70%; left: 50%; z-index: 3; display: flex; width: 110px; height: 110px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; border: 1px solid #f1f0e8; border-radius: 50%; background: #0b0b0a; font: 700 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; transform: translate(-50%, -50%); }
.review-node svg { width: 23px; fill: none; stroke: var(--yellow); stroke-width: 2; }
.flow-map { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.flow-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.2; marker-end: url(#flow-arrow); }
.flow-map marker path { fill: var(--yellow); stroke: none; }
.flow-map .delegate-paths path { stroke: #77766f; }
.flow-map .return-paths path { stroke: var(--yellow-soft); stroke-dasharray: 4 7; animation: route-flow 2.5s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -22; } }
.flow-caption { position: absolute; z-index: 4; color: #7b7a75; font: 500 .57rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; text-transform: uppercase; }
.flow-caption span { color: var(--yellow); }
.flow-caption-one { top: 24%; left: 8%; }
.flow-caption-two { top: 20%; right: 2%; }
.flow-caption-three { bottom: 2%; left: 17%; }

.provider-strip { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 30px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: #0b0b0a; }
.provider-strip p { margin: 0; color: #73736e; font: 500 .67rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; text-transform: uppercase; }
.provider-list { display: flex; align-items: center; gap: 34px; color: #b2b1ab; font: 700 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.provider-list i { width: 5px; height: 5px; border-radius: 50%; background: #3e3e39; }

.section-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.manifesto { display: grid; grid-template-columns: .45fr 1.55fr; gap: 60px; padding-block: 160px; }
.section-index { color: var(--yellow-soft); }
.manifesto h2, .section-heading h2, .install h2 { margin-bottom: 30px; font-size: clamp(2.45rem, 4.5vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.manifesto h2 em { color: #6e6e68; font-style: normal; }
.manifesto > div > p { max-width: 690px; margin-left: 15%; color: #a4a39d; font-size: 1.08rem; line-height: 1.75; }

.workflow { padding-block: 120px 145px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 80px; margin-bottom: 75px; }
.section-heading .section-index { margin-bottom: 24px; }
.section-heading h2 { max-width: 820px; margin-bottom: 0; font-size: clamp(2.5rem, 4.2vw, 4.6rem); }
.section-heading > p { max-width: 390px; margin: 0 0 7px; color: var(--muted); line-height: 1.7; }
.workflow-track { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.workflow-line { position: absolute; top: 26px; left: 3%; right: 3%; height: 1px; background: #353530; }
.workflow-track article { position: relative; z-index: 1; }
.step-dot { display: grid; width: 52px; height: 52px; margin-bottom: 24px; place-items: center; border-radius: 50%; color: #111; background: var(--yellow); font: 700 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.step-square { border-radius: 3px; color: var(--yellow); background: #181815; box-shadow: inset 0 0 0 1px var(--yellow); }
.step-ring { color: #d7d6d0; border: 1px solid #d7d6d0; background: #0b0b0a; }
.workflow-track h3 { margin-bottom: 12px; font-size: .98rem; }
.workflow-track p { color: #777670; font-size: .78rem; line-height: 1.6; }

.features { padding-block: 135px; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { position: relative; min-height: 390px; padding: 42px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0d0c; }
.feature-wide { display: grid; min-height: 420px; grid-column: span 2; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.feature-number { display: block; margin-bottom: 85px; color: var(--yellow-soft); font: 600 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature h3 { max-width: 510px; margin-bottom: 15px; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.035em; }
.feature p { max-width: 560px; margin-bottom: 0; color: #8e8d87; font-size: .94rem; line-height: 1.7; }
.feature-wide .feature-number { margin-bottom: 40px; }
.feature-yellow { color: #080808; background: var(--yellow); }
.feature-yellow .feature-number { color: #4d4400; }
.feature-yellow p { color: #554b00; }
.plan-visual { display: flex; align-items: center; justify-content: center; gap: 23px; }
.plan-version { position: relative; width: 176px; height: 215px; padding: 22px; border: 1px solid #33332f; background: #121210; }
.plan-version span { display: block; margin-bottom: 32px; color: var(--yellow); font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.plan-version i { display: block; height: 5px; margin-bottom: 13px; background: #30302c; }
.plan-version i:nth-of-type(2) { width: 78%; }
.plan-version i:nth-of-type(3) { width: 45%; }
.plan-version b { position: absolute; right: -10px; bottom: 20px; padding: 8px 10px; color: #0b0b09; background: var(--yellow); font: 700 .53rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.plan-version.muted { opacity: .45; transform: rotate(-4deg); }
.plan-version.active { transform: rotate(3deg); }
.plan-arrow { color: #585852; font-size: 1.8rem; }
.mini-workers { display: flex; min-height: 80px; align-items: center; gap: 16px; margin: -20px 0 65px; }
.mini-workers i, .mini-workers span { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #4a4a45; border-radius: 50%; color: #9b9a94; font: 700 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mini-workers i { border-radius: 3px; color: var(--yellow); border-color: var(--yellow); font-style: normal; }
.mini-workers::after { width: 90px; height: 1px; order: -1; background: #353531; content: ""; }
.isolation-visual { display: flex; min-height: 80px; align-items: center; gap: 13px; margin: -20px 0 65px; font: 700 .61rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.isolation-visual span { padding: 12px; border: 1px solid rgba(0,0,0,.28); }
.isolation-visual i { font-style: normal; }
.check-visual { display: grid; min-height: 80px; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: -20px 0 65px; background: #2c2c28; }
.check-visual span { display: flex; align-items: center; flex-direction: column; gap: 10px; padding: 20px 4px; color: #8b8a84; background: #11110f; font: 600 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.check-visual i { color: var(--yellow); font-size: 1rem; font-style: normal; }
.safety-feature { background: #11110f; }
.safety-feature a { display: inline-block; margin-top: 27px; color: var(--yellow); font: 600 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature code { padding: 2px 5px; color: #cac9c3; background: #22221f; font-size: .84em; }
.local-visual { position: relative; width: 280px; height: 280px; justify-self: center; }
.local-core { position: absolute; inset: 65px; z-index: 2; display: grid; place-items: center; border: 1px solid #4b4b45; border-radius: 50%; background: #090908; }
.local-core span { color: #e1dfd7; font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.local-orbit { position: absolute; inset: 0; border: 1px dashed #353530; border-radius: 50%; animation: spin 18s linear infinite; }
.local-orbit i { position: absolute; width: 14px; height: 14px; border: 2px solid var(--yellow); border-radius: 50%; background: #11110f; }
.local-orbit i:nth-child(1) { top: 26px; left: 58px; }
.local-orbit i:nth-child(2) { top: 115px; right: -7px; }
.local-orbit i:nth-child(3) { bottom: 3px; left: 93px; }
@keyframes spin { to { transform: rotate(360deg); } }

.terminal-section { padding-block: 135px; overflow: hidden; border-top: 1px solid var(--line); background: #0c0c0b; }
.terminal-showcase { position: relative; width: 100%; max-width: 1100px; margin-inline: auto; border: 1px solid #3b3b37; border-radius: 15px; background: #050505; box-shadow: 0 45px 100px rgba(0,0,0,.6); }
.terminal-glow { position: absolute; top: -100px; left: 15%; width: 70%; height: 170px; background: rgba(255,212,0,.11); filter: blur(100px); }
.window-chrome { display: flex; height: 43px; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid #252522; background: #151513; border-radius: 15px 15px 0 0; }
.window-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #373732; }
.window-chrome span:first-child { background: #d05252; }
.window-chrome span:nth-child(2) { background: #d4ac38; }
.window-chrome span:nth-child(3) { background: #5b9f63; }
.window-chrome p { margin: 0 auto 0 8px; color: #61615c; font: 500 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-terminal { padding: 24px 26px 18px; background: #080907; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.demo-frame { display: grid; min-height: 570px; grid-template-rows: auto 1fr auto; border: 1px solid var(--yellow); color: #e8e7e0; background: #0c0d0b; }
.demo-topbar { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 0 13px; color: var(--yellow); border-bottom: 1px solid #3b3821; font-size: .75rem; font-weight: 700; }
.demo-title { white-space: nowrap; }
.demo-rule { height: 1px; flex: 1; background: #6a5a09; }
.demo-actions { display: flex; align-items: center; gap: 10px; }
.demo-actions button, .demo-rail button { padding: 5px 3px; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; transition: color .15s ease, background .15s ease; }
.demo-actions button:hover, .demo-actions button.active { color: #111; background: var(--yellow); }
.demo-content { min-height: 470px; padding: 28px 30px 22px; overflow: hidden; color: #d9d8d2; font-size: clamp(.69rem, 1.05vw, .82rem); line-height: 1.7; transition: opacity .09s ease; }
.demo-content.swap { opacity: .3; }
.demo-pane { animation: demo-in .22s ease both; }
@keyframes demo-in { from { opacity: 0; transform: translateY(4px); } }
.demo-kicker { margin-bottom: 5px; color: var(--yellow); font-size: .78em; font-weight: 700; text-transform: uppercase; }
.demo-heading { margin-bottom: 4px; color: #f2f0e9; font-size: 1.35em; font-weight: 700; }
.demo-muted { color: #77766f; }
.demo-lines { display: grid; gap: 7px; margin-top: 24px; }
.demo-line { white-space: pre-wrap; }
.term-yellow { color: var(--yellow); }
.term-green { color: var(--green); }
.term-cyan { color: #65cee8; }
.term-dim { color: #73726d; }
.term-white { color: #f4f2ec; font-weight: 700; }
.term-cursor { display: inline-block; width: .64em; height: 1.15em; margin-left: 3px; vertical-align: -.18em; background: var(--yellow); animation: cursor-blink 1.1s step-end infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.demo-logo { margin: 16px 0 20px; color: var(--yellow); font-size: clamp(1.4rem, 3.6vw, 3.2rem); font-weight: 900; line-height: .82; letter-spacing: -.08em; }
.term-card { margin-top: 20px; padding: 14px 16px; border-left: 2px solid var(--yellow); background: #11120f; }
.term-card p { margin: 0 0 4px; }
.term-card p:last-child { margin: 0; }
.term-options { display: grid; max-width: 610px; gap: 4px; margin-top: 22px; }
.term-option { padding: 7px 10px; color: #aaa9a2; }
.term-option.selected { color: #0a0a08; background: var(--yellow); font-weight: 700; }
.term-option.done::before { margin-right: 9px; color: var(--green); content: "✓"; }
.term-option.pending::before { margin-right: 9px; color: #65645f; content: "○"; }
.session-list, .plan-list, .review-list { display: grid; gap: 13px; margin-top: 24px; }
.demo-row { padding: 11px 13px; border-left: 1px solid #3b3b35; color: #aaa9a2; background: #0f100e; }
.demo-row.selected { border-left-color: var(--yellow); background: #151610; }
.demo-row strong { color: #edebe4; }
.demo-row small { display: block; margin-top: 4px; color: #65645e; }
.demo-row .row-status { float: right; color: var(--green); }
.demo-row .row-status.waiting { color: var(--yellow); }
.term-tree { margin-top: 5px; color: #77766f; }
.term-diff { display: grid; gap: 3px; margin-top: 18px; padding: 15px; color: #86857f; background: #090a08; }
.term-diff .add { color: var(--green); }
.term-diff .remove { color: #e06b6b; }
.term-progress { width: min(100%, 620px); height: 7px; margin-top: 22px; background: #272722; }
.term-progress span { display: block; width: 72%; height: 100%; background: var(--yellow); animation: progress-pulse 2s ease-in-out infinite alternate; }
@keyframes progress-pulse { to { width: 86%; } }
.demo-rail { display: flex; min-height: 46px; align-items: center; color: var(--yellow); border-top: 1px solid #3b3821; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.demo-rail::-webkit-scrollbar { display: none; }
.demo-rail-rule { min-width: 12px; height: 1px; flex: 1; background: #6a5a09; }
.demo-rail button { flex: 0 0 auto; padding: 8px 5px; color: #8c8b85; font-size: .7rem; }
.demo-rail button:hover { color: var(--yellow); }
.demo-rail button.active { color: #111; background: var(--yellow); }
.demo-rail button.worker { color: #aaa9a2; }
.demo-rail button.attention { color: var(--yellow); }
.demo-rail button.approved { color: var(--green); }
.demo-rail button.active { color: #111; }
.demo-footer { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 20px; color: #5f5e59; font-size: .62rem; }
.demo-note { display: flex; max-width: 1100px; align-items: center; gap: 9px; margin: 21px auto 0; color: #6f6e69; font: 600 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.demo-note span { color: var(--yellow); }

.install { position: relative; display: grid; min-height: 750px; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 110px; overflow: hidden; }
.install-copy { position: relative; z-index: 2; }
.install-copy > p:not(.section-index):not(.install-note) { color: #92918b; font-size: 1.05rem; line-height: 1.7; }
.install-mark { position: relative; width: 410px; height: 500px; opacity: .95; }
.install-mark svg { width: 100%; height: 100%; overflow: visible; }
.mark-disc { fill: var(--ink); }
.command { display: flex; width: min(100%, 670px); min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; margin-top: 35px; padding: 0 10px 0 20px; border: 1px solid #3e3e39; background: #11110f; }
.command code { color: #dddcd5; font: 500 clamp(.72rem, 1.5vw, .88rem)/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.command code span { margin-right: 11px; color: var(--yellow); }
.command button { display: flex; min-width: 82px; height: 44px; align-items: center; justify-content: center; gap: 8px; border: 0; color: #15150f; background: var(--yellow); cursor: pointer; font: 700 .64rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.command button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.install-note { max-width: 600px; margin-top: 20px; color: #5e5e59; font: 500 .63rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

footer { display: grid; width: min(calc(100% - 48px), var(--max)); grid-template-columns: 1.25fr 1fr auto; align-items: center; gap: 40px; margin-inline: auto; padding-block: 45px; border-top: 1px solid var(--line); color: #6c6b66; font-size: .72rem; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { border-radius: 50%; }
.footer-brand div { display: flex; flex-direction: column; gap: 5px; }
.footer-brand strong { color: #e6e4dd; font: 800 .82rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.footer-links { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); }
footer p { margin: 0; text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 150px; }
  .hero-copy { max-width: 760px; }
  .hero-orchestration { width: min(100%, 560px); justify-self: center; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto > div > p { margin-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .workflow-track { grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
  .workflow-line { display: none; }
  .install { gap: 50px; }
  .install-mark { transform: scale(.8); transform-origin: left center; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p { grid-column: span 2; text-align: left; }
}

@media (max-width: 720px) {
  .site-header { width: calc(100% - 36px); height: 72px; }
  .menu-toggle { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { width: 20px; height: 1px; background: #fff; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header nav { position: absolute; top: 72px; left: -18px; display: none; width: calc(100% + 36px); align-items: stretch; flex-direction: column; gap: 0; padding: 16px 18px 24px; border-bottom: 1px solid var(--line); background: rgba(8,8,8,.98); }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 14px 5px; }
  .site-header .nav-cta { margin-top: 8px; text-align: center; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 55px; padding: 125px 18px 70px; }
  h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-lede { font-size: .98rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-meta { flex-wrap: wrap; gap: 12px 18px; }
  .hero-meta li:not(:first-child)::before { margin-right: 18px; }
  .hero-orchestration { margin-inline: -12px; }
  .agent-node { transform: scale(.86); }
  .planner-node { transform: translateX(-50%) scale(.86); }
  .flow-caption { display: none; }
  .provider-strip { align-items: flex-start; flex-direction: column; padding-block: 30px; }
  .provider-list { width: 100%; justify-content: space-between; gap: 10px; font-size: .6rem; }
  .section-shell { width: calc(100% - 36px); }
  .manifesto { gap: 35px; padding-block: 100px; }
  .manifesto h2, .section-heading h2, .install h2 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .workflow, .features, .terminal-section { padding-block: 90px; }
  .section-heading { margin-bottom: 50px; }
  .workflow-track { grid-template-columns: 1fr; gap: 34px; }
  .workflow-line { top: 26px; right: auto; bottom: 26px; left: 26px; display: block; width: 1px; height: auto; }
  .workflow-track article { display: grid; min-width: 0; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 20px; }
  .workflow-track .step-dot { grid-row: 1 / span 2; margin-bottom: 0; }
  .workflow-track h3, .workflow-track p { grid-column: 2; }
  .workflow-track h3 { margin: 3px 0 8px; }
  .feature-grid { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .feature, .feature-wide { min-width: 0; grid-column: span 1; min-height: 360px; padding: 30px; }
  .feature-wide { grid-template-columns: 1fr; gap: 55px; }
  .feature-copy { min-width: 0; }
  .feature-number { margin-bottom: 60px; }
  .plan-visual { min-width: 0; gap: 14px; transform: none; }
  .plan-version { width: auto; height: 190px; min-width: 0; flex: 1 1 0; padding: 18px; }
  .plan-version b { right: -4px; padding: 7px; font-size: .46rem; }
  .mini-workers { gap: 12px; }
  .mini-workers i, .mini-workers span { width: 48px; height: 48px; flex: 0 0 48px; }
  .mini-workers::after { width: auto; min-width: 24px; flex: 1 1 auto; }
  .safety-feature { padding-bottom: 50px; }
  .demo-terminal { padding: 10px 10px 8px; }
  .demo-frame { min-height: 560px; }
  .demo-topbar { align-items: flex-start; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .demo-rule { min-width: 20px; margin-top: 8px; }
  .demo-actions { width: 100%; justify-content: space-between; gap: 2px; }
  .demo-actions button { padding: 6px 2px; font-size: .66rem; }
  .demo-content { min-height: 430px; padding: 20px 15px; font-size: .66rem; }
  .demo-heading { font-size: 1.2em; }
  .demo-row .row-status { float: none; display: block; margin-bottom: 3px; }
  .demo-rail-rule { min-width: 5px; }
  .demo-rail button { font-size: .59rem; }
  .demo-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 12px 5px; line-height: 1.4; }
  .demo-note { line-height: 1.5; }
  .install { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-block: 100px; }
  .install-mark { display: none; }
  .install-copy { min-width: 0; }
  .command { overflow-x: auto; }
  .command code { white-space: nowrap; }
  .command button { min-width: 44px; width: 44px; }
  .command button span { display: none; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  footer p { grid-column: auto; }
}

@media (max-width: 430px) {
  .hero-orchestration { transform: scale(.92); }
  .feature { padding: 26px; }
  .plan-visual { gap: 10px; }
  .plan-version { height: 175px; padding: 15px; }
  .plan-version span { margin-bottom: 26px; }
  .plan-arrow { font-size: 1.35rem; }
  .mini-workers { gap: 10px; }
  .mini-workers i, .mini-workers span { width: 46px; height: 46px; flex-basis: 46px; }
  .check-visual { grid-template-columns: 1fr; }
  .check-visual span { flex-direction: row; }
}
