/* ============================================================
   LUNAR SOUL MAP — styles.css  v2
   Mobile-first, dark celestial, premium glassmorphism
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg-base:          #06040f;
  --bg-card:          rgba(14, 8, 40, 0.82);
  --bg-card-hover:    rgba(20, 12, 55, 0.9);

  --purple:           #8b5cf6;
  --purple-mid:       #a78bfa;
  --purple-light:     #c4b5fd;
  --purple-dim:       rgba(139, 92, 246, 0.18);
  --purple-glow:      rgba(139, 92, 246, 0.35);

  --gold:             #f59e0b;
  --gold-light:       #fbbf24;
  --gold-pale:        #fde68a;

  --text-1:           #f1f5f9;
  --text-2:           #94a3b8;
  --text-3:           #4b5568;

  --border:           rgba(139, 92, 246, 0.18);
  --border-bright:    rgba(139, 92, 246, 0.5);

  --font-display:     'Cormorant Garamond', Georgia, serif;
  --font-body:        'Inter', -apple-system, sans-serif;

  --r-card:           18px;
  --r-btn:            50px;
  --r-opt:            13px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   BACKGROUND NEBULA (CSS-only, always visible)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%,   rgba(88, 28, 135, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(49, 46, 129, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 40%,   rgba(6, 4, 15, 0.6)    0%, transparent 80%);
}

/* Starfield canvas on top of nebula */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
section { position: relative; z-index: 2; }

.hidden { display: none !important; }

/* Hides a <br> on mobile, shows it on desktop */
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 48px; }

.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 14px;
}

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

/* ============================================================
   GLASS CARD
   Note: NO overflow:hidden here — it was hiding quiz options
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px 32px;
  position: relative;
  /* Top shimmer accent */
  box-shadow:
    inset 0 1px 0 rgba(139, 92, 246, 0.3),
    0 4px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  .glass-card { padding: 28px 18px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 55%, #a78bfa 100%);
  color: #fff;
  box-shadow: 0 6px 28px rgba(109, 40, 217, 0.5);
}
.btn-primary:hover  { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(109, 40, 217, 0.65); }
.btn-primary:active { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 55%, #fbbf24 100%);
  color: #1a0700;
  font-weight: 700;
  box-shadow: 0 6px 28px rgba(180, 83, 9, 0.55);
}
.btn-gold:hover  { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(245, 158, 11, 0.6); }
.btn-gold:active { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1.5px solid var(--border-bright);
}
.btn-outline:hover { background: var(--purple-dim); transform: translateY(-3px); }

.btn-large { padding: 17px 40px; font-size: 1.05rem; }
.btn-full  { width: 100%; }

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  padding: 10px 16px 18px;
  background: linear-gradient(to top, rgba(6,4,15,0.98) 70%, transparent);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }

@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  /* Compact — no full-screen height */
  padding: 88px 0 72px;
  overflow: hidden;
}

/* Purple top glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(109, 40, 217, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

/* Moon */
.hero-moon {
  position: absolute;
  top: 30px;
  right: 5%;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 767px) {
  .hero-moon { width: 140px; height: 140px; top: 20px; right: -20px; opacity: 0.5; }
}
@media (min-width: 768px) {
  .hero-moon { width: 300px; height: 300px; }
}
@media (min-width: 1100px) {
  .hero-moon { width: 380px; height: 380px; top: 20px; right: 6%; }
}

.moon {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%,
    #fffbeb 0%, #fef3c7 12%, #fde68a 28%,
    #f59e0b 50%, #b45309 72%, #78350f 88%, #3d1a00 100%
  );
  box-shadow:
    0 0 45px  rgba(245, 158, 11, 0.5),
    0 0 100px rgba(245, 158, 11, 0.25),
    0 0 200px rgba(245, 158, 11, 0.1),
    inset -15px -10px 35px rgba(0,0,0,0.35);
  animation: moonFloat 9s ease-in-out infinite;
}
.moon-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 65%);
  animation: moonPulse 5s ease-in-out infinite;
}
@keyframes moonFloat { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-16px) rotate(2deg)} }
@keyframes moonPulse { 0%,100%{opacity:0.5;transform:scale(1)} 50%{opacity:1;transform:scale(1.1)} }

