:root {
  --bg: #04060c;
  --ink: #f4fbff;
  --muted: #9eb0c2;
  --line: rgba(190, 236, 255, 0.18);
  --ice: #8ef6ff;
  --blue: #3d7dff;
  --glass: rgba(8, 14, 24, 0.52);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  font-family: Manrope, "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(40, 120, 255, 0.28), transparent 60%),
    radial-gradient(700px 420px at 0% 10%, rgba(120, 240, 255, 0.12), transparent 55%),
    var(--bg);
}
h1, h2, .brand { font-family: Unbounded, Manrope, sans-serif; font-weight: 700; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: #1c6ea8; color: white; }

#pool {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.2) 0%, rgba(4, 6, 12, 0.05) 28%, rgba(4, 6, 12, 0.55) 68%, rgba(4, 6, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 6, 12, 0.72) 0%, rgba(4, 6, 12, 0.15) 46%, rgba(4, 6, 12, 0) 70%);
}
.app {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.top {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(18px);
}
.brand { text-decoration: none; letter-spacing: -0.04em; font-size: 16px; white-space: nowrap; }
.brand span { color: var(--ice); margin-left: 6px; font-size: 12px; }
.live {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}
.live span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.live b { color: var(--ice); font-weight: 700; }
.live .rpc { letter-spacing: 0.08em; text-transform: uppercase; }
.top nav { display: flex; gap: 14px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

.hero {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 760px;
  padding: 48px 0 28px;
}
#split, #inspect, #route, #about { scroll-margin-top: 96px; }
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: end;
  margin: 10px 0 22px;
}
.about h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.about-copy p:last-child {
  margin: 0;
  max-width: 28ch;
  color: #d5e4ef;
  font-size: 18px;
  line-height: 1.45;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.5);
  backdrop-filter: blur(18px);
}
.steps b { color: var(--ice); letter-spacing: 0.14em; font-size: 13px; }
.steps span { font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(142, 246, 255, 0.45);
  background: linear-gradient(180deg, rgba(142, 246, 255, 0.22), rgba(61, 125, 255, 0.35));
}
.btn.ghost { background: rgba(8, 14, 24, 0.35); }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.feature { position: relative; overflow: hidden; min-height: 150px; }
.feature .num {
  margin: 0;
  color: var(--ice);
  letter-spacing: 0.18em;
  font-size: 12px;
}
.feature h2 { margin: 10px 0 6px; font-size: 28px; letter-spacing: -0.04em; }
.feature p { margin: 0; color: var(--muted); }
.feature i {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 40%;
  background: linear-gradient(90deg, var(--ice), var(--blue));
}
.kicker {
  margin: 0 0 12px;
  color: var(--ice);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  background: linear-gradient(180deg, #ffffff 20%, #b7f6ff 70%, #6aa4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 18px 0 0; max-width: 46ch; color: #d5e4ef; font-size: 17px; line-height: 1.5; }
.standby { margin: 14px 0 0; color: var(--ice); font-size: 14px; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 460px; }
.meters div {
  position: relative;
  overflow: hidden;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.4);
  backdrop-filter: blur(10px);
}
.meters i {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 40%;
  background: linear-gradient(90deg, var(--ice), var(--blue));
}
.meters span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.deck {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.glass {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.panel-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.04em; }
.panel-head p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.row, .floor { display: flex; gap: 10px; align-items: center; }
#mint, #floor, button {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.55);
  padding: 13px 14px;
}
#mint { flex: 1; min-width: 0; width: 100%; }
button {
  cursor: pointer;
  background: linear-gradient(180deg, rgba(142, 246, 255, 0.2), rgba(61, 125, 255, 0.28));
  white-space: nowrap;
}
button:hover:not(:disabled) { filter: brightness(1.15); }
button:disabled { opacity: 0.4; cursor: default; }

label { display: block; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
label b { float: right; color: var(--ink); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 4px rgba(142, 246, 255, 0.25);
  cursor: pointer;
}
label.buy input[type="range"] { accent-color: #8ef6ff; background: linear-gradient(90deg, rgba(142, 246, 255, 0.85), rgba(255, 255, 255, 0.08)); }
label.reb input[type="range"] { background: linear-gradient(90deg, rgba(186, 214, 255, 0.9), rgba(255, 255, 255, 0.08)); }
label.roll input[type="range"] { background: linear-gradient(90deg, rgba(61, 125, 255, 0.95), rgba(255, 255, 255, 0.08)); }
.floor { margin-top: 16px; }
.floor label { margin: 0; }
#floor { width: 120px; flex: 0 0 120px; }
#sum { margin-left: auto; color: var(--ice); letter-spacing: 0.14em; font-weight: 700; }
#route-form > button { margin-top: 16px; }

.msg { min-height: 1.2em; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.msg.bad { color: #ffb4c0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.stats div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.46);
  backdrop-filter: blur(16px);
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stats b { display: block; margin-top: 8px; font-size: 22px; letter-spacing: -0.03em; }

.receipts { margin-top: 16px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed:empty::before { content: "No receipts yet."; color: var(--muted); font-size: 14px; }
.feed li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.feed code {
  color: var(--ice);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(142, 246, 255, 0.08);
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.docs {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 72px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(16px);
}
.docs h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.05em; line-height: 0.95; }
.docs h2 { margin-top: 28px; font-size: 22px; }
.docs p, .docs li { color: var(--muted); line-height: 1.55; }
.docs code { color: var(--ice); }
.nav {
  width: min(760px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav nav { display: flex; gap: 14px; }
.nav a { color: var(--muted); text-decoration: none; }

@media (max-width: 900px) {
  .top { border-radius: 22px; flex-wrap: wrap; }
  .live { order: 3; width: 100%; }
  .hero { min-height: 68vh; max-width: none; padding-top: 28px; }
  .hero h1 { font-size: clamp(46px, 12vw, 72px); }
  .about { grid-template-columns: 1fr; gap: 16px; }
  .deck, .stats { grid-template-columns: 1fr 1fr; }
  .veil {
    background: linear-gradient(180deg, rgba(4, 6, 12, 0.25), rgba(4, 6, 12, 0.2) 40%, rgba(4, 6, 12, 0.88));
  }
}
@media (max-width: 640px) {
  .deck, .stats { grid-template-columns: 1fr; }
  .row, .floor { flex-direction: column; align-items: stretch; }
  #floor, button, #mint { width: 100%; flex-basis: auto; }
  #sum { margin: 0; }
  .meters { grid-template-columns: 1fr; }
  .app { width: min(1180px, calc(100% - 20px)); }
}
