:root {
  --bg: #07090d;
  --bg-2: #0c1016;
  --panel: #10151d;
  --line: #1f2733;
  --line-2: #2b3645;
  --text: #e9eef5;
  --muted: #93a0b2;
  --dim: #5d6a7c;
  --ok: #5dffb0;
  --ok-ink: #04130c;
  --amber: #ffc46b;
  --violet: #9d8cff;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
code, pre { font-family: var(--mono); }
p code, li code, .fine code {
  font-size: .86em; padding: .12em .4em; border-radius: 6px;
  background: #151c26; border: 1px solid var(--line); color: #cfe9dc;
}
.wrapany { overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
::selection { background: var(--ok); color: var(--ok-ink); }
:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; border-radius: 6px; }

/* ── backdrop ── */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bd-layer { position: absolute; inset: -40% -10%; will-change: transform; }
.bd-glow {
  background:
    radial-gradient(48vw 38vw at 78% 18%, rgba(93,255,176,.13), transparent 62%),
    radial-gradient(42vw 34vw at 12% 46%, rgba(157,140,255,.12), transparent 64%),
    radial-gradient(50vw 36vw at 70% 82%, rgba(255,196,107,.07), transparent 62%);
}
.bd-dots-far {
  background-image: radial-gradient(rgba(233,238,245,.5) 1px, transparent 1.4px);
  background-size: 140px 140px; opacity: .22;
}
.bd-dots-near {
  background-image: radial-gradient(rgba(93,255,176,.75) 1.2px, transparent 1.8px);
  background-size: 310px 260px; background-position: 60px 90px; opacity: .2;
}
.bd-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .16;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 72%);
}

/* ── nav ── */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px)); z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 12px 10px 18px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.stuck { background: rgba(10,13,18,.72); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: none; }
.brand-mark svg { display: block; }
.brand-word { display: flex; flex-direction: column; font-family: "Space Grotesk", var(--display); line-height: .92; font-weight: 700; font-size: 15.5px; letter-spacing: .01em; color: var(--text); }
.brand-word b { color: var(--ok); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 7px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { padding: 8px 16px !important; font-size: 14px !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--display); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ok); color: var(--ok-ink); box-shadow: 0 8px 30px -10px rgba(93,255,176,.6); }
.btn-primary:hover { background: #8affc6; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); }

/* ── hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: 48px;
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0 90px;
}
.hero-inner > *, .hero-term { will-change: transform; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.eyebrow code { color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(93,255,176,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(93,255,176,0); } 100% { box-shadow: 0 0 0 0 rgba(93,255,176,0); } }
h1 { margin: 0 0 24px; font-size: clamp(44px, 6.6vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
h1 .line { display: block; }
h1 em { font-style: normal; color: var(--ok); }
h1 .dim { color: var(--dim); }
.lede { margin: 0 0 32px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.5vw, 19.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }

.shards { position: absolute; inset: -6% -14vw; pointer-events: none; z-index: -1; }
.shard {
  position: absolute; font-family: var(--mono); white-space: nowrap; color: var(--ok);
  will-change: transform; user-select: none;
}

.term {
  border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(12,16,22,.86);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar span { margin-left: 8px; color: var(--dim); font: 12.5px var(--mono); }
.term pre { margin: 0; padding: 18px; font-size: 12.6px; line-height: 1.75; color: #c8d3e0; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: var(--violet); }
.term .c { color: var(--dim); }
.term .ok { color: var(--ok); font-weight: 600; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ok); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── converge ── */
.converge { height: 230vh; position: relative; }
.converge-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 0 20px; text-align: center;
}
.hash-row { display: flex; flex-direction: column; gap: 8px; align-items: center; will-change: transform, opacity; max-width: 100%; }
.hash-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hash {
  font-size: clamp(12px, 1.72vw, 23px); letter-spacing: .02em; padding: 14px 20px;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(12,16,22,.8);
  color: var(--muted); overflow-wrap: anywhere; transition: color .4s, border-color .4s, box-shadow .4s;
}
.hash-eq { font: 600 34px var(--mono); color: var(--dim); transition: color .4s, transform .4s; }
.converge.done .hash { color: var(--ok); border-color: rgba(93,255,176,.55); box-shadow: 0 0 44px -12px rgba(93,255,176,.55); }
.converge.done .hash-eq { color: var(--ok); transform: scale(1.2); }
.converge-verdict {
  margin: 14px 0 0; font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em;
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s, transform .5s;
}
.converge-verdict span { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-left: .2em; border-radius: 50%; background: var(--ok); color: var(--ok-ink); font-size: .7em; vertical-align: .1em; }
.converge.done .converge-verdict { opacity: 1; transform: none; }
.converge-note { max-width: 40em; margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* ── sections ── */
.band { position: relative; padding: clamp(90px, 13vw, 170px) 0; overflow: clip; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.wrap.narrow { width: min(760px, calc(100% - 40px)); }
.center { text-align: center; }
.kicker { margin: 0 0 14px; font: 600 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ok); }
h2 { margin: 0 0 22px; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; max-width: 17em; text-wrap: balance; }
.center h2 { margin-inline: auto; }
h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.015em; }
.sub { margin: 0 0 40px; max-width: 44em; color: var(--muted); font-size: 18px; }
.fine { color: var(--dim); font-size: 14.5px; margin: 12px 0 0; }
.fine.center { margin-top: 26px; }
.ghost-num {
  position: absolute; right: -2vw; top: 8%; z-index: -1;
  font: 800 clamp(180px, 34vw, 460px)/.8 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(233,238,245,.075); will-change: transform; user-select: none;
}

