:root {
  --accent: #F0B90B;
  --bg: #0A0A0A;
  --card: #111111;
  --card-2: #151515;
  --line: #272727;
  --line-soft: #1c1c1c;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --dim: #6B6B6B;
  --red: #FF5A4D;
  --orange: #C9742B;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --pixel: 'Pixelify Sans', var(--mono);
  --cell: 56px;
  --w: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* background: fine grain, no pattern */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* two rails marking the content column on the marketing pages */
body[data-page="home"]::after, body[data-page="about"]::after, body[data-page="404"]::after {
  content: ''; position: fixed; top: 0; bottom: 0; left: 50%; z-index: 0; pointer-events: none;
  width: min(calc(var(--w) + 64px), calc(100% - 16px)); transform: translateX(-50%);
  border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

.wrap { width: min(var(--w), calc(100% - 48px)); margin: 0 auto; }
main, footer { position: relative; z-index: 1; }
.mono { font-family: var(--mono); }
.pixelated { image-rendering: pixelated; }

/* ---------- cursor effect ---------- */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.fx.live { opacity: 1; }
.fx i { position: absolute; top: 0; left: 0; will-change: transform; }
.fx-v { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(240,185,11,.32) 30%, rgba(240,185,11,.32) 70%, transparent); }
.fx-h { height: 1px; width: 100%; background: linear-gradient(to right, transparent, rgba(240,185,11,.32) 30%, rgba(240,185,11,.32) 70%, transparent); }
.fx-cell { width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--accent); }
.fx-pos { position: absolute; left: 14px; bottom: 12px; font: 11px var(--mono); color: var(--dim); letter-spacing: .06em; white-space: pre; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.nav.scrolled, .nav.open, .nav.solid { background: rgba(10,10,10,.86); backdrop-filter: blur(12px); border-color: var(--line); }
.nav-in { width: min(1320px, calc(100% - 48px)); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 6px; }
.wordmark { font-family: var(--pixel); font-weight: 700; font-size: 24px; line-height: 1; color: #fff; text-shadow: .07em .07em 0 var(--orange); letter-spacing: .01em; }
.nav-links { display: flex; gap: 4px; margin-left: 20px; }
.nav-links a { padding: 8px 12px; font-size: 14px; color: var(--muted); border-radius: 6px; transition: color .15s; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-links a.on { box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; width: 40px; height: 36px; padding: 0; }
.nav-burger span { display: block; width: 16px; height: 1px; background: #fff; margin: 5px auto; }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); white-space: nowrap; }
.badge-preview::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge-demo { color: var(--accent); border-color: rgba(240,185,11,.3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 6px; font-size: 15px; font-weight: 500; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lime { background: var(--accent); color: #000; }
.btn-lime:hover { background: #F8D33A; }
.btn-ghost { border-color: var(--line); background: rgba(17,17,17,.6); color: #fff; }
.btn-ghost:hover { border-color: #444; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #1a1a1a; }
.btn-outline-dark { border-color: #000; color: #000; background: transparent; }
.btn-outline-dark:hover { background: rgba(0,0,0,.08); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line-soft); }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.h2 { font-size: clamp(30px, 4vw, 46px); max-width: 780px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin-top: 18px; }
.sec-head { margin-bottom: 56px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.panel-head .dots { display: flex; gap: 6px; margin-right: 4px; }
.panel-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c2c; }
.panel-head .sp { margin-left: auto; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; flex-wrap: wrap; }
.hero-meta b { display: block; color: #fff; font-weight: 500; margin-top: 4px; letter-spacing: .02em; text-transform: none; font-size: 13px; }
.hero-visual { position: relative; }
.hero-horse { position: absolute; right: -26px; bottom: -58px; width: 190px; image-rendering: pixelated; transform: scaleX(-1); animation: bob 1.1s steps(4) infinite; pointer-events: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* ---------- graph viz ---------- */
.gviz { display: block; width: 100%; height: auto; }
.gviz text { font-family: var(--mono); }
.g-grp { fill: var(--dim); font-size: 10px; letter-spacing: .14em; }
.g-edge { fill: none; stroke: #333; stroke-width: 1.2; transition: stroke .3s; }
.g-edge.fund { stroke-dasharray: 3 5; }
.g-edge.on { stroke: var(--accent); stroke-dasharray: 5 6; animation: flow .7s linear infinite; }
.g-edge.done { stroke: rgba(240,185,11,.55); stroke-dasharray: none; animation: none; }
.g-edge.dead { stroke: rgba(255,90,77,.5); stroke-dasharray: 2 5; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.g-node { cursor: default; }
.g-node.click { cursor: pointer; }
.g-node rect { fill: #0d0d0d; stroke: var(--line); stroke-width: 1; transition: stroke .25s, fill .25s; }
.g-node .lbl { fill: #fff; font-size: 12px; }
.g-node .st { fill: var(--dim); font-size: 9px; letter-spacing: .12em; }
.g-node .dot { fill: #3a3a3a; transition: fill .25s; }
.g-node.src rect { fill: #161616; stroke-dasharray: 3 3; }
.g-node.src .lbl { fill: var(--muted); }
.g-node.sel rect { stroke: #fff; }
.g-node.click:hover rect { stroke: #555; }
.s-SIMULATING rect { stroke: #777; } .s-SIMULATING .dot { fill: #fff; animation: blink .5s steps(2) infinite; } .s-SIMULATING .st { fill: #ddd; }
.s-READY .dot { fill: #fff; } .s-READY .st { fill: #ddd; }
.s-SUBMITTING rect, .s-PENDING rect { stroke: var(--accent); } .s-SUBMITTING .dot, .s-PENDING .dot { fill: var(--accent); animation: blink .5s steps(2) infinite; } .s-SUBMITTING .st, .s-PENDING .st { fill: var(--accent); }
.s-CONFIRMED rect { stroke: rgba(240,185,11,.55); fill: rgba(240,185,11,.06); } .s-CONFIRMED .dot { fill: var(--accent); } .s-CONFIRMED .st { fill: var(--accent); }
.s-FAILED rect { stroke: var(--red); fill: rgba(255,90,77,.07); } .s-FAILED .dot { fill: var(--red); } .s-FAILED .st { fill: var(--red); }
.s-SKIPPED rect, .s-CANCELLED rect { stroke-dasharray: 4 4; } .s-SKIPPED .lbl, .s-CANCELLED .lbl { fill: var(--dim); text-decoration: line-through; }
@keyframes blink { 50% { opacity: .25; } }

.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); font: 10px var(--mono); letter-spacing: .1em; color: var(--dim); }
.legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #3a3a3a; vertical-align: 1px; }
.legend .l-ready::before { background: #fff; } .legend .l-exec::before, .legend .l-ok::before { background: var(--accent); } .legend .l-exec::before { opacity: .5; } .legend .l-fail::before { background: var(--red); }

/* ---------- problem ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus .panel { padding: 28px; }
.versus h3 { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.versus .is-stride h3 { color: var(--accent); }
.versus p { color: var(--muted); font-size: 15px; margin-top: 20px; }
.diagram { font: 13px/1.5 var(--mono); color: #d6d6d6; white-space: pre; overflow-x: auto; margin: 0; }
.diagram b { color: var(--accent); font-weight: 400; }
.seq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { font: 12px var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: #0d0d0d; }
.chip.lime { border-color: rgba(240,185,11,.4); color: var(--accent); }
.arrow { color: var(--dim); font-family: var(--mono); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.step { padding: 28px 24px 32px; border-right: 1px solid var(--line); position: relative; transition: background .2s; }
.step:last-child { border-right: 0; }
.step:hover { background: var(--card-2); }
.step .n { font: 12px var(--mono); color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 22px; margin: 36px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding: 18px; font: 13px var(--mono); }
.kv dt { color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; padding-top: 1px; }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.kv dd.ok { color: var(--accent); } .kv dd.bad { color: var(--red); }
.feed { font: 12px/1.9 var(--mono); padding: 12px 18px; height: 232px; overflow: hidden; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; }
.feed div { white-space: nowrap; animation: feedin .25s ease; }
.feed time { color: var(--dim); margin-right: 12px; }
.feed .ok { color: var(--accent); } .feed .bad { color: var(--red); }
@keyframes feedin { from { opacity: 0; transform: translateY(6px); } }
.ctl { display: flex; align-items: center; gap: 14px; font: 12px var(--mono); color: var(--muted); }
.ctl label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ctl input { accent-color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: 12px var(--mono); }
.linkbtn:hover { text-decoration: underline; }

/* ---------- lanes ---------- */
.funnel { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); }
.funnel div { display: flex; align-items: baseline; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.funnel b { font-size: 34px; font-weight: 500; color: var(--accent); min-width: 44px; }
.funnel span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.funnel i { align-self: center; color: var(--dim); font-style: normal; }
.lanes { display: flex; flex-direction: column; }
.lane { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.lane:last-child { border-bottom: 0; }
.lane .id { font: 12px var(--mono); color: var(--accent); letter-spacing: .12em; }
.lane .strategy { font: 10px var(--mono); color: var(--dim); letter-spacing: .1em; }

/* ---------- code / terminal ---------- */
pre { margin: 0; }
pre[data-lang] { position: relative; font: 13px/1.7 var(--mono); padding: 18px 20px; overflow-x: auto; color: #d9d9d9; background: #0c0c0c; border: 1px solid var(--line); border-radius: 8px; tab-size: 2; }
.panel pre[data-lang] { border: 0; border-radius: 0; }
.copy { position: absolute; top: 8px; right: 8px; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: #161616; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 4px 8px; opacity: 0; transition: opacity .15s; }
pre:hover .copy { opacity: 1; }
.t-dim { color: var(--dim); } .t-str { color: #f1dfa6; } .t-kw { color: var(--accent); } .t-num { color: #e8b27a; }
.t-ok { color: var(--accent); } .t-err { color: var(--red); } .t-cmd { color: #fff; }
.term { font: 13px/1.75 var(--mono); padding: 18px 20px; min-height: 420px; color: #cfcfcf; white-space: pre-wrap; }
.term .cur { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { color: var(--muted); padding-left: 26px; position: relative; font-size: 15px; }
.checks li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* ---------- templates ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: rgba(240,185,11,.45); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .diagram { font-size: 12px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); flex: 1; }
.card .go { font: 11px var(--mono); letter-spacing: .1em; color: var(--accent); margin-top: 16px; text-transform: uppercase; }

/* ---------- architecture ---------- */
.arch { display: grid; gap: 0; max-width: 760px; margin: 0 auto; font-family: var(--mono); }
.arch .zone { border: 1px dashed var(--line); border-radius: 10px; padding: 34px 20px 20px; position: relative; display: grid; gap: 10px; justify-items: center; }
.arch .zone > span { position: absolute; top: 10px; left: 14px; font-size: 10px; letter-spacing: .16em; color: var(--dim); }
.arch .zone.on { border-color: rgba(240,185,11,.35); margin-top: 26px; }
.arch .zone.on > span { color: var(--accent); }
.arch .box { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 10px 18px; font-size: 12px; letter-spacing: .08em; text-align: center; min-width: 200px; }
.arch .box.lime { border-color: var(--accent); color: var(--accent); }
.arch .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.arch .row .box { min-width: 150px; }
.arch .v { width: 1px; height: 16px; background: var(--line); }

/* ---------- lime band ---------- */
.band { background: radial-gradient(ellipse at 70% 45%, #FCE205 0%, #FDC004 45%, #FCA802 100%); color: #000; position: relative; overflow: hidden; z-index: 1; }
.band-in { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; padding: 88px 0; }
.band h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.03em; }
.band p { font-size: 18px; margin-top: 16px; max-width: 460px; color: rgba(0,0,0,.72); }
.band .hero-cta { margin-top: 30px; }
.band-art { position: relative; text-align: center; }
.band-art .wordmark { font-size: clamp(64px, 9vw, 128px); display: block; text-shadow: .06em .06em 0 var(--orange); }
.band-art img { width: min(300px, 70%); margin: -34px auto 0; image-rendering: pixelated; position: relative; animation: bob 1.1s steps(4) infinite; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ca { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.ca-value { flex: 1; min-width: 0; font: 14px var(--mono); color: var(--accent); overflow-wrap: anywhere; }
.ca-value.tba { color: var(--muted); letter-spacing: .1em; }
.ca-note { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.ca-note a { color: var(--accent); }
.btn-x { padding: 0; width: 36px; }
.foot-social { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 14px 0 16px; max-width: 280px; }
footer h4 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-grid a:not(.brand):not(.btn) { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot-grid a:not(.brand):not(.btn):hover { color: #fff; }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font: 11px var(--mono); color: var(--dim); }

/* ---------- about ---------- */
.page-hero { padding: 88px 0 72px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); max-width: 900px; letter-spacing: -.03em; }
.prose p { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 660px; }
.prose p strong { color: #fff; font-weight: 500; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.table td { color: var(--muted); }
.table td:first-child { color: #fff; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.table code, .prose code, .doc code { font: .88em var(--mono); background: #171717; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: #e4e4e4; }
pre code { background: none !important; border: 0 !important; padding: 0 !important; font: inherit !important; color: inherit !important; }

/* ---------- docs ---------- */
.docs { position: relative; z-index: 1; display: grid; grid-template-columns: 264px minmax(0, 1fr) 200px; gap: 0; width: min(1320px, 100%); margin: 0 auto; }
.side { position: sticky; top: 65px; height: calc(100vh - 65px); overflow-y: auto; padding: 24px 20px 48px 24px; border-right: 1px solid var(--line); background: rgba(10,10,10,.9); }
.side input { width: 100%; height: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: #fff; padding: 0 12px; font: 13px var(--sans); margin-bottom: 18px; outline: none; }
.side input:focus { border-color: #555; }
.side h5 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.side a { display: block; padding: 5px 10px; margin-left: -10px; font-size: 14px; color: var(--muted); border-left: 1px solid transparent; }
.side a:hover { color: #fff; }
.side a.on { color: var(--accent); border-left-color: var(--accent); background: rgba(240,185,11,.05); }
.doc { padding: 48px 56px 96px; min-width: 0; background: rgba(10,10,10,.82); }
.doc .crumb { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.doc h1 { font-size: 40px; letter-spacing: -.03em; }
.doc .doc-lead { font-size: 18px; color: var(--muted); margin: 16px 0 8px; max-width: 700px; }
.doc h2 { font-size: 24px; margin: 48px 0 14px; padding-top: 8px; }
.doc h3 { font-size: 17px; margin: 30px 0 10px; letter-spacing: -.01em; }
.doc p, .doc li { color: #c4c4c4; font-size: 15.5px; line-height: 1.75; }
.doc p { margin: 14px 0; max-width: 740px; }
.doc ul, .doc ol { padding-left: 22px; margin: 14px 0; max-width: 740px; }
.doc li { margin: 5px 0; }
.doc a:not(.pn) { color: var(--accent); }
.doc a:not(.pn):hover { text-decoration: underline; }
.doc pre { margin: 18px 0; max-width: 780px; }
.doc .table { margin: 18px 0; max-width: 780px; }
.note { border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--card); border-radius: 6px; padding: 14px 18px; margin: 22px 0; max-width: 780px; font-size: 14.5px; color: #cfcfcf; }
.note b { color: #fff; font-weight: 500; }
.note.warn { border-left-color: var(--orange); }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; max-width: 780px; }
.pn { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; background: var(--card); transition: border-color .15s; }
.pn:hover { border-color: #555; }
.pn small { display: block; font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.pn.next { text-align: right; grid-column: 2; }
.doc-foot { display: flex; align-items: center; gap: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 780px; font: 12px var(--mono); color: var(--dim); }
.doc-foot img { width: 54px; image-rendering: pixelated; }
.toc { position: sticky; top: 65px; height: calc(100vh - 65px); padding: 52px 20px; overflow-y: auto; }
.toc h5 { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.toc a { display: block; font-size: 13px; color: var(--muted); padding: 4px 0; }
.toc a:hover { color: #fff; }
.side-toggle { display: none; }

/* ---------- playground ---------- */
.pg { position: relative; z-index: 1; width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.pg-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-top h1 { font-size: 30px; }
.pg-top p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 620px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.toolbar select, .field input, .field select { height: 36px; background: #0c0c0c; border: 1px solid var(--line); border-radius: 6px; color: #fff; padding: 0 10px; font: 13px var(--mono); outline: none; min-width: 0; }
.field input:focus, .field select:focus, .toolbar select:focus { border-color: #555; }
.toolbar .sp { margin-left: auto; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.canvas-wrap { position: relative; height: 560px; background:
  radial-gradient(circle, #222 1px, transparent 1px) 0 0 / 22px 22px, #0c0c0c; overflow: hidden; }
#canvas { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
#canvas text { font-family: var(--mono); pointer-events: none; }
.pg-node { cursor: grab; }
.pg-node rect { fill: #111; stroke: #333; transition: stroke .2s, fill .2s; }
.pg-node:hover rect { stroke: #666; }
.pg-node.sel rect { stroke: #fff; }
.pg-node .lbl { fill: #fff; font-size: 12px; }
.pg-node .st { fill: var(--dim); font-size: 9px; letter-spacing: .1em; }
.pg-node .tag { fill: var(--accent); font-size: 9px; letter-spacing: .1em; }
.pg-node.willfail .lbl { fill: var(--red); }
.pg-node.incycle rect { stroke: var(--red); }
.pg-port { fill: #0c0c0c; stroke: var(--accent); stroke-width: 1.5; cursor: crosshair; }
.pg-port:hover { fill: var(--accent); }
.pg-edge { fill: none; stroke: #4a4a4a; stroke-width: 1.4; }
.pg-edge.sel { stroke: #fff; }
.pg-edge.bad { stroke: var(--red); }
.pg-edge.on { stroke: var(--accent); stroke-dasharray: 5 6; animation: flow .7s linear infinite; }
.pg-edge.done { stroke: rgba(240,185,11,.6); }
.pg-hit { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.pg-temp { stroke: var(--accent); stroke-dasharray: 4 4; stroke-width: 1.4; fill: none; pointer-events: none; }
.pg-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--dim); font: 13px var(--mono); pointer-events: none; }
.pg-empty[hidden] { display: none; }
.pg-empty img { width: 150px; image-rendering: pixelated; opacity: .9; }
.pg-loading { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 10px; background: rgba(10,10,10,.78); font: 12px var(--mono); letter-spacing: .1em; color: var(--accent); z-index: 2; }
.pg-loading.on { display: grid; }
.pg-loading img { width: 120px; image-rendering: pixelated; transform: scaleX(-1); animation: bob .5s steps(4) infinite; }
.pg-hint { padding: 9px 14px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--dim); }
.side-panels { display: grid; gap: 16px; }
.pbody { padding: 16px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.field.check { display: flex; align-items: center; gap: 8px; }
.field.check label { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--muted); }
.field.check input { height: auto; accent-color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-x { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 3px 4px 3px 8px; display: inline-flex; gap: 6px; align-items: center; background: #0c0c0c; }
.tag-x button { background: none; border: 0; color: var(--dim); padding: 0 4px; }
.tag-x button:hover { color: var(--red); }
.muted-sm { color: var(--dim); font: 12px var(--mono); }
.result { font: 12.5px/1.7 var(--mono); }
.result.stale { opacity: .4; }
.result .ok { color: var(--accent); } .result .bad { color: var(--red); }
.result h6 { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--dim); margin: 16px 0 6px; text-transform: uppercase; }
.result .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.result .stats div { background: var(--card); padding: 8px 10px; }
.result .stats b { display: block; font-weight: 500; font-size: 16px; color: #fff; }
.result .stats span { font-size: 10px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.result .grp { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; background: #0c0c0c; }
.result .grp small { color: var(--accent); letter-spacing: .1em; font-size: 10px; display: block; }
.pg-log { font: 12px/1.8 var(--mono); padding: 12px 16px; height: 150px; overflow-y: auto; color: var(--muted); border-top: 1px solid var(--line); }
.pg-log time { color: var(--dim); margin-right: 10px; }
.pg-log .ok { color: var(--accent); } .pg-log .bad { color: var(--red); }

/* ---------- 404 ---------- */
.nf { position: relative; z-index: 1; min-height: 72vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; padding: 48px 24px; }
.nf img { width: 220px; image-rendering: pixelated; animation: bob 1.1s steps(4) infinite; }
.nf h1 { font-size: 48px; }
.nf p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr); }
  .toc { display: none; }
  .pg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .versus, .explorer, .band-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .principles { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .nav-links, .nav-cta, .nav .badge { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-in { height: auto; flex-wrap: wrap; padding: 14px 0; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; margin: 8px 0 0; order: 5; }
  .nav.open .nav-cta { display: flex; width: 100%; margin: 8px 0 4px; order: 6; }
  .hero-horse { width: 130px; right: 0; bottom: -44px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 65px 0 0 0; height: auto; z-index: 40; background: var(--bg); }
  .side.open { display: block; }
  .side-toggle { display: inline-flex; margin-bottom: 20px; }
  .doc { padding: 28px 20px 72px; }
  .doc h1 { font-size: 32px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .cards, .principles, .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .lane { grid-template-columns: 1fr; gap: 8px; }
  .canvas-wrap { height: 460px; }
  .pnav { grid-template-columns: 1fr; }
  .pn.next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
