/* NextGen — How It Works (redesigned) */

#section-steps {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}

#section-steps::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(var(--primary-color-rgb), 0.07) 0%, transparent 55%);
    pointer-events: none;
}

.ng-steps-head {
    position: relative;
    z-index: 2;
    margin-bottom: 48px;
}

.ng-steps-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    border-radius: 50px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    background: rgba(var(--primary-color-rgb), 0.08);
}

.ng-steps-head h2 {
    font-size: clamp(30px, 4.5vw, 44px);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.ng-steps-head .lead {
    color: rgba(255, 255, 255, 0.55);
    max-width: 520px;
    margin: 0 auto;
}

/* Unified flow panel */
.ng-steps-flow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(20, 22, 42, 0.9) 0%, rgba(12, 14, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.ng-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 36px 24px 32px;
    text-align: center;
    transition: background 0.35s ease;
}

.ng-step::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ng-step:hover {
    background: rgba(var(--primary-color-rgb), 0.06);
}

.ng-step:hover::after {
    opacity: 1;
}

.ng-step__num {
    display: block;
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ng-step:hover .ng-step__num {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ng-step__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 24px;
    background: rgba(var(--primary-color-rgb), 0.12);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ng-step--1 .ng-step__icon { color: #38bdf8; }
.ng-step--2 .ng-step__icon { color: var(--primary-color); }
.ng-step--3 .ng-step__icon { color: #a78bfa; }
.ng-step--4 .ng-step__icon { color: #34d399; }

.ng-step:hover .ng-step__icon {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.25);
}

.ng-step h4 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.ng-step p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    flex: 1;
}

.ng-step__pill {
    display: inline-block;
    margin-top: auto;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ng-step__pill--green {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.08);
}

/* Arrow dividers — NOT through icons */
.ng-step-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    color: rgba(var(--primary-color-rgb), 0.45);
    font-size: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* Tablet / mobile — stack vertically */
@media (max-width: 991px) {
    .ng-steps-flow {
        flex-direction: column;
        max-width: 420px;
    }

    .ng-step-divider {
        width: 100%;
        height: 36px;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .ng-step-divider i {
        transform: rotate(90deg);
    }

    .ng-step {
        padding: 32px 28px;
    }
}

/* Bottom CTA */
.ng-steps-cta {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 24px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 16px;
    background: rgba(var(--primary-color-rgb), 0.08);
    border: 1px solid rgba(var(--primary-color-rgb), 0.18);
}

.ng-steps-cta p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}

.ng-steps-cta p strong {
    color: #fff;
}

.ng-steps-cta .btn-main {
    border-radius: 12px;
    padding: 13px 26px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .ng-steps-cta {
        flex-direction: column;
        text-align: center;
    }
}
