/* ============================================================
   Section 04 — How it works
   ============================================================ */

.nl-how-it-works {
    background: #020617;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.nl-how-it-works__inner {
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 64px;
}

/* ─── Left Content ─── */
.nl-how-it-works__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 536px;
}

.nl-how-it-works__title {
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    color: #FFFFFF;
}

/* ─── Steps ─── */
.nl-how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.nl-how-it-works__step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.nl-how-it-works__step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.45px;
    flex-shrink: 0;
    
    /* Inactive state */
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--nl-blue, #3B82F6);
}

.nl-how-it-works__step-number--active {
    /* Active state */
    background: var(--nl-blue, #3B82F6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #FFFFFF;
}

.nl-how-it-works__step-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nl-how-it-works__step-title {
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: -1px;
    color: #FFFFFF;
    margin: 0;
}

.nl-how-it-works__step-desc {
    font-family: var(--nl-font, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.62;
    letter-spacing: -0.31px;
    color: #AFBCD5;
    margin: 0;
}

/* ─── Right Visual ─── */
.nl-how-it-works__visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-how-it-works__visual-bg {
    position: absolute;
    width: 100%;
    max-width: 598px;
    aspect-ratio: 598 / 336.38;
    box-sizing: border-box;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 0.91px, transparent 0.91px),
        linear-gradient(107.1deg, #0F172A 1.76%, #334F90 99.97%),
        linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5));
    background-size: 12.75px 12.75px, 100% 100%, 100% 100%;
    border: 0.58px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 14.6px 29.2px -7px rgba(0, 0, 0, 0.25);
    border-radius: 9.34px;
    z-index: 1;
    transform: translateY(0) scale(1);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-how-it-works__visual-glow {
    position: absolute;
    width: 103%;
    height: 105%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 166, 244, 0.2);
    opacity: 0.2;
    filter: blur(37.375px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.nl-how-it-works__visual-image {
    position: relative;
    z-index: 2;
    width: 81.27%;
    aspect-ratio: 486 / 297.15;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(0) scale(1);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-how-it-works__visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-how-it-works__visual:hover {
    transform: translateY(-2px);
}

.nl-how-it-works__visual:hover .nl-how-it-works__visual-bg {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.26);
    box-shadow: 0px 22px 44px -8px rgba(0, 0, 0, 0.38), 0 0 58px rgba(59, 130, 246, 0.3);
}

.nl-how-it-works__visual:hover .nl-how-it-works__visual-glow {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1.06);
    filter: blur(42px);
}

.nl-how-it-works__visual:hover .nl-how-it-works__visual-image {
    transform: translateY(-7px) scale(1.012);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.nl-how-it-works__visual:hover .nl-how-it-works__visual-image img {
    transform: scale(1.03);
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .nl-how-it-works__inner {
        flex-direction: column;
        gap: 64px;
    }

    .nl-how-it-works__content {
        max-width: 100%;
    }

    .nl-how-it-works__visual {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nl-how-it-works__title {
        font-size: 36px;
    }

    .nl-how-it-works__step-title {
        font-size: 20px;
    }

    .nl-how-it-works__step-desc {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nl-how-it-works__visual,
    .nl-how-it-works__visual-bg,
    .nl-how-it-works__visual-glow,
    .nl-how-it-works__visual-image,
    .nl-how-it-works__visual-image img {
        transition: none;
        transform: none;
    }
}
