.product-steps {
    position: relative;
    background: var(--bg-product-steps);
    overflow: hidden;
}

.product-steps__cta {
    width: fit-content;
}


.product-steps__scroller {
    position: relative;
}

.product-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-step {
    color: rgba(255, 255, 255, 0.88);
}

.product-step__card {
    /* background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10); */
    border-radius: 10px;
    padding: 16px;
    min-height: auto;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-step:hover .product-step__card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.product-step:hover .product-step__title {
    color: rgba(11, 15, 26, 0.92);
}

.product-step:hover .product-step__desc {
    color: rgba(11, 15, 26, 0.78);
    opacity: 1;
}

.product-step__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.product-step__num {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    width: auto;
}

.product-step__line {
    position: relative;
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}
.product-steps__footer {
    border: 1px solid var(--primary-color);
    text-align: center;
    justify-content: center;
    align-items: center;
    align-self: center;
    justify-content: center;
    font-size: 18px;
    line-height: 28px;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    width: fit-content;
    justify-content: center;
    margin: 0 auto;
}

.product-step:hover .product-step__num,
.product-step.is-highlight .product-step__num {
    color: rgba(255, 255, 255, 0.8);
}

.product-step__line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s ease;
}

.product-step:hover .product-step__line::after,
.product-step.is-highlight .product-step__line::after {
    transform: scaleX(1);
}

.product-step__badge {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 24px;
}

.product-step:hover .product-step__badge,
.product-step.is-highlight .product-step__badge {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.98);
    color: rgba(11, 15, 26, 0.78);
}

.underline-base {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.underline-base::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    height: 4px;
    width: 17px;
}

.underline-blue::after {
    background-color: var(--grad-color-1);
}

.underline-purple::after {
    background-color: var(--grad-color-2);
}

.underline-violet::after {
    background-color: var(--grad-color-3);
}

.underline-cyan::after {
    background-color: var(--grad-color-4);
}


.product-step__title {
    font-size: 28px;
    line-height: 40px;
    font-weight: 600 !important;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.92);
}

.product-step__desc {
    line-height: 28px;
    opacity: 0.9;
}

.product-step.is-highlight {
    color: rgba(255, 255, 255, 0.88);
}

.product-step.is-highlight .product-step__card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.product-step.is-highlight .product-step__title {
    color: rgba(11, 15, 26, 0.92);
}

.product-step.is-highlight .product-step__desc {
    color: rgba(11, 15, 26, 0.78);
    opacity: 1;
}

.product-step.is-highlight .product-step__num {
    color: rgba(255, 255, 255, 0.55);
}

.product-step.is-highlight .product-step__line {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile horizontal scroll (idea-to-impact inspired) */
@media(max-width: 991.98px) {
    .product-steps__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .product-steps__grid::-webkit-scrollbar {
        display: none;
    }

    .product-step {
        flex: 0 0 280px;
        max-width: 280px;
        scroll-snap-align: start;
    }
    .product-step__title {
        font-size: 28px;
        line-height: 28px;

    }
}

@media(prefers-reduced-motion: reduce) {
    .product-step__line::after,
    .product-step__card {
        transition: none !important;
    }
}

@media screen and(min-width: 768px) {
    .product-steps__header h2 {
        max-width: 18ch;
    }
}
