/* =========================================================
   VOIDVPN — HOW IT WORKS, CLEAN FINAL
   ========================================================= */

.how-section,
.how-section *,
.how-section *::before,
.how-section *::after {
    box-sizing: border-box;
}

.how-section {
    position: relative;
    z-index: 2;
    clear: both;

    display: block;

    width: calc(100% - 48px);
    max-width: 1180px;
    min-width: 0;

    margin: 0 auto;
    padding: 94px 0 42px;
}


/* HEADING */

.how-heading {
    width: 100%;
    max-width: 760px;
    margin: 0 0 42px;
}

.how-heading .section-kicker {
    color: #c17cff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.how-heading h2 {
    margin: 14px 0 16px;

    color: #ffffff;

    font-size: clamp(38px, 4.7vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.how-heading h2 span {
    display: block;
    color: #b86cff;
}

.how-heading p {
    max-width: 620px;
    margin: 0;

    color: rgba(224, 216, 235, 0.62);

    font-size: 16px;
    line-height: 1.7;
}


/* GRID */

.how-grid {
    position: relative;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    width: 100%;
    min-width: 0;
}

.how-grid::before {
    content: "";

    position: absolute;
    top: 47px;
    left: 9%;
    right: 9%;
    z-index: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(169, 99, 247, 0.42),
            rgba(215, 177, 255, 0.54),
            rgba(169, 99, 247, 0.42),
            transparent
        );

    pointer-events: none;
}


/* CARDS */

.how-card {
    position: relative;
    z-index: 1;
    overflow: hidden;

    width: 100%;
    min-width: 0;
    min-height: 286px;

    margin: 0;
    padding: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(24, 18, 36, 0.95),
            rgba(11, 9, 18, 0.98)
        );

    border: 1px solid rgba(190, 139, 255, 0.12);
    border-radius: 24px;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.how-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(150, 70, 230, 0.13),
            transparent 58%
        );

    pointer-events: none;
}

.how-card:hover {
    transform: translateY(-5px);

    border-color: rgba(195, 145, 255, 0.24);

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.34),
        0 0 42px rgba(120, 45, 205, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.how-card-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.how-card-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    color: #d7b2ff;

    background:
        linear-gradient(
            145deg,
            rgba(139, 65, 222, 0.30),
            rgba(78, 35, 128, 0.22)
        );

    border: 1px solid rgba(203, 162, 255, 0.17);
    border-radius: 15px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(92, 30, 165, 0.15);
}

.how-card-icon svg {
    width: 22px;
    height: 22px;
}

.how-card-number {
    color: rgba(205, 168, 244, 0.38);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.how-card h3 {
    position: relative;
    z-index: 1;

    margin: 44px 0 12px;

    color: rgba(255, 255, 255, 0.94);

    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.how-card p {
    position: relative;
    z-index: 1;

    margin: 0;
    padding-bottom: 28px;

    color: rgba(220, 212, 231, 0.55);

    font-size: 13px;
    line-height: 1.65;
}

.how-card-line {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(174, 108, 249, 0.42),
            transparent
        );
}


/* FINAL ACTION */

.how-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;

    margin: 18px 0 0;
    padding: 20px 22px;

    background: rgba(120, 55, 200, 0.055);

    border: 1px solid rgba(183, 125, 255, 0.09);
    border-radius: 20px;
}

.how-action-copy {
    min-width: 0;
}

.how-action-copy strong {
    display: block;

    color: rgba(255, 255, 255, 0.9);

    font-size: 14px;
}

.how-action-copy span {
    display: block;

    margin-top: 5px;

    color: rgba(220, 212, 232, 0.5);

    font-size: 11px;
}

.how-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;

    min-height: 46px;
    padding: 0 18px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #a83ff1,
            #7828ce
        );

    border: 1px solid rgba(224, 190, 255, 0.25);
    border-radius: 14px;

    box-shadow:
        0 14px 32px rgba(120, 34, 200, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.17);

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;

    transition:
        transform 180ms ease,
        filter 180ms ease;
}

.how-action-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.how-action-button svg {
    width: 17px;
    height: 17px;
}


/* TABLET */

@media (max-width: 980px) {

    .how-section {
        width: calc(100% - 36px);
        padding: 72px 0 32px;
    }

    .how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-grid::before {
        display: none;
    }
}


/* MOBILE */

@media (max-width: 620px) {

    .how-section {
        width: calc(100% - 28px);
        padding: 60px 0 26px;
    }

    .how-heading {
        margin-bottom: 28px;
    }

    .how-heading h2 {
        font-size: 36px;
    }

    .how-heading p {
        font-size: 14px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .how-card {
        min-height: 0;
        padding: 21px;
    }

    .how-card h3 {
        margin-top: 30px;
        font-size: 22px;
    }

    .how-card-line {
        left: 21px;
        right: 21px;
        bottom: 18px;
    }

    .how-action {
        align-items: stretch;
        flex-direction: column;

        padding: 18px;
    }

    .how-action-button {
        width: 100%;
    }
}


@media (prefers-reduced-motion: reduce) {

    .how-card,
    .how-action-button {
        transition: none;
    }
}


/* =========================================================
   HOW IT WORKS — WIDE PAGE CONTAINER
   ========================================================= */

@media (min-width: 981px) {

    .how-section {
        width: calc(100% - 40px) !important;
        max-width: 1760px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    .how-heading {
        max-width: 900px !important;
    }

    .how-grid {
        width: 100% !important;

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 18px !important;
    }

    .how-card {
        min-height: 310px !important;
        padding: 28px !important;
    }

    .how-card h3 {
        font-size: 25px !important;
    }

    .how-card p {
        max-width: 320px !important;

        font-size: 14px !important;
    }

    .how-card-line {
        left: 28px !important;
        right: 28px !important;
    }

    .how-action {
        padding: 22px 26px !important;
    }
}
