/* Process */

.dark-bg {
    background-color: var(--primary-dark-color);
    color: var(--primary-light-text);
}

.process-section-wrapper {
    position: relative;
    height: 800px;
    overflow: hidden;
}

.process-sticky-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.step {
    transition: opacity .4s ease, transform .4s ease;
}


.timeline-track {
    position: relative;

    display: flex;
    align-items: flex-start;
    padding-inline: 20px;

    will-change: transform;
    transition: transform .15s linear;
}



.timeline-viewport {
    overflow: hidden;
    width: 100%;
}

.timeline-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-inline: 20px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.timeline-line {
    position: absolute;
    top: 196px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: rgba(45, 119, 226, .18);
    z-index: 0;
    overflow: hidden;
}

.timeline-line::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--progress, 0) * 100%);
    background: var(--primary-color);
    transition: width 1s cubic-bezier(.22, 1, .36, 1);
}

.step {
    position: relative;
    z-index: 2;
    width: 245px;
    flex-shrink: 0;
    gap: 20px;
    opacity: var(--step-opacity, .35);
    filter: saturate(.85);
    transition:
        opacity .45s ease,
        transform .45s ease,
        filter .45s ease;
    will-change: transform, opacity;
}


.step.active {
    opacity: 1;
    filter: none;
}

.step-number {
    font-size: 154px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--primary-dark-color);
    text-shadow:
        1px 0 #2D77E2,
       -1px 0 #2D77E2,
        0 1px #2D77E2,
        0 -1px #2D77E2;
    transition: transform .45s ease, color .45s ease, text-shadow .45s ease;
}

.step.active .step-number,
.step:hover .step-number {
    color: #2D77E2;
    transform:  scale(1.0);
}

.step-node {
    position: relative;
}

.step-node::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(45, 119, 226, .14);
    opacity: 0;
    transform: scale(1);
    transition: .45s ease;
}

.step.active .step-node::before,
.step:hover .step-node::before {
    opacity: 1;
    transform: scale(1);
    animation: stepPulse 1.8s infinite;
}

.step-node svg {
    position: relative;
    z-index: 1;
    color: #2D77E2;
    transition: transform .45s ease, color .45s ease;
}

.step.active .step-node svg,
.step:hover .step-node svg {
    transform: scale(1);
    color: var(--primary-color);
}

.step-text {
    font-size: 15px;
    line-height: 1.5;
    max-width: 90%;
    margin-top: 20px;
    color: #ffffff7c;
    transition: color .35s ease, transform .35s ease;
}

.step.active .step-text,
.step:hover .step-text {
    color: var(--primary-light-text);
}

.process-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

@keyframes stepPulse {
    0%   { transform: scale(1); opacity: .55; }
    70%  { transform: scale(1); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-track,
    .timeline-line::after,
    .step,
    .step-number,
    .step-node::before,
    .step-node svg,
    .step-text {
        transition: none !important;
        animation: none !important;
    }
}

.step:hover {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0px, 0) scale(1);
}

.step:not(.active):hover .step-number {
    color: #2D77E2;
    transform: translateY(0px) scale(1);
}

.step:not(.active):hover .step-node svg {
    transform: scale(1);
    color: var(--primary-color);
}

.step:not(.active):hover .step-text {
    color: var(--primary-light-text);
}



.process-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* LOGO RECREATION */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    user-select: none;
    width: 287px;
    height: auto;
}

/* FOOTER TEXT & DIVIDER */
.footer-info {
    display: flex;
    align-items: center;
    max-width: 520px;
}

.footer-divider {
    width: 3px;
    height: 106px;
    background-color: var(--primary-color);
    margin-right: 28px;
    flex-shrink: 0;

}

.footer-desc {
    font-size: 15px;
    line-height: 1.1;
}


@media (max-width: 998px) {
    .process-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .timeline-line {
        top: clamp(65px, 15vw, 86px);
    }
}

@media (max-width: 768px) {
    .process-section-wrapper {
        display: none;
    }

    .timeline-line {
        top: 62px;
    }

    .cta-btn {
        width: 100%;
    }

    .process-footer {
        gap: 24px;
    }
}

.spacer {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #555;
}