/* ============================================================
   Sixth Veil — Landing page
   Visual direction per SIXTH-VEIL-VISUAL-UPDATE.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@1,300;1,400&family=Raleway:wght@200;300;400&display=swap');

:root {
  /* ---- color ---- */
  --bg-1: #070d18;
  --bg-2: #0a1525;
  --bg-3: #0d1a2a;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dim: #7a6530;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-border: rgba(201, 168, 76, 0.12);
  --gold-border-strong: rgba(201, 168, 76, 0.28);
  --text-1: #e8e2d4;
  --text-2: #9a9484;
  --text-3: #5a5448;
  --amber: #a07832;
  --warm-brown: #6e4a1e;
  --soft-gold: #8a6a2d;
  --error: #d49a9a;
  /* ---- typography ---- */
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Raleway', system-ui, sans-serif;
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-weight: 300;
  background: var(--bg-1);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--gold); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- fixed sacred geometry overlay (full-page subtle texture) ---- */
.sacred-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url('/img/sacred-geometry-1.png');
  background-size: 700px;
  background-position: center;
}

/* ---- section base ---- */
section {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
}
.container {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
}
.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}
.section-bg-hero    { background-image: url('/img/nebula-hero.png'); }
.section-bg-mid     { background-image: url('/img/nebula-mid.png'); }
.section-bg-pricing { background-image: url('/img/nebula-pricing.png'); }
.section-bg-cta     { background-image: url('/img/nebula-cta.png'); }

/* ---- zodiac parallax background figures ---- */
.zodiac {
  position: absolute;
  width: 55%;
  max-width: 600px;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.zodiac.left   { left: -10%; top: 15%; }
.zodiac.right  { right: -10%; top: 15%; }
.zodiac.center { left: 50%; top: 20%; transform: translateX(-50%); width: 75%; max-width: 800px; }

/* ---- ornamental divider strips between sections ---- */
.divider {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 60px 24px;
}
.divider img {
  display: inline-block;
  max-width: 480px;
  width: 70%;
  opacity: 0.9;
  /* The source PNG has true transparency baked in (luminance-as-alpha
     conversion in scripts/remove_watermarks.py). No blend mode needed. */
  filter: drop-shadow(0 0 14px var(--gold-glow));
}

/* ---- corner frames on hero ---- */
.corner-frame {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid var(--gold);
  opacity: 0.45;
  z-index: 5;
}
.corner-frame.tl { top: 32px; left: 32px; border-right: none; border-bottom: none; }
.corner-frame.tr { top: 32px; right: 32px; border-left: none; border-bottom: none; }
.corner-frame.bl { bottom: 32px; left: 32px; border-right: none; border-top: none; }
.corner-frame.br { bottom: 32px; right: 32px; border-left: none; border-top: none; }

/* ============================================================
   Typography primitives
   ============================================================ */
.label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
}
.label-decorated::before, .label-decorated::after {
  content: '◆';
  font-size: 8px;
  margin: 0 14px;
  color: var(--gold);
  vertical-align: middle;
}
.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 2px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text-1);
}
.title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 22px);
  /* Brighter cream + dark halo for legibility over bright nebula areas.
     Italic Cormorant still reads as "softer" than the uppercase Cinzel titles
     even though the brightness is similar. */
  color: var(--text-1);
  text-shadow: 0 2px 16px rgba(7, 13, 24, 0.9), 0 0 6px rgba(7, 13, 24, 0.7);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 120px;
}
.hero .label { margin-bottom: 32px; }
.hero-title  { margin-bottom: 32px; }
.hero-sub    { margin-bottom: 56px; }
.hero-note {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-3);
  margin-top: 24px;
}

/* ============================================================
   Email forms (used twice)
   ============================================================ */
.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto;
}
.email-form input[type="email"] {
  /* Dark glass: ensures legibility regardless of what nebula brightness sits
     behind the form. Backdrop-blur softens whatever is behind for extra contrast. */
  background: rgba(7, 13, 24, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--gold-border-strong);
  border-radius: 0;
  padding: 15px 22px;
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--text-1);
  flex: 1;
  min-width: 240px;
  outline: none;
  letter-spacing: 2px;
  text-align: center;
}
.email-form input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(7, 13, 24, 0.75);
}
.email-form input[type="email"]::placeholder {
  /* Brighter placeholder so it stays readable over bright bg areas. */
  color: var(--text-2);
  letter-spacing: 2px;
}
.btn-gold {
  /* Matching dark glass keeps the gold border + text visible even when the
     button sits on the brightest part of a nebula. Hover still fills solid gold. */
  background: rgba(7, 13, 24, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 15px 32px;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--bg-1);
  box-shadow: 0 0 32px var(--gold-glow);
}
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }
.success-msg, .error-msg { display: none; }
.success-msg {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  margin-top: 28px;
}
.error-msg {
  color: var(--error);
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 16px;
  font-family: var(--font-ui);
}

