/* ─── Tailwind Specific Overrides for Landing Page ─── */

/* FAQ Accordion Transition */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.accordion-input:checked ~ .accordion-content {
    max-height: 400px;
    opacity: 1;
}
.accordion-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-input:checked + label .accordion-arrow {
    transform: rotate(180deg);
}
.accordion-input:checked + label {
    color: #4f46e5; /* Tailwind indigo-600 */
}

/* Button Pulse Animation */
@keyframes pulse-indigo {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}
.btn-pulse-indigo {
    animation: pulse-indigo 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── MAGIC FLOW ANIMATION ─── */
.magic-flow-container {
    perspective: 1000px;
}

@keyframes mf-scan-line {
    0%, 10% { top: -10%; opacity: 0; }
    15% { opacity: 1; }
    40%, 100% { top: 110%; opacity: 0; }
}

@keyframes mf-item-pop {
    0%, 25% { transform: scale(0); opacity: 0; }
    30% { transform: scale(1.1); opacity: 1; }
    35%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes mf-item-pop-2 {
    0%, 35% { transform: scale(0); opacity: 0; }
    40% { transform: scale(1.1); opacity: 1; }
    45%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes mf-receipt-slide {
    0%, 55% { transform: translateX(50px) translateY(20px); opacity: 0; }
    60% { transform: translateX(0) translateY(0); opacity: 1; }
    100% { transform: translateX(0) translateY(0); opacity: 1; }
}

@keyframes mf-pdf-generate {
    0%, 80% { transform: translateY(100%) scale(0.9); opacity: 0; }
    85% { transform: translateY(0) scale(1.05); opacity: 1; }
    90%, 100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes mf-fade-out-bg {
    0%, 75% { filter: brightness(1) blur(0); }
    85%, 100% { filter: brightness(0.4) blur(3px); }
}

.mf-anim-scan {
    animation: mf-scan-line 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.mf-anim-item-1 {
    animation: mf-item-pop 8s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mf-anim-item-2 {
    animation: mf-item-pop-2 8s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mf-anim-receipt {
    animation: mf-receipt-slide 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.mf-anim-pdf {
    animation: mf-pdf-generate 8s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mf-anim-bg {
    animation: mf-fade-out-bg 8s infinite ease-in-out;
}

/* ─── HERO CINEMATIC BACKGROUND ─── */
.hero-bg-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: bg-fade 18s infinite;
}

.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 6s; }
.hero-bg-slide:nth-child(3) { animation-delay: 12s; }

@keyframes bg-fade {
    0%, 10% { opacity: 0; transform: scale(1.05); }
    20%, 33% { opacity: 1; transform: scale(1); }
    43%, 100% { opacity: 0; transform: scale(1.05); }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 58, 138, 0.65) 100%);
    z-index: 1;
}