.cards { display: grid; gap: 18px; margin-top: 44px; }
.cards.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards.extra { margin-top: 56px; }
.card {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(18,24,33,.9), rgba(12,16,22,.9));
  transition: border-color .25s, transform .25s;
  min-width: 0;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card p + .code { margin-top: 16px; }
.card.warn { border-top: 2px solid var(--amber); }
.card .fix { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: #cfe9dc; font-size: 14.5px; }
.tag { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(93,255,176,.12); color: var(--ok); font: 600 11.5px var(--mono); vertical-align: 3px; }
.card.has-fig { padding-top: 0; overflow: hidden; }
.card-fig { margin: 0 -26px 22px; position: relative; border-bottom: 1px solid var(--line); background: #060809; }
.card-fig img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center 42%; filter: grayscale(.15) contrast(1.05); }
.card-fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,21,29,.85)); pointer-events: none; }
@media (max-width: 640px) { .card-fig { margin: 0 -22px 22px; } }
.tag.idle { background: rgba(255,255,255,.06); color: var(--muted); }
.tag.no { background: rgba(255,196,107,.12); color: var(--amber); }
.hash-sm { display: block; margin-top: 14px; color: var(--ok); font-size: 11.5px; overflow-wrap: anywhere; opacity: .85; }

.callout { margin: 44px 0 0; padding: 22px 26px; border-left: 3px solid var(--amber); border-radius: 0 var(--r) var(--r) 0; background: rgba(255,196,107,.06); color: #e6dcc9; font-size: 17px; max-width: 52em; }
.callout em { color: var(--amber); font-style: normal; font-weight: 600; }

.pipeline { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, var(--ok), var(--violet) 60%, transparent); opacity: .5; }
.pipeline li { padding: 0 22px 0 0; position: relative; }
.pip-n { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ok); color: var(--ok); font: 600 14px var(--mono); position: relative; }
.pipeline p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pipeline a, .credit a, .surfaces a, .foot a { text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pipeline a:hover, .credit a:hover, .surfaces a:hover, .foot a:hover { color: var(--ok); }
.credit { margin: 48px 0 0; color: var(--dim); font-size: 15px; }

/* code blocks */
.code { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #090c11; overflow: hidden; }
.code + .code { margin-top: 12px; }
.code[data-file]::before { content: attr(data-file); display: block; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font: 12px var(--mono); }
.code pre { margin: 0; padding: 16px 54px 16px 16px; font-size: 13px; line-height: 1.7; color: #c8d3e0; overflow-x: auto; white-space: pre; }
.prog .code pre, .code.big pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.copy {
  position: absolute; top: 8px; right: 8px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #121821; color: var(--muted);
  font: 600 11.5px var(--mono); cursor: pointer; transition: color .2s, border-color .2s;
}
.code[data-file] .copy { top: 42px; }
.copy:hover { color: var(--text); border-color: var(--muted); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.code.big pre { font-size: clamp(15px, 2.2vw, 21px); padding: 24px 70px 24px 24px; color: var(--ok); text-align: left; }
.code.big { margin: 32px 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 48px; }
.step { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(18,24,33,.9), rgba(12,16,22,.9)); }
.step header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.step header span { font: 600 13px var(--mono); color: var(--ok); }
.step header h3 { margin: 0; }
.step > p:not(.fine) { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }

/* checker */
.checker { display: flex; gap: 10px; padding: 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12,16,22,.9); }
.checker:focus-within { border-color: var(--ok); }
.checker input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: none; color: var(--text); font: 14.5px var(--mono); outline: none; }
.checker input::placeholder { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: 14px var(--display); cursor: pointer; transition: color .2s, border-color .2s; }
.chips button:hover { color: var(--ok); border-color: var(--ok); }
.result { margin-top: 26px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(12,16,22,.92); }
.result.ok { border-color: rgba(93,255,176,.55); }
.result.no { border-color: rgba(255,196,107,.55); }
.result h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.result h3 i { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); }
.result.ok h3 i { background: var(--ok); }
.result.no h3 i { background: var(--amber); }
.result dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 18px; margin: 0; font-size: 14px; }
.result dt { color: var(--dim); }
.result dd { margin: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.result p { margin: 0; color: var(--muted); font-size: 15px; }
.result .links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.result a:hover { color: var(--ok); }

.mini-h { margin: 70px 0 16px; font-size: 22px; }
.surfaces { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.surfaces a { display: block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; transition: border-color .2s, color .2s; }
.surfaces a:hover { border-color: var(--ok); }

.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 40px; align-items: start; }
.mlist { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.mlist li { counter-increment: m; position: relative; padding: 0 0 20px 46px; color: var(--muted); font-size: 16px; }
.mlist li::before { content: counter(m); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ok); font: 600 12.5px var(--mono); }
.mlist li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--line); }
.mlist b { color: var(--text); }

