/* Landing page scroll & motion animations */

.lp-anim {
    animation-fill-mode: both;
}

/* loop classes are always visible — one-shot classes hide until intersected */
.lp-anim:not(.lp-visible):not(.lp-anim-pulse):not(.lp-anim-shake):not(.lp-anim-float):not(.lp-anim-heartbeat):not(.lp-anim-glow):not(.lp-anim-spin) {
    opacity: 0;
}

.lp-visible.lp-anim-fade-up {
    animation-name: lpFadeUp;
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-visible.lp-anim-fade-in {
    animation-name: lpFadeIn;
    animation-duration: 0.6s;
}

.lp-visible.lp-anim-slide-left {
    animation-name: lpSlideLeft;
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-visible.lp-anim-slide-right {
    animation-name: lpSlideRight;
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-visible.lp-anim-zoom-in {
    animation-name: lpZoomIn;
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-visible.lp-anim-bounce-in {
    animation-name: lpBounceIn;
    animation-duration: 0.85s;
}

/* ── New scroll-triggered ── */
.lp-visible.lp-anim-fade-down {
    animation-name: lpFadeDown;
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-visible.lp-anim-flip-in {
    animation-name: lpFlipIn;
    animation-duration: 0.75s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-visible.lp-anim-zoom-out {
    animation-name: lpZoomOut;
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-visible.lp-anim-roll-in {
    animation-name: lpRollIn;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Existing loop ── */
.lp-anim-pulse {
    animation: lpPulse 2s ease-in-out infinite;
}

.lp-anim-shake {
    animation: lpShake 2.5s ease-in-out infinite;
}

/* ── New loop ── */
.lp-anim-float {
    animation: lpFloat 3s ease-in-out infinite;
}

.lp-anim-heartbeat {
    animation: lpHeartbeat 1.4s ease-in-out infinite;
}

.lp-anim-glow {
    animation: lpGlow 2s ease-in-out infinite;
}

.lp-anim-spin {
    animation: lpSpin 3s linear infinite;
    display: inline-block;
}

.lp-anim-delay-1 { animation-delay: 0.15s; }
.lp-anim-delay-2 { animation-delay: 0.3s; }
.lp-anim-delay-3 { animation-delay: 0.45s; }
.lp-anim-delay-4 { animation-delay: 0.6s; }

@keyframes lpFadeUp {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lpSlideLeft {
    from { opacity: 0; transform: translateX(-48px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes lpSlideRight {
    from { opacity: 0; transform: translateX(48px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes lpZoomIn {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes lpBounceIn {
    0% { opacity: 0; transform: scale(0.9) translateY(24px); }
    60% { opacity: 1; transform: scale(1.03) translateY(-6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes lpFadeDown {
    from { opacity: 0; transform: translateY(-36px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lpFlipIn {
    from { opacity: 0; transform: perspective(600px) rotateY(-90deg); }
    to { opacity: 1; transform: perspective(600px) rotateY(0deg); }
}

@keyframes lpZoomOut {
    from { opacity: 0; transform: scale(1.18); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes lpRollIn {
    from { opacity: 0; transform: translateX(-60px) rotate(-180deg); }
    to { opacity: 1; transform: translateX(0) rotate(0deg); }
}

@keyframes lpPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes lpShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes lpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes lpHeartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.08); }
    56% { transform: scale(1); }
}

@keyframes lpGlow {
    0%, 100% { box-shadow: 0 0 0px rgba(74, 222, 128, 0); }
    50% { box-shadow: 0 0 18px 4px rgba(74, 222, 128, 0.55); }
}

@keyframes lpSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-anim,
    .lp-anim-pulse,
    .lp-anim-shake,
    .lp-anim-float,
    .lp-anim-heartbeat,
    .lp-anim-glow,
    .lp-anim-spin {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
