:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-hover: #1c1c28;
  --fg: #e8e8ef;
  --fg-dim: #8888a0;
  --fg-muted: #55556a;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.15);
  --accent-glow: rgba(0, 229, 160, 0.3);
  --red: #ff4466;
  --yellow: #ffc233;
  --blue: #4488ff;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --font: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.accent {
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== MARKETS ===== */
.markets {
  padding: 120px 24px;
}

.markets-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.markets h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--fg-dim);
  font-size: 1.1rem;
  margin-bottom: 56px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, background 0.2s;
}

.market-card:hover {
  border-color: rgba(0, 229, 160, 0.2);
  background: var(--bg-hover);
}

.market-card.featured {
  border-color: rgba(0, 229, 160, 0.15);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 229, 160, 0.05) 100%);
}

.market-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.market-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.market-card p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 24px 120px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* Terminal Visual */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--accent); }

.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
}

.terminal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terminal-body code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  display: block;
}

.terminal-body code.highlight {
  color: var(--accent);
  background: var(--accent-dim);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 4px;
}

.dim { color: var(--fg-muted); }
.prob { color: var(--blue); font-weight: 500; }
.prob.up { color: var(--accent); }
.delta { color: var(--accent); font-size: 11px; }
code .delta:nth-child(3) { color: var(--red); }

/* Rails Visual */
.rails-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rail-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--fg-muted);
  width: 70px;
}

.rail-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.rail-pulse {
  position: absolute;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.rail:nth-child(2) .rail-pulse { animation-delay: 0.4s; }
.rail:nth-child(3) .rail-pulse { animation-delay: 0.8s; }

@keyframes pulse {
  0% { left: -40%; }
  100% { left: 100%; }
}

.rail-status {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  width: 40px;
  text-align: right;
}

/* Watchlist Visual */
.watchlist-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.watch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background 0.15s;
}

.watch-item:last-child { border-bottom: none; }

.watch-item:hover { background: var(--bg-hover); }

.watch-item.active {
  background: var(--accent-dim);
}

.watch-name {
  font-weight: 500;
}

.watch-prob {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.watch-prob.up { color: var(--accent); }

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 229, 160, 0.03) 50%, var(--bg) 100%);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--fg);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
    min-height: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .market-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .feature-row.reverse > * { direction: ltr; }

  .feature-row {
    margin-bottom: 64px;
  }

  .markets,
  .features,
  .closing {
    padding: 64px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .terminal-body code {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .market-card {
    padding: 24px 20px;
  }

  .feature-text h2 {
    font-size: 1.6rem;
  }
}