/* ── VARIABLES ── */
:root {
  --bg:        oklch(0.135 0.026 272);
  --bg-1:      oklch(0.165 0.028 272);
  --panel:     oklch(0.17  0.028 272 / 0.72);
  --line:      oklch(0.40 0.06 270 / 0.32);
  --line-soft: oklch(0.40 0.06 270 / 0.16);
  --ink:       oklch(0.97 0.012 240);
  --ink-soft:  oklch(0.78 0.03 250);
  --ink-mute:  oklch(0.58 0.04 260);
  --ink-dim:   oklch(0.45 0.04 265);
  --cyan:      oklch(0.88 0.18 200);
  --cyan-glow: oklch(0.88 0.20 200 / 0.55);
  --mag:       oklch(0.72 0.30 340);
  --mag-glow:  oklch(0.72 0.30 340 / 0.55);
  --lime:      oklch(0.92 0.24 132);
  --lime-glow: oklch(0.92 0.24 132 / 0.50);
  --amber:     oklch(0.84 0.17 80);
  --amber-glow:oklch(0.84 0.17 80 / 0.50);
  --rose:      oklch(0.70 0.20 25);
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

/* ── BACKDROP ── */
.bg-grid, .bg-glow, .bg-scan, .bg-noise {
  position: fixed; inset: 0; pointer-events: none;
}
.bg-grid {
  z-index: 0;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 90%);
}
.bg-glow {
  z-index: 0;
  background:
    radial-gradient(60vmax 60vmax at 12% 18%, oklch(0.55 0.20 200 / 0.18), transparent 60%),
    radial-gradient(50vmax 50vmax at 88% 80%, oklch(0.50 0.25 320 / 0.20), transparent 60%),
    radial-gradient(40vmax 40vmax at 90% 8%,  oklch(0.55 0.22 130 / 0.10), transparent 60%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2vmax, 2vmax) scale(1.04); }
}
.bg-scan {
  z-index: 1;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 2px,
    oklch(0.30 0.04 270 / 0.06) 3px, transparent 4px);
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.bg-noise {
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
#root { position: relative; z-index: 2; }

/* ── LAYOUT ── */
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

/* ── PANEL ── */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.panel.solid { background: var(--bg-1); }
.panel::before, .panel::after,
.panel > .br-bl, .panel > .br-br {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan-glow));
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius-lg); }
.panel::after  { top: -1px; right: -1px; border-left: 0;  border-bottom: 0; border-top-right-radius: var(--radius-lg); }
.panel > .br-bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; border-bottom-left-radius: var(--radius-lg); }
.panel > .br-br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; border-bottom-right-radius: var(--radius-lg); }

/* ── BUTTONS ── */
.btn {
  appearance: none;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--bg-1); color: var(--ink);
  border-radius: 8px; padding: 12px 18px;
  cursor: pointer; transition: all .2s ease;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 18px var(--cyan-glow); }
.btn.primary {
  background: var(--cyan); color: oklch(0.15 0.04 220);
  border-color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow), inset 0 0 0 1px oklch(1 0 0 / 0.3);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 36px var(--cyan-glow), inset 0 0 0 1px oklch(1 0 0 / 0.4); }
.btn.ghost { background: transparent; }
.btn .arrow { width: 16px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn .dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: oklch(0.135 0.026 272 / 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px var(--cyan-glow)); }
.brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: 0.04em; }
.brand-name .slash { color: var(--cyan); margin: 0 4px; }
.brand-tag {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase;
  border-left: 1px solid var(--line); padding-left: 10px; margin-left: 4px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--ink-soft); text-decoration: none;
  padding: 8px 12px; border-radius: 6px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover { color: var(--cyan); background: oklch(0.88 0.18 200 / 0.08); }
