/* ZEROCOIN shared styles. Colorway from the logo: white block-characters on black, monospace. */
:root { --fg: #f2f2f2; --dim: #8c8c8c; --line: #2a2a2a; --panel: #0b0b0b; --bg: #000; --r: 16px; --side: 250px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Cascadia Mono", Consolas, "Lucida Console", "Courier New", monospace;
  font-size: 14px; line-height: 1.6;
}
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
p { margin: 0 0 14px; }

/* Text drawn as a grid of tiny blocks, like the logo. */
.matrix {
  color: transparent;
  background:
    repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 4px),
    #fff;
  -webkit-background-clip: text; background-clip: text;
  font-weight: 700;
}

/* Rising "0"s behind everything (drawn by the page script). */
#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---- full-width top: disclosure + ticker ---- */

/* ---- shell: sidebar on the left, page on the right ---- */
.shell { display: flex; align-items: flex-start; }
.side {
  position: sticky; top: 0; flex: none; width: var(--side); height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 18px;
  border-right: 1px solid var(--line); background: #050505;
}
.side .brand { display: block; text-decoration: none; margin-bottom: 18px; }
.side .brand img { width: 170px; display: block; margin-left: -4px; }
.side .brand small { display: block; color: var(--dim); font-size: 11px; margin-top: 6px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; color: var(--dim); font-weight: 700; transition: color .15s, background .15s, border-color .15s;
}
.side nav a i { font-style: normal; width: 22px; text-align: center; color: var(--fg); }
.side nav a:hover { color: var(--fg); background: #111; }
.side nav a.here { color: var(--fg); background: #141414; border-color: var(--line); }
.side .btn { margin-top: 14px; text-align: center; }
.side .deco { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; line-height: 1; white-space: nowrap; }
.side .deco span { display: inline-block; vertical-align: bottom; margin: 0 3px; }

.page { flex: 1; min-width: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; flex-wrap: wrap; }
.topright { display: inline-flex; align-items: center; gap: 10px; }
.xlink { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); transition: background .15s, color .15s; }
.xlink:hover { background: var(--fg); color: #000; }

/* ---- pills and buttons ---- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; background: var(--panel); white-space: nowrap; }
.pill.dark, .chip { background: var(--fg); color: #000; border-color: var(--fg); font-weight: 700; }
.chip { font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--fg); border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; transition: transform .15s; }
.chip:hover { transform: translateY(-2px); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--fg); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  text-decoration: none; font: inherit; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--fg);
  transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn.solid { background: var(--fg); color: #000; border-color: var(--fg); }
.btn.solid:hover { background: #fff; }

/* ---- hero ---- */
.hero { padding-top: 18px; }
h1 { font-size: clamp(34px, 6.2vw, 84px); line-height: 1.04; margin: 0 0 22px; letter-spacing: -0.03em; }
/* the last word sits in a solid box */
h1 .box { display: inline-block; background: var(--fg); color: #000; padding: 0 0.18em 0.06em; border-radius: 0.16em; margin-top: 0.08em; }
.hero p { color: #c9c9c9; max-width: 62ch; font-size: 16px; }
.hero .sub { color: var(--fg); font-size: 13px; font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 16px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* the big live counter */
.bigcount { display: inline-flex; align-items: center; gap: 20px; padding: 18px 28px 18px 20px; margin-top: 26px; border-radius: 22px; }
.bigcount .coin { font-size: 84px; line-height: 0.9; animation: shrink 3.2s ease-in-out infinite; }
@keyframes shrink { 50% { transform: scale(0.82); } }
.bigcount .k { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bigcount .v { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; font-weight: 700; display: block; }
.bigcount .s { font-size: 12px; color: var(--dim); }

.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }

/* illustration panel: chart on top, four steps along the bottom */
.stage { margin-top: 28px; overflow: hidden; background: var(--bg); }
.stage .canvas { padding: 14px 14px 4px; position: relative; }
.stage canvas { width: 100%; height: 300px; display: block; }
.stage .label { position: absolute; right: 18px; bottom: 8px; font-size: 10px; letter-spacing: 0.14em; color: var(--dim); }
.stage .cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stage .cells > div { padding: 16px; border-left: 1px solid var(--line); }
.stage .cells > div:first-child { border-left: 0; }
.stage .cells .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stage .cells b { display: block; }
.stage .cells p { margin: 0; font-size: 12px; color: var(--dim); }
/* trading-terminal dressing around the chart */
.term .termbar { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term .tk b { font-size: 18px; margin-right: 8px; }
.term .tk small { color: var(--dim); }
.term .headline { font-size: 22px; font-weight: 700; }
.term .col small { display: block; font-size: 11px; color: var(--dim); }
.term .col b { font-size: 13px; }
.term .toolbar { display: flex; gap: 0; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.term .toolbar span { padding: 8px 14px; border-right: 1px solid var(--line); }
.term .toolbar b { color: var(--fg); }
.term .termbody { display: flex; }
.term .rail { flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; border-right: 1px solid var(--line); color: var(--dim); font-size: 16px; }
.term .canvas { flex: 1; min-width: 0; padding: 6px 6px 2px; }
.term canvas { height: 380px; }
.term .tf { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.term .tf .label { position: static; }

.no { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat { padding: 16px 18px; min-width: 0; }
.stat .k { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.stat .k i { font-style: normal; color: var(--fg); letter-spacing: 0; }
.stat .v { display: block; font-size: 26px; font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; }
.stat .s { display: block; font-size: 11px; color: var(--dim); }
.bar { height: 3px; background: #2a2a2a; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--fg); transition: width 1s linear; }

/* The Burned counter flashes when a new burn lands. */
#burned { transform-origin: left center; }
.pulse { animation: pulse 1.1s ease 2; }
@keyframes pulse { 30% { transform: scale(1.2); text-shadow: 0 0 14px #fff; } }

/* ---- sections ---- */
section.block { padding-top: 84px; }
.head { margin-bottom: 22px; }
.head .cap { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; margin: 0 0 8px 60px; }
.head .title { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.head .ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 20px; }
.head h2 { flex: 1; font-size: clamp(26px, 3.8vw, 44px); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h3 { margin: 10px 0 6px; font-size: 15px; }
.lede { color: #c9c9c9; max-width: 70ch; }
.note { color: var(--dim); font-size: 12px; margin: 12px 0 0; max-width: 80ch; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.split.top { align-items: start; }

.cards { display: grid; gap: 12px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 16px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--fg); transform: translateY(-3px); }
.card .n { font-size: 30px; line-height: 1; }
.card p { margin: 0; color: var(--dim); font-size: 12px; }

/* the loop diagram: four stops on a slowly turning ring */
.orbit { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; }
.orbit::before { content: ""; position: absolute; inset: 13%; border: 2px dashed #3a3a3a; border-radius: 50%; animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.orbit .mid .coin { font-size: 96px; line-height: 0.9; display: block; animation: shrink 3.2s ease-in-out infinite; }
.orbit .mid small { font-weight: 700; }
.orbit .stop { position: absolute; width: 132px; padding: 8px 10px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 11px; color: var(--dim); transform: translate(-50%, -50%); }
.orbit .stop b { display: block; color: var(--fg); font-size: 13px; }
.orbit .s1 { left: 50%; top: 9%; }
.orbit .s2 { left: 88%; top: 50%; }
.orbit .s3 { left: 50%; top: 91%; }
.orbit .s4 { left: 12%; top: 50%; }

/* gauge */
.gauge { padding: 20px; margin-bottom: 12px; }
.gauge .big { font-size: clamp(34px, 6vw, 56px); line-height: 1; }
.meter { height: 22px; border: 1px solid var(--line); margin: 14px 0 8px; overflow: hidden; }
.meter i {
  display: block; height: 100%; width: 100%;
  background:
    repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 4px),
    #fff;
  transition: width 1.6s cubic-bezier(.2,.7,.2,1);
}
.gauge .ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }

/* activity feed */
.feed > div { display: flex; align-items: baseline; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.feed > div:first-child { border-top: 0; }
.feed > div.new { animation: drop .5s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.tag { font-size: 10px; letter-spacing: 0.1em; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; min-width: 56px; text-align: center; color: var(--dim); }
.tag.BURN, .tag.ROUND { background: var(--fg); color: #000; border-color: var(--fg); }
.feed .what { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.feed .when { font-size: 12px; color: var(--dim); white-space: nowrap; }

/* vertical step list (beside the feed, and on the mechanics page) */
.steplist { padding: 20px; }
.steplist h3 { margin: 0 0 14px; }
.steplist .row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-bottom: 16px; }
.steplist .row .ico { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.steplist .row b { display: flex; align-items: center; gap: 8px; }
.steplist .row p { margin: 4px 0 0; font-size: 12px; color: var(--dim); }

.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #111; }
th { color: var(--dim); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
td.r, th.r { text-align: right; }


.disclosure { margin: 16px 0 0; padding: 16px 18px; border: 1px solid var(--fg); border-radius: var(--r); font-weight: 700; background: var(--bg); }
ul.plain { margin: 0; padding-left: 18px; color: #c9c9c9; }
ul.plain li { margin-bottom: 8px; }
dl.defs { margin: 0; display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; }
dl.defs dt { color: var(--fg); font-weight: 700; }
dl.defs dd { margin: 0; color: #c9c9c9; }

footer.site { margin-top: 90px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; background: var(--bg); }
footer.site .wrap { padding-top: 24px; padding-bottom: 36px; }
footer.site img { height: 20px; display: block; margin-bottom: 12px; opacity: .8; }
footer.site p { max-width: 90ch; }
footer.site .row { display: flex; gap: 6px 18px; flex-wrap: wrap; overflow-wrap: anywhere; }

/* Sections fade up as they scroll into view. */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed > div.new, .pulse, .dot, .bigcount .coin, .orbit::before, .orbit .mid .coin { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .chip, .card, .meter i, .bar i { transition: none; }
  #embers { display: none; }
}

/* narrow screens: the sidebar becomes a bar across the top */
@media (max-width: 920px) {
  .shell { display: block; }
  .side { position: sticky; top: 0; z-index: 10; width: auto; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side .brand { margin: 0; flex: none; }
  .side .brand img { width: 110px; }
  .side .brand small, .side .deco, .side .btn { display: none; }
  .side nav { flex-direction: row; }
  .side nav a { padding: 7px 10px; white-space: nowrap; }
  .side nav a i { display: none; }
  html { scroll-padding-top: 70px; }
  .wrap { padding: 0 16px; }
  .split, .cards.three { grid-template-columns: 1fr; }
  .stats, .stage .cells { grid-template-columns: 1fr 1fr; }
  .stage .cells > div:nth-child(3) { border-left: 0; }
  .stage .cells > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .head .cap { margin-left: 0; }
  .term .rail { display: none; }
  .bigcount { display: flex; }
  .bigcount .coin { font-size: 56px; }
  dl.defs { grid-template-columns: 1fr; gap: 2px 0; }
  dl.defs dd { margin-bottom: 12px; }
}
