/* ============================================
   ANIMATIONS - ZAPIER-STYLE SUBTLE & REFINED
   ============================================ */

/* ---- Fade In Up ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(25px);
    animation: fadeInRight 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

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

/* ---- Scroll Reveal ---- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.08s; }
.scroll-reveal.delay-2 { transition-delay: 0.16s; }
.scroll-reveal.delay-3 { transition-delay: 0.24s; }
.scroll-reveal.delay-4 { transition-delay: 0.32s; }

/* ---- Card Hover ---- */
.problem-card,
.feature-card,
.value-card,
.testimonial-card {
    position: relative;
    overflow: hidden;
}

/* ---- Hero Card — subtle float ---- */
.hero-verification-card {
    animation: floatCard 5s ease-in-out infinite;
}

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

/* ---- Progress Bar Animate ---- */
.rfp-progress-fill {
    width: 0 !important;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

.rfp-progress-fill.animate {
    width: var(--target-width) !important;
}

/* ---- Pulse for Realtime Badge ---- */
.realtime-badge i {
    animation: pulse 2.5s ease infinite;
}

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

/* ---- Verification Badge Stagger ---- */
.verification-item {
    opacity: 0;
    transform: translateY(8px);
    animation: slideInItem 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.verification-item:nth-child(1) { animation-delay: 0.4s; }
.verification-item:nth-child(2) { animation-delay: 0.5s; }
.verification-item:nth-child(3) { animation-delay: 0.6s; }
.verification-item:nth-child(4) { animation-delay: 0.7s; }
.verification-item:nth-child(5) { animation-delay: 0.8s; }
.verification-item:nth-child(6) { animation-delay: 0.9s; }
.verification-item:nth-child(7) { animation-delay: 1.0s; }

@keyframes slideInItem {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Step Cards Line ---- */
.steps-container {
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: 42px;
    width: 1px;
    background: var(--border, #ddd8d0);
    z-index: 0;
}

@media (max-width: 767px) {
    .steps-container::before {
        display: none;
    }
}

.step-card {
    position: relative;
    z-index: 1;
}

/* ---- Score Badge Shimmer ---- */
.hero-score-badge {
    position: relative;
    overflow: hidden;
}

.hero-score-badge::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    top: 0;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -30px; }
    100% { left: calc(100% + 30px); }
}

/* ---- Tab Transition ---- */
.tab-pane {
    animation: fadeTab 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ---- Integration Card Glow ---- */
.integration-card {
    position: relative;
    overflow: hidden;
}

.integration-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232,97,60,0.08) 0%, transparent 70%);
    top: -40px;
    right: -40px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ---- Logo Scroll ---- */
.logo-track {
    will-change: transform;
}

/* ---- Sections ---- */
section {
    position: relative;
    overflow: hidden;
}

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

    .scroll-reveal,
    .fade-in-up,
    .fade-in-right,
    .verification-item {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-verification-card,
    .logo-track,
    .rfp-progress-fill,
    .topbar-dot,
    .realtime-badge i,
    .hero-score-badge::after {
        animation: none;
    }
}
