.hero.hero--light {
  position: relative;
  overflow: hidden;
  /* Full-screen hero without looking “cropped” under topbar+header */
  --hero-offset: 124px;
  --px: 0; /* parallax x (-1..1) */
  --py: 0; /* parallax y (-1..1) */
  height: calc(100svh - var(--hero-offset));
  display: flex;
  align-items: center;
  padding: 0;
  background: radial-gradient(1200px 560px at 15% 0%, rgba(14, 165, 233, 0.16), rgba(247, 248, 252, 0) 60%),
              radial-gradient(900px 520px at 90% 10%, rgba(245, 158, 11, 0.12), rgba(247, 248, 252, 0) 60%),
              linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-fog {
  position: absolute;
  inset: -160px;
  pointer-events: none;
  /* Inspired by the Special Deals card glow: conic + radials, blurred */
  background:
    conic-gradient(
      from 220deg,
      rgba(29, 78, 216, 0.00),
      rgba(29, 78, 216, 0.32),
      rgba(14, 165, 233, 0.24),
      rgba(245, 158, 11, 0.20),
      rgba(29, 78, 216, 0.00)
    ),
    radial-gradient(800px 420px at 20% 15%, rgba(14, 165, 233, 0.18), rgba(255,255,255,0) 62%),
    radial-gradient(900px 520px at 85% 25%, rgba(245, 158, 11, 0.14), rgba(255,255,255,0) 68%);
  filter: blur(34px);
  opacity: 0.42;
  mix-blend-mode: multiply;
  transform: translate3d(0, 0, 0);
  animation: heroFogDrift 11s ease-in-out infinite;
}

.hero.hero--light.is-video-playing .hero-fog {
  opacity: 0.34;
}

.hero.hero--light.is-video-disabled .hero-fog {
  opacity: 0.46;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03) brightness(1.05);
  opacity: 0.16;
  transition: opacity 360ms ease;
}

.hero.hero--light.is-video-disabled .hero-video {
  display: none;
}

.hero.hero--light.is-video-disabled .hero-bg-image {
  opacity: 0.22;
}

.hero.hero--light.is-video-playing .hero-bg-image {
  opacity: 0.08;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03) brightness(1.05);
  /* Start hidden; fade in only after playback starts (prevents "flash/jank" during decode on mobile) */
  opacity: 0;
  transition: opacity 360ms ease;
}

.hero.hero--light.is-video-playing .hero-video {
  opacity: 0.58;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 20% 10%, rgba(255,255,255,0.32), rgba(255,255,255,0) 64%),
              linear-gradient(180deg, rgba(255,255,255,0.22), rgba(247,248,252,0.38));
  background-size: 180% 180%;
  animation: heroOverlayShift 10s ease-in-out infinite;
  transition: opacity 360ms ease;
}

.hero-shape {
  position: absolute;
  filter: blur(0);
  opacity: 0.9;
}

.hero-shape--a {
  width: 520px;
  height: 520px;
  border-radius: 60px;
  background: radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.20), rgba(29, 78, 216, 0) 65%);
  top: -220px;
  left: -200px;
  transform: rotate(18deg);
}

.hero-shape--b {
  width: 640px;
  height: 640px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0) 62%);
  top: -260px;
  right: -260px;
}

.hero-shape--c {
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0) 65%);
  bottom: -320px;
  left: 18%;
}

.hero-snow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 10% 18%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%),
    radial-gradient(1.5px 1.5px at 40% 22%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%),
    radial-gradient(2px 2px at 68% 16%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%),
    radial-gradient(1.5px 1.5px at 85% 26%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%),
    radial-gradient(2px 2px at 22% 52%, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%),
    radial-gradient(1.5px 1.5px at 56% 58%, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%);
  opacity: 0.55;
}

.hero-container {
  position: relative;
  width: 100%;
  padding: 0; /* hero layout handles its own padding so it never overflows the viewport */
  height: 100%;
}

