:root {
  --workshop: #c9cacd;
  --plate: #dcdde0;
  --paper: #ececef;
  --ink: #1d2126;
  --muted: #5c6168;
  --line: #b4b6ba;
  --chassis: #4a4f55;
  --chassis-dark: #2b3036;
  --phosphor: #5fd48c;
  --phosphor-deep: #2a7a4e;
  --screen: #1e4a33;
  --led-red: #e24b4b;
  --led-amber: #e8b03a;
  --led-cyan: #3ec3e8;
  --led-blue: #3a6fe8;
  --display: "Pixelify Sans", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-left: 188px;
  color: var(--ink);
  background: var(--workshop);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #d7f3e2;
  color: var(--phosphor-deep);
  font: 500 13px/1.4 var(--mono);
}

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.page-shell { width: min(980px, calc(100% - 48px)); margin-inline: auto; padding: 64px 0 120px; }

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: 188px;
  flex-direction: column;
  padding: 22px 14px;
  background: var(--chassis-dark);
  color: #d5d8dc;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 6px;
  color: white;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.15;
  text-decoration: none;
}
.rail-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--chassis);
  image-rendering: pixelated;
}
.rail-nav { display: flex; flex-direction: column; gap: 4px; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: #9aa0a8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.rail-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.rail-nav a.active {
  color: var(--chassis-dark);
  background: var(--phosphor);
}
.rail-icon { width: 18px; text-align: center; font: 500 13px/1 var(--mono); }
.rail-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8b9198;
  font: 400 10px/1.5 var(--mono);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--chassis-dark);
  border-radius: 8px;
  background: var(--chassis-dark);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); background: var(--chassis); }
.button.ghost {
  background: transparent;
  color: var(--ink);
}
.button:focus-visible,
.rail-nav a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--phosphor);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 48px 0 72px;
}
.crt-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.crt-art {
  width: min(100%, 460px);
  image-rendering: pixelated;
  animation: powerOn .9s ease-out;
}
.crt-glow {
  position: absolute;
  width: 42%;
  height: 32%;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(95,212,140,.35), transparent 70%);
  pointer-events: none;
  animation: scan 4.5s linear infinite;
}
.hero-copy h1 {
  margin: 10px 0 18px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.03em;
}
.hero-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status-plate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 2px solid var(--chassis);
  border-radius: 8px;
  background: var(--chassis);
}
.status-plate div {
  padding: 14px 16px;
  background: var(--paper);
}
.status-plate span {
  display: block;
  color: var(--muted);
  font: 500 11px/1.3 var(--mono);
}
.status-plate strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.leds {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.leds i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.leds .r { background: var(--led-red); }
.leds .a { background: var(--led-amber); }
.leds .c { background: var(--led-cyan); }
.leds .b { background: var(--led-blue); }

.ticker {
  overflow: hidden;
  border-block: 2px solid var(--chassis-dark);
  background: var(--screen);
  color: var(--phosphor);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 12px 0;
  animation: ticker 22s linear infinite;
  font: 500 13px/1 var(--mono);
}
.ticker-track span { padding-right: 36px; }
.ticker-track span::after { content: "■"; padding-left: 36px; color: var(--phosphor-deep); }

section { padding: 88px 0; }
.section-kicker {
  margin: 0 0 12px;
  color: var(--phosphor-deep);
  font: 500 13px/1 var(--mono);
}
.section-head h2,
.page-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
}
.section-head h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.section-head p,
.page-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.page-title { font-size: clamp(42px, 7vw, 76px); line-height: .95; }

.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.loop article {
  min-height: 260px;
  padding: 24px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.loop .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--screen);
  color: var(--phosphor);
  font: 500 16px/1 var(--mono);
}
.loop h3 {
  margin: 72px 0 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}
.loop p { margin: 0; color: var(--muted); line-height: 1.55; }

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 40px;
  align-items: stretch;
}
.account-card {
  padding: 32px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.account-card.featured {
  background: var(--chassis-dark);
  color: white;
  border-color: var(--chassis-dark);
}
.account-card h3 {
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
}
.account-card p { margin: 0; color: var(--muted); line-height: 1.55; min-height: 72px; }
.account-card.featured p { color: #b7bdc4; }
.payout { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-card.featured .payout { border-top-color: rgba(255,255,255,.16); }
.payout strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 48px;
}
.versus { display: grid; place-items: center; font: 500 12px/1 var(--mono); }
.versus span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--chassis);
  border-radius: 8px;
  background: var(--plate);
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.calc-copy, .calc-result { padding: clamp(28px, 5vw, 56px); }
.calc-copy h2 {
  margin: 8px 0 14px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
}
.calc-copy p { color: var(--muted); line-height: 1.55; }
.range-label { display: flex; justify-content: space-between; margin: 36px 0 12px; font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--phosphor-deep); cursor: pointer; }
.calc-result { background: var(--screen); color: var(--phosphor); }
.calc-total {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 92px);
  line-height: .9;
}
.calc-lines { border-top: 1px solid var(--phosphor-deep); }
.calc-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--phosphor-deep);
  font-size: 14px;
}

