/* Keyframe Animations */
@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateX(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateX(50px); }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes grid-drift {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(40px) translateY(40px); }
}

@keyframes number-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(230, 147, 3, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px rgba(255, 145, 0, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(230, 147, 3, 0.6);
    }
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.7;
    }
    50% {
        width: 125%;
        height: 125%;
        opacity: 0.5;
    }
    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
    }
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(230, 147, 3, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px rgba(255, 145, 0, 0.9);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-width {
    0%, 100% { width: 100px; }
    50% { width: 200px; }
}

@keyframes matrix-rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes stat-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(229, 110, 6, 0.988)); }
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Background Effects */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(107, 6, 73, 0.1) 4px, rgba(37, 12, 110, 0.1) 8px),
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(73, 12, 12, 0.1) 4px, rgba(58, 13, 98, 0.1) 8px);
    background-size: 50px 50px;
    animation: grid-move 5s linear infinite;
    transform: perspective(500px) rotateX(60deg);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.01) 2px,
        rgba(0, 255, 255, 0.01) 4px
    );
    animation: scanlines 8s linear infinite;
    pointer-events: none;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(107, 6, 73, 0.1) 4px, rgba(37, 12, 110, 0.1) 8px),
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(73, 12, 12, 0.1) 4px, rgba(58, 13, 98, 0.1) 8px);
    background-size: 40px 40px;
    animation: grid-drift 30s linear infinite;
    opacity: 0.5;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(0deg, transparent 0%, rgba(195, 0, 255, 0.05) 50%, transparent 100%);
    animation: matrix-rain 10s linear infinite;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(229, 110, 6, 0.7);
    animation: ripple 2s ease-in-out infinite;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(229, 110, 6, 0.7);
    animation: ripple 2s ease-in-out infinite;
}