:root {
  /* Palette: accents deliberately NOT Robinhood green. Swap here to re-theme. */
  --bg: #0a0a10;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --fg: #f2f2f7;
  --fg-secondary: #b9b9c6;
  --fg-muted: #7d7d8f;
  --fg-faint: #4c4c5c;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-2: #22d3ee;
  --up: #34d399;
  --down: #f87171;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#candles {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

/* ── Ticker tape ─────────────────────────────────────────── */
.ticker {
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 6px 0;
  user-select: none;
  background: rgba(10, 10, 16, 0.75);
  backdrop-filter: blur(6px);
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

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

.ticker-item { color: var(--fg-muted); }
.ticker-item .sym { color: var(--fg-secondary); font-weight: 500; }
.ticker-item .chg-up { color: var(--up); }
.ticker-item .chg-down { color: var(--down); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.wordmark em { font-style: normal; color: var(--fg-muted); font-weight: 500; }

.soon-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Hero ────────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: center;
  padding: 72px 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

h1 .hl {
  background: var(--accent);
  color: var(--bg);
  padding: 0 12px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--fg-secondary);
  font-size: 16px;
}

.nowrap { white-space: nowrap; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-block { margin-top: 28px; }

.cta {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 150ms var(--ease), transform 150ms var(--ease);
}

.cta:hover:not(:disabled) { background: var(--accent-bright); }
.cta:active:not(:disabled) { transform: translateY(1px); }
.cta:disabled { cursor: default; }

.cta.joined {
  background: var(--surface);
  color: var(--accent-2);
  border: 1px solid var(--border);
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 14px;
}

.cta-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--fg-muted);
  min-height: 20px;
}

.cta-note.error { color: var(--down); }

.cta-note a { color: var(--accent-2); }

/* ── Waitlist stat panel ─────────────────────────────────── */
.stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.stat-live { color: var(--down); }

.counter {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 52px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.digit-sep { color: var(--fg-muted); }

.digit-placeholder { color: var(--fg-faint); }

.digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.digit-col {
  display: flex;
  flex-direction: column;
  transition: transform 700ms var(--ease);
}

.digit-col span { height: 1em; line-height: 1; display: block; }

.counter-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Launch terminal ─────────────────────────────────────── */
.launch-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 56px;
}

.terminal {
  width: min(620px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
  min-height: 232px;
  color: var(--fg-secondary);
}

.t-line { opacity: 0; transition: opacity 250ms var(--ease); }
.t-line.show { opacity: 1; }

.t-row { display: flex; align-items: baseline; }

.t-leader {
  flex: 1;
  margin: 0 10px;
  border-bottom: 1px dotted var(--fg-faint);
  opacity: 0.45;
}

.t-prompt { color: var(--accent-bright); font-weight: 700; }
.t-sym { color: var(--fg); font-weight: 700; }
.t-flag { color: var(--fg-muted); }
.t-ok { color: var(--up); }
.t-none { color: var(--fg-muted); font-style: italic; }
.t-final { color: var(--accent-2); }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--accent-2);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

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

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  font-size: 12px;
  color: var(--fg-faint);
}

.site-footer strong { color: var(--fg-muted); font-weight: 500; }

.site-footer p { max-width: 992px; margin: 0 auto; }

.footer-links { margin-top: 8px; display: flex; gap: 8px; max-width: 992px; margin-left: auto; margin-right: auto; }

.footer-links a { color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg-secondary); }

/* ── Wallet modal ────────────────────────────────────────── */
.wallet-modal { position: fixed; inset: 0; z-index: 50; }

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(4px);
}

.wallet-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 32px));
  background: #131320;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.wallet-modal-panel h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms var(--ease);
}

.wallet-option:hover { border-color: var(--accent); }

.wallet-option img { width: 24px; height: 24px; border-radius: 6px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 40px;
  }
  .stat { justify-self: start; min-width: min(280px, 100%); }
  .soon-pill { display: none; }
  .terminal-body { font-size: 11.5px; padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .digit-col { transition: none; }
  .t-cursor { animation: none; }
}
