/* ===========================
   Keyframes
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanSweep {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(420px);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 194, 213, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(22, 194, 213, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 194, 213, 0);
  }
}

@keyframes ringPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
}

@keyframes auroraDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(-2%, 1.5%, 0) scale(1.03);
  }
  66% {
    transform: translate3d(2%, -1.5%, 0) scale(1.05);
  }
}

@keyframes heroGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-3%, 3%) scale(1.08);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

/* ===========================
   Scroll reveal
   =========================== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-animate-delay='1'] { transition-delay: 80ms; }
[data-animate][data-animate-delay='2'] { transition-delay: 160ms; }
[data-animate][data-animate-delay='3'] { transition-delay: 240ms; }
[data-animate][data-animate-delay='4'] { transition-delay: 320ms; }

/* ===========================
   Element animations
   =========================== */
.scan-line {
  animation: scanSweep 4.5s var(--ease-in-out) infinite;
}

.pulse {
  animation: pulseGlow 2.4s var(--ease-in-out) infinite;
}

.status-dot {
  animation: ringPulse 2.2s var(--ease-in-out) infinite;
}

/* ===========================
   Reduced-motion safety
   =========================== */
@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;
  }

  body::before {
    animation: none !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}
