/* Lightning Stream: the site's one stylesheet.
   Dark and electric: near-black ground, lightning-yellow and white-blue light.
   No inline styles anywhere (the CSP forbids them): every element is styled from here by class. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
/* A fallback sized like Inter, so the swap does not move the page. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  ascent-override: 96.875%;
  descent-override: 24.15%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #0a0b0f;
  --panel: #0e1015;
  --panel-2: #13161d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f5f5f2;
  --ink-2: #d9dbe0;
  --muted: #a4a8b1;
  --faint: #80858f;

  --volt: #ffd60a;          /* lightning yellow: money, the brand */
  --volt-2: #ffe766;
  --volt-dim: #b8960a;
  --arc: #9fd8ff;           /* white-blue: data, links */
  --arc-2: #5aaeff;

  /* one electric palette, one accent per kind */
  --k-buyer: #e9f2ff;
  --k-shop: #ffd60a;
  --k-app: #ffb648;
  --k-files: #fff09a;
  --k-ai: #b9a4ff;
  --k-hash: #ff8f45;
  --k-vpn: #5fe8d2;
  --k-relay: #7fb9ff;
  --k-node: #ffffff;
  --k-nostr: #c58cff;

  --good: #6be3a4;
  --warn: #ffb648;
  --bad: #ff6b6b;

  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --r: 14px;
  --r-lg: 22px;
  --gutter: 20px;
  --wrap: 1200px;
  --head-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--volt); text-decoration: none; }
a:hover { color: var(--volt-2); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 214, 10, 0.32); color: #fff; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.36em; color: var(--ink-2); overflow-wrap: anywhere; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--volt); color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; color: #000; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: rgba(5, 5, 7, 0.72);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-head { background: rgba(5, 5, 7, 0.55); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
}
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; font-size: 16px; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; color: var(--ink-2); font-size: 14px; padding: 8px 11px; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav .nav-cta { margin-left: 8px; }
.nav a.btn-volt, .nav a.btn-volt:hover { color: #0a0900; background: var(--volt); padding: 9px 16px; }
.nav a.btn-volt:hover { background: var(--volt-2); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(255, 255, 255, 0.08); }
.menu-panel { position: absolute; left: 0; right: 0; top: var(--head-h); background: rgba(7, 8, 11, 0.97); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 22px; max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.menu-panel a { display: block; color: var(--ink); padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 16px; width: 100%; justify-content: center; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- buttons, tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.005em;
  padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.3s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-volt { background: var(--volt); border-color: var(--volt); color: #0a0900; box-shadow: 0 0 0 0 rgba(255, 214, 10, 0); }
.btn-volt:hover { background: var(--volt-2); border-color: var(--volt-2); color: #000; box-shadow: 0 0 32px -4px rgba(255, 214, 10, 0.55); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag-live { color: var(--good); border-color: rgba(107, 227, 164, 0.35); }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tag-coming { color: var(--muted); border-style: dashed; }
.tag-volt { color: var(--volt); border-color: rgba(255, 214, 10, 0.4); }
.tag-warn { color: var(--warn); border-color: rgba(255, 182, 72, 0.4); }

.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--volt); margin: 0 0 16px; }
.eyebrow-arc { color: var(--arc); }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; color: #fff; }
.display { font-size: clamp(2.7rem, 1.2rem + 6.4vw, 7.2rem); letter-spacing: -0.045em; line-height: 0.98; font-weight: 750; }
.h-xl { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.02; }
.h-lg { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.2rem); letter-spacing: -0.035em; }
.h-md { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; }
.lede { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.38rem); line-height: 1.5; color: var(--ink-2); font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.volt { color: var(--volt); }
.glow-text {
  background: linear-gradient(100deg, #fff 0%, #fff6c4 35%, var(--volt) 70%, #ffb648 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.arc-text {
  background: linear-gradient(100deg, #ffffff 0%, var(--arc) 60%, var(--arc-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- the canvas web ---------- */
.web-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.web-fixed { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; height: 100lvh; pointer-events: none; }
.web-static {
  /* shown with scripts off: a quiet glow in place of the web */
  background:
    radial-gradient(40% 40% at 70% 40%, rgba(255, 214, 10, 0.10), transparent 70%),
    radial-gradient(35% 45% at 25% 65%, rgba(95, 174, 255, 0.10), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, 0.03), transparent 70%);
}
.js .web-static { background: none; }

/* ---------- home ---------- */
.home main { position: relative; z-index: 1; }
.hero { position: relative; min-height: calc(100svh - var(--head-h)); display: flex; align-items: flex-end; padding: 0 0 clamp(48px, 9vh, 110px); }
.hero .wrap { position: relative; }
.hero-inner { max-width: 880px; }
.hero h1 { margin: 18px 0 22px; }
.hero .lede { max-width: 640px; margin: 0 0 30px; }
.hero-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--muted); font-size: 14px; }
.hero::after { /* scrim under the copy, so the web never fights the words */
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 7, 0.75) 60%, rgba(5, 5, 7, 0.92));
}
.scroll-cue { position: absolute; right: var(--gutter); bottom: 28px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); display: none; }
@media (min-width: 900px) { .scroll-cue { display: block; } }

