:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --card: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --amber: #d29922;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav .brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
nav .brand span { color: var(--accent); }
nav a:not(.brand) { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:not(.brand):hover { color: var(--text); }
nav .spacer { flex: 1; }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 32px 20px 60px; }
.hero { max-width: 900px; margin: 0 auto; padding: 64px 20px 40px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 18px; font-weight: 800; }
.hero h1 em { color: var(--red); font-style: normal; }
.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 24px; }

h1 { font-size: 32px; margin-bottom: 10px; }
h2 { font-size: 22px; margin-bottom: 12px; }

/* Buttons */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0d1117;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn:disabled { background: #30363d; color: #8b949e; cursor: not-allowed; filter: none; }

/* Sample banner */
.sample-banner {
  background: rgba(210, 153, 34, 0.12);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}
/* Live banner */
.live-banner {
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

/* Stats */
.stats { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 32px 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  flex: 1;
  min-width: 180px;
  text-align: center;
}
.stat-num { font-size: 30px; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.card ul, .card ol { padding-left: 22px; margin: 10px 0; }
.card li { margin-bottom: 8px; }
.steps li { margin-bottom: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.note.small { font-size: 13px; }
.definition-line { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0 24px; font-size: 15px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--bg-soft); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
table.plain { border: none; }
table.plain td { border-bottom: 1px solid var(--border); }
table.plain tr:last-child td { border-bottom: none; }

.prob { font-weight: 800; color: var(--accent); }
.win { color: var(--green); font-weight: 700; }
.loss { color: var(--red); font-weight: 700; }
.pending { color: var(--muted); }
.badge-sample { background: rgba(210,153,34,0.15); color: var(--amber); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }

/* Sparkline */
.spark { width: 110px; height: 32px; }

/* Waitlist */
.waitlist { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.waitlist input {
  flex: 1;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
}
.waitlist input:focus { outline: none; border-color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer .disclaimer { max-width: 640px; margin: 0 auto 10px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  nav { flex-wrap: wrap; gap: 10px; }
}