/* cta */
.cta { position: relative; padding: clamp(110px, 16vw, 200px) 0; overflow: clip; }
.cta h2 { font-size: clamp(40px, 6.4vw, 84px); }
.cta-ring { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; margin: calc(min(900px,120vw) / -2) 0 0 calc(min(900px,120vw) / -2); border-radius: 50%; border: 1px solid rgba(93,255,176,.16); will-change: transform; z-index: -1; }
.cta-ring.r2 { width: min(560px, 80vw); margin: calc(min(560px,80vw) / -2) 0 0 calc(min(560px,80vw) / -2); border-color: rgba(157,140,255,.22); background: radial-gradient(circle, rgba(93,255,176,.08), transparent 68%); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 60px 0 40px; background: rgba(7,9,13,.8); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--dim); font-size: 14.5px; max-width: 34em; }
.foot h4 { margin: 0 0 14px; font: 600 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-grid div > a:not(.brand) { display: block; margin-bottom: 9px; color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.legal { margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--line); max-width: none !important; font-size: 13.5px !important; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 120px; gap: 36px; }
  .cards.four, .pipeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pipeline { gap: 34px 0; }
  .pipeline::before { display: none; }
  .cards.three, .steps, .split { grid-template-columns: minmax(0,1fr); }
  .foot-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow, .hero { width: calc(100% - 32px); }
  .cards.four, .cards.two, .pipeline { grid-template-columns: minmax(0,1fr); }
  .card, .step { padding: 22px; }
  .checker { border-radius: 18px; flex-direction: column; padding: 10px; }
  .checker input { padding: 12px 8px; }
  .scroll-cue { display: none; }
  .hash { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dot, .scroll-cue span { animation: none; }
  .converge { height: auto; padding: 90px 0; }
  .converge-sticky { position: static; height: auto; }
}
