:root {
  --bg: #071113;
  --bg-raise: #0c1c22;
  --panel: #102128;
  --panel-2: #13242b;
  --line: #1a3842;
  --line-strong: #24515c;
  --steel: #69aac0;
  --steel-2: #8fc4d4;
  --ice: #d7eef3;
  --ink: #f3fbfc;
  --muted: #9ec0c8;
  --green: #46c98a;
  --shadow: #03080a;
  --header: 148px;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-body: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --font-mono: "Pixelify Sans", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ice);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(105, 170, 192, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 170, 192, 0.045) 1px, transparent 1px);
  background-size: 8px 8px;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--steel-2);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--steel);
  color: var(--bg);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.wrap,
.hero,
.hero-copy,
.hero-card,
.strip-inner,
.strip-inner > *,
.term,
.term-body,
.addr-block,
.footer-grid {
  min-width: 0;
  max-width: 100%;
}

.kicker {
  margin: 0 0 14px;
  color: var(--steel);
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

h1,
h2,
h3,
.brand span,
.nav a,
.btn,
.hero-card-name,
.footer-name,
.log-index,
.step-no,
.ledger-head,
.strip-kicker {
  font-family: var(--font-pixel);
  font-weight: 400;
}

h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.35;
}

h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.55;
}

h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--ice);
  font-size: 22px;
  line-height: 1.45;
}

.pull {
  margin: 0 0 14px;
  color: var(--steel-2);
  font-size: 24px;
  font-weight: 600;
}

.fine {
  margin: 18px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #071113;
  border-bottom: 4px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span {
  font-size: 12px;
  line-height: 1.45;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.nav a {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.wallet-strip {
  background: var(--bg-raise);
  border-top: 4px solid var(--line);
}

.strip-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 12px 0;
}

.strip-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--steel);
  font-size: 9px;
  line-height: 1.5;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(70, 201, 138, 0.2);
  animation: blink 1.4s steps(2, end) infinite;
}

.strip-addr,
.footer-wallet a,
.addr-block code {
  font-family: var(--font-mono);
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}

.strip-addr {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.strip-addr:hover,
.footer-wallet a:hover {
  color: var(--steel-2);
}

.strip-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 14px;
  border: 4px solid var(--steel);
  background: var(--steel);
  color: var(--bg);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--ice);
}

.btn[data-copy] {
  min-width: 168px;
}

.strip-actions .btn[data-copy] {
  min-width: 108px;
}

.btn.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}

.btn:focus-visible,
.nav a:focus-visible,
.strip-addr:focus-visible,
.brand:focus-visible,
.footer-wallet a:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 48px 0 36px;
}

.hero-actions {
  margin-top: 22px;
}

.hero-card {
  padding: 18px 18px 22px;
  background:
    linear-gradient(var(--steel), var(--steel)) top left / 18px 4px no-repeat,
    linear-gradient(var(--steel), var(--steel)) top left / 4px 18px no-repeat,
    linear-gradient(var(--steel), var(--steel)) top right / 18px 4px no-repeat,
    linear-gradient(var(--steel), var(--steel)) top right / 4px 18px no-repeat,
    linear-gradient(var(--steel), var(--steel)) bottom left / 18px 4px no-repeat,
    linear-gradient(var(--steel), var(--steel)) bottom left / 4px 18px no-repeat,
    linear-gradient(var(--steel), var(--steel)) bottom right / 18px 4px no-repeat,
    linear-gradient(var(--steel), var(--steel)) bottom right / 4px 18px no-repeat,
    var(--panel);
  border: 4px solid var(--line-strong);
  box-shadow: 8px 8px 0 var(--shadow);
}

.wave {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 84px;
  margin-bottom: 8px;
  padding: 0 6px;
}

.wave span {
  width: 10px;
  height: calc(var(--h) * 8px);
  background: var(--steel);
}

.wave span:nth-child(odd) {
  background: var(--steel-2);
}