/* New hero layout */
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  padding-inline: clamp(18px, 3.6vw, 56px);
  padding-block: clamp(18px, 3vw, 46px) 64px; /* bottom space so the scroll pill is always visible */
  isolation: isolate; /* ensure overlays can sit behind content cleanly */
}

.hero-copy {
  max-width: 820px;
  position: relative;
  z-index: 2; /* keep text/buttons above grain/sparkles overlays */
}

/* Clean premium hero: no abstract shapes; keep only subtle film grain + vignette */
.hero-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* vignette + soft light */
  background:
    radial-gradient(1100px 520px at 22% 18%, rgba(255,255,255,0.78), rgba(255,255,255,0) 60%),
    radial-gradient(1200px 700px at 88% 18%, rgba(255,255,255,0.52), rgba(255,255,255,0) 62%),
    radial-gradient(900px 520px at 50% 110%, rgba(15, 23, 42, 0.06), rgba(255,255,255,0) 60%),
    radial-gradient(1400px 900px at 50% 50%, rgba(15, 23, 42, 0.05), rgba(255,255,255,0) 62%);
  opacity: 1;
}

.hero-layout::after {
  /* film grain + subtle sparkles (single ::after; avoid accidental override) */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* sparkles */
    radial-gradient(2px 2px at 18% 32%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%),
    radial-gradient(2px 2px at 28% 58%, rgba(255,255,255,0.90), rgba(255,255,255,0) 70%),
    radial-gradient(1.5px 1.5px at 42% 28%, rgba(255,255,255,0.90), rgba(255,255,255,0) 70%),
    radial-gradient(2px 2px at 62% 36%, rgba(255,255,255,0.92), rgba(255,255,255,0) 70%),
    radial-gradient(1.5px 1.5px at 70% 62%, rgba(255,255,255,0.88), rgba(255,255,255,0) 70%),
    /* grain */
    repeating-linear-gradient(
      0deg,
      rgba(15,23,42,0.028) 0px,
      rgba(15,23,42,0.028) 1px,
      rgba(255,255,255,0) 2px,
      rgba(255,255,255,0) 3px
    );
  mix-blend-mode: multiply;
  opacity: 0.22;
  animation: sparkles 7.5s ease-in-out infinite;
}

.hero-copy {
  padding: 12px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
}

.hero-badge-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--color-accent);
  font-weight: 900;
  animation: starTwinkle 3.2s ease-in-out infinite;
}

.hero-intro .hero-badge,
.hero-intro .hero-title,
.hero-intro .hero-lede,
.hero-intro .hero-cta {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

.hero-intro.is-ready .hero-badge {
  animation: heroIn 700ms cubic-bezier(0.16, 1, 0.3, 1) 0ms forwards;
}
.hero-intro.is-ready .hero-title {
  animation: heroIn 900ms cubic-bezier(0.16, 1, 0.3, 1) 90ms forwards;
}
.hero-intro.is-ready .hero-lede {
  animation: heroIn 850ms cubic-bezier(0.16, 1, 0.3, 1) 180ms forwards;
}
.hero-intro.is-ready .hero-cta {
  animation: heroIn 850ms cubic-bezier(0.16, 1, 0.3, 1) 260ms forwards;
}

.hero-badge-text {
  font-weight: 800;
  color: var(--color-text);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  color: var(--color-text);
  margin-bottom: 16px;
  text-shadow: 0 18px 70px rgba(15, 23, 42, 0.10);
}

.hero-title .stroke {
  color: transparent;
  -webkit-text-stroke: 2px rgba(29, 78, 216, 0.55);
  filter: drop-shadow(0 8px 18px rgba(29, 78, 216, 0.10));
}

.hero-lede {
  color: var(--color-text-2);
  font-weight: 600;
  font-size: 1.15rem;
  max-width: 60ch;
  margin-bottom: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

/* Make secondary CTA clearly clickable on top of video */
.hero-cta .btn.btn-soft {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.12);
}

.hero-cta .btn.btn-soft:hover {
  background: rgba(255, 255, 255, 0.92);
}

.hero-cta .btn {
  position: relative;
  overflow: hidden;
}

.hero-cta .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 18%,
    rgba(255,255,255,0) 36%
  );
  transform: translateX(-130%);
  opacity: 0.6;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-cta .btn:hover::after {
  transform: translateX(130%);
}

