/*==========================================================
  NOVA EDUSPACE — TAKE THE NEXT STEP SECTION
  Load this file through your master stylesheet.
  All selectors are scoped so existing sections stay unchanged.
==========================================================*/

.nova-next-step {
    --nova-cyan: #13d7f5;
    --nova-blue: #258eff;
    --nova-purple: #7944ff;
    --nova-white: #f6f8ff;
    --nova-muted: #bdcde5;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 760px;
    padding: clamp(76px, 7.4vw, 112px) 0 112px;
    background: #030b1d;
    color: var(--nova-white);
    font-family: inherit;
}

.nova-next-step,
.nova-next-step * {
    box-sizing: border-box;
}

.nova-next-step__scene {
    position: absolute;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.nova-next-step__scene img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    opacity: .88;
}

.nova-next-step__shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(2, 10, 27, .98) 0%,
            rgba(2, 10, 27, .95) 30%,
            rgba(2, 10, 27, .79) 49%,
            rgba(2, 10, 27, .21) 76%,
            rgba(2, 10, 27, .08) 100%),
        linear-gradient(180deg,
            rgba(3, 9, 25, .08) 0%,
            rgba(3, 9, 25, .02) 62%,
            rgba(3, 9, 25, .64) 100%);
}

.nova-next-step__container {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
}

.nova-next-step__content {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
}

.nova-next-step__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 39px;
    padding: 8px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(rgba(4, 17, 41, .86), rgba(4, 17, 41, .86)) padding-box,
        linear-gradient(100deg, rgba(19, 215, 245, .85), rgba(121, 68, 255, .9)) border-box;
    color: #e5f4ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.35px;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(19, 215, 245, .09);
}

.nova-next-step__eyebrow svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--nova-cyan);
}

.nova-next-step__title {
    max-width: 850px;
    margin: 25px 0 16px;
    color: #f8f9ff;
    font-size: clamp(42px, 4.25vw, 68px);
    font-weight: 800;
    letter-spacing: -2.2px;
    line-height: 1.06;
    text-wrap: balance;
}

.nova-next-step__title span {
    color: #48b9ff;
    background: linear-gradient(100deg, #14d8f3 0%, #258eff 47%, #934dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nova-next-step__description {
    max-width: 690px;
    margin: 0;
    color: #c7d7ef;
    font-size: clamp(15px, 1.18vw, 19px);
    font-weight: 400;
    line-height: 1.7;
}

.nova-next-step__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.nova-next-step__feature {
    min-width: 0;
    min-height: 174px;
    padding: 17px 17px 16px;
    border: 1px solid rgba(67, 155, 223, .28);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(5, 24, 48, .76), rgba(2, 13, 31, .62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 14px 32px rgba(0, 0, 0, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.nova-next-step__feature:hover {
    transform: translateY(-5px);
    border-color: rgba(19, 215, 245, .66);
    background: linear-gradient(145deg, rgba(7, 35, 66, .88), rgba(8, 17, 47, .78));
    box-shadow: 0 14px 35px rgba(4, 122, 255, .13);
}

.nova-next-step__icon,
.nova-next-step__stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #dffaff;
    background: radial-gradient(circle at 30% 25%, rgba(34, 213, 255, .23), rgba(3, 26, 57, .95) 72%);
    border: 1px solid rgba(19, 215, 245, .78);
    box-shadow: 0 0 0 4px rgba(20, 168, 245, .055), 0 0 21px rgba(19, 215, 245, .19);
}

.nova-next-step__icon {
    width: 55px;
    height: 55px;
    margin-bottom: 13px;
}

.nova-next-step__icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nova-next-step__icon--purple,
.nova-next-step__stat-icon--purple {
    border-color: rgba(149, 83, 255, .92);
    color: #eee7ff;
    background: radial-gradient(circle at 30% 25%, rgba(139, 75, 255, .28), rgba(19, 15, 56, .94) 72%);
    box-shadow: 0 0 0 4px rgba(127, 68, 255, .065), 0 0 21px rgba(127, 68, 255, .24);
}

.nova-next-step__feature h3 {
    margin: 0 0 7px;
    color: #f8f9ff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.nova-next-step__feature p {
    margin: 0;
    color: #bbcee7;
    font-size: 12.5px;
    line-height: 1.55;
}

.nova-next-step__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 27px;
}

.nova-next-step__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .65px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.nova-next-step__button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nova-next-step__button--primary {
    min-width: 330px;
    background: linear-gradient(105deg, #12c9e9 0%, #237fff 53%, #8142fa 100%);
    box-shadow: 0 12px 32px rgba(24, 129, 255, .23), 0 0 26px rgba(47, 112, 255, .12);
}

.nova-next-step__button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(24, 129, 255, .34), 0 0 30px rgba(100, 74, 255, .20);
}

.nova-next-step__button--primary .nova-next-step__arrow {
    margin-left: 3px;
    transition: transform .25s ease;
}

.nova-next-step__button--primary:hover .nova-next-step__arrow {
    transform: translateX(4px);
}

.nova-next-step__button--secondary {
    min-width: 245px;
    border-color: rgba(134, 199, 255, .9);
    background: rgba(3, 14, 33, .58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.nova-next-step__button--secondary:hover {
    transform: translateY(-3px);
    border-color: var(--nova-cyan);
    background: rgba(8, 35, 65, .83);
    box-shadow: 0 10px 28px rgba(19, 215, 245, .13);
}

.nova-next-step__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 900px;
    margin-top: 35px;
    padding-top: 2px;
}

.nova-next-step__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 17px;
    border-right: 1px solid rgba(100, 170, 235, .28);
}

.nova-next-step__stat:first-child {
    padding-left: 3px;
}

.nova-next-step__stat:last-child {
    border-right: 0;
}

.nova-next-step__stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
}

.nova-next-step__stat-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nova-next-step__stat-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.nova-next-step__stat-copy strong {
    color: #f7f9ff;
    font-size: clamp(20px, 1.9vw, 29px);
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.12;
}

.nova-next-step__stat-copy small {
    color: #bacbe4;
    font-size: 11.5px;
    line-height: 1.4;
}

.nova-next-step__wave {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 65px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 38, 92, .48), #061225 90%);
    clip-path: polygon(0 52%, 11% 26%, 23% 65%, 38% 40%, 51% 69%, 67% 38%, 82% 65%, 100% 32%, 100% 100%, 0 100%);
    border-top: 1px solid rgba(29, 157, 255, .2);
}

