.hn-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    counter-reset: process;
    list-style: none;
}

.hn-process li {
    min-height: 210px;
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    counter-increment: process;
}

.hn-process li::before {
    content: counter(process);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #23170b;
    font-weight: 900;
}

.hn-process strong,
.hn-process span {
    display: block;
}

.hn-process span {
    margin-top: .45rem;
    color: var(--color-muted);
}

.hn-process-section--cards {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4.5rem, 7vw, 7rem);
    color: #fff;
    background:
        radial-gradient(circle at 93% 50%, rgba(255, 255, 255, .08), transparent 15rem),
        radial-gradient(circle at 48% 48%, rgba(255, 193, 7, .13), transparent 12rem),
        linear-gradient(135deg, #050a12 0%, #09111e 48%, #05070b 100%);
}

.hn-process-section--cards::before,
.hn-process-section--cards::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.hn-process-section--cards::before {
    opacity: .42;
    background:
        linear-gradient(117deg, transparent 0 6%, rgba(255, 255, 255, .18) 6% calc(6% + 1px), transparent calc(6% + 1px) 10%),
        linear-gradient(117deg, transparent 0 9%, rgba(247, 154, 30, .42) 9% calc(9% + 1px), transparent calc(9% + 1px) 15%),
        linear-gradient(117deg, transparent 0 13%, rgba(255, 255, 255, .12) 13% calc(13% + 1px), transparent calc(13% + 1px) 20%);
    mask-image: linear-gradient(110deg, #000 0 18rem, transparent 31rem);
}

.hn-process-section--cards::after {
    opacity: .34;
    background:
        radial-gradient(circle at 4rem 8rem, rgba(255, 255, 255, .08) 0 1px, transparent 1.4px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 88px),
        linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 88px);
    background-size: 160px 160px, 88px 88px, 88px 88px;
}

.hn-process-section--cards .hn-section__inner {
    position: relative;
    z-index: 1;
    width: min(var(--container-wide), 100%);
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        linear-gradient(90deg, rgba(4, 8, 14, .96), rgba(7, 16, 29, .95)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 6px);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .48);
}

.hn-process-section--cards .hn-section__inner::before {
    position: absolute;
    inset: 2rem;
    content: "";
    border: 1px solid rgba(255, 255, 255, .14);
    clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
    pointer-events: none;
}

.hn-process-section--cards .hn-section-intro {
    position: relative;
    z-index: 1;
    max-width: 790px;
    margin: 0 0 clamp(2.3rem, 5vw, 4rem);
}

.hn-process-section--cards .hn-section-label {
    color: #ffc107;
}

.hn-process-section--cards .hn-section-intro h2 {
    max-width: 780px;
    margin: .55rem 0 1rem;
    color: #fff;
    font-size: clamp(3rem, 5.1vw, 5.6rem);
    line-height: .98;
    text-transform: none;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .16), 0 18px 40px rgba(0, 0, 0, .34);
    text-wrap: balance;
}

.hn-process-section--cards .hn-section-intro h2 span {
    color: #ffc107;
}

.hn-process-section--cards .hn-section-intro p {
    max-width: 760px;
    color: rgba(255, 255, 255, .72);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hn-process-section--cards .hn-process {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    background:
        radial-gradient(circle at 50% 20%, rgba(247, 154, 30, .1), transparent 11rem),
        linear-gradient(180deg, rgba(8, 20, 35, .84), rgba(4, 9, 16, .92));
}

.hn-process-section--count-4 .hn-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hn-process-section--cards .hn-process li {
    position: relative;
    display: flex;
    min-height: clamp(320px, 25vw, 390px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 2vw, 2rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-align: center;
}

.hn-process-section--cards .hn-process li:not(:last-child)::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent);
}

.hn-process-section--cards .hn-process li::before {
    order: 2;
    display: grid;
    width: auto;
    height: auto;
    margin: 1rem 0 .9rem;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: #ffc107;
    content: counter(process, decimal-leading-zero);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 2.05rem);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 193, 7, .6);
}

.hn-process-section--cards .hn-process__icon {
    order: 1;
    display: grid;
    width: clamp(5.8rem, 7vw, 7.7rem);
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .09), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .28));
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .28), 0 18px 42px rgba(0, 0, 0, .38), 0 18px 0 -15px #ffc107, 0 26px 28px -24px rgba(255, 193, 7, .95);
}

.hn-process-section--cards .hn-process__icon img {
    display: block;
    width: 58%;
    height: 58%;
}

.hn-process-section--cards .hn-process strong {
    order: 3;
    max-width: 230px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 1.75vw, 2rem);
    line-height: 1;
    text-shadow: 0 16px 34px rgba(0, 0, 0, .38);
}

.hn-process-section--cards .hn-process span:not(.hn-process__icon) {
    order: 4;
    max-width: 230px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .66);
    font-size: 1rem;
    line-height: 1.5;
}

.hn-process-section--cards .hn-process span:not(.hn-process__icon)::after {
    display: block;
    width: 4.5rem;
    height: 2px;
    margin: 1.2rem auto 0;
    content: "";
    background: #ffc107;
    box-shadow: 0 0 14px rgba(255, 193, 7, .55);
}

.hn-process-section__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 760px) {
    .hn-process {
        grid-template-columns: 1fr;
    }

    .hn-process-section--cards {
        padding-inline: 1rem;
    }

    .hn-process-section--cards .hn-section__inner {
        padding: 1.15rem;
    }

    .hn-process-section--cards .hn-section__inner::before {
        inset: 1rem;
    }

    .hn-process-section--cards .hn-section-intro h2 {
        font-size: clamp(2.55rem, 12vw, 3.8rem);
    }

    .hn-process-section--cards .hn-process,
    .hn-process-section--count-4 .hn-process {
        grid-template-columns: 1fr;
    }

    .hn-process-section--cards .hn-process li {
        min-height: 300px;
    }

    .hn-process-section--cards .hn-process li:not(:last-child)::after {
        top: auto;
        right: 1.5rem;
        bottom: 0;
        left: 1.5rem;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
    }
}
