/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(88, 245, 160, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(88, 245, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 245, 160, 0); }
}

@keyframes grid-scroll {
    from { background-position: 0 0; }
    to   { background-position: 0 46px; }
}

@keyframes holo-spin {
    to { --angle: 360deg; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blur-in entrance — richer than plain fade */
@keyframes blur-up {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(70px, -50px) scale(1.15); }
    100% { transform: translate(-50px, 60px) scale(0.95); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes scanline {
    from { background-position: 0 -150%; }
    to   { background-position: 0 150%; }
}

@keyframes breathe {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

@keyframes logo-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15) rotate(-6deg); }
    100% { transform: scale(1); }
}

@keyframes dash-grow {
    from { width: 0; opacity: 0; }
    to   { width: 28px; opacity: 1; }
}

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

/* Hero entrance — staggered blur-in */
.hero-badge   { animation: blur-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.hero-title   { animation: blur-up 1s   cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
.hero-sub     { animation: blur-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both; }
.hero-actions { animation: blur-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both; }
.hero-stats   { animation: blur-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both; }
.terminal     { animation: blur-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both, holo-spin 5s linear infinite; }

/* Page headers get the same treatment */
.page-header .eyebrow { animation: blur-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.page-header h1       { animation: blur-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.page-header p        { animation: blur-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
