/* ═══════════════════════════════════════════════════════
   AstroKamya™ · COSMIC ELEVATION · Visual Transformation Layer
   ─────────────────────────────────────────────────────
   Purpose: Award-level visual polish on top of design-system.css
   Contains: Hero atmosphere, CTA glow, card interactions,
             scroll choreography, section moods, cinematic polish
   ─────────────────────────────────────────────────────
   RULES:
   - No !important declarations
   - All animations: transform + opacity only (GPU-accelerated)
   - IntersectionObserver-gated where possible
   ═══════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════
   CE-1 — HERO ATMOSPHERIC COMPOSITION
   Multiple layered effects creating depth & cosmic feel
   ─────────────────────────────────────────────────────
   IMPORTANT: #hero must NOT have overflow:hidden because
   the scanner-stream-container uses position:absolute
   with overflow:visible and extends beyond the hero bounds.
   ═══════════════════════════════════════════════════════ */

/* Hero section: atmospheric depth — NO overflow:hidden */
#hero {
  position: relative;
  /* overflow: visible is the default — scanner cards need it */
}

/* Layer 1: Warm spotlight bloom behind hero text 
   z-index: 0 keeps it behind scanner (z-index: 2) and hero content */
#hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at 40% 40%,
    rgba(124,58,237,0.06) 0%,
    rgba(255,184,0,0.03) 30%,
    rgba(232,54,124,0.02) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: heroBloom 12s ease-in-out infinite alternate;
}

/* Layer 2: Vignette darkening at edges
   z-index: 0 — must be BELOW scanner cards (z-index: 2+) */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(10,6,24,0.3) 75%,
    rgba(10,6,24,0.5) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hero content — z-index managed by styles.css (z:3 default, z:8 when scanner-active) */
/* DO NOT add z-index here — scanner-stream.css controls the stacking */
.hero-wrap {
  position: relative;
  /* NO z-index — must not create stacking context that traps scanner cards */
}

@keyframes heroBloom {
  0% {
    opacity: 0.6;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(20px, -10px) scale(1.05);
  }
}

/* Hero headline: Premium text depth */
.hero-headline,
#hero h1,
#hero-title {
  text-shadow:
    0 2px 20px rgba(10,6,24,0.95),
    0 4px 40px rgba(10,6,24,0.8),
    0 0 120px rgba(124,58,237,0.08);
}

/* Hero "accent" typewriter line: gold shimmer glow */
.hh-accent,
.hh-typewriter-line .hh-accent {
  text-shadow: 0 0 40px rgba(255,184,0,0.2);
}


/* ═══════════════════════════════════════════════════════
   CE-2 — CTA BUTTON GLOW SYSTEM
   Premium glow halo, shimmer sweep, hover escalation
   ═══════════════════════════════════════════════════════ */

/* Primary gold buttons: resting glow halo */
.btn-primary-gold,
.cta-btn-glow,
.shimmer-btn,
.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 16px rgba(255,184,0,0.2),
    0 6px 36px rgba(255,184,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

/* Hover: escalated glow + lift */
.btn-primary-gold:hover,
.cta-btn-glow:hover,
.shimmer-btn:hover,
.btn-glow:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow:
    0 4px 24px rgba(255,184,0,0.35),
    0 12px 56px rgba(255,184,0,0.18),
    0 0 80px rgba(255,184,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Active press */
.btn-primary-gold:active,
.cta-btn-glow:active,
.shimmer-btn:active,
.btn-glow:active {
  transform: scale(0.98);
  box-shadow:
    0 1px 8px rgba(255,184,0,0.3),
    0 2px 16px rgba(255,184,0,0.15);
  transition-duration: 0.1s;
}

/* Shimmer sweep pseudo-element — ALWAYS active, all devices */
.btn-primary-gold::before,
.cta-btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  animation: btnSweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* Ghost/outline buttons: subtle border glow on hover */
.btn-ghost-hero:hover,
.btn-outline:hover {
  border-color: rgba(255,184,0,0.35);
  box-shadow: 0 0 30px rgba(255,184,0,0.08);
}

/* SoulSync CTA — rose glow variant */
.ss-cta-btn,
.ss-btn-hero {
  box-shadow:
    0 2px 16px rgba(232,54,124,0.15),
    0 6px 36px rgba(232,54,124,0.08);
}
.ss-cta-btn:hover,
.ss-btn-hero:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow:
    0 4px 24px rgba(232,54,124,0.3),
    0 12px 56px rgba(232,54,124,0.15),
    0 0 60px rgba(232,54,124,0.1);
}

/* ForYou CTA — teal glow variant */
.ak-hero-cta-primary {
  box-shadow:
    0 2px 16px rgba(255,184,0,0.2),
    0 6px 36px rgba(255,184,0,0.1);
}
.ak-hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 24px rgba(255,184,0,0.35),
    0 12px 48px rgba(255,184,0,0.15);
}


/* ═══════════════════════════════════════════════════════
   CE-3 — CARD ALIVE SYSTEM
   Per-theme accent glow, lift, border illuminate
   ═══════════════════════════════════════════════════════ */

