/* Animated hero styles for the BNE homepage. */
.hero-mockup .hero {
  min-height: 100svh;
  isolation: isolate;
}

.hero-mockup .hero-bg {
  inset: -120px -3%;
  background-size: cover;
  animation: hero-image-drift 16s ease-in-out infinite alternate;
  will-change: background-position;
}

.hero-mockup .hero-overlay {
  z-index: 0;
  background:
    radial-gradient(circle at 68% 42%, rgba(59, 130, 246, 0.17), transparent 34%),
    linear-gradient(100deg, rgba(6, 13, 26, 0.96) 0%, rgba(6, 13, 26, 0.72) 45%, rgba(6, 13, 26, 0.28) 100%);
  background-size: 120% 120%, 100% 100%;
  animation: hero-color-drift 9s ease-in-out infinite alternate;
}

.hero-light-sweep {
  position: absolute;
  z-index: 0;
  inset: -20% auto -20% -35%;
  width: 28%;
  opacity: 0;
  transform: skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.16), transparent);
  filter: blur(10px);
  animation: hero-light-sweep 7.5s ease-in-out 1.4s infinite;
}

.hero-mockup .hero-content {
  padding-top: 52px;
}

.hero-overline {
  margin: 0 0 20px 24px;
  color: var(--blue-300);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-18px);
  animation: hero-overline-in 0.75s ease-out 0.25s forwards;
}

.hero-mockup .hero-title {
  position: relative;
  max-width: 780px;
  text-wrap: balance;
}

.hero-mockup .hero-title .accent {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 28px rgba(96, 165, 250, 0.22);
}

.hero-mockup .hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.02em;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-300), transparent);
  animation: hero-accent-draw 0.9s cubic-bezier(.22, 1, .36, 1) 1.15s forwards;
}

.hero-mockup .hero .reveal {
  opacity: 0;
  transform: translateY(30px);
}

.hero-mockup .hero-title.reveal {
  animation: hero-copy-in 0.95s cubic-bezier(.22, 1, .36, 1) 0.45s forwards;
}

.hero-mockup .hero-sub.reveal {
  animation: hero-copy-in 0.85s cubic-bezier(.22, 1, .36, 1) 0.78s forwards;
}

.hero-mockup .hero .btn.reveal {
  animation: hero-copy-in 0.8s cubic-bezier(.22, 1, .36, 1) 1.05s forwards;
}

.hero-mockup .hero .btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.25);
}

.hero-mockup .hero .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: hero-button-sheen 4.8s ease-in-out 2s infinite;
}

.hero-mockup .scroll-cue {
  bottom: 28px;
  flex-direction: row;
  gap: 10px;
  padding: 11px 17px 11px 20px;
  color: var(--white);
  background: rgba(6, 13, 26, 0.58);
  border: 1px solid rgba(96, 165, 250, 0.7);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  animation: hero-cue-pulse 2.8s ease-in-out infinite;
}

.hero-mockup .scroll-cue svg {
  width: 22px;
  height: 22px;
  color: var(--blue-300);
  animation-duration: 1.35s;
}

.hero-mockup .scroll-cue:hover {
  color: var(--white);
  background: rgba(37, 99, 235, 0.82);
  border-color: var(--blue-300);
  transform: translateX(-50%) translateY(-3px);
}

@keyframes hero-image-drift {
  from { background-position: 48% 46%; }
  to { background-position: 54% 54%; }
}

@keyframes hero-color-drift {
  from { background-position: 45% 45%, center; }
  to { background-position: 62% 55%, center; }
}

@keyframes hero-light-sweep {
  0%, 18% { left: -35%; opacity: 0; }
  35% { opacity: 0.75; }
  60%, 100% { left: 118%; opacity: 0; }
}

@keyframes hero-overline-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-copy-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-accent-draw {
  to { right: 0; }
}

@keyframes hero-button-sheen {
  0%, 68% { transform: translateX(-130%) skewX(-22deg); }
  86%, 100% { transform: translateX(130%) skewX(-22deg); }
}

@keyframes hero-cue-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 10px 30px rgba(0, 0, 0, 0.28),
      0 0 18px rgba(59, 130, 246, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 10px 32px rgba(0, 0, 0, 0.32),
      0 0 30px rgba(59, 130, 246, 0.38);
  }
}

@media (max-width: 680px) {
  .hero-mockup .hero-bg {
    inset: -110px 0;
    background-size: cover;
    animation-name: hero-image-drift-mobile;
  }

  .hero-mockup .hero-content { padding-top: 30px; }
  .hero-overline {
    max-width: 280px;
    margin-left: 18px;
    font-size: 0.65rem;
    line-height: 1.6;
  }

  @keyframes hero-image-drift-mobile {
    from { background-position: 48% center; transform: scale(1.02); }
    to { background-position: 55% center; transform: scale(1.08); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mockup .hero-bg,
  .hero-mockup .hero-overlay,
  .hero-light-sweep,
  .hero-overline,
  .hero-mockup .hero .reveal,
  .hero-mockup .hero-title .accent::after,
  .hero-mockup .hero .btn-primary::after {
    animation: none;
  }

  .hero-mockup .scroll-cue { animation: none; }

  .hero-overline,
  .hero-mockup .hero .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-mockup .hero-title .accent::after { right: 0; }
}
