/* ============================================================
   FRAME ZERO — Cinematic AI Film Blueprint
   Theme: Deep ink + candle gold, editorial serif typography
============================================================ */
:root {
  --bg-light: #f5f0e6;
  --bg-dark: #0a0806;
  --bg-deep: #050403;
  --text-on-light: #1a1410;
  --text-on-dark: #f5ede0;
  --text-muted-light: #6b5d4c;
  --text-muted-dark: rgba(245, 237, 224, 0.55);
  --gold: #c9a44c;
  --gold-bright: #e8c96a;
  --gold-soft: rgba(201, 164, 76, 0.15);
  --burgundy: #5a1a1a;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Subtle film grain on entire body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* ============================================================
   LOADER
============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner { text-align: center; max-width: 320px; padding: 0 1.5rem; }
.loader-brand {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.loader-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  margin-bottom: 2.5rem;
}
#loader-bar {
  width: 100%;
  height: 1px;
  background: rgba(201, 164, 76, 0.15);
  margin-bottom: 1rem;
  overflow: hidden;
}
#loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.3s ease;
}
#loader-percent {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}

/* ============================================================
   FIXED HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.85) 0%, rgba(10, 8, 6, 0) 100%);
  backdrop-filter: blur(4px);
}
.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  color: var(--text-on-dark);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ============================================================
   HERO STANDALONE
============================================================ */
.hero-standalone {
  position: relative;
  height: 100vh;
  width: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(201, 164, 76, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(90, 26, 26, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0d0a07 0%, #0a0806 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}
.hero-label {
  border: 1px solid rgba(201, 164, 76, 0.3);
  padding: 0.4rem 1.2rem;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-heading .word {
  display: block;
  overflow: hidden;
}
.hero-heading .gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s ease-in-out infinite;
  font-style: italic;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--text-on-dark);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted-dark);
  line-height: 1.75;
}

.hero-meta {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero-meta .dot { opacity: 0.5; }

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ============================================================
   CANVAS
============================================================ */
.canvas-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  background: var(--bg-deep);
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   DARK OVERLAY (for stats)
============================================================ */
#dark-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   MARQUEES
============================================================ */
.marquee-wrap {
  position: fixed;
  left: 0;
  width: 100vw;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}
.marquee-top { top: 18vh; }
.marquee-bottom { bottom: 14vh; }
.marquee-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13vw;
  line-height: 0.9;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 164, 76, 0.55);
  letter-spacing: -0.02em;
}
.marquee-text.italic {
  font-style: italic;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(245, 237, 224, 0.4);
}

/* ============================================================
   SCROLL CONTAINER
============================================================ */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 5;
}

.scroll-section {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Side-aligned zones */
.align-left {
  padding-left: 6vw;
  padding-right: 50vw;
  justify-content: flex-start;
}
.align-right {
  padding-left: 50vw;
  padding-right: 6vw;
  justify-content: flex-end;
}
.align-left .section-inner,
.align-right .section-inner {
  max-width: 44vw;
  pointer-events: auto;
}

/* Section content typography */
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.section-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-on-dark);
  max-width: 520px;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.section-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin-top: 1.2rem;
}

/* ============================================================
   STATS SECTION
============================================================ */
.section-stats {
  padding: 0 6vw;
  justify-content: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  pointer-events: auto;
}
.stat {
  text-align: left;
  border-left: 1px solid rgba(201, 164, 76, 0.3);
  padding-left: 1.5rem;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  color: var(--gold);
  display: inline-block;
}
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--gold);
  margin-left: 0.3rem;
}
.stat-label {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  line-height: 1.5;
}

/* ============================================================
   CTA SECTION
============================================================ */
.section-cta .section-inner {
  background: rgba(10, 8, 6, 0.6);
  padding: 2.5rem 2.8rem;
  border: 1px solid rgba(201, 164, 76, 0.25);
  border-radius: 2px;
  max-width: 480px !important;
  pointer-events: auto;
}
.cta-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem) !important;
  margin-bottom: 1.8rem;
}
.offer-list {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.offer-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-on-dark);
}
.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--gold);
  flex-shrink: 0;
}
.offer-name { font-weight: 500; }
.strike {
  text-decoration: line-through;
  color: var(--text-muted-dark);
  margin-left: 0.4rem;
  font-weight: 400;
}
.cta-price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201, 164, 76, 0.2);
}
.price-strike {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-muted-dark);
  text-decoration: line-through;
}
.price-now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
}
.cta-button {
  display: block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  text-align: center;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 30px rgba(201, 164, 76, 0.3);
  margin-bottom: 0.8rem;
}
.cta-button:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201, 164, 76, 0.5);
}
.cta-fine {
  font-size: 0.72rem;
  color: var(--text-muted-dark);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ============================================================
   POST-SCROLL SECTIONS (FAQ + Footer)
============================================================ */
.post-section {
  position: relative;
  z-index: 10;
  background: var(--bg-deep);
  padding: 7rem 0;
}
.post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
  margin-bottom: 3rem;
}
.post-heading em {
  font-style: italic;
  color: var(--gold);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid rgba(245, 237, 224, 0.08);
  padding: 1.6rem 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(245, 237, 224, 0.08); }
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-on-dark);
  margin-bottom: 0.6rem;
}
.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  line-height: 1.75;
  max-width: 720px;
}

/* Footer */
.post-footer {
  position: relative;
  z-index: 10;
  background: #050403;
  border-top: 1px solid rgba(245, 237, 224, 0.06);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted-dark);
  margin-top: 0.3rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(245, 237, 224, 0.3);
  letter-spacing: 0.05em;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(245, 237, 224, 0.05);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .site-header { padding: 1rem 1.5rem; }

  #scroll-container { height: 700vh; }

  /* Collapse side zones to centered with text backdrop */
  .align-left, .align-right {
    padding: 0 1.5rem;
    justify-content: center;
  }
  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    background: rgba(10, 8, 6, 0.78);
    padding: 1.8rem 1.5rem;
    border-radius: 4px;
    backdrop-filter: blur(2px);
  }

  .section-heading { font-size: 2.2rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .stat { padding-left: 1rem; }
  .stat-number { font-size: 3rem; }

  .section-cta .section-inner {
    max-width: 100% !important;
    padding: 1.8rem 1.5rem;
  }

  .marquee-text { font-size: 18vw; }

  .footer-grid { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
