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

:root {
  --bg: #06060f;
  --bg-2: #0d0e1a;
  --bg-3: #0f1020;
  --surface: #13142a;
  --surface-2: #1a1b38;
  --border: #1e1f44;
  --text: #c8c9e0;
  --text-2: #8a8baf;
  --text-3: #5a5b7a;
  --accent: #e8a950;
  --accent-2: #e8c490;
  --green: #4ade80;
  --warm-rose:   #e89070;
  --warm-blush:  #e8c4b8;
  --warm-gold:   #e8b870;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(232, 169, 80, 0.3);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(232, 169, 80, 0.08);
  border-color: var(--accent);
}

/* === SECTION COMMON === */
section {
  padding: 80px 32px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* === HERO === */
.hero {
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(232, 169, 80, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 28px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat-value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.4;
  max-width: 100px;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon-scene {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 0 60px rgba(232, 169, 80, 0.06));
}

.moon-svg {
  width: 100%;
  height: auto;
}

/* === PROOF === */
.proof {
  padding: 40px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-inner {
  max-width: 900px;
  margin: 0 auto;
}

.proof-quote {
  text-align: center;
}

.proof-text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.proof-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.proof-author {
  color: var(--accent);
  font-weight: 500;
}

/* === MECHANISM === */
.mechanism {
  padding: 100px 32px;
  background: var(--bg);
}

.mechanism-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mechanism-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.mechanism-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.mechanism-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
}

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

.mechanism-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease;
}

.mechanism-card:hover {
  border-color: rgba(232, 169, 80, 0.25);
}

.mechanism-icon {
  margin-bottom: 20px;
}

.mechanism-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.mechanism-card-body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mechanism-result {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.mechanism-result-metric {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.mechanism-result-label {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* === FEATURES === */
.features {
  padding: 80px 32px;
  background: var(--bg-2);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row-reverse {
  direction: rtl;
}

.feature-row-reverse > * {
  direction: ltr;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual svg {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}

.feature-content {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.feature-body {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(232, 169, 80, 0.12);
  border: 1px solid rgba(232, 169, 80, 0.3);
  flex-shrink: 0;
}

/* === WHY === */
.why {
  padding: 100px 32px;
  background: var(--bg);
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.why-header {
  text-align: center;
  margin-bottom: 56px;
}

.why-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.why-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.why-card-alt {
  background: var(--bg-3);
}

.why-card-somnia {
  background: var(--surface-2);
  border-color: rgba(232, 169, 80, 0.25);
}

.why-card-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.why-card-somnia .why-card-category {
  color: var(--accent);
}

.why-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.why-card-body {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  padding: 120px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

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

.closing-moon {
  width: 80px;
  height: 80px;
  margin: 0 auto 40px;
  filter: drop-shadow(0 0 24px rgba(232, 169, 80, 0.15));
}

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.closing-body-accent {
  color: var(--accent);
  font-weight: 500;
}

/* === FOOTER === */
.footer {
  padding: 48px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-meta {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 640px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .moon-scene {
    max-width: 320px;
    margin: 0 auto;
  }

  .mechanism-grid {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-stat {
    padding: 0;
  }

  .hero-stat-divider {
    display: none;
  }

  .nav-tagline {
    display: none;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 20px;
  }

  .hero {
    padding: 60px 20px 48px;
  }

  .closing {
    padding: 80px 20px;
  }

  .mechanism-card {
    padding: 24px;
  }

  .hero-headline {
    font-size: 1.9rem;
  }

  .closing-headline {
    font-size: 1.7rem;
  }
}

/* === EDU / MENOPAUSE PAGES === */
.edu-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 60px 32px;
}

.edu-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.edu-header {
  text-align: center;
}

.edu-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.edu-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.edu-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.edu-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.edu-section-icon {
  padding-top: 4px;
}

.edu-section-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.edu-section-body {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.edu-action {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.edu-action-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.edu-action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-action-list li {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.edu-action-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.edu-action-list li strong {
  color: var(--text);
  font-weight: 600;
}

.edu-footer-cta {
  text-align: center;
  padding: 16px 0 40px;
}

.btn-primary {
  background: var(--accent);
  color: #06060f;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { background: var(--accent-2); }

@media (max-width: 600px) {
  .edu-page { padding: 40px 16px; }
  .edu-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
}