:root {
  --bg: #0c0a09;
  --bg-warm: #1c1917;
  --bg-card: #292524;
  --fg: #fafaf9;
  --fg-muted: #a8a29e;
  --accent: #f59e0b;
  --accent-soft: #fbbf24;
  --ink: #78716c;
  --border: #44403c;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  max-width: 800px;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 3rem;
}

.hero-visual {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
  perspective: 600px;
}

.book-spine {
  width: 60px;
  height: 220px;
  border-radius: 4px 8px 8px 4px;
  transform: rotateY(-8deg);
  box-shadow: 4px 4px 20px rgba(0,0,0,0.4);
}

.book-spine:nth-child(1) { background: linear-gradient(135deg, #f59e0b, #d97706); height: 200px; }
.book-spine:nth-child(2) { background: linear-gradient(135deg, #6366f1, #4f46e5); height: 230px; }
.book-spine:nth-child(3) { background: linear-gradient(135deg, #10b981, #059669); height: 190px; }
.book-spine:nth-child(4) { background: linear-gradient(135deg, #f43f5e, #e11d48); height: 215px; }
.book-spine:nth-child(5) { background: linear-gradient(135deg, #8b5cf6, #7c3aed); height: 205px; }

/* --- Pipeline --- */
.pipeline {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pipeline h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.pipeline-intro {
  text-align: center;
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.steps {
  display: grid;
  gap: 2px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

/* --- Niches --- */
.niches {
  padding: 6rem 2rem;
  background: var(--bg-warm);
}

.niches-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.niches h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}

.niches-sub {
  text-align: center;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.niche-card:hover {
  border-color: var(--accent);
}

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

.niche-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

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

/* --- Numbers --- */
.numbers {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.num-block h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.num-block p {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

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

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 600px;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Footer --- */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--ink);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* --- CTA Button --- */
.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 0 30px rgba(245,158,11,0.25);
}

.hero-cta:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 40px rgba(245,158,11,0.35);
}

/* --- Closing CTA --- */
.closing-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.closing-cta:hover { background: var(--accent-soft); }

/* --- Mobile --- */
@media (max-width: 640px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-visual { gap: 8px; }
  .book-spine { width: 40px; height: 140px !important; }
  .step { grid-template-columns: 40px 1fr; gap: 1rem; }
  .numbers-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .niche-grid { grid-template-columns: 1fr 1fr; }
}