/* Premium button “breathing” + shimmer (subtle) */
.btn.btn-primary {
  background-size: 160% 160%;
  animation: btnBreath 6.5s ease-in-out infinite;
}

.btn.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 18%,
    rgba(255,255,255,0) 36%
  );
  transform: translateX(-140%);
  opacity: 0.55;
  animation: btnShimmer 7.8s ease-in-out infinite;
  pointer-events: none;
}

.btn.btn-primary:hover {
  animation-play-state: paused;
}

/* Removed: trust + quick-actions panel (kept hero clean) */

/* New scroll indicator (orb) */
.scroll-indicator--orb {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.10);
  color: var(--color-text-2);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scroll-orb {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.10);
  border: 1px solid rgba(29, 78, 216, 0.18);
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.14);
  overflow: hidden;
}

.scroll-orb-ring {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 2px solid rgba(14, 165, 233, 0.35);
  border-top-color: rgba(29, 78, 216, 0.75);
  animation: orbSpin 1.9s linear infinite;
}

.scroll-orb-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(15, 23, 42, 0.55);
  border-bottom: 2px solid rgba(15, 23, 42, 0.55);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: orbBop 1.4s ease-in-out infinite;
}

.scroll-orb-label {
  font-size: 0.78rem;
}

@keyframes scrollPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes btnBreath {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btnShimmer {
  0%, 72% { transform: translateX(-140%); }
  86% { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}

@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbBop {
  0%, 100% { transform: translate(-50%, -55%) rotate(45deg); opacity: 0.7; }
  50% { transform: translate(-50%, -40%) rotate(45deg); opacity: 1; }
}

@media (max-width: 980px) {
  .hero-layout::after { opacity: 0.14; }
}

@media (max-width: 767px) {
  .hero.hero--light {
    --hero-offset: 108px;
    padding: 0;
  }
  .hero-container {
    padding: 0;
  }
  .hero-lede {
    font-size: 1.05rem;
  }
  .hero-layout::after {
    opacity: 0.18;
  }

  /* Mobile stability: keep hero background simple + static to avoid “flicker” during video decode */
  .hero-video-overlay {
    animation: none !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(247,248,252,0.24));
  }

  .hero-fog {
    animation: none !important;
    opacity: 0.18;
  }

  .hero-layout::after {
    animation: none !important;
    opacity: 0.14;
  }

  /* Keep fallback image stable on mobile (avoid extra state-changes "popping") */
  .hero-bg-image { opacity: 0.14; }
  .hero.hero--light.is-video-playing .hero-bg-image { opacity: 0.14; }
  .hero.hero--light.is-video-disabled .hero-bg-image { opacity: 0.14; }
}

@keyframes heroOverlayShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 40%; }
}

@keyframes heroFogDrift {
  0%, 100% { transform: translate3d(-3%, -1%, 0) rotate(-2deg); }
  50% { transform: translate3d(3%, 2%, 0) rotate(2deg); }
}

/* no aurora animations */

@keyframes sparkles {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.34; }
}

@keyframes starTwinkle {
  0%, 100% { transform: rotate(-10deg) scale(1); opacity: 0.85; }
  50% { transform: rotate(10deg) scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-overlay,
  .hero-fog,
  .hero-layout::after,
  .hero-badge-icon,
  .btn.btn-primary,
  .btn.btn-primary::before,
  .scroll-orb-ring,
  .scroll-orb-arrow {
    animation: none !important;
  }
}


