/* ==================== SCROLL ANIMATIONS ==================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.features-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.features-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.features-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.features-grid [data-animate]:nth-child(4) { transition-delay: 0.15s; }
.features-grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }
.features-grid [data-animate]:nth-child(6) { transition-delay: 0.35s; }

.step-card[data-animate]:nth-child(1) { transition-delay: 0s; }
.step-card[data-animate]:nth-child(2) { transition-delay: 0.2s; }
.step-card[data-animate]:nth-child(3) { transition-delay: 0.4s; }

.pricing-card[data-animate]:nth-child(1) { transition-delay: 0s; }
.pricing-card[data-animate]:nth-child(2) { transition-delay: 0.15s; }
.pricing-card[data-animate]:nth-child(3) { transition-delay: 0.3s; }

.faq-item[data-animate]:nth-child(1) { transition-delay: 0s; }
.faq-item[data-animate]:nth-child(2) { transition-delay: 0.08s; }
.faq-item[data-animate]:nth-child(3) { transition-delay: 0.16s; }
.faq-item[data-animate]:nth-child(4) { transition-delay: 0.24s; }
.faq-item[data-animate]:nth-child(5) { transition-delay: 0.32s; }
.faq-item[data-animate]:nth-child(6) { transition-delay: 0.4s; }

/* ==================== FADE IN UP ==================== */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ==================== FADE IN ==================== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

/* ==================== SCALE IN ==================== */
.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== SLIDE IN LEFT/RIGHT ==================== */
.slide-in-left {
    animation: slideInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== COUNTER ANIMATION ==================== */
.counter-animate {
    transition: all 0.1s ease;
}

/* ==================== SHIMMER EFFECT ==================== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* ==================== HOVER LIFT ==================== */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ==================== PULSE GLOW ==================== */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(108, 92, 231, 0); }
}

/* ==================== SPIN ==================== */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== BOUNCE ==================== */
.bounce {
    animation: bounce 1s ease infinite;
}

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

/* ==================== PAGE LOAD ANIMATIONS ==================== */
.page-loaded .hero-content {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.page-loaded .hero-visual {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.page-loaded .hero-badge {
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}