/* Hero content */
.hero-content {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.0s ease both;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 22px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-headline em {
  font-style: italic;
  color: var(--purple-light);
}
.hero-subheadline {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.75;
  margin: 0 auto 36px;
  max-width: 560px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-cta-note { font-size: 0.82rem; color: var(--text-3); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: fadeUp 0.7s 0.4s ease both;
}
.badge {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  padding: 5px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 50px;
  background: var(--purple-dim);
}

/* Scroll hint */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--text-3);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeIn 2s 1.2s ease both;
  pointer-events: none;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--purple));
  animation: scrollBlink 2.4s ease-in-out infinite;
}
@keyframes scrollBlink { 0%,100%{opacity:0.2} 50%{opacity:1} }

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.quiz-section { padding: 80px 0; }

.quiz-card {
  max-width: 640px;
  margin: 0 auto;
}

/* Progress */
.quiz-progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6d28d9, #f59e0b);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.quiz-progress-label {
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 28px;
}

/* Quiz step — EXPLICITLY shown by default */
.quiz-step {
  display: block;
  width: 100%;
}
.quiz-step.hidden {
  display: none !important;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.3;
}

/* Option list */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
@media (min-width: 480px) { .quiz-months { grid-template-columns: repeat(3, 1fr); } }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--r-opt);
  color: var(--text-1);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.quiz-option:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: var(--purple);
  transform: translateX(5px);
}
.quiz-option.selected {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.option-icon { font-size: 1.2em; flex-shrink: 0; line-height: 1; }

/* Month variant */
.quiz-option-month {
  justify-content: center;
  padding: 12px 6px;
  font-size: 0.86rem;
  gap: 0;
}
.quiz-option-month:hover { transform: translateY(-3px) translateX(0); }

/* Result */
.result-moon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 16px;
  animation: moonBob 2.5s ease-in-out infinite;
}
@keyframes moonBob { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }

.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  text-align: center;
  color: var(--text-1);
  margin-bottom: 18px;
}
.result-loader {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  margin-bottom: 22px;
  overflow: hidden;
}
.result-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6d28d9, #f59e0b);
  border-radius: 2px;
}
.result-loader-bar.animate {
  animation: loadFill 1.6s 0.2s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

.result-text {
  font-size: 0.97rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.75;
  margin-bottom: 26px;
}
.result-note {
  font-size: 0.77rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 14px;
}

/* ============================================================
   TRUST SECTION — 3 column cards
   ============================================================ */
.trust-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(88,28,135,0.06), transparent);
}

.cards-grid {
  display: grid;
  /* auto-fit is more robust than explicit breakpoints */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.trust-card {
  text-align: center;
  padding: 32px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.trust-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 50px rgba(109, 40, 217, 0.15);
}
.card-icon { font-size: 2rem; margin-bottom: 14px; line-height: 1; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 9px;
}
.card-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; }

/* ============================================================
   SOCIAL BRIDGE
   ============================================================ */
.social-bridge { padding: 80px 0; }
.bridge-card {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.bridge-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 14px;
}
.bridge-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 26px;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(88,28,135,0.06), transparent);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-opt);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: var(--border-bright); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 0.94rem;
  font-weight: 500;
  text-align: left;
  gap: 16px;
  cursor: pointer;
  transition: color 0.25s ease;
}
.faq-question:hover { color: var(--purple-light); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--purple-mid);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* FAQ ACCORDION — max-height approach, no CSS variables in transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
}

.faq-cta { text-align: center; max-width: 460px; margin: 0 auto; }
.faq-cta p { font-size: 0.95rem; color: var(--text-2); margin-bottom: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 56px 0 120px; /* extra bottom for mobile sticky bar */
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) { .footer { padding-bottom: 56px; } }

.footer-brand { margin-bottom: 24px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-pale);
}

.footer-disclosure { max-width: 600px; margin: 0 auto 24px; }
.disclosure-text  { font-size: 0.82rem; color: var(--text-3); line-height: 1.7; margin-bottom: 8px; }
.disclaimer-text  { font-size: 0.77rem; color: var(--text-3); font-style: italic; line-height: 1.65; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 18px;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--purple-light); }

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

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
