:root {
  --bg: #0a0a0f;
  --bg-elevated: #111119;
  --bg-card: #14141e;
  --bg-terminal: #0d0d14;
  --fg: #e8e8ec;
  --fg-muted: #6b6b7b;
  --fg-dim: #3a3a4a;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --green: #00e676;
  --yellow: #ffd740;
  --red: #ff5252;
  --border: #1e1e2e;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.nav-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--fg);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 1px;
}

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

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

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

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

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  background: var(--accent-glow);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

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

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

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--fg-muted);
}

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

/* TERMINAL */
.terminal-section {
  padding: 40px 24px 100px;
  display: flex;
  justify-content: center;
}

.terminal-window {
  max-width: 900px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-terminal);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--fg-muted);
}

.terminal-body {
  padding: 0;
}

.terminal-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 0.8fr 0.8fr 0.8fr;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  transition: background 0.2s;
}

.terminal-header-row {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--fg-dim);
  background: rgba(20, 20, 30, 0.5);
  padding: 10px 20px;
}

.terminal-row.highlight {
  background: rgba(0, 212, 255, 0.04);
  border-left: 2px solid var(--accent);
}

.terminal-row.dimmed {
  opacity: 0.5;
}

.t-col { display: flex; align-items: center; }
.t-match { color: var(--fg); font-weight: 500; }
.t-market { color: var(--fg-muted); }
.t-prob { color: var(--fg); }
.t-odds { color: var(--fg-muted); }

.ev-positive { color: var(--green); font-weight: 600; }
.ev-neutral { color: var(--yellow); }
.conf-high { color: var(--green); font-size: 11px; }
.conf-med { color: var(--yellow); font-size: 11px; }
.conf-low { color: var(--fg-dim); font-size: 11px; }

.terminal-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--fg-dim);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.blink {
  color: var(--green);
  animation: blink 1.5s step-end infinite;
}

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

/* FEATURES */
.features {
  padding: 100px 24px;
  background: var(--bg);
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 56px;
  line-height: 1.15;
}

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

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

.feature-icon {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  display: inline-block;
  background: var(--accent-glow);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

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

/* ARCHITECTURE */
.architecture {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.arch-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-top: 20px;
}

.market-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}

.market-item:first-child {
  border-top: 1px solid var(--border);
}

.market-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.market-status {
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 3px;
}

.market-status.active {
  color: var(--green);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

/* CLOSING */
.closing {
  padding: 120px 24px;
  text-align: center;
}

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

.closing-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 48px;
}

.closing-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.closing-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 48px;
}

.closing-principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.principle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

.principle-marker {
  color: var(--accent);
  font-size: 8px;
}

/* FOOTER */
.footer {
  padding: 40px 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(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-note {
  font-size: 12px;
  color: var(--fg-dim);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .arch-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .terminal-row {
    grid-template-columns: 1.5fr 1fr 0.8fr 0.6fr 0.8fr 0.7fr;
    font-size: 11px;
    padding: 10px 12px;
  }

  .terminal-header-row {
    font-size: 8px;
    padding: 8px 12px;
  }

  .terminal-footer {
    font-size: 8px;
    padding: 8px 12px;
  }

  .hero-metrics {
    gap: 20px;
  }

  .metric-value {
    font-size: 22px;
  }

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

  .nav-status .status-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .terminal-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.6fr;
    font-size: 10px;
  }

  .t-odds, .t-conf {
    display: none;
  }

  .terminal-header-row .t-odds,
  .terminal-header-row .t-conf {
    display: none;
  }
}