:root {
  --bg: #0a1013;
  --bg-2: #0e161a;
  --surface: #131d22;
  --surface-2: #18252b;
  --line: #26363e;
  --text: #e8eff0;
  --muted: #a3b4b9;
  --accent: #55e0b2;
  --accent-ink: #06231a;
  --amber: #f3bb54;
  --danger: #ff7a6b;
  --radius: 10px;
  --wrap: 1140px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 620; }
h3 { font-size: 1.2rem; font-weight: 620; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8af0cd; }
strong { font-weight: 620; }
code { font-family: var(--mono); font-size: .9em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.lead { font-size: 1.22rem; color: #cdd9dc; max-width: 62ch; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--accent-ink); }

.eyebrow {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 16, 19, .92);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 650; font-size: 1.16rem;
}
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.nav .btn, .nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--accent-ink); box-shadow: none; }
.nav-toggle {
  display: none; margin-left: auto; padding: 8px 12px;
  background: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: .92rem; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--accent); border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 620; font-size: .98rem;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #80eecb; border-color: #80eecb; color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: #41565f; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.nav .btn { min-height: 40px; padding: 7px 15px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero { padding: clamp(46px, 7vw, 92px) 0 clamp(52px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.radar-box { position: relative; aspect-ratio: 1; max-width: 430px; width: 100%; justify-self: end; }
.radar-box canvas { display: block; width: 100%; height: 100%; }

.page-head { padding: clamp(42px, 6vw, 76px) 0 clamp(34px, 5vw, 56px); border-bottom: 1px solid var(--line); background: var(--bg-2); }

section.block { padding: clamp(50px, 7vw, 86px) 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card > :last-child { margin-bottom: 0; }
.card p { color: #c0ced2; }
.card.path { display: flex; flex-direction: column; align-items: flex-start; }
.card.path .btn { margin-top: auto; }
.card.path p { flex: 1; }
.tag { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; }

.checks, .crosses { list-style: none; padding: 0; }
.checks li, .crosses li { position: relative; padding-left: 26px; }
.checks li::before, .crosses li::before { position: absolute; left: 0; font-family: var(--mono); font-weight: 700; }
.checks li::before { content: "+"; color: var(--accent); }
.crosses li::before { content: "\2212"; color: var(--amber); }

.notice {
  border: 1px solid #5d4c28; border-left: 4px solid var(--amber);
  background: #1b1810; border-radius: var(--radius); padding: 20px 22px;
}
.notice > :last-child { margin-bottom: 0; }
.notice h2, .notice h3 { color: var(--amber); font-size: 1.2rem; letter-spacing: 0; }
.stack > * + * { margin-top: 18px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  margin: 0; padding: 0 0 30px 62px;
  border-left: 1px solid var(--line); margin-left: 20px; padding-left: 40px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: -20px; top: -3px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-family: var(--mono); font-weight: 600;
}
.steps h3 { margin-bottom: .3em; padding-top: 6px; }

.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); color: var(--text); }
.compare tbody th { color: var(--muted); font-weight: 500; width: 26%; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.chain { display: grid; gap: 10px; margin-top: 18px; }
.chain-row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 190px 112px; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.chain-row.broken { border-color: var(--danger); }
.chain-seq { font-family: var(--mono); color: var(--muted); font-size: .86rem; }
.chain-row input {
  width: 100%; min-width: 0; padding: 7px 9px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: .94rem;
}
.chain-hash { font-family: var(--mono); font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.chain-state { font-family: var(--mono); font-size: .8rem; color: var(--accent); text-align: right; }
.chain-row.broken .chain-state { color: var(--danger); }
.chain-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; }
details.faq[open] summary { color: var(--accent); }
details.faq > div { padding: 0 18px 16px; color: #c6d3d6; }
details.faq > div > :last-child { margin-bottom: 0; }
.faq-group { margin-top: 34px; }
.faq-group h2 { font-size: 1.35rem; }

.field { margin-bottom: 18px; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 600; font-size: .96rem; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: .86rem; }
fieldset.field { border: 0; margin-inline: 0; padding: 0; }
input[type="text"], input[type="search"], select, textarea {
  width: 100%; padding: 11px 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid #3a4e57; border-radius: 6px; font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radio-row label, .field label.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; margin: 0; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 4px 0 0; flex: none; }
.form-msg { margin-top: 14px; }
.form-msg[hidden] { display: none; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--accent); }

.ph-todo {
  background: #3b2d0c; color: var(--amber);
  border: 1px dashed var(--amber); border-radius: 3px;
  padding: 0 4px; font-family: var(--mono); font-size: .88em;
}

.cta-band { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta-row h2 { font-size: 1.65rem; margin-bottom: .2em; }
.cta-row p { margin: 0; color: var(--muted); }

.site-footer { padding: 44px 0 30px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.site-footer h3 { font-size: .95rem; color: var(--text); margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.legal-line { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; }

.prose h2 { font-size: 1.4rem; margin-top: 1.7em; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .btn { margin-top: 8px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 34px; }
  .radar-box { justify-self: center; max-width: 330px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .g2, .g3, .footer-grid { grid-template-columns: 1fr; }
  .lead { font-size: 1.1rem; }
  .card { padding: 20px; }
  .steps > li { padding-left: 34px; }
  .chain-row { grid-template-columns: 34px minmax(0, 1fr); }
  .chain-hash, .chain-state { grid-column: 2; text-align: left; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .cta-band, .site-footer, .radar-box { display: none; }
  body { background: #fff; color: #000; }
}
