/* Steelreed landing. Dark theme, one accent (Reed cyan). Colours are defined only in :root. */
:root, .dark, .force-dark {
  color-scheme: dark;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  /* ===== brand ===== */
  --bg: #060B14;
  --surface: #0C1524;
  --surface-2: #122036;
  --fg: #E8EEF6;
  --muted: #8C9BB0;
  --border: rgba(150, 190, 230, .12);
  --border-strong: rgba(150, 190, 230, .18);
  --primary: #E8EEF6;
  --primary-hover: #C9D5E4;
  --on-primary: #060B14;
  --accent: #4FC3F7;
  --accent-rgb: 79 195 247;
  --steel: #2B72C2;
  --ok: #34D399;
  --bad: #FB7185;
  --bad-rgb: 251 113 133;
  --warn: #FBBF24;
  --border-hover: rgba(150, 190, 230, .34);
  --hdr-bg: rgba(6, 11, 20, .72);
  --co-bg: rgba(18, 32, 54, .94);
  --soft: rgba(255, 255, 255, .07);
  --aurora-op: .6;
  --title-grad: linear-gradient(180deg, #fff 30%, #9FB3CC);
  --grad: linear-gradient(100deg, #8FDCFB, #4FC3F7 45%, #3E8FE0);
  --mark-grad: linear-gradient(180deg, rgba(232, 238, 246, .22), rgba(232, 238, 246, 0) 85%);
  /* ================= */
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 8px); -webkit-text-size-adjust: 100%; }
html.lenis, html.rm { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::after { /* static film grain */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .04;
  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 type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .88em; padding: .08em .4em; border-radius: 6px; background: var(--soft); border: 1px solid var(--border); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgb(var(--accent-rgb) / .35); color: #fff; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
main { position: relative; overflow-x: clip; }

* { --scrollbar-thumb: transparent; }
*:hover { --scrollbar-thumb: color-mix(in srgb, var(--fg) 16%, transparent); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 9999px; }

.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 8px 14px; border-radius: var(--r); background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 500; transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; }
.progress { position: fixed; left: 0; top: 0; z-index: 80; width: 100%; height: 2px; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--steel), var(--accent)); pointer-events: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font: 500 14px/1.25 var(--font); overflow: hidden; transition: background-color .2s, border-color .2s; }
.btn:hover { border-color: var(--border-hover); background: var(--surface-2); }
.btn.sm { min-height: 36px; padding: 6px 12px; }
.btn.lg { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.gh { width: 16px; height: 16px; fill: currentColor; }
.shine::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; pointer-events: none; background: linear-gradient(100deg, transparent, rgb(var(--accent-rgb) / .45), transparent); transform: translateX(-130%) skewX(-18deg); }
.shine:hover::after { transform: translateX(330%) skewX(-18deg); transition: transform .9s var(--ease); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta.left { justify-content: flex-start; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.hdr.is-solid { background: var(--hdr-bg); border-color: var(--border); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav { display: none; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--fg); }
@media (min-width: 760px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(48px, 8vw, 96px); margin-top: calc(var(--hdr) * -1); padding-top: calc(var(--hdr) + clamp(48px, 8vw, 96px)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(600px circle at var(--hx, 50%) var(--hy, 18%), rgb(var(--accent-rgb) / .09), transparent 60%); }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 1150px; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; inset: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--aurora-op); will-change: transform; }
.aurora i:nth-child(1) { width: 560px; height: 560px; left: calc(50% - 660px); top: -170px; background: radial-gradient(circle, rgba(43, 114, 194, .7), transparent 70%); animation: au1 18s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 520px; height: 520px; left: calc(50% + 120px); top: -60px; background: radial-gradient(circle, rgb(var(--accent-rgb) / .35), transparent 70%); animation: au2 22s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 440px; height: 440px; left: calc(50% - 220px); top: 440px; background: radial-gradient(circle, rgba(43, 114, 194, .4), transparent 70%); animation: au1 26s ease-in-out infinite reverse; }
@keyframes au1 { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes au2 { 50% { transform: translate(-90px, 50px) scale(.92); } }
.hero-grid { position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 28%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 50% at 50% 28%, #000 25%, transparent 75%); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--muted); transition: border-color .25s, color .25s; }
.pill:hover { border-color: rgb(var(--accent-rgb) / .5); color: var(--fg); }
.pill-tag { padding: 3px 9px; border-radius: 999px; background: rgb(var(--accent-rgb) / .15); color: var(--accent); font-size: 12px; font-weight: 600; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.pill:hover svg { transform: translateX(3px); }
.hero-title { max-width: 980px; font: 600 clamp(40px, 7vw, 84px)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .grad, .hero-title .w.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-title .w { background: inherit; -webkit-background-clip: text; background-clip: text; }
.lead { max-width: 680px; margin-top: 24px; font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); text-wrap: pretty; }
.lead em { font-style: normal; color: var(--fg); }

/* stage */
.stage { position: relative; max-width: 1040px; margin: clamp(48px, 7vw, 80px) auto 0; }
.shot { position: relative; padding: 8px; border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0,0,0,.3); transform-origin: 50% 0; }
.shot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgb(var(--accent-rgb) / .7) 82%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.chrome { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 6px; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.chrome span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term { min-height: 380px; padding: 22px 24px; border-radius: 10px; border: 1px solid var(--border); background: #050A12; font: 13.5px/1.75 var(--mono); color: #C6D3E3; overflow-x: auto; }
.tl { white-space: pre; }
.tl.gap { margin-top: 14px; }
.t-dim { color: #7489A3; }
.t-ok { color: var(--ok); }
.t-err { color: var(--bad); font-weight: 500; }
.t-warn { color: var(--warn); }
.t-hi { color: var(--accent); }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 6px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.callouts { position: absolute; inset: 0; z-index: 5; display: none; pointer-events: none; }
@media (min-width: 1560px) { .callouts { display: block; } }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: rgb(var(--accent-rgb) / .55); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wdot { position: absolute; width: 0; height: 0; display: grid; place-items: center; }
.wdot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .22); }
.wdot::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.d1 { left: 33%; top: 39.6%; } .d2 { left: 70%; top: 63.6%; } .d3 { left: 36%; top: 75%; }
.callout { position: absolute; }
.co1 { left: -192px; top: 16%; } .co2 { right: -186px; top: 46%; } .co3 { left: -186px; top: 72%; }
.co-in { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--co-bg); box-shadow: 0 10px 25px -5px rgb(0 0 0 / .6); animation: float 7s ease-in-out infinite; }
.co2 .co-in { animation-delay: -2.3s; } .co3 .co-in { animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.co-in b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.co-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--soft); color: var(--accent); }
.co-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-ico.ok { background: rgba(52, 211, 153, .14); color: var(--ok); }
.co-ico.bad { background: rgb(var(--bad-rgb) / .14); color: var(--bad); }
.co-txt { display: flex; flex-direction: column; gap: 2px; }
.co-txt span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* marquee */
.mq { margin-top: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: 12px; width: max-content; padding-right: 12px; will-change: transform; }
.mq-track span { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.mq-row.rev .mq-track span { background: transparent; }
html.no-motion .mq-track { flex-wrap: wrap; width: auto; justify-content: center; }

/* ---------- manifesto ---------- */
.mani { padding: clamp(96px, 14vw, 180px) 0 0; }
.mani-text { max-width: 1020px; margin: 0 auto; text-align: center; font: 600 clamp(28px, 4.4vw, 54px)/1.16 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.mani-text .hl { background: linear-gradient(180deg, #A5E4FC, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mani-text .code { font-family: var(--mono); font-size: .82em; color: var(--warn); letter-spacing: -.02em; }
.mani-text .word { opacity: .18; }
html.no-motion .mani-text .word { opacity: 1; }

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 12vw, 150px) 0 0; }
.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.sec-title { margin-top: 14px; font: 600 clamp(32px, 4.6vw, 52px)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sec-sub { margin-top: 16px; font-size: 17px; color: var(--muted); text-wrap: pretty; }

/* ---------- simulation ---------- */
.sim { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .sim { grid-template-columns: 1fr 330px; } }
.sim-stage, .sim-side { border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), #08111E); }
.sim-stage { position: relative; padding: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.sim-stage .sim-svg { margin-block: auto; }
.sim-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent); }
.sim-svg { position: relative; width: 100%; height: auto; overflow: visible; }
.n-box { fill: rgba(18, 32, 54, .9); stroke: var(--border-strong); }
.n-row { fill: rgba(255, 255, 255, .04); stroke: var(--border); }
.n-title { fill: var(--fg); font: 600 15px var(--font); }
.n-txt { fill: var(--muted); font: 12.5px var(--mono); }
.wire { stroke: rgba(150, 190, 230, .16); stroke-width: 2; stroke-dasharray: 4 6; fill: none; }
.f-post { fill: #E8EEF6; }
.f-rail { fill: var(--accent); }
.fence.alarm .f-rail { fill: var(--bad); }
.db-top { fill: #1A2C47; stroke: var(--border-strong); }
.db-body { fill: #12223A; stroke: var(--border-strong); }
.db-line { fill: none; stroke: var(--border-strong); }
.pk rect { stroke-width: 1; }
.pk.ok rect { fill: rgba(52, 211, 153, .14); stroke: rgba(52, 211, 153, .6); }
.pk.bad rect { fill: rgb(var(--bad-rgb) / .16); stroke: rgb(var(--bad-rgb) / .8); }
.pk text { font: 11.5px var(--mono); }
.pk.ok text { fill: #A7F3D0; } .pk.bad text { fill: #FECDD3; }
.stop { opacity: 0; }
.stop-bg { fill: rgb(var(--bad-rgb) / .14); stroke: rgb(var(--bad-rgb) / .7); }
.stop-txt { fill: #FECDD3; font: 600 13px var(--mono); }
.sim-legend { position: relative; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sim-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sim-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-ok { background: var(--ok); } .lg-bad { background: var(--bad); }
.sim-tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12px; }
.sim-side { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.sim-head { display: flex; align-items: center; justify-content: space-between; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
.live.fail { color: var(--bad); } .live.fail i { background: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }
.sim-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-kpis > div { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.k { display: block; font: 600 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.k.bad { color: var(--bad); }
.kl { font-size: 12px; color: var(--muted); }
.sim-log { display: flex; flex-direction: column; gap: 6px; min-height: 150px; font: 12px/1.5 var(--mono); }
.sim-log li { display: flex; gap: 8px; color: var(--muted); }
.sim-log li b { font-weight: 500; }
.sim-log li.ok b { color: var(--ok); } .sim-log li.bad b { color: var(--bad); }
.sim-report { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r); border: 1px solid rgb(var(--bad-rgb) / .45); background: rgb(var(--bad-rgb) / .08); font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.sim-report.show { opacity: 1; transform: none; }
.sim-report b { color: #FECDD3; font: 600 12.5px var(--mono); }
.sim-report span { color: var(--muted); font-family: var(--mono); }
.sim-report .fix { color: var(--fg); font-family: var(--font); margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 14px 16px 16px; border-radius: var(--r); border: 1px solid var(--border); font-size: 14px; color: var(--muted); overflow: hidden; transition: color .3s, border-color .3s; }
.steps li span { display: block; font: 600 12px var(--mono); color: var(--muted); margin-bottom: 4px; }
.steps li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.steps li.is-on { color: var(--fg); border-color: var(--border-strong); }
.steps li.is-on span { color: var(--accent); }

/* ---------- before / after ---------- */
.ba { border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.ba-head, .ba-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px; padding: 18px 24px; }
.ba-head { border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.ba-head span:last-child { color: var(--accent); }
.ba-row + .ba-row { border-top: 1px solid var(--border); }
.ba-old { color: var(--muted); font-size: 15px; }
.ba-txt { background: linear-gradient(var(--bad), var(--bad)) 0 55% / 100% 1.5px no-repeat; }
.ba-arrow { text-align: center; color: var(--accent); }
.ba-new { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ba-check { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
@media (max-width: 719px) { .ba-head { display: none; } .ba-row { grid-template-columns: 1fr; gap: 6px; } .ba-arrow { display: none; } }

/* ---------- queryfence ---------- */
.qf { display: grid; gap: 16px; }
@media (min-width: 960px) { .qf { grid-template-columns: 1.15fr 1fr; } }
.qf-card, .qf-stats { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); }
.qf-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qf-top img { border-radius: 12px; }
.qf-top b { display: block; font: 600 22px var(--display); }
.qf-top span { font-size: 13px; color: var(--muted); }
.badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgb(var(--accent-rgb) / .12); color: var(--accent) !important; font-size: 12px !important; font-weight: 600; }
.qf-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.qf-list li { display: flex; gap: 12px; font-size: 15px; color: #C6D3E3; }
.qf-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qf-stats { background: radial-gradient(500px 300px at 100% 0%, rgba(43, 114, 194, .28), transparent 70%), var(--surface); }
.qf-stats-h { font-size: 15px; color: var(--muted); max-width: 320px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin: 28px 0; }
.num { display: block; font: 600 clamp(40px, 5vw, 56px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span:not(.num) { font-size: 13px; color: var(--muted); }
.link { font-size: 14px; font-weight: 500; color: var(--accent); }
.link:hover { text-decoration: underline; }

/* ---------- principles ---------- */
.pr { display: grid; gap: 16px; }
@media (min-width: 640px) { .pr { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pr { grid-template-columns: repeat(4, 1fr); } }
.pr-card { position: relative; padding: 28px 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); transition: border-color .3s, transform .3s var(--ease); }
.pr-card:hover { border-color: rgb(var(--accent-rgb) / .4); transform: translateY(-3px); }
.pr-n { font: 600 13px var(--mono); color: var(--accent); }
.pr-card h3 { margin-top: 18px; font: 600 20px var(--display); }
.pr-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- end CTA + footer ---------- */
.end { padding-bottom: clamp(96px, 12vw, 150px); }
.end-in { text-align: center; }
.end-in .sec-title { margin-top: 0; }
.ftr { border-top: 1px solid var(--border); padding-top: 56px; overflow: hidden; }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.ftr-brand p { margin-top: 16px; font-size: 14px; color: var(--muted); }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.ftr h4 { font-size: 13px; color: var(--fg); margin-bottom: 12px; }
.ftr-cols a { display: block; font-size: 14px; color: var(--muted); padding: 6px 0; transition: color .2s; }
.ftr-cols a:hover { color: var(--fg); }
.mark { margin-top: 48px; font: 600 clamp(64px, 19vw, 260px)/.82 var(--display); letter-spacing: -.05em; text-align: center; background: var(--mark-grad); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.mark .ch { background: inherit; -webkit-background-clip: text; background-clip: text; }
.ftr-bot { display: flex; justify-content: space-between; padding-block: 20px 28px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }


/* ===== light theme (html.light). Code-like surfaces keep .force-dark (M33) ===== */
.light {
  color-scheme: light;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #EEF3F9;
  --fg: #0B1D33;
  --muted: #52637A;
  --border: rgba(11, 29, 51, .10);
  --border-strong: rgba(11, 29, 51, .16);
  --border-hover: rgba(11, 29, 51, .30);
  --primary: #0B1D33;
  --primary-hover: #213A5C;
  --on-primary: #FFFFFF;
  --accent: #2B72C2;
  --accent-rgb: 43 114 194;
  --ok: #059669;
  --bad: #E11D48;
  --bad-rgb: 225 29 72;
  --warn: #B45309;
  --hdr-bg: rgba(246, 248, 251, .82);
  --co-bg: rgba(255, 255, 255, .96);
  --soft: rgba(11, 29, 51, .06);
  --aurora-op: .32;
  --title-grad: linear-gradient(180deg, #0B1D33 40%, #3D5778);
  --grad: linear-gradient(100deg, #2B72C2, #1D9BD8);
  --mark-grad: linear-gradient(180deg, rgba(11, 29, 51, .12), rgba(11, 29, 51, 0) 85%);
}
.force-dark { color: var(--fg); }
.light .co-in { box-shadow: 0 12px 28px -12px rgba(11, 29, 51, .25); }
.light body::after { opacity: .025; }
.on-light { display: none; }
.light .on-light { display: block; }
.light .on-dark { display: none; }
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ===== header tools: language + theme ===== */
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); }
.seg button { min-width: 36px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 600 12px var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--soft); color: var(--fg); }
.theme { position: relative; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--border-hover); }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn .ic-sun { display: none; }
.light .icon-btn .ic-sun { display: block; }
.light .icon-btn .ic-moon { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px; padding: 4px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.97); transform-origin: top right; transition: opacity .15s, transform .15s var(--ease), visibility 0s .15s; }
.light .menu { box-shadow: 0 16px 40px -12px rgba(11, 29, 51, .22); }
.menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s var(--ease); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: 500 14px var(--font); cursor: pointer; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: var(--soft); outline: none; }
.menu button span { flex: 1; }
.menu .ck { visibility: hidden; color: var(--accent); }
.menu button[aria-checked="true"] .ck { visibility: visible; }
.gh-btn span { display: none; }
@media (min-width: 520px) { .gh-btn span { display: inline; } }
.steps li b { font-weight: 400; }

/* reduced motion: everything static */
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
@media (max-width: 719px) {
  .sim-stage { overflow-x: auto; }
  .sim-stage .sim-svg { min-width: 620px; }
  .term { min-height: 0; font-size: 12px; padding: 16px; }
}

/* logo strip */
.mq-h { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.mq { -webkit-mask-image: none; mask-image: none; }
.mq-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { gap: 48px; padding-right: 48px; align-items: center; }
.lg { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--muted); font: 600 17px var(--display); letter-spacing: -.01em; white-space: nowrap; transition: color .25s; }
.lg svg { width: 24px; height: 24px; fill: currentColor; }
.lg.txt { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.lg:hover { color: var(--fg); }
html.no-motion .mq-track { flex-wrap: wrap; justify-content: center; gap: 20px 40px; padding: 0 16px; }
.mq-track span.lg { padding: 0; border: 0; border-radius: 0; background: none; }
.qf-card { display: flex; flex-direction: column; gap: 24px; }
.qf-card .cta { margin-top: auto; }
.dep { margin: 0; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--border); background: #050A12; font: 13px/1.7 var(--mono); color: #C6D3E3; overflow-x: auto; }
.dep .tg { color: #7489A3; } .dep .v { color: var(--accent); }
.light .pill-tag, .light .badge { color: #1D5DA3 !important; }

/* ===== content sections ===== */
.tg { color: #7489A3; } .v { color: var(--accent); } .k2 { color: #8FDCFB; }
.lead code { font-size: .85em; }
.sec-foot { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.nb { white-space: nowrap; }
.mini { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border); background: #050A12; font: 12.5px/1.7 var(--mono); color: #C6D3E3; overflow-x: auto; white-space: pre; }
.d-del { color: var(--bad); } .d-add { color: var(--ok); }

/* problem */
.pb { display: grid; gap: 16px; }
@media (min-width: 900px) { .pb { grid-template-columns: repeat(3, 1fr); } }
.pb-card, .rule, .cp-card { padding: 26px 24px; border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); display: flex; flex-direction: column; }
.pb-n { font: 600 13px var(--mono); color: var(--accent); }
.pb-card h3, .rule h3, .cp-card h3 { margin-top: 12px; font: 600 20px/1.25 var(--display); letter-spacing: -.01em; }
.pb-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.pb-card .mini { margin-top: auto; padding-top: 14px; }
.pb-card p + .mini { margin-top: 18px; }

/* how it works */
.how { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 960px) { .how { grid-template-columns: 380px 1fr; } }
.how-list { display: flex; flex-direction: column; gap: 8px; }
.how-list button { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: transparent; color: var(--fg); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s; }
.how-list button:hover { background: var(--soft); }
.how-list button[aria-selected="true"] { background: var(--surface); border-color: var(--border-strong); }
.how-list b { display: block; font: 600 16px var(--display); }
.how-list button span span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.how-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); font: 600 13px var(--mono); color: var(--muted); }
.how-list button[aria-selected="true"] .how-n { background: rgb(var(--accent-rgb) / .15); color: var(--accent); }
.how-code { padding: 8px; border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); min-width: 0; }
.how-code pre { margin: 0; min-height: 300px; padding: 22px 24px; border-radius: 10px; border: 1px solid var(--border); background: #050A12; font: 13.5px/1.75 var(--mono); color: #C6D3E3; overflow-x: auto; }

/* rules */
.rules { display: grid; gap: 16px; }
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.code-tag { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: var(--soft); font: 500 11.5px var(--mono); color: var(--muted); }
.rule .mini { margin-top: auto; }
.rule h3 { margin-bottom: 16px; }

/* compatibility */
.compat { display: grid; gap: 16px; }
@media (min-width: 900px) { .compat { grid-template-columns: 1fr 1fr; } }
.cp-card h3 { margin: 0 0 12px; }
.cp-list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; }
.cp-list b { font-weight: 600; }
.cp-list span { color: var(--muted); }
@media (max-width: 520px) { .cp-list li { grid-template-columns: 1fr; gap: 2px; } }

/* compare */
.cmp { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); }
.cmp table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.cmp thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.cmp tbody th { font-weight: 600; white-space: nowrap; }
.cmp td { color: var(--muted); }
.cmp tr.me { background: rgb(var(--accent-rgb) / .07); }
.cmp tr.me th { color: var(--accent); }
.cmp tr.me td { color: var(--fg); }

/* scope */
.scope { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 560px) { .scope { grid-template-columns: 1.3fr 1fr; } }
.scope h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ok-list li, .no-list li { position: relative; padding: 5px 0 5px 24px; font-size: 14.5px; }
.ok-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.no-list li { color: var(--muted); }
.no-list li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 10px; height: 2px; border-radius: 2px; background: var(--muted); }

/* FAQ accordion (components/accordion.md) */
.faq-wrap { max-width: 860px; }
.acc { border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc h3 { margin: 0; }
.acc button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 0; background: none; color: var(--fg); font: 500 16px var(--font); text-align: left; cursor: pointer; }
.acc button .ic { color: var(--muted); transition: rotate .2s; }
.acc button:hover .ic { color: var(--fg); }
.acc button[aria-expanded="true"] .ic { rotate: 180deg; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-out; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 22px 20px; font-size: 15px; color: var(--muted); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }

/* ===== de-template pass: remove the stock "AI landing" effects ===== */
body::after { display: none; }                     /* film grain */
.hero-bg, .hero::before { display: none; }         /* aurora blobs, grid, cursor glow */
.hero-title, .hero-title .w { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--fg); }
.hero-title .grad, .hero-title .w.grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); }
.shot::before { display: none; }                   /* light running around the frame */
.shine::after { display: none; }
.eyebrow i { display: none; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .02em; }
.callouts { display: none !important; }            /* floating cards */
.num { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--fg); }
.mark { display: none; }                           /* giant faded wordmark */
.pill { background: transparent; }
.co-in { animation: none; }
