:root {
  --bg: #010506;
  --ink: #bfeee9;
  --ink-dim: #6fa8a3;
  --ink-faint: #2e5753;
  --cyan: #38e6da;
  --cyan-hot: #8ff7e4;
  --yellow: #f4dc58;
  --orange: #ff8c2a;
  --red: #e2261a;
  --line: rgba(56, 230, 218, 0.16);
  --glass: rgba(2, 18, 19, 0.56);
  --mono: "Geist Mono", ui-monospace, monospace;
  --sans: "Geist", system-ui, sans-serif;
  --dot: "Doto", "Geist Mono", monospace;
  --r: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--cyan); color: #001; }

/* the scene behind everything: thermal canvas + lattice + grain, one ambiance top to bottom */
#field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  transition: opacity 0.2s linear;
}
/* the line and the ASCII hook, drawn over the water */
#rig {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 1  0 0 0 0 0.95  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}
main, header.nav, footer { position: relative; z-index: 2; }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed !important;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 10 !important;
}
.nav > * { pointer-events: auto; }
.pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.pill a {
  font: 500 12.5px/1 var(--mono);
  color: var(--ink);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.pill a:hover, .pill a[aria-current] { background: rgba(56, 230, 218, 0.12); color: var(--cyan-hot); }
.pill .mark {
  font: 800 17px/1 var(--dot);
  color: var(--cyan);
  padding: 7px 12px 7px 14px;
  text-shadow: 0 0 12px rgba(56, 230, 218, 0.6);
}
.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  color: var(--ink-dim);
  padding: 6px 6px 6px 16px;
}
.ca b { color: var(--cyan); font-weight: 600; }
.ca .addr { color: var(--ink); font-variant-numeric: tabular-nums; }
.ca button {
  font: 500 12px/1 var(--mono);
  color: #001514;
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
}
.ca button[disabled] { background: rgba(56, 230, 218, 0.14); color: var(--ink-dim); cursor: default; }

/* ------------------------------------------------------------ hero poster */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.note {
  position: absolute;
  font: 400 11px/1.18 var(--mono);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(56, 230, 218, 0.45);
  width: max-content;
  white-space: pre-line;
  opacity: 0.92;
}
.note.live { color: var(--cyan-hot); }
.note .hot { color: var(--yellow); }
.hero { cursor: crosshair; }
.n1 { top: 74px; right: 4.4vw; }
.n6 { top: 84px; left: 4.4vw; }
.n2 { top: 36vh; left: 4.4vw; }
.n3 { bottom: calc(clamp(84px, 15vw, 290px) + 3vh); left: 4.4vw; }
.n4 { bottom: calc(clamp(84px, 15vw, 290px) + 3vh); right: 4.4vw; }
.n5 { top: 38vh; right: 4.4vw; }
.note.cue {
  bottom: calc(clamp(84px, 15vw, 290px) + 3vh);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(244, 220, 88, 0.4);
}
@media (hover: none) { .note.cue { display: none; } }
.title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  margin: 0;
  text-align: center;
  font: 700 clamp(84px, 16vw, 300px)/1 var(--dot);
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(56, 230, 218, 0.55), 0 0 60px rgba(56, 230, 218, 0.25);
  white-space: nowrap;
  pointer-events: none;
}

/* ------------------------------------------------------------ sections */
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
section.block { padding: clamp(80px, 13vh, 150px) 0; }
.display {
  font: 800 clamp(44px, 7.4vw, 112px)/0.92 var(--dot);
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(56, 230, 218, 0.35);
  margin: 0 0 28px;
}
.display.sm { font-size: clamp(42px, 5.6vw, 84px); }
.display .warm { color: var(--yellow); text-shadow: 0 0 22px rgba(244, 220, 88, 0.35); }
.lede {
  font: 400 clamp(19px, 2.1vw, 27px)/1.36 var(--sans);
  color: var(--ink);
  max-width: 34ch;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.pitch {
  font: 400 14px/1.7 var(--mono);
  color: var(--ink-dim);
  max-width: 74ch;
}
.pitch em { font-style: normal; color: var(--cyan-hot); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: end; }

/* four verbs: an editorial table, not cards */
.verbs { margin-top: 56px; border-top: 1px solid var(--line); }
.verb {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1fr) 1.3fr;
  gap: 28px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.verb h3 {
  margin: 0;
  font: 800 clamp(34px, 4.2vw, 58px)/1 var(--dot);
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(56, 230, 218, 0.35);
}
.verb code {
  font: 500 15px/1.5 var(--mono);
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.verb p { margin: 0; color: var(--ink-dim); font-size: 16px; max-width: 46ch; }

/* live chart */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(1, 10, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.stats { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.stat { flex: 1 1 150px; padding: 20px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font: 600 clamp(26px, 3vw, 38px)/1 var(--mono);
  color: var(--cyan-hot);
  font-variant-numeric: tabular-nums;
}
.stat span { font: 400 12px/1.4 var(--mono); color: var(--ink-dim); }
.chart { position: relative; height: 340px; }
.chart canvas { width: 100%; height: 100%; display: block; }
.chart .empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font: 400 13px/1.6 var(--mono);
  color: var(--ink-dim);
}
.chart-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); font: 400 12px/1.4 var(--mono); color: var(--ink-dim); }

/* code */
pre.code {
  margin: 0;
  padding: 22px 24px;
  font: 400 13px/1.7 var(--mono);
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}
pre.code .c { color: var(--ink-faint); }
pre.code .k { color: var(--cyan); }
pre.code .s { color: var(--yellow); }
.tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); }
.tabs button {
  font: 500 12px/1 var(--mono);
  color: var(--ink-dim);
  background: transparent;
  border: 0;
  border-radius: 12px 12px 0 0;
  padding: 11px 14px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--cyan-hot); background: rgba(56, 230, 218, 0.08); }