.statement { position: relative; padding: clamp(110px, 18vh, 200px) 0; text-align: center; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, rgba(5, 5, 7, 0.92), rgba(5, 5, 7, 0.55) 70%, transparent); }
.statement p { margin: 0 auto; max-width: 15ch; }
.statement .sub { margin-top: 28px; max-width: 640px; }

/* the chapters: copy on one side, the web takes the rest of the screen */
.chapters { position: relative; }
.chapter { min-height: 100vh; display: flex; align-items: center; padding: 14vh 0; }
.chapter .card {
  position: relative; max-width: 500px; padding: 34px 32px 30px;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.88), rgba(8, 9, 12, 0.94));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.chapter .card::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--accent, var(--volt)), transparent); }
.chapter .kicker { display: flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent, var(--volt)); margin-bottom: 18px; }
.chapter .kicker .num { color: var(--faint); font-family: var(--mono); letter-spacing: 0; }
.chapter h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); letter-spacing: -0.035em; margin-bottom: 16px; }
.chapter p { color: var(--ink-2); margin: 0 0 14px; }
.chapter ul.facts { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.chapter ul.facts li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.chapter ul.facts li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--volt)); box-shadow: 0 0 12px var(--accent, var(--volt)); }
.chapter .btn-row { margin-top: 22px; }
.chapter[data-accent="app"] { --accent: var(--k-app); }
.chapter[data-accent="ai"] { --accent: var(--k-ai); }
.chapter[data-accent="hash"] { --accent: var(--k-hash); }
.chapter[data-accent="vpn"] { --accent: var(--k-vpn); }
.chapter[data-accent="relay"] { --accent: var(--k-relay); }
.chapter[data-accent="files"] { --accent: var(--k-files); }
@media (max-width: 899px) {
  .chapter { align-items: flex-end; min-height: 150vh; padding: 0 0 10vh; }
  .chapter .card { padding: 26px 22px 22px; background: linear-gradient(180deg, rgba(10, 11, 15, 0.9), rgba(8, 9, 12, 0.97)); }
}

