/* ============================================================
   HERO
   ============================================================ */

/* ---- HERO ---- */

.eyebrow { font-size: 13px; font-weight: 500; color: #818CF8; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 24px; }

.badges { display: flex; gap: 8px; justify-content: center; margin-bottom: 56px; }

.badge { font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 20px; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.badge-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.badge-live { background: #818CF8; color: white; box-shadow: 0 2px 12px rgba(129,140,248,0.4); }

.badge-live .badge-dot { background: white; animation: glowWhite 1.8s ease-in-out infinite; }

.badge-soon-green { background: rgba(255,255,255,0.75); border: 1px solid rgba(134,239,172,0.8); color: #16A34A; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.badge-soon-green .badge-dot { background: #22C55E; animation: glowGreen 2.2s ease-in-out infinite; }

.badge-soon-gray { background: rgba(255,255,255,0.75); border: 1px solid rgba(200,200,200,0.8); color: #666; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.badge-soon-gray .badge-dot { background: #AAA; animation: glowGray 2.6s ease-in-out infinite; }

.badge-sub { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 10px; }

.sub-green { background: #DCFCE7; color: #15803D; }

.sub-gray { background: rgba(0,0,0,0.08); color: #555; }

.scroll-hint { 
  font-size: 13px; 
  color: #818CF8;
  font-weight: 500;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
  opacity: 0.9;
}

.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #818CF8);
}

.benefit-hero-content {
  flex: 1;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hint {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 40px;
  font-style: italic;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Hide fallback when video plays */

.hero-bg-video video[src] ~ .hero-bg-fallback,
.hero-bg-video:has(video) 

/* White curtain with text-shaped hole — sits over video at z-2 */


/* Hero content — eyebrow, h2, badges over the curtain at z-3 */


/* H1 spacer takes up the visual space where the text appears in mask */


/* Other hero content stays mostly the same but ensure z-3 to be above curtain */


/* ===========================================
   HERO — VIDEO TEXT MASK + BLOB BEHIND TITLE
   =========================================== */
.hero-video-wrapper {
  position: relative;
  height: 450vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #F0EEF8;
}

/* Layer 1: Background video — initially hidden, fades in on scroll */

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.05s linear;
}

/* Video Fallback — same z-index as video, visible when video doesn't load */

.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  display: none; /* hidden by default — JS shows only on video error */
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  opacity: 1;
}

.hero-video-fallback.is-visible {
  display: flex;
}

.hero-video-fallback-text {
  padding: 40px;
}

/* Layer 2: White curtain with text-shaped hole */

.hero-curtain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.05s linear;
}

/* Layer 3a: Hero dust canvas — subtle sparkle particles */

.hero-dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.05s linear;
}

/* Layer 3b: Blob canvas — INSIDE hero, between curtain and text */

.hero-blob-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  filter: blur(32px) saturate(1.6) contrast(1.1);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
  transition: opacity 0.05s linear;
}

/* Layer 3c: Hero grain noise — subtle texture on blob (mix-blend-mode) */

.hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  transition: opacity 0.05s linear;
}

/* Layer 4: Black text fill — visible initially, fades out on scroll */

.hero-text-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.05s linear;
}

/* Layer 5: Hero content — eyebrow, h2, badges, scroll hint */

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30vh 60px 12vh;
  pointer-events: none;
  text-align: center;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-content-top,
.hero-content-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content-middle {
  flex: 1;
}

.hero-content-top .eyebrow {
  margin-bottom: 0;
}

.hero-content-bottom .hero-h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #C084FC, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content-bottom .badges {
  margin-bottom: 32px;
}

.hero-content-bottom .scroll-hint {
  margin-top: 8px;
}
