:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --fg: #e8e8e8;
  --fg-muted: #888888;
  --fg-dim: #555555;
  --accent: #ff3d3d;
  --accent-glow: rgba(255, 61, 61, 0.15);
  --gold: #f5c842;
  --gold-glow: rgba(245, 200, 66, 0.1);
  --gradient: linear-gradient(135deg, #ff3d3d 0%, #f5c842 50%, #ff6b35 100%);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --max-width: 1100px;
  --section-gap: 120px;
}

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

html { scroll-behavior: smooth; }

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

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 61, 61, 0.08) 0%, transparent 70%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--fg-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ---- STATS ---- */
.stats {
  padding: 0 24px;
  margin-top: calc(var(--section-gap) * -0.3);
  margin-bottom: var(--section-gap);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #222;
  border-radius: 16px;
  overflow: hidden;
}

.stat-card {
  background: var(--bg-card);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- HOW / FORMULA ---- */
.how {
  padding: 0 24px;
  margin-bottom: var(--section-gap);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 700px;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.formula-step {
  border-left: 2px solid #222;
  padding-left: 24px;
  padding-top: 4px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-dim);
  margin-bottom: 12px;
}

.formula-step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-example {
  font-size: 15px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}

.formula-step p:last-child {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- NICHES ---- */
.niches {
  padding: 0 24px;
  margin-bottom: var(--section-gap);
}

.niches-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.niches h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 48px;
}

.niche-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.niche-card:hover {
  border-color: #333;
}

.niche-icon {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}

.niche-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.niche-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.niche-metric {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  padding: 6px 12px;
  border-radius: 6px;
}

/* ---- STACK / REVENUE ---- */
.stack {
  padding: 0 24px;
  margin-bottom: var(--section-gap);
}

.stack-inner {
  max-width: 720px;
  margin: 0 auto;
}

.stack h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 48px;
}

.revenue-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
}

.revenue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: var(--bg-card);
}

.revenue-source {
  font-size: 16px;
  font-weight: 500;
}

.revenue-range {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg-muted);
}

.revenue-total {
  background: var(--bg-elevated);
}

.revenue-total .revenue-source {
  font-weight: 700;
}

.revenue-total .revenue-range {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 24px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(255, 61, 61, 0.06) 0%, transparent 70%);
}

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

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid #1a1a1a;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.footer-divider {
  color: var(--fg-dim);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .formula-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .formula-step {
    border-left: none;
    border-top: 2px solid #222;
    padding-left: 0;
    padding-top: 20px;
  }

  .niche-cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -1px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 28px 24px;
  }

  .revenue-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
  }
}

/* ---- HERO CTA ---- */
.hero-cta {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-btn-primary {
  display: inline-block;
  padding: 18px 40px;
  background: var(--gradient);
  border-radius: 12px;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255, 61, 61, 0.25);
}

.cta-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 61, 61, 0.35);
}

.cta-hint {
  font-size: 13px;
  color: var(--fg-dim);
}