/* live vs spec */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.ledger .panel { padding: 26px 26px 10px; }
.ledger h4 { margin: 0 0 6px; font: 700 26px/1 var(--dot); color: var(--cyan); }
.ledger h4.spec { color: var(--ink-dim); }
.ledger ul { list-style: none; margin: 16px 0 0; padding: 0; }
.ledger li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; display: flex; gap: 12px; }
.ledger li::before { content: ""; flex: 0 0 9px; height: 9px; margin-top: 7px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ledger .spec-list li { color: var(--ink-dim); }
.ledger .spec-list li::before { background: transparent; border: 1px solid var(--ink-faint); box-shadow: none; }

/* token */
.token { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.token .big { font: 800 clamp(64px, 11vw, 170px)/0.9 var(--dot); color: var(--yellow); text-shadow: 0 0 30px rgba(244, 220, 88, 0.35); margin: 0; }
.token .caline { margin-top: 26px; display: inline-flex; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 14px/1 var(--mono);
  color: #001514;
  background: var(--cyan);
  border-radius: 999px;
  padding: 15px 22px;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(56, 230, 218, 0.35);
  border: 0;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid var(--line); box-shadow: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

footer { padding: 60px 0 36px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: end; }
footer .flock { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); }
.hookart {
  margin: 0;
  font: 500 11px/11px var(--mono);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(56, 230, 218, 0.45);
  white-space: pre;
  user-select: all;
}
footer .fmark { font: 800 clamp(48px, 9vw, 120px)/0.85 var(--dot); color: var(--cyan); opacity: 0.85; text-shadow: 0 0 18px rgba(56, 230, 218, 0.4); }
footer p { margin: 18px 0 0; font: 400 12px/1.7 var(--mono); color: var(--ink-dim); max-width: 52ch; }
footer nav { display: flex; gap: 18px; font: 500 12.5px/1 var(--mono); }
footer nav a { text-decoration: none; color: var(--ink); }

@media (max-width: 900px) {
  .split, .token, .ledger { grid-template-columns: 1fr; }
  .verb { grid-template-columns: 1fr; gap: 10px; }
  .n2, .n4, .n6 { display: none; }
  .n5 { top: auto; bottom: calc(clamp(84px, 15vw, 290px) + 3vh); right: 4.4vw; }
}
@media (max-width: 560px) {
  .pill a.opt { display: none; }
  .nav .ca .addr { display: none; }
  .nav .ca button[disabled] { display: none; }
  .nav .ca { padding: 6px 14px; min-height: 44px; white-space: nowrap; }
  .pill a { padding: 9px 10px; }
  .pill .mark { padding: 7px 8px 7px 11px; }
  .nav { gap: 8px; }
  .title { font-size: 23vw; bottom: 0.02em; }
  .n1 { top: 72px; right: 16px; }
  .n3 { left: 16px; }
  .n5 { right: 16px; }
  .hookart { font-size: 8px; line-height: 8px; }
  .chart { height: 260px; }
}
@media (max-width: 380px) {
  .pill a { padding: 9px 8px; }
  .nav .ca { padding: 6px 11px; }
  .pill .mark { padding: 7px 6px 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  /* the line and the ASCII hook, drawn over the water */
#rig {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.grain { animation: none; }
}

/* after every `font:` shorthand, which resets variation settings */
.title, .display, .verb h3, .pill .mark, .ledger h4, .token .big, footer .fmark, .dot { font-variation-settings: "ROND" 100; }