/* solid sections that sit over the dimmed web */
.band { position: relative; padding: clamp(80px, 12vh, 140px) 0; }
.band-solid { background: linear-gradient(180deg, rgba(5, 5, 7, 0.0), rgba(5, 5, 7, 0.94) 14%, rgba(5, 5, 7, 0.97)); }
.band-head { max-width: 760px; margin-bottom: 48px; }
.band-head p { margin: 18px 0 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.tile {
  position: relative; display: block; padding: 26px 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line); color: var(--ink);
  transition: border-color 0.25s, transform 0.35s var(--ease), background 0.25s;
}
a.tile:hover { text-decoration: none; border-color: rgba(255, 214, 10, 0.4); transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 214, 10, 0.06), rgba(255, 255, 255, 0.015)); color: var(--ink); }
.tile h3 { font-size: 20px; letter-spacing: -0.02em; margin: 14px 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tile .go { display: inline-block; margin-top: 16px; color: var(--volt); font-weight: 600; font-size: 14.5px; }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.tile .ico svg { width: 22px; height: 22px; }
.tile-coming { border-style: dashed; background: transparent; }
.tile-coming h3 { color: var(--ink-2); }
.tile .tag { position: absolute; top: 22px; right: 20px; }

.stat-row { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg-2); padding: 28px 26px; }
.stat .big { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 720; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.stat .big small { font-size: 0.45em; font-weight: 600; letter-spacing: 0; color: var(--volt); margin-left: 4px; }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.platforms .tile { padding-top: 30px; }
.plat-mark { font: 700 13px/1 var(--mono); color: var(--volt); letter-spacing: 0.04em; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid rgba(255, 182, 72, 0.35); background: rgba(255, 182, 72, 0.06);
  border-radius: var(--r); padding: 16px 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55;
}
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--warn); }
.notice strong { color: #fff; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }

/* live counters on home */
.live-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.live-card { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); padding: 28px 26px; min-height: 230px; color: var(--ink); display: flex; flex-direction: column; }
a.live-card:hover { text-decoration: none; border-color: rgba(255, 214, 10, 0.4); color: var(--ink); }
.live-card .web-canvas { opacity: 0.85; }
.live-card > *:not(canvas) { position: relative; }
.live-card h3 { font-size: 24px; margin: 12px 0 8px; }
.live-card p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 30ch; }
.live-card .figs { margin-top: auto; padding-top: 20px; display: flex; gap: 22px; flex-wrap: wrap; }
.live-card .fig-n { font-size: 30px; font-weight: 720; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; min-width: 2ch; display: block; }
.live-card .fig-l { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 11vh, 120px) 0 clamp(40px, 7vh, 72px); border-bottom: 1px solid var(--line); }
.page-hero .web-canvas { opacity: 0.6; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 5, 7, 0.96) 0%, rgba(5, 5, 7, 0.82) 45%, rgba(5, 5, 7, 0.25) 100%); }
@media (max-width: 720px) { .page-hero::after { background: linear-gradient(180deg, rgba(5, 5, 7, 0.6), rgba(5, 5, 7, 0.92)); } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.8rem); letter-spacing: -0.042em; line-height: 1; margin-bottom: 20px; max-width: 16ch; }
.page-hero .lede { max-width: 680px; margin: 0; }
.page-hero .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--faint); font-size: 14px; }

.page-body { padding: clamp(48px, 8vh, 88px) 0 clamp(64px, 10vh, 120px); }
.with-toc { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) { .with-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: 14px; }
.toc-inner { position: sticky; top: calc(var(--head-h) + 28px); }
.toc h2 { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; color: var(--muted); border-left: 1px solid transparent; line-height: 1.35; }
.toc a:hover { color: #fff; text-decoration: none; border-left-color: var(--line-2); }
.toc a.on { color: var(--volt); border-left-color: var(--volt); }
@media (max-width: 1079px) {
  .toc-inner { position: static; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 12px; }
  .toc ol, .toc ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border: 0; }
  .toc a { padding-left: 0; border: 0; }
}

