:root {
  --paper: #fbfaf7;
  --panel: #ffffff;
  --ink: #141414;
  --muted: #707070;
  --line: #e5e0d8;
  --soft: #f4f0e8;
  --energy: #ff8a1d;
  --energy2: #ffe2b7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,20,20,.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(20,20,20,.04) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,.9);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.brand span { display: grid; gap: 1px; }
.brand strong { font-size: 14px; letter-spacing: .18em; }
.brand small, nav a, .connect { color: var(--muted); font-size: 12px; font-weight: 750; }
nav { display: flex; gap: 6px; }
nav a, .connect {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 13px;
}
nav a:hover { border-color: var(--line); background: #fff; color: var(--ink); }
.connect { justify-self: end; background: var(--ink); color: #fff; cursor: pointer; }

main { position: relative; z-index: 1; }
.hero {
  width: min(1120px, calc(100% - 36px));
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 44px;
  align-items: center;
  margin: 0 auto;
  padding: 62px 0;
}
.kicker {
  margin: 0 0 12px;
  color: var(--energy);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}
h1 { max-width: 700px; font-size: clamp(50px, 7vw, 86px); line-height: .94; }
h2 { font-size: clamp(34px, 4vw, 58px); line-height: .98; }
p { color: #444; line-height: 1.62; }
.heroCopy p:not(.kicker) { max-width: 610px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.actions a, .launchPanel button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 17px;
  background: #fff;
  font-weight: 850;
}
.actions .primary, .launchPanel button { background: var(--energy); color: #120b05; }

.terminal {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 55px rgba(40,30,10,.08);
}
.terminalHead {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-family: "Courier New", monospace;
  font-size: 12px;
}
.terminalHead strong { color: var(--energy); }
.statRows { display: grid; grid-template-columns: repeat(2, 1fr); }
.statRows div {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statRows span, .routeNotes span, .launchReceipt span {
  color: var(--muted);
  font: 800 11px "Courier New", monospace;
  text-transform: uppercase;
}
.statRows strong { font: 900 28px "Courier New", monospace; }
.routeLine {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  font: 900 13px "Courier New", monospace;
}
.routeLine i { height: 1px; background: var(--energy); }

.tape { overflow: hidden; border-block: 1px solid var(--line); background: #fff; }
.tape div { display: flex; width: max-content; animation: tape 25s linear infinite; }
.tape span { padding: 13px 28px; border-right: 1px solid var(--line); font: 800 12px "Courier New", monospace; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.read, .markets, .route, .launch, .docs {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.sectionTitle, .sectionBar { margin-bottom: 24px; }
.sectionBar { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.readGrid, .marketGrid, .docTable { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
article, .marketCard, .docTable div, .routeShell, .launchPanel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
}
.readGrid article { min-height: 210px; padding: 18px; }
.readGrid span { color: var(--energy); font: 900 12px "Courier New", monospace; }
.readGrid h3 { margin: 34px 0 8px; font-size: 22px; }

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
  font: inherit;
}
#marketSearch { max-width: 330px; }
.marketGrid { grid-template-columns: repeat(4, 1fr); }
.marketCard { min-height: 180px; display: grid; gap: 12px; padding: 16px; }
.marketCard:hover { border-color: var(--energy); box-shadow: 0 12px 34px rgba(255,138,29,.11); }
.marketTop { display: flex; justify-content: space-between; color: var(--muted); font: 850 11px "Courier New", monospace; }
.marketCard h3 { margin: 0; font-size: 21px; }
.marketCard p { margin: 0; font-size: 13px; }
.marketCard strong { align-self: end; font: 900 25px "Courier New", monospace; }
.bar { height: 7px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--energy) var(--w), var(--soft) 0); }

.routeShell { display: grid; grid-template-columns: 240px 1fr 260px; gap: 12px; padding: 12px; }
.routeButtons { display: grid; gap: 8px; }
.routeButton {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  padding: 0 14px;
}
.routeButton.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.routeCard {
  display: grid;
  place-items: center;
  min-height: 250px;
  background: linear-gradient(135deg, #fff, var(--energy2));
  border: 1px solid var(--line);
  text-align: center;
}
.routeCard p { margin: 0; color: var(--ink); font: 900 16px "Courier New", monospace; }
.routeCard strong { font: 900 86px "Courier New", monospace; }
.routeCard span { color: var(--muted); font: 800 11px "Courier New", monospace; text-transform: uppercase; }
.routeNotes { display: grid; gap: 8px; }
.routeNotes div { display: grid; align-content: space-between; padding: 14px; border: 1px solid var(--line); background: #fff; }
.routeNotes strong { font-size: 18px; }

.launch { display: grid; grid-template-columns: .82fr 1.18fr; gap: 40px; }
.launchPanel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
label:nth-child(3), .launchPanel button, .launchReceipt { grid-column: 1 / -1; }
.launchPanel button { cursor: pointer; border-radius: 2px; }
.launchReceipt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.launchReceipt strong { font: 900 18px "Courier New", monospace; }

.docTable { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); background: #fff; }
.docTable div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px;
  border-width: 0 0 1px;
}
.docTable div:last-child { border-bottom: 0; }
.docTable strong { font-size: 14px; }
.docTable span { color: #444; }

@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  nav { display: none; }
  .hero, .launch, .routeShell { grid-template-columns: 1fr; }
  .marketGrid, .readGrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  h1 { font-size: 46px; }
  .hero { min-height: auto; padding: 48px 0; }
  .sectionBar { display: grid; align-items: stretch; }
  #marketSearch { max-width: none; }
  .marketGrid, .readGrid, .launchPanel { grid-template-columns: 1fr; }
  .docTable div { grid-template-columns: 1fr; gap: 8px; }
  .statRows { grid-template-columns: 1fr; }
}