.faq { max-width: 820px; margin-inline: auto; }
.faq h2 { text-align: center; }
details { border-top: 2px solid var(--line); }
details:last-child { border-bottom: 2px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 680px; margin: -4px 0 22px; color: var(--muted); line-height: 1.6; }

.closing {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border: 2px solid var(--chassis-dark);
  border-radius: 10px;
}
.closing-copy, .closing-screen { padding: clamp(28px, 5vw, 64px); }
.closing-copy { background: var(--chassis-dark); color: white; }
.closing-copy h2 {
  margin: 10px 0 16px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
}
.closing-copy p { max-width: 520px; color: #b7bdc4; line-height: 1.55; }
.closing-screen { background: var(--screen); color: var(--phosphor); font-family: var(--mono); }
.closing-screen p { margin: 0 0 10px; }
.receipt-amount {
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: 56px;
  color: var(--phosphor);
}

footer { padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.legal { padding-top: 18px; border-top: 2px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.info-card {
  min-height: 240px;
  padding: 28px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.info-card.dark { background: var(--chassis-dark); color: white; border-color: var(--chassis-dark); }
.info-card.screen { background: var(--screen); color: var(--phosphor); border-color: var(--screen); }
.info-card h2 {
  margin: 64px 0 12px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
}
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.info-card.dark p { color: #b7bdc4; }
.info-card.screen p { color: #9aecc0; }

.split-track {
  display: grid;
  grid-template-columns: minmax(240px, 2.6fr) 7.4fr;
  min-height: 54px;
  overflow: hidden;
  margin: 36px 0 8px;
  border-radius: 8px;
}
.split-track span { display: flex; align-items: center; padding: 0 16px; font-weight: 700; }
.split-track .cut { background: var(--screen); color: var(--phosphor); }
.split-track .rest { background: var(--chassis-dark); color: white; }

.doc-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  margin-top: 56px;
}
.doc-toc { position: sticky; top: 24px; align-self: start; }
.doc-toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.doc-toc a:hover { color: var(--ink); }
.doc-content article { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 2px solid var(--line); }
.doc-content h2 { margin: 0 0 14px; font-family: var(--display); font-size: 34px; font-weight: 600; }
.doc-content p, .doc-content li { color: var(--muted); line-height: 1.7; }

.launch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 28px;
  align-items: start;
  margin-top: 36px;
}
.launch-form { display: grid; gap: 14px; }
.launch-form label {
  display: grid;
  gap: 8px;
  font: 500 12px/1 var(--mono);
}
.launch-form input,
.launch-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--chassis);
  border-radius: 8px;
  background: var(--paper);
}
.launch-form textarea { min-height: 110px; resize: vertical; }
.launch-form button[type="submit"] {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--chassis-dark);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.launch-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.wallet-status {
  display: none;
  padding: 14px;
  border: 2px solid var(--phosphor-deep);
  border-radius: 8px;
  background: #d7f3e2;
  font-size: 14px;
  line-height: 1.5;
}
.wallet-status.visible { display: block; }
.receipt {
  padding: 22px;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--screen);
  color: var(--phosphor);
}
.receipt-to { margin: 0 0 18px; color: #9aecc0; }
.receipt-card {
  padding: 14px;
  border: 1px solid var(--phosphor-deep);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.receipt-card-top {
  display: flex;
  justify-content: space-between;
  font: 500 11px/1 var(--mono);
}
.explorer-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.cycle-card {
  min-width: 220px;
  padding: 20px;
  border-radius: 10px;
  background: var(--screen);
  color: var(--phosphor);
}
.cycle-card strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 42px; }
.explorer-table {
  margin-top: 48px;
  overflow: hidden;
  border: 2px solid var(--chassis);
  border-radius: 10px;
  background: var(--paper);
}
.table-head {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr .6fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font: 500 11px/1 var(--mono);
}
.empty-state { display: grid; min-height: 320px; place-items: center; padding: 40px; text-align: center; }
.empty-state h2 { margin: 0 0 8px; font-family: var(--display); font-size: 32px; }
.empty-state p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.55; }
.payment-list { display: grid; gap: 8px; padding: 12px; }
.payment-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
}
.payment-meta { color: var(--muted); font-size: 13px; }

@keyframes powerOn {
  0% { filter: brightness(.45) contrast(1.2); }
  20% { filter: brightness(1.25); }
  100% { filter: none; }
}
@keyframes scan {
  from { transform: translateY(-8px); opacity: .45; }
  to { transform: translateY(8px); opacity: .2; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  body { padding-left: 0; padding-bottom: 72px; }
  .side-rail {
    inset: auto 0 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
  }
  .rail-brand, .rail-bottom { display: none; }
  .rail-nav { flex: 1; flex-direction: row; }
  .rail-nav a {
    flex: 1;
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 0;
    font-size: 10px;
  }
  .hero, .loop, .comparison, .calculator, .closing, .page-grid, .doc-layout, .launch-layout { grid-template-columns: 1fr; }
  .versus { height: 48px; }
  .explorer-head, .footer-top { flex-direction: column; align-items: stretch; }
  .doc-toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
