/* ==========================================================================
   007bsb — Animations
   ========================================================================== */

@keyframes bsFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bsScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes bsFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes bsPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(230, 57, 70, 0.0),
                0 8px 20px -6px rgba(230, 57, 70, 0.4);
  }
  50% {
    box-shadow: 0 0 26px rgba(230, 57, 70, 0.55),
                0 12px 30px -6px rgba(230, 57, 70, 0.65);
  }
}

@keyframes bsScopePulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}

@keyframes bsDrawerIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes bsStickySlideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

/* ---------- Hero entrance ---------- */
.hero__badge {
  opacity: 0;
  animation: bsFadeInUp 700ms var(--ease-out) 100ms both;
}
.hero h1 {
  opacity: 0;
  animation: bsFadeInUp 800ms var(--ease-out) 250ms both;
}
.hero__desc {
  opacity: 0;
  animation: bsFadeInUp 700ms var(--ease-out) 550ms both;
}
.hero__actions {
  opacity: 0;
  animation: bsFadeInUp 700ms var(--ease-out) 700ms both;
}
.hero__stats {
  opacity: 0;
  animation: bsFadeInUp 700ms var(--ease-out) 850ms both;
}

/* Floating brand seal */
.brand-media img {
  animation: bsFloat 7s ease-in-out infinite;
}

/* Hero badge crosshair pulse */
.hero__badge img {
  animation: bsScopePulse 2.4s ease-in-out infinite;
}

/* Staggered game cards */
.game-card {
  opacity: 0;
  animation: bsScaleIn 500ms var(--ease-out) both;
}
.game-card:nth-child(1) { animation-delay: 40ms; }
.game-card:nth-child(2) { animation-delay: 80ms; }
.game-card:nth-child(3) { animation-delay: 120ms; }
.game-card:nth-child(4) { animation-delay: 160ms; }
.game-card:nth-child(5) { animation-delay: 200ms; }
.game-card:nth-child(6) { animation-delay: 240ms; }
.game-card:nth-child(7) { animation-delay: 280ms; }
.game-card:nth-child(8) { animation-delay: 320ms; }

/* Header scrolled */
.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(2, 6, 16, 0.92) 100%);
  box-shadow: 0 6px 30px -8px rgba(0, 0, 0, 0.7);
}

/* Mobile drawer animation */
.nav.is-open {
  animation: bsDrawerIn 320ms var(--ease-out) forwards;
}

/* CTA pulse on primary hero button */
.hero__actions .btn--primary {
  animation: bsPulseGlow 3.2s ease-in-out 1.2s infinite;
}

/* Auto banner shine sweep */
@keyframes bsBannerShineAuto {
  0%   { left: -60%; }
  40%  { left: 120%; }
  100% { left: 120%; }
}
.promo-banner__shine {
  animation: bsBannerShineAuto 5s ease-in-out 1.5s infinite;
}
.promo-banner:hover .promo-banner__shine { animation: none; }

/* Sticky promo entrance */
.sticky-promo {
  animation: bsStickySlideUp 500ms var(--ease-out) 800ms both;
}

/* Sticky promo CTA gentle pulse */
.sticky-promo__cta {
  animation: bsPulseGlow 3s ease-in-out 2s infinite;
}

/* Sticky promo icon pulse */
.sticky-promo__icon {
  animation: bsScopePulse 2.6s ease-in-out infinite;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .brand-media img,
  .hero__badge img,
  .hero__actions .btn--primary,
  .promo-banner__shine,
  .sticky-promo__cta,
  .sticky-promo__icon {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
