/* ── Reset & Base ─────────────────────────────────────────────────────────── */

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

:root {
  --black:       #0d0a09;
  --deep:        #130e0c;
  --crimson:     #3d0b0b;
  --crimson-mid: #5c1212;
  --amber:       #c4813a;
  --amber-light: #e0aa6a;
  --gold:        #d4a847;
  --gold-light:  #f0cc7a;
  --cream:       #f5ead8;
  --text:        #e8d8c4;
  --text-dim:    #a89070;
  --serif:       'EB Garamond', 'Garamond', Georgia, serif;
  --serif-alt:   'Cormorant Garamond', 'Garamond', Georgia, serif;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background-color: var(--black);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--serif-alt);
  font-weight: 300;
  line-height: 1.2;
}

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }

a { color: var(--amber-light); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-heading {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2.5rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 100px 32px 80px;
  overflow: hidden;
  text-align: center;
  background: var(--black);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/icon.png');
  background-size: cover;
  background-position: center calc(40% + 250px);
  opacity: 0.35;
  filter: blur(10px) saturate(0.8) brightness(1.4);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(13, 10, 9, 0.5) 0%,
    rgba(13, 10, 9, 0.3) 30%,
    rgba(13, 10, 9, 0.3) 55%,
    rgba(13, 10, 9, 0.7) 80%,
    rgba(13, 10, 9, 1) 100%
  );
}

.hero-glow {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-images {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}

.book-cover {
  width: 250px;
  border-radius: 4px;
}

.app-icon {
  width: 96px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 24px rgba(196, 129, 58, 0.2);
  margin-bottom: 8px;
}

.hero-label {
  font-family: var(--serif-alt);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 1.2rem;
  line-height: 1.35;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-btn {
  display: inline-block;
  font-family: var(--serif-alt);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--amber-light);
  border: 1px solid rgba(196, 129, 58, 0.4);
  padding: 14px 32px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cta-btn:hover {
  color: var(--cream);
  border-color: var(--amber);
  background: rgba(196, 129, 58, 0.08);
}

/* ── Story ────────────────────────────────────────────────────────────────── */

.story {
  padding: 0px 0 50px;
  background: linear-gradient(to bottom, var(--black), var(--deep));
}

.story-body {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
}

.story-body p {
  margin-bottom: 1.4em;
}

.story-invitation {
  font-style: italic;
  color: var(--amber-light);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ── Pull Quote ───────────────────────────────────────────────────────────── */

.pull-quote {
  font-family: var(--serif-alt);
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream);
  border-left: 2px solid var(--amber);
  padding: 12px 0 12px 28px;
  margin: 3rem 0;
  quotes: none;
}

.pull-quote--light {
  color: var(--cream);
  border-left-color: var(--gold);
}

/* ── AI Relationship ──────────────────────────────────────────────────────── */

.ai-relationship {
  padding: 0px 0 50px;
  background: var(--deep);
}

.ai-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── How It Works ─────────────────────────────────────────────────────────── */

.how-it-works {
  padding: 0px 0 50px;
  background: linear-gradient(to bottom, var(--deep), var(--black));
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  margin-bottom: 60px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--amber-light);
  margin-bottom: 0.6rem;
  font-family: var(--serif-alt);
}

.feature p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Slideshow */

.slideshow {
  margin-bottom: 60px;
}

.slideshow-track {
  position: relative;
  display: flex;
  justify-content: center;
}

.slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.slide.active {
  display: flex;
}

.slide img {
  width: 336px;
  max-width: 100%;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.slide-caption {
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  max-width: 360px;
  margin: 0;
  line-height: 1.6;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.slide-btn {
  background: none;
  border: 1px solid rgba(196, 129, 58, 0.25);
  color: var(--amber);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

.slide-btn:hover {
  border-color: var(--amber);
  color: var(--amber-light);
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(196, 129, 58, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.dot-active {
  background: var(--amber);
}

/* Music player */

.music-example {
  border-top: 1px solid rgba(196, 129, 58, 0.15);
  padding-top: 48px;
}

.music-label {
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.track-player {
  display: block;
  width: auto;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  background: #1a1210;
  outline: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  margin: 0 auto;
}

/* ── Digital Mind ─────────────────────────────────────────────────────────── */

.digital-mind {
  padding: 0px 0 50px;
  background: var(--black);
}

.dm-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── Apply ────────────────────────────────────────────────────────────────── */

.apply {
  padding: 0px 0 120px;
  background: var(--black);
  text-align: center;
}

.apply .section-heading {
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--serif-alt);
  font-weight: 300;
  color: var(--amber);
  margin-bottom: 1rem;
}

.apply-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.email-input {
  font-family: var(--serif);
  font-size: 0.95rem;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196, 129, 58, 0.3);
  border-bottom: none;
  color: var(--cream);
  outline: none;
  border-radius: 2px 2px 0 0;
  transition: border-color 0.2s;
}

.email-input:last-of-type {
  border-bottom: 1px solid rgba(196, 129, 58, 0.3);
  border-radius: 0;
}

.email-input::placeholder { color: var(--text-dim); }
.email-input:focus { border-color: rgba(196, 129, 58, 0.6); }

.apply-submit {
  font-family: var(--serif-alt);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: rgba(196, 129, 58, 0.15);
  border: 1px solid rgba(196, 129, 58, 0.4);
  border-top: none;
  color: var(--amber-light);
  cursor: pointer;
  border-radius: 0 0 2px 2px;
  transition: background 0.2s, color 0.2s;
}

.apply-submit:hover {
  background: rgba(196, 129, 58, 0.25);
  color: var(--cream);
}

.apply-confirmation {
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 1rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(168, 144, 112, 0.4);
  border-top: 1px solid rgba(196, 129, 58, 0.08);
  letter-spacing: 0.04em;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 620px) {
  html { font-size: 16px; }

  .hero { padding: 72px 20px 64px; }

  .hero-images {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .book-cover { width: 160px; }
  .app-icon { width: 80px; margin-bottom: 0; }

  .hero h1 { font-size: 1.6rem; }

  .section-inner { padding: 0 20px; }

  .story, .ai-relationship, .how-it-works, .digital-mind, .apply {
    padding: 72px 0;
  }

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

  .pull-quote {
    font-size: 1.2rem;
    padding-left: 20px;
  }

}
