/* ========== Keyframe Animations ========== */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

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

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

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

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

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

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

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.4); }
}

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

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* ========== Scroll Reveal Animations ========== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ========== Entry Animations ========== */

.hero-badge {
    animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-demo {
    animation: fadeInRight 1s ease 0.6s both;
}

.demo-window {
    animation: float 6s ease-in-out infinite;
}

/* ========== Demo Output Animation ========== */

.demo-output .output-line {
    opacity: 0;
    animation: fadeInUp 0.5s ease both;
}

.demo-output .output-line:nth-child(1) { animation-delay: 1.5s; }
.demo-output .output-line:nth-child(2) { animation-delay: 2.2s; }
.demo-output .output-line:nth-child(3) { animation-delay: 2.9s; }
.demo-output .output-line:nth-child(4) { animation-delay: 3.6s; }
.demo-output .output-line:nth-child(5) { animation-delay: 4.3s; }
.demo-output .output-line:nth-child(6) { animation-delay: 5.0s; }

/* ========== Feature Card Stagger ========== */

.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1).visible { transition-delay: 0.1s; }
.feature-card:nth-child(2).visible { transition-delay: 0.2s; }
.feature-card:nth-child(3).visible { transition-delay: 0.3s; }
.feature-card:nth-child(4).visible { transition-delay: 0.4s; }
.feature-card:nth-child(5).visible { transition-delay: 0.5s; }
.feature-card:nth-child(6).visible { transition-delay: 0.6s; }

/* ========== Step Card Stagger ========== */

.step-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:nth-child(1).visible { transition-delay: 0.1s; }
.step-card:nth-child(2).visible { transition-delay: 0.3s; }
.step-card:nth-child(3).visible { transition-delay: 0.5s; }

/* ========== Use Case Card Stagger ========== */

.usecase-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.usecase-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.usecase-card:nth-child(1).visible { transition-delay: 0.1s; }
.usecase-card:nth-child(2).visible { transition-delay: 0.2s; }
.usecase-card:nth-child(3).visible { transition-delay: 0.3s; }
.usecase-card:nth-child(4).visible { transition-delay: 0.4s; }

/* ========== Pricing Card Stagger ========== */

.pricing-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:nth-child(1).visible { transition-delay: 0.1s; }
.pricing-card:nth-child(2).visible { transition-delay: 0.3s; }
.pricing-card:nth-child(3).visible { transition-delay: 0.5s; }

/* ========== Hover Effects ========== */

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card:hover::before {
    opacity: 1;
}

/* ========== CTA Glow ========== */

.cta-content {
    animation: glow 4s ease-in-out infinite;
}

/* ========== Smooth Scroll Indicator ========== */

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}
