/* Cinematic homepage hero and lightweight welcome intro */
#page-home .home-hero-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(480px, 42vw, 580px);
  place-items: center;
  padding: clamp(74px, 9vw, 118px) clamp(20px, 5vw, 56px) 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 76, .72);
  border-radius: clamp(24px, 3vw, 40px);
  background: linear-gradient(135deg, #081426 0%, #111325 56%, #100d0a 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62), 0 0 42px rgba(255, 187, 44, .12);
}

#page-home .hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.06);
  filter: brightness(.72) saturate(1.12) contrast(1.04);
  animation: homeHeroBackdropDrift 22s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

#page-home .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 8, 19, .2) 0%, rgba(3, 8, 19, .16) 36%, rgba(2, 6, 16, .78) 100%),
    linear-gradient(90deg, rgba(2, 6, 16, .34), transparent 32%, transparent 68%, rgba(2, 6, 16, .34));
  opacity: 1;
}

#page-home .home-hero-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0%, transparent 42%, rgba(255, 255, 255, .07) 47%, rgba(255, 204, 87, .24) 50%, rgba(85, 192, 255, .13) 53%, transparent 60%, transparent 100%);
  background-size: 240% 100%;
  mix-blend-mode: screen;
  opacity: .76;
  animation: homeHeroLightSweep 9s ease-in-out infinite;
}

#page-home .home-hero-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, .18) 100%);
  mix-blend-mode: screen;
  opacity: .48;
}

#page-home .hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 980px);
  text-align: center;
}

#page-home .hero-intro-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 9px 15px;
  color: #ffe3a0;
  border: 1px solid rgba(255, 207, 96, .48);
  border-radius: 999px;
  background: rgba(5, 12, 27, .68);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24), inset 0 0 18px rgba(255, 196, 59, .08);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: 2.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

#page-home .hero-intro-orb {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ffd36a;
  box-shadow: 0 0 12px 3px rgba(255, 191, 48, .55);
  animation: homeHeroOrbPulse 1.8s ease-in-out infinite;
}

#page-home .hero-title-main {
  max-width: 100%;
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 7.3vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 5px 26px rgba(0, 0, 0, .9), 0 0 32px rgba(0, 0, 0, .58);
}

#page-home .hero-subtitle {
  margin: 0 0 34px;
  color: #ffd36a;
  font-size: clamp(.82rem, 1.55vw, 1.08rem);
  letter-spacing: clamp(1.4px, .5vw, 4px);
  line-height: 1.6;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .88);
}

#page-home .hero-btn-row {
  gap: 14px;
}

#page-home .hero-btn-row .btn {
  min-width: 210px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
}

#page-home .hero-intro-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, .76);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: 1.7px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

#page-home .hero-intro-replay span {
  color: #ffd36a;
  font-size: 1rem;
  line-height: 1;
}

#page-home .hero-intro-replay:hover,
#page-home .hero-intro-replay:focus-visible {
  color: #fff;
  border-color: rgba(255, 211, 106, .42);
  background: rgba(255, 255, 255, .07);
  outline: none;
}

#page-home .home-hero-intro .hero-intro-kicker,
#page-home .home-hero-intro .hero-title-main,
#page-home .home-hero-intro .hero-subtitle,
#page-home .home-hero-intro .hero-btn-row,
#page-home .home-hero-intro .hero-intro-replay {
  animation-name: homeHeroReveal;
  animation-duration: .72s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  animation-fill-mode: both;
}

#page-home .home-hero-intro .hero-intro-kicker { animation-delay: .16s; }
#page-home .home-hero-intro .hero-title-main { animation-delay: .38s; }
#page-home .home-hero-intro .hero-subtitle { animation-delay: .62s; }
#page-home .home-hero-intro .hero-btn-row { animation-delay: .86s; }
#page-home .home-hero-intro .hero-intro-replay { animation-delay: 1.02s; }

#page-home .home-hero-intro.intro-replay .hero-intro-kicker,
#page-home .home-hero-intro.intro-replay .hero-title-main,
#page-home .home-hero-intro.intro-replay .hero-subtitle,
#page-home .home-hero-intro.intro-replay .hero-btn-row,
#page-home .home-hero-intro.intro-replay .hero-intro-replay {
  animation-name: homeHeroReplayReveal;
  animation-duration: .62s;
}

#page-home .home-hero-intro.intro-replay .hero-intro-kicker { animation-delay: 0s; }
#page-home .home-hero-intro.intro-replay .hero-title-main { animation-delay: .14s; }
#page-home .home-hero-intro.intro-replay .hero-subtitle { animation-delay: .28s; }
#page-home .home-hero-intro.intro-replay .hero-btn-row { animation-delay: .42s; }
#page-home .home-hero-intro.intro-replay .hero-intro-replay { animation-delay: .54s; }

@keyframes homeHeroBackdropDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.15) translate3d(-1.2%, -1%, 0); }
}

@keyframes homeHeroLightSweep {
  0%, 28% { background-position: 120% 0; }
  72%, 100% { background-position: -20% 0; }
}

@keyframes homeHeroOrbPulse {
  0%, 100% { opacity: .62; transform: scale(.84); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes homeHeroReveal {
  from { opacity: 0; filter: blur(7px); transform: translateY(22px) scale(.985); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes homeHeroReplayReveal {
  from { opacity: .15; filter: blur(5px); transform: translateY(16px) scale(.99); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  #page-home .home-hero-intro {
    min-height: 550px;
    padding: 68px 18px 34px;
    margin: 20px 0 44px;
    border-radius: 25px;
  }

  #page-home .hero-backdrop {
    object-position: 25% center;
    filter: brightness(.64) saturate(1.08) contrast(1.04);
  }

  #page-home .hero-intro-kicker {
    gap: 8px;
    padding: 8px 12px;
    font-size: .63rem;
    letter-spacing: 1.7px;
  }

  #page-home .hero-title-main {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
    letter-spacing: -.045em;
  }

  #page-home .hero-subtitle {
    margin-bottom: 28px;
    letter-spacing: 1.8px;
  }

  #page-home .hero-btn-row {
    gap: 10px;
  }

  #page-home .hero-btn-row .btn {
    width: min(100%, 310px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-home .hero-backdrop,
  #page-home .hero-intro-orb {
    animation: none !important;
  }

  #page-home .home-hero-intro .hero-intro-kicker,
  #page-home .home-hero-intro .hero-title-main,
  #page-home .home-hero-intro .hero-subtitle,
  #page-home .home-hero-intro .hero-btn-row,
  #page-home .home-hero-intro .hero-intro-replay {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }

  #page-home .home-hero-intro::before {
    animation: none !important;
  }
}
