/* ====== RESET & BASE ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0c0a14;
  --bg-surface: #141020;
  --bg-card: #1a1528;
  --text-primary: #ede8d8;
  --text-secondary: #a8a0b8;
  --accent: #d4a853;
  --accent-glow: rgba(212, 168, 83, 0.25);
  --accent-soft: #c49640;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-style: italic; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

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

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Book stack visual */
.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
}

.book-stack {
  position: relative;
  width: 200px;
  height: 140px;
  margin: 0 auto;
}

.book {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.book-1 {
  width: 120px; height: 28px;
  background: linear-gradient(135deg, #8b5e3c, #6b4226);
  bottom: 0; left: 50%; transform: translateX(-50%);
}

.book-2 {
  width: 130px; height: 28px;
  background: linear-gradient(135deg, #2d4a5e, #1a3040);
  bottom: 32px; left: 50%; transform: translateX(-50%) rotate(-2deg);
}

.book-3 {
  width: 110px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  bottom: 64px; left: 50%; transform: translateX(-50%) rotate(1deg);
}

.book-glow {
  position: absolute;
  bottom: 40px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 80px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ====== FEATURES ====== */
.features {
  padding: 6rem 2rem;
  background: var(--bg-surface);
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.features-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-weight: 600;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== HOW IT WORKS ====== */
.how {
  padding: 6rem 2rem;
}

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

.how h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3.5rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

.step-number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  min-width: 60px;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ====== CLOSING ====== */
.closing {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.closing p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.closing-tagline {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero { padding: 4rem 1.5rem 3rem; min-height: 90vh; }
  .features, .how, .closing { padding: 4rem 1.5rem; }
  
  .step { flex-direction: column; gap: 0.75rem; }
  .step-number { font-size: 2.2rem; min-width: auto; }
  
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  
  .closing h2 br { display: none; }
}