.nova-next-step a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (min-width: 1500px) {
    .nova-next-step__content {
        width: 920px;
    }
}

@media (max-width: 1100px) {
    .nova-next-step {
        min-height: 0;
        padding-top: 78px;
        padding-bottom: 105px;
    }

    .nova-next-step__container {
        width: min(100% - 40px, 900px);
    }

    .nova-next-step__content {
        width: 100%;
    }

    .nova-next-step__shade {
        background:
            linear-gradient(90deg, rgba(2, 10, 27, .98) 0%, rgba(2, 10, 27, .9) 55%, rgba(2, 10, 27, .56) 100%),
            linear-gradient(180deg, rgba(3, 9, 25, .08), rgba(3, 9, 25, .7));
    }

    .nova-next-step__features {
        gap: 13px;
    }

    .nova-next-step__feature {
        padding: 15px 13px;
    }

    .nova-next-step__stat {
        padding-inline: 12px;
        gap: 9px;
    }
}

@media (max-width: 720px) {
    .nova-next-step {
        padding: 70px 0 95px;
    }

    .nova-next-step__container {
        width: min(100% - 34px, 560px);
    }

    .nova-next-step__scene img {
        object-position: 65% center;
        opacity: .55;
    }

    .nova-next-step__shade {
        background:
            linear-gradient(90deg, rgba(2, 10, 27, .97), rgba(2, 10, 27, .82)),
            linear-gradient(180deg, rgba(3, 9, 25, .18), rgba(3, 9, 25, .82));
    }

    .nova-next-step__eyebrow {
        min-height: 35px;
        padding: 7px 13px;
        font-size: 10px;
        letter-spacing: 1.1px;
    }

    .nova-next-step__title {
        margin-top: 23px;
        font-size: clamp(36px, 8.7vw, 54px);
        letter-spacing: -1.4px;
        line-height: 1.09;
    }

    .nova-next-step__description {
        font-size: 15px;
        line-height: 1.65;
    }

    .nova-next-step__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 25px;
    }

    .nova-next-step__feature {
        min-height: 160px;
        padding: 15px;
        border-radius: 16px;
    }

    .nova-next-step__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 11px;
    }

    .nova-next-step__icon svg {
        width: 26px;
        height: 26px;
    }

    .nova-next-step__feature h3 {
        font-size: 13px;
    }

    .nova-next-step__feature p {
        font-size: 12px;
    }

    .nova-next-step__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-top: 23px;
    }

    .nova-next-step__button,
    .nova-next-step__button--primary,
    .nova-next-step__button--secondary {
        width: 100%;
        min-width: 0;
        min-height: 56px;
    }

    .nova-next-step__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 19px 0;
        margin-top: 30px;
    }

    .nova-next-step__stat {
        padding: 0 10px;
        border-right: 0;
    }

    .nova-next-step__stat:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid rgba(100, 170, 235, .25);
    }

    .nova-next-step__stat:nth-child(even) {
        padding-left: 14px;
    }

    .nova-next-step__stat-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .nova-next-step__stat-icon svg {
        width: 21px;
        height: 21px;
    }

    .nova-next-step__stat-copy strong {
        font-size: 21px;
    }

    .nova-next-step__stat-copy small {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .nova-next-step__container {
        width: min(100% - 26px, 560px);
    }

    .nova-next-step__title {
        font-size: 34px;
    }

    .nova-next-step__feature {
        padding: 12px;
    }

    .nova-next-step__stat {
        gap: 7px;
        padding-right: 6px;
    }

    .nova-next-step__stat:nth-child(even) {
        padding-left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nova-next-step__feature,
    .nova-next-step__button,
    .nova-next-step__button--primary .nova-next-step__arrow {
        transition: none;
    }

    .nova-next-step__feature:hover,
    .nova-next-step__button:hover {
        transform: none;
    }
}
