:root {
  --orange: #F7931A;
  --orange-dark: #E2800C;
  --title: #2C2C2C;
  --text: #646464;
  --muted: #8A8A8A;
  --rule: #E6E6E6;
  --band: #F7F7F7;
  --font: "Ubuntu", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  /* legacy names used by the technical page */
  --ink: var(--title); --ink-2: var(--text); --paper-2: var(--band); --amber: var(--orange); --verify: var(--orange);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; font-weight: 400; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--title); }
p { margin: 0 0 16px; max-width: var(--measure); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* header (Bitcoin-style: logo left, flat menu right) */
.bar { border-bottom: 1px solid var(--rule); background: #fff; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #4D4D4D; font-size: 25px; font-weight: 400; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--text); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); text-decoration: none; }

/* hero */
.hero { padding: 64px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 300; line-height: 1.25; color: #4D4D4D; max-width: 22em; margin: 0 auto 18px; }
.hero .lede { font-size: 19px; color: var(--text); max-width: 46em; margin: 0 auto 34px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; align-items: center; margin-bottom: 44px; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 4px; font-size: 17px; font-weight: 500; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.btn-ghost { color: var(--orange-dark); border: 1px solid var(--orange); }
.btn-ghost:hover { background: #FFF6EB; text-decoration: none; }
.hero .status { margin-top: 36px; }
.numbers, .road { margin-top: 36px; }
.status { display: inline-block; font-size: 14px; color: var(--muted); background: var(--band); border: 1px solid var(--rule); border-radius: 4px; padding: 8px 14px; margin: 0 auto; max-width: none; }

/* matrix illustration */
.matrix-fig { margin: 0 auto; max-width: 420px; }
.matrix { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; aspect-ratio: 1 / 1; width: 100%; }
.matrix span { background: #F1F1F1; border-radius: 2px; transition: background-color .25s linear; }
.matrix span.on { background: #DCDCDC; }
.matrix span.tile { background: var(--orange); }
.matrix span.win { background: #4D4D4D; }
.matrix-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 8px; }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.lg-on { background: #DCDCDC; } .lg-tile { background: var(--orange); } .lg-win { background: #4D4D4D; }

/* three audience columns */
.audiences { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--band); padding: 52px 0; }
.audiences .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.audiences svg { width: 64px; height: 64px; margin-bottom: 12px; }
.audiences h2 { font-size: 22px; font-weight: 400; margin: 0 0 8px; }
.audiences p { font-size: 15.5px; margin: 0 auto 10px; max-width: 30ch; }

/* sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.block h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 300; line-height: 1.25; margin: 0 0 14px; text-align: center; }
.block .intro { text-align: center; margin: 0 auto 44px; max-width: 46em; font-size: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two h2, .two .intro { text-align: left; margin-left: 0; }
h3 { font-size: 19px; font-weight: 500; margin: 0 0 8px; }

/* features with icons */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.features div { text-align: center; }
.features svg { width: 56px; height: 56px; margin-bottom: 10px; }
.features p { font-size: 15.5px; margin: 0 auto; max-width: 32ch; }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare th { color: var(--title); font-weight: 500; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--orange); }
.compare td.diff { color: var(--title); font-weight: 500; }
.compare td.diff::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 9px; vertical-align: 2px; }
.table-scroll { overflow-x: auto; }

/* additions */
.adds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.adds article { border-left: 3px solid var(--orange); padding-left: 20px; }
.adds p { margin: 0; font-size: 16px; }

/* steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 500; margin-bottom: 12px; }
.steps li p { font-size: 16px; margin: 0; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.numbers b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 300; color: var(--title); line-height: 1.15; margin-bottom: 6px; }
.numbers span { font-size: 14.5px; display: block; line-height: 1.45; }
.footnote { font-size: 14px; color: var(--muted); text-align: center; margin: 28px auto 0; }

/* lists */
.fit { list-style: none; padding: 0; margin: 0 0 24px; }
.fit li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 16px; }
.fit li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 2px; background: var(--muted); }
.fit.yes li::before { background: var(--orange); width: 9px; height: 9px; border-radius: 50%; top: 16px; }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.road h3 { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.done { background: #3C9A5F; }
.dot.now { background: var(--orange); }
.dot.next { border: 2px solid var(--muted); }
.road ul { margin: 0; padding: 0; list-style: none; }
.road li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }

/* faq */
.faq .wrap > details { border-bottom: 1px solid var(--rule); padding: 16px 0; max-width: 820px; margin: 0 auto; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--title); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; font-size: 16px; }

/* footer (Bitcoin-style link columns on light gray) */
footer { background: var(--band); border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
footer h4 { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
footer a { color: var(--text); }
footer a:hover { color: var(--orange-dark); }
.footer-note { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 20px; color: var(--muted); font-size: 13.5px; max-width: none; }

/* technical page */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 56px 24px 80px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.toc a { display: block; padding: 6px 0 6px 12px; color: var(--text); border-left: 2px solid transparent; }
.toc a:hover { color: var(--orange-dark); border-left-color: var(--orange); text-decoration: none; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.2; font-weight: 300; margin: 0 0 18px; }
.doc h2 { font-size: 27px; font-weight: 300; margin: 52px 0 14px; padding-top: 16px; border-top: 1px solid var(--rule); text-align: left; }
.doc h3 { margin-top: 26px; }
.eq { background: var(--band); border-left: 3px solid var(--orange); padding: 14px 18px; margin: 16px 0 20px; font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif; font-size: 19px; color: var(--title); overflow-x: auto; max-width: var(--measure); }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--band); padding: 1px 5px; border-radius: 3px; }
.doc .compare { max-width: 820px; }
.note { border-left: 3px solid var(--orange); padding: 4px 0 4px 16px; max-width: var(--measure); }
.notfound { padding: 120px 24px; text-align: center; }
.notfound h1 { font-size: 44px; font-weight: 300; margin: 0 0 16px; }
.notfound p { margin: 0 auto; }

@media (max-width: 960px) {
  .two { grid-template-columns: 1fr; gap: 32px; }
  .steps, .road, .features, .audiences .wrap { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 44px 0 52px; }
  section.block { padding: 54px 0; }
  .adds, .steps, .road, .numbers, .features, .audiences .wrap { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .matrix span { transition: none; } }