/* Intent cards: theme-colored accent glow on hover */
.intent-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

/* Love — Rose accent */
.intent-card[data-q="love"]:hover,
.intent-card[data-q="marriage"]:hover {
  border-color: rgba(232,54,124,0.22);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.35),
    0 0 40px rgba(232,54,124,0.08),
    inset 0 1px 0 rgba(232,54,124,0.08);
  transform: translateY(-4px) scale(1.01);
}

/* Career — Gold accent */
.intent-card[data-q="career"]:hover {
  border-color: rgba(255,184,0,0.22);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.35),
    0 0 40px rgba(255,184,0,0.08),
    inset 0 1px 0 rgba(255,184,0,0.08);
  transform: translateY(-4px) scale(1.01);
}

/* Money — Teal accent */
.intent-card[data-q="money"]:hover {
  border-color: rgba(6,182,212,0.22);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.35),
    0 0 40px rgba(6,182,212,0.08),
    inset 0 1px 0 rgba(6,182,212,0.08);
  transform: translateY(-4px) scale(1.01);
}

/* Active intent card */
.intent-card.active {
  border-color: rgba(255,184,0,0.3);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.35),
    0 0 48px rgba(255,184,0,0.1);
}

/* Pricing cards: restore lift + accent glow */
.pc {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

.pc:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 30px rgba(124,58,237,0.06);
}

/* Popular pricing card: enhanced glow */
.pc-pop:hover {
  transform: translateY(-10px);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.45),
    0 0 50px rgba(255,184,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Feature bento cards */
.fb-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

.fb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.2);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.35),
    0 0 30px rgba(124,58,237,0.06);
}

/* Testimonial cards */
.t-card,
.test-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

.t-card:hover,
.test-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,184,0,0.15);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.3),
    0 0 20px rgba(255,184,0,0.04);
}

/* SoulSync cards */
.ss-bento-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
.ss-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,54,124,0.18);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.35),
    0 0 30px rgba(232,54,124,0.06);
}

/* Step items */
.step-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
.step-item:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,0.15);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.25),
    0 0 20px rgba(124,58,237,0.05);
}


/* ═══════════════════════════════════════════════════════
   CE-4 — CINEMATIC SCROLL CHOREOGRAPHY
   Blur-up reveals, scale-in, stagger cascade
   ═══════════════════════════════════════════════════════ */

/* Blur-up cinematic reveal */
.reveal-blur-up {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur-up.v {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Scale-in reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.v {
  opacity: 1;
  transform: scale(1);
}

/* Fade in (simple) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade.v {
  opacity: 1;
}

/* Enhanced .r reveal — add blur for more cinematic feel */
.r {
  filter: blur(2px);
}
.r.v {
  filter: blur(0);
}

/* Stagger delay utilities (set by JS or data attributes) */
.stagger-d1 { transition-delay: 0.1s; }
.stagger-d2 { transition-delay: 0.2s; }
.stagger-d3 { transition-delay: 0.3s; }
.stagger-d4 { transition-delay: 0.4s; }
.stagger-d5 { transition-delay: 0.5s; }


/* ═══════════════════════════════════════════════════════
   CE-5 — SECTION MOOD VARIATION
   Each section gets unique color temperature
   ═══════════════════════════════════════════════════════ */

/* Section ambient glow — stronger than before */
#intent {
  position: relative;
}
#intent::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(232,54,124,0.04) 0%,
    rgba(255,184,0,0.02) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

#demo {
  position: relative;
}
#demo::before {
  content: '';
  position: absolute;
  top: -5%;
  right: 5%;
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(255,184,0,0.035) 0%,
    rgba(124,58,237,0.02) 40%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

#pricing {
  position: relative;
}
#pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 20%,
    rgba(124,58,237,0.04) 0%,
    rgba(155,109,255,0.02) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

#testimonials {
  position: relative;
}
#testimonials::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at 40% 60%,
    rgba(6,182,212,0.03) 0%,
    rgba(255,184,0,0.015) 40%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Birth input section — warm gold glow */
#birth-input {
  position: relative;
}
#birth-input::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 25%;
  width: 50%;
  height: 40%;
  background: radial-gradient(ellipse at center,
    rgba(255,184,0,0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}


/* ═══════════════════════════════════════════════════════
   CE-6 — NOISE/GRAIN TEXTURE OVERLAY
   Subtle grain adds premium "film" quality
   ═══════════════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}


/* ═══════════════════════════════════════════════════════
   CE-7 — TRUST BAR & PRESS SECTION POLISH
   Floating glass feel, shimmer borders
   ═══════════════════════════════════════════════════════ */

/* Trust bar in hero */
.hero-trust {
  background: rgba(17,11,46,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124,58,237,0.08);
  border-radius: 16px;
  margin-top: 20px;
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Press logos section */
.press-section {
  position: relative;
}
.press-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(124,58,237,0.15) 30%,
    rgba(255,184,0,0.12) 70%,
    transparent
  );
}


