:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --surface-2: #181c22;
  --border: #23262d;
  --text: #e7e9ec;
  --muted: #8b9099;
  --accent: #5ed3b3;
  --accent-dim: #2a4f47;
  --danger: #f08a8a;
  --radius: 12px;
  --maxw: 920px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
strong { color: var(--text); font-weight: 600; }
section { padding: 0 24px; }
main > section { max-width: var(--maxw); margin: 0 auto; }

/* Header */
.site-header {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
}
.wordmark { color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.wordmark:hover { text-decoration: none; }
.wordmark.small { font-size: 16px; color: var(--muted); }
.site-header nav a { color: var(--muted); margin-left: 24px; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 64px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 28px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,211,179,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(94,211,179,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,211,179,0); }
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; }
.lede { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 20px 0 32px; }

/* Waitlist form */
.waitlist { display: flex; gap: 10px; max-width: 460px; }
.waitlist input {
  flex: 1; min-width: 0; padding: 13px 15px; font-size: 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; outline: none;
  font-family: inherit;
}
.waitlist input:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(94,211,179,0.12); }
.waitlist input::placeholder { color: #5b616b; }
.waitlist button {
  padding: 13px 20px; font-size: 16px; font-weight: 600; white-space: nowrap;
  background: var(--accent); color: #06231c; border: none; border-radius: 10px;
  cursor: pointer; font-family: inherit; transition: filter .15s ease;
}
.waitlist button:hover { filter: brightness(1.07); }
.waitlist button:disabled { opacity: .6; cursor: default; }
.form-msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--accent); }
.form-msg.error { color: var(--danger); }

.advanced { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 560px; }
.advanced .hint { color: #6b7079; }

/* Network / leaderboard */
.network { padding-top: 40px; padding-bottom: 24px; }
.network h2, .how h2, .faq h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.stat strong { font-size: 1.15rem; margin-right: 4px; }
.stat.live { display: inline-flex; align-items: center; gap: 8px; }
.board-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.board { width: 100%; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: 13px 18px; font-size: 15px; }
.board thead th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
.board tbody tr { border-top: 1px solid var(--border); }
.board td.num, .board th.num { text-align: right; font-variant-numeric: tabular-nums; }
.board .wallet { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; color: var(--text); }
.board .rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.board-empty td { color: var(--muted); text-align: center; padding: 28px; }

/* How it works */
.how { padding-top: 56px; padding-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Honest note */
.note { padding-top: 48px; padding-bottom: 8px; }
.note p { max-width: var(--maxw); margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { padding-top: 56px; padding-bottom: 64px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--muted); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; max-width: 680px; }

/* Footer */
.site-footer { max-width: var(--maxw); margin: 40px auto 0; padding: 28px 24px 48px; border-top: 1px solid var(--border); }
.foot-row { display: flex; align-items: center; justify-content: space-between; }
.site-footer nav a { color: var(--muted); margin-left: 20px; font-size: 14px; }
.site-footer nav a:hover { color: var(--text); }
.fine { color: #5b616b; font-size: 13px; margin: 14px 0 0; }

/* Content pages (privacy / terms) */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }
.doc h1 { font-size: 2rem; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.doc p, .doc li { color: #c3c7cd; }
.doc a.back { display: inline-block; margin-bottom: 24px; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .waitlist { flex-direction: column; }
  .waitlist button { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}
