:root {
  --base-blue: #0052FF;
  --base-blue-bright: #3D79FF;
  --base-blue-dim: #0038AA;
  --bg: #000000;
  --bg-elevated: #0A0B10;
  --bg-subtle: #111218;
  --border: #1A1C25;
  --border-bright: #252835;
  --text: #FFFFFF;
  --text-muted: #8B8F99;
  --text-dim: #4D525A;
  --green: #3DD87F;
  --red: #F26C6C;
  --mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 82, 255, 0.15), transparent 60%);
  min-height: 100vh;
}

a { color: var(--base-blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

code { color: var(--base-blue-bright); }
pre code { color: var(--text); }

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.nav-brand .accent { color: var(--base-blue-bright); }

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border); }

/* Type */
h1 {
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  margin-top: 48px;
}

h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; margin-top: 32px; }

p + p { margin-top: 16px; }

p { color: var(--text); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--base-blue-bright);
  margin-bottom: 16px;
}

/* Hero */
.hero {
  padding: 100px 0 40px;
  text-align: center;
}

.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elevated);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero .tag .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 20px;
  max-width: 620px;
  margin: 20px auto 0;
}

.hero .cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-bright);
  color: var(--text);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--bg-subtle); text-decoration: none; }

.btn-primary {
  background: var(--base-blue);
  color: var(--text);
  border-color: var(--base-blue);
}
.btn-primary:hover { background: var(--base-blue-bright); border-color: var(--base-blue-bright); color: var(--text); }

/* Jackpot display — Megapot-inspired big number centered */
.jackpot {
  text-align: center;
  margin: 60px auto 0;
  max-width: 880px;
  padding: 48px 32px;
  background: linear-gradient(180deg, rgba(0, 82, 255, 0.08) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.jackpot-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.jackpot-num {
  font-family: var(--mono);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(0, 82, 255, 0.3);
}

.jackpot-num .unit { color: var(--base-blue-bright); font-size: 0.6em; margin-left: 12px; }

.jackpot-meta {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.jackpot-meta-item {
  text-align: center;
}

.jackpot-meta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.jackpot-meta-value {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 48px 0;
}

.stat { background: var(--bg-elevated); padding: 28px 24px; }

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.feature-card:hover { border-color: var(--border-bright); }

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 12px 0;
  color: var(--text);
  font-weight: 500;
}

.feature-card .feature-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--base-blue-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  margin: 20px 0;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom-color: var(--border-bright);
}

td { color: var(--text); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.muted { color: var(--text-muted); }

/* Callouts */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--base-blue-bright);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 28px 0;
}

.callout .label { color: var(--base-blue-bright); margin-bottom: 8px; }

/* Flow */
.flow { margin: 32px 0; }

.flow-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  align-items: start;
}

.flow-step:last-child { border-bottom: none; }

.flow-num {
  font-family: var(--mono);
  color: var(--base-blue-bright);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.flow-content h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.flow-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Scenarios */
.scenario {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 14px;
}

.scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.scenario-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--base-blue-bright);
  letter-spacing: 0.05em;
}

.scenario-odds {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.scenario-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.scenario-body strong { color: var(--text); }

/* Diagram */
.diagram {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  white-space: pre;
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

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

/* Responsive */
@media (max-width: 720px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 480px) and (max-width: 720px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; font-size: 13px; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0 32px; }
  .jackpot { padding: 32px 20px; }
  .jackpot-meta { gap: 24px; }
  .flow-step { grid-template-columns: 50px 1fr; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 82, 255, 0.15);
  color: var(--base-blue-bright);
  border: 1px solid rgba(0, 82, 255, 0.3);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Contracts list */
.contracts {
  margin-top: 32px;
}

.contract-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 18px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top-width: 0;
  align-items: center;
  gap: 20px;
}

.contract-row:first-child { border-top-width: 1px; border-radius: 8px 8px 0 0; }
.contract-row:last-child { border-radius: 0 0 8px 8px; }

.contract-role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contract-addr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--base-blue-bright);
  word-break: break-all;
  text-decoration: none;
}

.contract-addr:hover { text-decoration: underline; }

.contract-addr.empty { color: var(--text-dim); }

@media (max-width: 720px) {
  .contract-row { grid-template-columns: 1fr; padding: 16px; gap: 6px; }
}