.nav-links a .hash { color: var(--ink-dim); }
.wallet-cluster { display: flex; align-items: center; gap: 10px; }
.net-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--ink-soft); border: 1px solid var(--line);
  background: var(--bg-1); padding: 8px 12px;
  border-radius: 8px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.net-pill .pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 8px var(--lime-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.5; transform: scale(1.15); } }

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--bg-1); border: 1px solid var(--line);
  color: var(--ink); width: 38px; height: 38px;
  border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-size: 14px;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-sheet {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  background: oklch(0.135 0.026 272 / 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(16px, 3vw, 40px) 22px;
  display: none;
}
.nav-sheet.open { display: block; }
.nav-sheet a {
  display: block; font-family: "JetBrains Mono", monospace; font-size: 13px;
  color: var(--ink-soft); text-decoration: none;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-sheet a:last-child { border-bottom: 0; }
.nav-sheet a:hover { color: var(--cyan); }
.nav-sheet a .hash { color: var(--ink-dim); margin-right: 8px; }

/* ── HERO ── */
.hero { min-height: calc(100vh - 65px); display: flex; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 24px; border: 1px solid var(--line);
  background: var(--bg-1); padding: 8px 14px; border-radius: 999px;
}
.hero-eyebrow .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow);
  animation: pulse 2s ease-in-out infinite;
}
.hero-eyebrow .sep { width: 1px; height: 10px; background: var(--line); }

.hero h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.9; letter-spacing: -0.03em;
  margin: 0 0 32px; color: var(--ink); text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--mag) 60%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 400;
  filter: drop-shadow(0 0 30px var(--cyan-glow));
}
.hero h1 .bracket { color: var(--cyan); font-weight: 300; }

.hero-lede {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  color: var(--ink-soft); max-width: 62ch; margin: 0 0 36px;
}
.hero-lede strong { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-grid {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

/* HUD panel */
.hud { padding: 18px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-soft); }
.hud-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px; margin-bottom: 14px;
  color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase; font-size: 10.5px;
}
.hud-head .dots { display: flex; gap: 6px; }
.hud-head .dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.hud-head .dots .on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan-glow); }
.hud-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dotted var(--line-soft);
}
.hud-row:last-child { border-bottom: 0; }
.hud-row .k { color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; }
.hud-row .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-row .v.cy { color: var(--cyan); }
.hud-row .v.mg { color: var(--mag); }
.hud-row .v.lm { color: var(--lime); }
.hud-bars {
  margin-top: 14px; display: grid;
  grid-template-columns: repeat(40, 1fr); gap: 2px;
  align-items: end; height: 70px;
}
.hud-bars span {
  display: block; width: 100%; border-radius: 1px;
  animation: barpulse 4s ease-in-out infinite;
}
@keyframes barpulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Stat strip */
.stat-strip {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .label {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.stat .label .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan-glow); }
.stat .value {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.stat .delta { margin-top: 8px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--lime); letter-spacing: 0.05em; }

/* ── FOOTER ── */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 60px) 0 30px;
  background: oklch(0.13 0.025 272);
}
.foot-ascii {
  font-family: "JetBrains Mono", monospace;
  color: var(--cyan); text-shadow: 0 0 14px var(--cyan-glow);
  opacity: 0.65; font-size: 10px; line-height: 1.1;
  margin: 0 0 24px; overflow: hidden; white-space: nowrap;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.foot h4 {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a {
  color: var(--ink-soft); text-decoration: none;
  font-family: "JetBrains Mono", monospace; font-size: 13px;
  letter-spacing: 0.04em; transition: color .2s ease;
}
.foot a:hover { color: var(--cyan); }
.foot-blurb { font-family: "Space Grotesk", sans-serif; color: var(--ink-soft); font-size: 14px; line-height: 1.5; max-width: 40ch; margin: 14px 0 0; }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; flex-wrap: wrap;
}

/* ── ENTRANCE ── */
.fade-in { animation: rise 0.9s cubic-bezier(.22,.61,.36,1) backwards; }
.fade-in.d1 { animation-delay: .04s; }
.fade-in.d2 { animation-delay: .14s; }
.fade-in.d3 { animation-delay: .26s; }
.fade-in.d4 { animation-delay: .38s; }
.fade-in.d5 { animation-delay: .50s; }
.fade-in.d6 { animation-delay: .64s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
  .bg-glow  { animation: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav .nav-links  { display: none; }
  .nav .nav-toggle { display: inline-flex; }
  .nav .brand-tag  { display: none; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hud { max-width: 480px; }
}
@media (max-width: 880px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .net-pill span:last-child { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 15px; }
  .net-pill { display: none; }
}