/* prose */
.prose { max-width: 46rem; color: var(--ink-2); font-size: 17px; line-height: 1.72; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.032em; margin-top: 2.6em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.28rem; letter-spacing: -0.018em; margin-top: 2em; color: #fff; }
.prose h4 { font-size: 1.05rem; margin-top: 1.6em; }
.prose p, .prose ul, .prose ol, .prose dl, .prose table, .prose figure, .prose pre, .prose blockquote { margin-bottom: 0; }
.prose strong, .prose b { color: #fff; font-weight: 620; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--volt-dim); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--volt); color: var(--ink); }
.prose .pull { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.38; letter-spacing: -0.02em; color: #fff; border-left: 2px solid var(--volt); padding-left: 22px; margin: 1.8em 0; font-weight: 500; }
.prose h2 .n { font: 600 0.62em/1 var(--mono); color: var(--volt); margin-right: 14px; letter-spacing: 0; vertical-align: 0.18em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table, table.data { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td, table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, table.data th { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.prose tr:last-child td, table.data tr:last-child td { border-bottom: 0; }
.prose dl { display: grid; gap: 14px; }
.prose dt { color: #fff; font-weight: 620; }
.prose dd { margin: 4px 0 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding: 20px 22px 20px 64px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.02); }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 19px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 650 14px/1 var(--sans); color: #0a0900; background: var(--volt); }
.steps > li + li { margin-top: 0; }
.steps strong { color: #fff; }

.callout { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 18px 20px; }
.callout > :first-child { margin-top: 0; }

.card-list { display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--ink-2); }

.copy { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--panel); max-width: 100%; }
.copy code { flex: 1; min-width: 0; border: 0; border-radius: 0; background: none; padding: 12px 14px; font-size: 14px; white-space: nowrap; overflow-x: auto; overflow-wrap: normal; }
.copy button { flex: none; border: 0; border-left: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: 600 13px var(--sans); padding: 0 14px; cursor: pointer; }
.copy button:hover { background: rgba(255, 214, 10, 0.12); color: var(--volt); }
.copy button[hidden] { display: none; }

/* download */
.dl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.dl { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.dl h2 { font-size: 28px; letter-spacing: -0.03em; }
.dl ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.dl ol li + li { margin-top: 8px; }
.dl .btn-row { margin-top: auto; padding-top: 8px; }

/* changelog */
.release { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 40px; }
.release:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 18px; }
.release-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -0.035em; margin: 0; padding: 0; }
.release-head time { color: var(--faint); font-size: 15px; font-variant-numeric: tabular-nums; }
.release h3 { font-size: 1.12rem; margin-top: 1.8em; color: var(--volt); letter-spacing: -0.01em; }
.release details { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.015); }
.release details > summary { cursor: pointer; padding: 14px 18px; color: var(--ink); font-weight: 600; font-size: 15px; }
.release details[open] > summary { border-bottom: 1px solid var(--line); }
.release details > .prose { padding: 4px 18px 20px; max-width: none; }

/* footer */
.site-foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg); padding: 64px 0 40px; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.foot-grid h2 { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--ink-2); }
.foot-grid a:hover { color: #fff; }
.foot-brand p { margin: 14px 0 0; max-width: 30ch; line-height: 1.55; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--faint); font-size: 13.5px; }
.foot-base p { margin: 0; }

/* reveal on scroll (only when scripts run and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 0.08s; }
  .js .reveal-d2 { transition-delay: 0.16s; }
  .js .reveal-d3 { transition-delay: 0.24s; }
}

/* ---------- diagrams (inline SVG, styled by class) ---------- */
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(120% 90% at 50% 0%, #0d0f15, #07080b); }
.diagram figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.diagram figcaption b { color: #fff; font-weight: 600; }
.dg-t { font: 500 15px var(--sans); fill: var(--ink); }
.dg-tb { font: 650 15px var(--sans); fill: #fff; }
.dg-ts { font: 400 12.5px var(--sans); fill: var(--muted); }
.dg-th { font: 650 11px var(--sans); letter-spacing: 0.16em; fill: var(--faint); }
.dg-tm { font: 600 12.5px var(--mono); fill: var(--volt); }
.dg-ta { font: 600 12.5px var(--mono); fill: var(--arc); }
.dg-tg { font: 600 12.5px var(--mono); fill: var(--good); }
.dg-tr { font: 600 12.5px var(--mono); fill: var(--bad); }
.dg-to { font: 600 12.5px var(--mono); fill: var(--k-hash); }
.dg-box { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.dg-box-v { fill: rgba(255, 214, 10, 0.07); stroke: rgba(255, 214, 10, 0.55); stroke-width: 1; }
.dg-box-a { fill: rgba(159, 216, 255, 0.06); stroke: rgba(159, 216, 255, 0.5); stroke-width: 1; }
.dg-box-o { fill: rgba(255, 143, 69, 0.07); stroke: rgba(255, 143, 69, 0.55); stroke-width: 1; }
.dg-box-g { fill: rgba(107, 227, 164, 0.06); stroke: rgba(107, 227, 164, 0.5); stroke-width: 1; }
.dg-box-dash { fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; stroke-dasharray: 4 4; }
.dg-ln { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.3; fill: none; }
.dg-ln-v { stroke: var(--volt); stroke-width: 1.8; fill: none; }
.dg-ln-a { stroke: var(--arc); stroke-width: 1.6; fill: none; }
.dg-ln-o { stroke: var(--k-hash); stroke-width: 1.6; fill: none; }
.dg-ln-n { stroke: var(--k-nostr); stroke-width: 1.3; fill: none; stroke-dasharray: 2 5; stroke-linecap: round; }
.dg-ln-dash { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.3; fill: none; stroke-dasharray: 5 5; }
.dg-ln-r { stroke: var(--bad); stroke-width: 1.6; fill: none; }
.dg-fill-v { fill: var(--volt); }
.dg-fill-a { fill: var(--arc); }
.dg-fill-o { fill: var(--k-hash); }
.dg-fill-g { fill: var(--good); }
.dg-fill-r { fill: var(--bad); }
.dg-fill-m { fill: rgba(255, 255, 255, 0.35); }
.dg-fill-dim { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.dg-cell { fill: rgba(255, 214, 10, 0.16); stroke: rgba(255, 214, 10, 0.6); stroke-width: 1; }
.dg-cell-used { fill: var(--volt); }
.dg-cell-off { fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; stroke-dasharray: 3 3; }
.dg-cell-win { fill: var(--volt); }
.dg-cell-zero { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.dg-halo-v { fill: url(#halo-v); }
@media (prefers-reduced-motion: no-preference) {
  .dg-flow-v { stroke-dasharray: 3 9; animation: dgflow 1.6s linear infinite; }
  .dg-flow-a { stroke-dasharray: 3 9; animation: dgflow 1.6s linear infinite reverse; }
  @keyframes dgflow { to { stroke-dashoffset: -24; } }
}

/* figures migrated from the earlier whitepaper pages keep their own classes: paper.css */

/* ---------- live pages: shops and map ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { font: 600 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.chip[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip .count { font-weight: 500; opacity: 0.7; font-variant-numeric: tabular-nums; }

.listing-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.listing { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.listing h3 { font-size: 20px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.listing .kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.kind { font: 600 11.5px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid currentColor; }
.kind-app { color: var(--k-app); } .kind-video { color: var(--k-app); } .kind-files { color: var(--k-files); }
.kind-ai { color: var(--k-ai); } .kind-hashrate { color: var(--k-hash); } .kind-vpn { color: var(--k-vpn); }
.kind-relay { color: var(--k-relay); } .kind-api { color: var(--arc); }
.listing ul.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.listing ul.prices b { color: #fff; font-weight: 600; }
.listing .who { font-size: 13px; color: var(--faint); overflow-wrap: anywhere; }
.listing .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--faint); }
.listing .check { color: var(--good); }
.listing .check-no { color: var(--warn); }
.listing .copy { margin-top: 2px; }
.listing .copy code { font-size: 12.5px; padding: 9px 11px; }
.listing.featured { border-color: rgba(255, 214, 10, 0.45); box-shadow: 0 0 0 1px rgba(255, 214, 10, 0.12), 0 20px 60px -30px rgba(255, 214, 10, 0.35); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 36px 28px; color: var(--muted); text-align: center; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--faint); font-size: 14px; margin: 0 0 22px; }

.map-shell { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #0c0e14, #050507); height: min(78vh, 820px); min-height: 460px; }
.map-shell canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.map-shell canvas:active { cursor: grabbing; }
.map-panel { position: absolute; left: 14px; top: 14px; max-width: min(340px, calc(100% - 28px)); background: rgba(8, 9, 12, 0.86); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.map-panel h2 { font-size: 15px; margin: 0 0 8px; letter-spacing: -0.01em; }
.map-panel p { margin: 0; }
.map-legend { position: absolute; right: 14px; bottom: 14px; background: rgba(8, 9, 12, 0.86); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 13px; display: grid; gap: 6px; }
.map-legend span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-node { background: var(--k-node); } .lg-shop { background: var(--k-shop); } .lg-relay { background: var(--k-relay); }
.lg-vpn { background: var(--k-vpn); } .lg-hash { background: var(--k-hash); } .lg-nostr { background: var(--k-nostr); }
.map-tip { position: absolute; z-index: 2; pointer-events: none; background: rgba(10, 11, 15, 0.95); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); max-width: 280px; overflow-wrap: anywhere; }
.map-tip b { color: #fff; display: block; margin-bottom: 4px; font-size: 14px; }
.map-tip[hidden] { display: none; }
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.map-tools input { flex: 1 1 240px; min-width: 0; font: 400 15px var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 16px; }
.map-tools input::placeholder { color: var(--faint); }
@media (max-width: 720px) {
  .map-legend { left: 14px; right: auto; bottom: 14px; grid-template-columns: 1fr 1fr; }
  .map-panel { position: static; max-width: none; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
  .map-shell { height: 70vh; }
}

@media print {
  .site-head, .site-foot, .web-canvas, .web-fixed, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- small additions ---------- */
.page-hero h1 em, .paper-title em { font-style: normal; background: linear-gradient(100deg, #fff 0%, #fff6c4 30%, var(--volt) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.paper-page .page-hero h1 { max-width: 20ch; }
.page-hero .lede + .lede { margin-top: 14px; }
.meta-note { margin: 22px 0 0; max-width: 680px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.toc .toc-sub { margin-top: 30px; }
.stack > * + * { margin-top: 24px; }
.section-gap { margin-top: clamp(56px, 9vh, 96px); }
.prose .diagram { margin: 1.6em 0 1.8em; }
.prose .grid { margin-top: 1.2em; }
.anchor-h { scroll-margin-top: calc(var(--head-h) + 20px); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } }
.split + .split { margin-top: clamp(56px, 9vh, 96px); }
.split h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); letter-spacing: -0.035em; margin-bottom: 16px; }
.split p { color: var(--ink-2); margin: 0 0 14px; }
.split .facts { padding-left: 1.2em; color: var(--ink-2); margin: 0 0 14px; }
.split .facts li + li { margin-top: 6px; }
.split .facts li::marker { color: var(--volt); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 3px; border-radius: 2px; display: inline-block; }
.lg-sats { background: var(--volt); } .lg-data { background: var(--arc); } .lg-work { background: var(--k-hash); }
.lg-find { background: repeating-linear-gradient(90deg, var(--k-nostr) 0 2px, transparent 2px 6px); }
.lg-coming { background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 4px, transparent 4px 8px); }
.dg-tdark { font: 750 16px var(--sans); fill: #0a0900; }
@media (max-width: 560px) {
  /* keep diagram words readable on a phone: let a wide figure scroll sideways instead of shrinking */
  .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram svg { min-width: 520px; }
  .diagram figcaption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter)); }
}
@media (max-width: 899px) {
  .hero::after { height: 78%; background: linear-gradient(180deg, transparent, rgba(5, 5, 7, 0.93) 24%, rgba(5, 5, 7, 0.97)); }
  .hero .eyebrow { font-size: 12px; letter-spacing: 0.12em; }
}
.section-gap-sm { margin-top: 18px; margin-bottom: 26px; }
.listing > .tag { align-self: flex-start; }