/* ============================================================
   Section header (label + title + subtitle)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header .label { margin-bottom: 18px; display: inline-block; }
.section-header .title { margin-bottom: 28px; }

/* ============================================================
   HOW IT WORKS — steps
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 60px;
}
.step { text-align: center; padding: 0 12px; }
.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  background: rgba(7, 13, 24, 0.4);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 16px;
}
.step-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  /* Match subtitle treatment: cream text + dark halo for legibility over
     the bright center of the nebula bg, especially on narrow mobile widths
     where the text sits directly over the brightest area. */
  color: var(--text-1);
  text-shadow: 0 2px 14px rgba(7, 13, 24, 0.85), 0 0 5px rgba(7, 13, 24, 0.65);
  line-height: 1.65;
}

/* ============================================================
   READERS
   ============================================================ */
.readers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.reader-card {
  position: relative;
  background: rgba(7, 13, 24, 0.55);
  border: 1px solid var(--gold-border);
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: border-color 0.45s, background 0.45s, transform 0.45s;
}
.reader-card:hover {
  border-color: var(--gold);
  background: rgba(7, 13, 24, 0.75);
  transform: translateY(-3px);
}
.reader-card-diamond {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold-glow);
}
.reader-card-portrait {
  flex-shrink: 0;
  width: 130px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--gold-border-strong);
}
.reader-card-body { flex: 1; min-width: 0; }
.reader-card-numeral {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
}
.reader-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 6px;
}
.reader-card-archetype {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.reader-card-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIAL / QUOTE
   ============================================================ */
.testimonial {
  text-align: center;
  padding: 100px 24px;
}
.testimonial-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--text-1);
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
}
.testimonial-mark {
  display: block;
  color: var(--gold);
  font-size: 14px;
  margin: 28px 0;
  letter-spacing: 8px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: rgba(7, 13, 24, 0.6);
  border: 1px solid var(--gold-border);
  padding: 40px 28px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--gold-border-strong);
  border-top: 3px solid var(--gold);
  background: rgba(13, 26, 42, 0.7);
}
.pricing-card-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 18px;
}
.pricing-card-amount {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--text-1);
}
.pricing-card-per {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
}
.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.pricing-card-features li {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-2);
  padding: 11px 0;
  border-top: 1px solid var(--gold-border);
  letter-spacing: 0.5px;
  line-height: 1.5;
}
.pricing-card-features li:first-child { border-top: none; }
.pricing-card-features li::before {
  content: '◆ ';
  color: var(--gold-dim);
  font-size: 9px;
  margin-right: 8px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  text-align: center;
  padding: 140px 24px;
}
.final-cta .title    { margin-bottom: 28px; }
.final-cta .subtitle { margin-bottom: 48px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 36px 24px;
  border-top: 1px solid var(--gold-border);
  background: var(--bg-1);
}
footer p {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-3);
  line-height: 2.2;
}
footer a { color: var(--gold-dim); transition: color 0.3s; }
footer a:hover { color: var(--gold); }

/* ---- reveal initial state for GSAP ---- */
.reveal { opacity: 0; transform: translateY(30px); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 720px) {
  section { padding: 80px 20px; }
  .readers-grid { grid-template-columns: 1fr; }
  .reader-card { flex-direction: column; align-items: center; text-align: center; }
  .reader-card-portrait { width: 160px; }
  .corner-frame { width: 44px; height: 44px; }
  .corner-frame.tl { top: 20px; left: 20px; }
  .corner-frame.tr { top: 20px; right: 20px; }
  .corner-frame.bl { bottom: 20px; left: 20px; }
  .corner-frame.br { bottom: 20px; right: 20px; }
  .zodiac { width: 90%; max-width: none; }
  .zodiac.left   { left: -20%; }
  .zodiac.right  { right: -20%; }
  .steps-grid { gap: 50px; }
  .divider { padding: 40px 20px; }
}