/* ═══════════════════════════════════════════════════════
   CE-8 — HERO PILL & PERSONALIZATION POLISH
   ═══════════════════════════════════════════════════════ */
.hero-pill {
  background: rgba(255,184,0,0.06);
  border: 1px solid rgba(255,184,0,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero-personal {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}


/* ═══════════════════════════════════════════════════════
   CE-9 — SECTION DIVIDER ENHANCEMENT
   Gradient line with star accent
   ═══════════════════════════════════════════════════════ */
.section-divider .divider-line {
  background: linear-gradient(90deg,
    transparent,
    rgba(255,184,0,0.15) 20%,
    rgba(124,58,237,0.12) 50%,
    rgba(232,54,124,0.1) 80%,
    transparent
  );
  height: 1px;
}

.section-divider .divider-star {
  color: rgba(255,184,0,0.4);
  text-shadow: 0 0 10px rgba(255,184,0,0.3);
  animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}


/* ═══════════════════════════════════════════════════════
   CE-10 — CURSOR PROXIMITY GLOW (Desktop only)
   Cards illuminate based on mouse proximity
   Applied via JS in cosmic-cursor.js
   ═══════════════════════════════════════════════════════ */
.cursor-glow-card {
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-opacity: 0;
}
.cursor-glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--glow-x) var(--glow-y),
    rgba(255,184,0,0.06) 0%,
    rgba(124,58,237,0.03) 30%,
    transparent 60%
  );
  opacity: var(--glow-opacity);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════
   CE-11 — FOOTER ENHANCEMENT
   Gradient top border, breathing cosmic glow
   ═══════════════════════════════════════════════════════ */
footer {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,184,0,0.12) 25%,
    rgba(124,58,237,0.15) 50%,
    rgba(232,54,124,0.1) 75%,
    transparent
  );
}


/* ═══════════════════════════════════════════════════════
   CE-12 — INPUT FORM ELEVATION
   Glass card with border glow on focus
   ═══════════════════════════════════════════════════════ */
.input-card {
  box-shadow:
    0 8px 40px rgba(0,0,0,0.3),
    0 0 60px rgba(124,58,237,0.04);
}

.fld input:focus,
.fld select:focus {
  border-color: rgba(255,184,0,0.3);
  box-shadow:
    0 0 0 3px rgba(255,184,0,0.08),
    0 4px 20px rgba(0,0,0,0.2);
}


/* ═══════════════════════════════════════════════════════
   CE-13 — FAQ ACCORDION POLISH
   Smooth open/close with glass feel
   ═══════════════════════════════════════════════════════ */
.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(124,58,237,0.12);
}
.faq-item.faq-open {
  border-color: rgba(255,184,0,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 0 30px rgba(255,184,0,0.03);
}


/* ═══════════════════════════════════════════════════════
   CE-14 — NAVBAR PREMIUM POLISH
   Smoother glass, scroll-state refinement
   ═══════════════════════════════════════════════════════ */
#nav.scrolled {
  background: rgba(10,6,24,0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(124,58,237,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}


/* ═══════════════════════════════════════════════════════
   CE-15 — SCROLL PROGRESS BAR — GLOBALLY DISABLED
   ═══════════════════════════════════════════════════════ */
.scroll-progress {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}


/* ═══════════════════════════════════════════════════════
   CE-16 — BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(17,11,46,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124,58,237,0.12);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: rgba(255,184,0,0.2);
  color: #FFB800;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 20px rgba(255,184,0,0.1);
}


/* ═══════════════════════════════════════════════════════
   CE-17 — KEYFRAME ANIMATIONS
   All new / enhanced animation keyframes
   ═══════════════════════════════════════════════════════ */

/* Button shimmer sweep — ensure defined */
@keyframes btnSweep {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}


/* ═══════════════════════════════════════════════════════
   CE-18 — MOBILE RESPONSIVE ADJUSTMENTS
   Ensure elevation effects work on all viewports
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Hero bloom: shift to match mobile content position */
  #hero::after {
    top: 15%;
    left: 5%;
    width: 90%;
    height: 50%;
  }
  
  /* Trust bar: full width on mobile */
  .hero-trust {
    padding: 8px 14px;
    border-radius: 12px;
  }

  /* Back to top: smaller on mobile */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 16px;
  }

  /* Reduce grain on mobile for performance */
  body::after {
    opacity: 0.012;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  /* Tablet: hero bloom centered */
  #hero::after {
    top: 20%;
    left: 10%;
    width: 80%;
    height: 55%;
  }
}


/* ═══════════════════════════════════════════════════════
   CE-19 — LIFETIME PLAN CARD ENHANCEMENT
   ═══════════════════════════════════════════════════════ */
.lt-content {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lt-content:hover {
  border-color: rgba(255,184,0,0.15);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 0 40px rgba(255,184,0,0.06);
}


/* CE-20 — Scanner stream container: DO NOT OVERRIDE
   scanner-stream.css manages position:absolute + z-index:2 for this element.
   Any changes here will break the scanner card layout. */