.plinth {
  width: min(260px, 78%);
  margin: 0 auto;
  padding: 8px;
  background: #0b1a20;
  border: 4px solid var(--line);
}

.hero-logo {
  width: 100%;
  height: auto;
}

.hero-card-name {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.hero-card-sub {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.marquee {
  overflow: hidden;
  border-block: 4px solid var(--line);
  background: var(--bg-raise);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 14px 0;
  animation: ticker 28s linear infinite;
}

.marquee span {
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 10px;
}

.marquee i {
  width: 8px;
  height: 8px;
  background: var(--steel);
  flex: none;
}

.section {
  padding: 72px 0 8px;
  scroll-margin-top: 168px;
}

.section-head {
  margin-bottom: 22px;
}

.term {
  background: var(--panel);
  border: 4px solid var(--line-strong);
  box-shadow: 8px 8px 0 var(--shadow);
}

.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0c1e26;
  border-bottom: 4px solid var(--line);
  color: var(--steel-2);
  font-family: var(--font-pixel);
  font-size: 10px;
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots i {
  width: 10px;
  height: 10px;
  background: var(--line-strong);
}

.term-dots i:nth-child(2) {
  background: var(--steel);
}

.term-dots i:nth-child(3) {
  background: var(--green);
}

.term-body {
  padding: 26px 22px 28px;
}

.addr-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding: 16px;
  background: var(--bg);
  border: 4px solid var(--line);
}

.prompt {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.case-note {
  margin: 10px 0 0;
  color: var(--steel);
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.6;
}

.addr-block code {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.facts div {
  padding: 12px;
  background: var(--panel-2);
  border: 4px solid var(--line);
}

.facts dt {
  margin-bottom: 6px;
  color: var(--steel);
  font-family: var(--font-pixel);
  font-size: 9px;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 4px solid var(--line);
}

.log li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 18px;
  padding: 22px 0;
  border-top: 4px solid var(--line);
}

.log-index,
.step-no {
  color: var(--steel);
  font-size: 12px;
}

.log p,
.pipeline p {
  margin: 0;
  max-width: 68ch;
  color: var(--ice);
  font-size: 20px;
}

.ledger {
  border: 4px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--shadow);
}

.ledger-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px 20px;
  padding: 16px 18px;
  border-top: 4px solid var(--line);
  font-size: 20px;
}

.ledger-row:first-child {
  border-top: 0;
}

.ledger-head {
  background: #0c1e26;
  color: var(--steel);
  font-size: 10px;
}

.ledger-row span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.ledger-head span {
  font-weight: 400;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  min-height: 100%;
  padding: 18px;
  background: var(--panel);
  border: 4px solid var(--line-strong);
  box-shadow: 6px 6px 0 var(--shadow);
}

.step-no {
  display: inline-block;
  margin-bottom: 14px;
}

.site-footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  background: #061014;
  border-top: 4px solid var(--line-strong);
}

.footer-grid {
  display: grid;
  gap: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-name {
  margin: 0 0 6px;
  font-size: 12px;
}

.footer-role {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.footer-wallet a {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.disclaimer {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
  font-size: 17px;
}

@keyframes blink {
  50% { opacity: 0.35; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .hero,
  .pipeline,
  .facts {
    grid-template-columns: 1fr;
  }

  .strip-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .strip-addr {
    font-size: 18px;
  }

  .header-row {
    align-items: flex-start;
    padding: 12px 0 8px;
  }

  .nav {
    width: 100%;
  }

  .section {
    scroll-margin-top: 240px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 18px;
  }

  .wrap {
    width: min(1120px, calc(100% - 24px));
  }

  .lead,
  .log p,
  .pipeline p,
  .ledger-row {
    font-size: 18px;
  }

  .pull {
    font-size: 22px;
  }

  .ledger-row,
  .log li {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .strip-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .strip-actions .btn,
  .hero-actions .btn,
  .btn[data-copy],
  .strip-actions .btn[data-copy] {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot,
  .marquee-track { animation: none; }
  .btn:hover { transform: none; }
}
