.pulse-glow-light {
    animation: pulseGlowLight 2s infinite alternate;
}

@keyframes pulseGlowLight {
    0% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
        background-color: rgba(56, 189, 248, 0.2);
    }

    100% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.8);
        background-color: rgba(56, 189, 248, 0.8);
    }
}

.data-stream-vertical {
    background: linear-gradient(180deg, transparent, #38bdf8, #818cf8, transparent);
    background-size: 100% 200%;
    animation: flowStreamVertical 1s infinite linear, flowOpacity 6s infinite;
}

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

    100% {
        background-position: 0 -100%;
    }
}

@keyframes flowOpacity {

    0%,
    10% {
        opacity: 0;
    }

    15%,
    80% {
        opacity: 1;
    }

    85%,
    100% {
        opacity: 0;
    }
}

.pop-out-1 {
    animation: popOut1 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes popOut1 {

    0%,
    15% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }

    25%,
    80% {
        transform: scale(1) translateY(-10px);
        opacity: 1;
    }

    90%,
    100% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
}

.pop-out-2 {
    animation: popOut2 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes popOut2 {

    0%,
    18% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }

    28%,
    80% {
        transform: scale(1) translateY(-10px);
        opacity: 1;
    }

    90%,
    100% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
}

.pop-out-3 {
    animation: popOut3 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes popOut3 {

    0%,
    21% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }

    31%,
    80% {
        transform: scale(1) translateY(-10px);
        opacity: 1;
    }

    90%,
    100% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
}

.pop-out-4 {
    animation: popOut4 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes popOut4 {

    0%,
    24% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }

    34%,
    80% {
        transform: scale(1) translateY(-10px);
        opacity: 1;
    }

    90%,
    100% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
}

.plug-in-vertical-down {
    animation: plugInVerticalDown 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes plugInVerticalDown {

    0%,
    5% {
        transform: translateY(-30px);
        opacity: 0;
    }

    15%,
    85% {
        transform: translateY(0);
        opacity: 1;
    }

    95%,
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

/* V2: Magiczna Ekspansja - Light Version */
.v2-center-pulse {
    animation: pulseGlowV2 3s infinite alternate;
}

@keyframes pulseGlowV2 {
    0% {
        box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
    }

    100% {
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.5), 0 0 50px rgba(14, 165, 233, 0.2);
    }
}

.v2-node {
    animation: popOutV2 4s infinite cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.v2-node-1 {
    animation-delay: 0.2s;
}

.v2-node-2 {
    animation-delay: 0.4s;
}

.v2-node-3 {
    animation-delay: 0.6s;
}

.v2-node-4 {
    animation-delay: 1.0s;
}

.v2-node-5 {
    animation-delay: 1.2s;
}

.v2-node-6 {
    animation-delay: 0.8s;
}

@keyframes popOutV2 {

    0%,
    5% {
        transform: scale(0.5);
        opacity: 0;
        border-color: transparent;
    }

    15%,
    85% {
        transform: scale(1);
        opacity: 1;
        border-color: #38bdf8;
        box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.1);
    }

    95%,
    100% {
        transform: scale(0.5);
        opacity: 0;
        border-color: transparent;
    }
}

/* Input Node & Flow */
.v2-input-node {
    animation: pulseInput 4s infinite;
}

@keyframes pulseInput {

    0%,
    100% {
        transform: scale(1);
        border-color: #e2e8f0;
    }

    10%,
    15% {
        transform: scale(1.05);
        border-color: #38bdf8;
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    }
}

.v2-input-flow {
    stroke-dasharray: 8;
    animation: flowDown 1.5s linear infinite;
}

@keyframes flowDown {
    to {
        stroke-dashoffset: -16;
    }
}

.v2-hand {
    animation: pressHand 4s infinite ease-out;
    transform-origin: top left;
}

@keyframes pressHand {

    0%,
    50%,
    100% {
        opacity: 0;
        transform: translate(50px, 50px) scale(1);
    }

    5% {
        opacity: 1;
        transform: translate(10px, 10px) scale(1);
    }

    10%,
    12% {
        opacity: 1;
        transform: translate(0px, 0px) scale(0.85);
    }

    18% {
        opacity: 1;
        transform: translate(15px, 15px) scale(1);
    }

    30% {
        opacity: 0;
        transform: translate(40px, 40px) scale(1);
    }
}

.connection-line {
    stroke-dasharray: 10;
    animation: march 1s linear infinite;
}

@keyframes march {
    to {
        stroke-dashoffset: -20;
    }
}

/* --- NEW ANIMATIONS FROM FINAL FLOW LIGHT --- */

/* Horizontal Plug-in Animation */
.plug-in-horizontal {
    animation: plugInHorizontal 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes plugInHorizontal {
    0%, 5% { transform: translateX(-30px); opacity: 0; }
    15%, 85% { transform: translateX(0); opacity: 1; }
    95%, 100% { transform: translateX(-30px); opacity: 0; }
}

.v3-progress {
    animation: loadBar 5s infinite;
    transform-origin: left;
}
@keyframes loadBar {
    0% { transform: scaleX(0); opacity: 1; }
    10% { transform: scaleX(0.2); }
    20% { transform: scaleX(1); opacity: 1;}
    90% { transform: scaleX(1); opacity: 1;}
    95% { transform: scaleX(1); opacity: 0;}
    100% { transform: scaleX(0); opacity: 0; }
}

.v3-card { animation: dropInV3 5s infinite; opacity: 0; }
.v3-card-1 { animation-delay: 1.5s; }
.v3-card-2 { animation-delay: 2.0s; }
.v3-card-3 { animation-delay: 2.5s; }
.v3-card-4 { animation-delay: 3.0s; }
@keyframes dropInV3 {
    0%, 15% { transform: translateY(-10px); opacity: 0; }
    25%, 85% { transform: translateY(0); opacity: 1; }
    95%, 100% { transform: translateY(10px); opacity: 0; }
}

.typewriter-v3 {
    overflow: hidden;
    border-right: 2px solid #38bdf8;
    white-space: nowrap;
    width: 0;
    animation: typingV3 5s infinite steps(40, end);
}
@keyframes typingV3 {
    0%, 10% { width: 0; }
    20%, 85% { width: 100%; }
    95%, 100% { width: 0; }
}
