:root {
    --red: #eb3652;
    --red-deep: #d61f3c;
    --pink-soft: #fbd7db;
    --pink-blush: #ffe3e8;
    --gray: #8a8f98;
    --ink: #1c1c22;
    --border-soft: #efe6e4;
    --page-bg: #fdfbf6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    margin: 0;
    padding: 0;
}


.solutions-section {
    padding: 80px 0 90px;
}

.solutions-title {
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.85rem);
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 14px;
}


.solutions-title .accent {
    color: var(--red);
}


.solutions-sub {
    color: var(--gray);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}


.solutions-eyebrow-rule {
    width: 46px;
    height: 4px;
    background: var(--red);
    border-radius: 3px;
    margin: 22px auto 0;
}

.solution-card {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 30px 18px 26px;
    text-align: center;
    height: 100%;
    min-height: 160px;
    overflow: hidden;
    box-shadow:
        0 10px 24px -18px rgba(28, 28, 34, .22);
    transition:
        transform .4s cubic-bezier(.2, .8, .2, 1),
        box-shadow .4s ease,
        border-color .4s ease,
        background .5s ease;
}


/* =========================================================
   CARD HOVER
========================================================= */

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 40px -22px rgba(235, 54, 82, .28);
    border-color:
        rgba(235, 54, 82, .25);
    background:
        linear-gradient(
            165deg,
            #ffffff 0%,
            #fff9fa 45%,
            var(--pink-blush) 145%
        );
}

.solution-dots {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 26px;
    height: 26px;
    background-image:
        radial-gradient(
            rgba(28, 28, 34, .16) 1.3px,
            transparent 1.3px
        );
    background-size: 8px 8px;
    opacity: .8;
    border-radius: 10px;
    transition:
        background-image .4s ease,
        opacity .4s ease,
        transform .4s ease;
}
.solution-dots::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            var(--pink-blush) 0%,
            rgba(255, 227, 232, 0) 72%
        );
    opacity: 0;
    transform: scale(.6);
    transition:
        opacity .4s ease,
        transform .4s ease;
    z-index: -1;
}
.solution-card:hover .solution-dots {
    background-image:
        radial-gradient(
            rgba(235, 54, 82, .55) 1.3px,
            transparent 1.3px
        );
    opacity: 1;
    transform: scale(1.08);
}

.solution-card:hover .solution-dots::before {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   ICON
========================================================= */

.solution-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--pink-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    transition:
        transform .45s cubic-bezier(.34, 1.56, .64, 1),
        background .35s ease,
        color .35s ease;
}

.solution-card:hover .solution-icon-wrap {
    transform:
        scale(1.08)
        rotate(-4deg);
    background: var(--red);
    color: #ffffff;
}


/* =========================================================
   API ICON
========================================================= */

.solution-icon-api {
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .02em;
}

.solution-name {
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
    transition: color .3s ease;
}


.solution-card:hover .solution-name {
    color: var(--red-deep);
}


/* =========================================================
   MOBILE CAROUSEL
========================================================= */

.solutions-mobile-wrap {
    position: relative;
    width: 100%;
}

.solutions-row {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.solutions-row::-webkit-scrollbar {
    display: none;
}

.solutions-col {
    flex: 0 0 68vw;
    width: 68vw;
    scroll-snap-align: start;
}


.solutions-col .solution-card {
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.solutions-col .solution-name {
    font-size: .95rem;
    white-space: normal;
}

@media (max-width: 400px) {

    .solutions-col {

        flex-basis: 78vw;

        width: 78vw;
    }

}
.solutions-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}
.solutions-nav-btn {

    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        background .25s ease,
        color .25s ease,
        transform .2s ease,
        opacity .2s ease;
}



.solutions-nav-btn:hover:not(:disabled) {
    background: var(--red);
    color: #ffffff;
    transform: scale(1.06);
}


.solutions-nav-btn:active:not(:disabled) {

    transform: scale(.94);
}


/* =========================================================
   DISABLED BUTTON
========================================================= */

.solutions-nav-btn:disabled {

    opacity: .35;

    cursor: not-allowed;

    pointer-events: none;
}

.solutions-nav-btn i {

    pointer-events: none;

    font-size: 18px;
}


/* =========================================================
   COUNTER
========================================================= */

.solutions-counter {

    font-size: .82rem;

    font-weight: 700;

    color: var(--gray);

    min-width: 46px;

    text-align: center;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .solution-card,
    .solution-icon-wrap,
    .solution-name,
    .solution-dots,
    .solution-dots::before,
    .solutions-row,
    .solutions-nav-btn {

        transition: none !important;

        animation: none !important;

        scroll-behavior: auto !important;
    }

}

@media (max-width: 767.98px) {

    .solutions-section {

        padding: 50px 0 60px;
    }


    .solutions-title {

        font-size: 1.8rem;

        line-height: 1.25;
    }


    .solutions-sub {

        font-size: .92rem;

        padding: 0 15px;
    }


    .solutions-eyebrow-rule {

        margin-top: 18px;
    }

}