:root {
  --bg: #0a0a0f;
  --bg-subtle: #12121a;
  --bg-card: #16161f;
  --fg: #e8e6e3;
  --fg-muted: #8a8694;
  --accent: #c084fc;
  --accent-dim: rgba(192, 132, 252, 0.15);
  --amber: #fbbf24;
  --rose: #fb7185;
  --emerald: #34d399;
  --cyan: #22d3ee;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  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: 9999;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(192, 132, 252, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(251, 113, 133, 0.06) 0%, transparent 50%);
  animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3%, 2%); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  background: var(--accent-dim);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--rose) 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--fg-muted);
  max-width: 560px;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  font-weight: 300;
  line-height: 1.7;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

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

@keyframes scroll-down {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- NICHES ---- */
.niches {
  padding: 6rem 2rem;
  background: var(--bg-subtle);
  position: relative;
}

.niches::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192, 132, 252, 0.3), transparent);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.niche-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.niche-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.niche-card:hover::after { opacity: 1; }

.niche-card:nth-child(1)::after { background: linear-gradient(to right, var(--accent), var(--rose)); }
.niche-card:nth-child(2)::after { background: linear-gradient(to right, var(--amber), var(--rose)); }
.niche-card:nth-child(3)::after { background: linear-gradient(to right, var(--cyan), var(--accent)); }
.niche-card:nth-child(4)::after { background: linear-gradient(to right, var(--emerald), var(--cyan)); }
.niche-card:nth-child(5)::after { background: linear-gradient(to right, var(--rose), var(--amber)); }
.niche-card:nth-child(6)::after { background: linear-gradient(to right, var(--accent), var(--emerald)); }

.niche-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.niche-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.niche-card p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.niche-cpm {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cpm-high { background: rgba(52, 211, 153, 0.15); color: var(--emerald); }
.cpm-mid { background: rgba(251, 191, 36, 0.15); color: var(--amber); }

/* ---- HOW IT WORKS ---- */
.how {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 48px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--rose), var(--amber));
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step:nth-child(1) .step-num { background: rgba(192, 132, 252, 0.2); color: var(--accent); }
.step:nth-child(2) .step-num { background: rgba(251, 113, 133, 0.2); color: var(--rose); }
.step:nth-child(3) .step-num { background: rgba(251, 191, 36, 0.2); color: var(--amber); }
.step:nth-child(4) .step-num { background: rgba(52, 211, 153, 0.2); color: var(--emerald); }

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- NUMBERS ---- */
.numbers {
  padding: 5rem 2rem;
  background: var(--bg-subtle);
  position: relative;
}

.numbers::before,
.numbers::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192, 132, 252, 0.3), transparent);
}

.numbers::before { top: 0; }
.numbers::after { bottom: 0; }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat:nth-child(1) .stat-value { color: var(--accent); }
.stat:nth-child(2) .stat-value { color: var(--amber); }
.stat:nth-child(3) .stat-value { color: var(--emerald); }

.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

/* ---- CLOSING ---- */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 600px;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer p {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .niche-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    gap: 2.5rem;
  }
  .step {
    gap: 1.2rem;
  }
  .steps::before {
    left: 22px;
  }
}

@media (max-width: 480px) {
  .niche-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-direction: column;
    gap: 2rem;
  }
  .hero { padding: 2rem 1.5rem; }
  .niches, .how, .numbers, .closing { padding-left: 1.5rem; padding-right: 1.5rem; }
}