:root {
  --bg: #0f0f1a;
  --bg-card: #16162a;
  --bg-card-secondary: #1e1e35;
  --fg: #e8e8f0;
  --fg-muted: #8888a8;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(255,255,255,0.07);
  --font-display: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

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

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { color: var(--accent); font-size: 1.1rem; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-status { display: flex; align-items: center; gap: 0.5rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.status-text { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }

/* Hero */
.hero { position: relative; padding: 5rem 2.5rem 6rem; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-headline { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.hero-lede { font-size: 1.05rem; color: var(--fg-muted); max-width: 440px; line-height: 1.7; }

/* Niche cards */
.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.niche-card-secondary { background: var(--bg-card-secondary); opacity: 0.85; }
.niche-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.niche-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.niche-score { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; }
.score-high { color: var(--accent); }
.score-mid { color: var(--amber); }
.niche-name { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.3; }
.niche-stats { display: flex; gap: 1.25rem; margin-bottom: 1rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-val { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.stat-key { font-size: 0.7rem; color: var(--fg-muted); }
.niche-signal { display: flex; align-items: center; gap: 0.5rem; }
.signal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.signal-text { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }

/* How it works */
.howitworks { padding: 5rem 2.5rem; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hiw-header { text-align: center; margin-bottom: 3.5rem; }
.hiw-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.hiw-subtitle { color: var(--fg-muted); font-size: 1.05rem; }
.hiw-steps { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.hiw-step { position: relative; }
.step-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--accent); margin-bottom: 0.75rem; opacity: 0.5; }
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; }

/* Niches table */
.niches { padding: 5rem 2.5rem; }
.niches-header { margin-bottom: 2.5rem; }
.niches-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.niches-subtitle { color: var(--fg-muted); font-size: 0.9rem; }
.niches-grid { max-width: 900px; }
.niche-row { display: grid; grid-template-columns: 2fr 0.6fr 0.8fr 0.8fr 0.8fr; gap: 1rem; align-items: center; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.niche-row-head { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); border-bottom: 1px solid var(--border); }
.niche-cell-name { font-size: 0.9rem; font-weight: 600; }
.niche-cell-score { }
.niche-cell-aud, .niche-cell-comp { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-muted); }
.niche-cell-trend { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; }
.trend-up { color: var(--accent); }
.trend-flat { color: var(--fg-muted); }

.pill { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 100px; }
.pill-high { background: var(--accent-dim); color: var(--accent); }
.pill-mid { background: var(--amber-dim); color: var(--amber); }
.pill-low { background: rgba(255,255,255,0.05); color: var(--fg-muted); }

/* Closing */
.closing { padding: 6rem 2.5rem; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%); }
.closing-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.closing-headline { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.5rem; }
.closing-body { color: var(--fg-muted); font-size: 1rem; line-height: 1.8; }

/* Footer */
.footer { padding: 2rem 2.5rem; border-top: 1px solid var(--border); text-align: center; }
.footer-brand { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 0.75rem; }
.footer-copy { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.2); }

/* Responsive */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { margin-top: 0.5rem; }
  .hero { padding: 3rem 1.5rem 4rem; }
  .hiw-steps { grid-template-columns: 1fr; gap: 2rem; }
  .niche-row { grid-template-columns: 1.5fr 0.5fr 0.6fr; }
  .niche-cell-comp, .niche-cell-trend { display: none; }
  .navbar { padding: 1rem 1.5rem; }
  .howitworks, .niches, .closing { padding: 3.5rem 1.5rem; }
  .footer { padding: 1.5rem; }
}