:root {
    --red: #eb3652;
    --red-deep: #d61f3c;
    --pink-soft: #fbd7db;
    --pink-blush: #ffe3e8;
    --gray: #8a8f98;
    --ink: #1c1c22;
    --border-soft: #D8C8C5;
    --page-bg: #fffdfd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    margin: 0;
    padding: 0;
}

/* =========================================================
   SECTION
========================================================= */

.solutions-section {
    padding: 80px 0 90px;
    position: relative;
    background:
        radial-gradient(
            700px 340px at 50% 0%,
            var(--pink-blush) 0%,
            rgba(255, 227, 232, 0) 70%
        ),
        linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 40%);
}

/* =========================================================
   HEADER
========================================================= */

.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);
    background: linear-gradient(100deg, var(--red) 0%, var(--red-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solutions-sub {
    color: var(--gray);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.solutions-eyebrow-rule {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0%, var(--red-deep) 100%);
    border-radius: 3px;
    margin: 22px auto 0;
    position: relative;
}

.solutions-eyebrow-rule::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pink-soft);
    border: 2px solid var(--red);
}

/* =========================================================
   CARD
========================================================= */

.solution-card {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 34px 18px 28px;
    text-align: center;
    height: 100%;
    min-height: 160px;
    overflow: hidden;
    box-shadow: 0 10px 24px -18px rgba(18, 18, 22, 0.22);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s ease;
}

/* top accent bar — hidden until hover */
.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red) 0%, var(--red-deep) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* small localized corner glow — replaces the old full-card blush wash */
.solution-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -60px;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--pink-blush) 0%,
        rgba(255, 227, 232, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* =========================================================
   CARD HOVER
   — border stays the normal border-soft line (no color change)
   — no full-card background wash
   — lift + shadow + top bar + corner glow carry the hover design
========================================================= */

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 40px -22px rgba(235, 54, 82, 0.28);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover::after {
    opacity: 1;
}

/* =========================================================
   ICON
========================================================= */

.solution-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(
        155deg,
        var(--pink-soft) 0%,
        var(--pink-blush) 100%
    );
    color: var(--red-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
}

.solution-card:hover .solution-icon-wrap {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(155deg, var(--red) 0%, var(--red-deep) 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px -10px rgba(214, 31, 60, 0.55);
}

/* =========================================================
   API ICON
========================================================= */

.solution-icon-api {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.solution-name {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
    position: relative;
    transition: color 0.3s ease;
}

.solution-card:hover .solution-name {
    color: var(--red-deep);
}

/* =========================================================
   MOBILE GRID (static — no slider)
========================================================= */

.solutions-mobile-wrap {
    position: relative;
    width: 100%;
}

.solutions-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.solutions-col {
    width: 100%;
}

.solutions-col .solution-card {
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.solutions-col .solution-card:active {
    transform: scale(0.97);
    box-shadow: 0 10px 24px -18px rgba(28, 28, 34, 0.22);
}

.solutions-col .solution-name {
    font-size: 0.95rem;
    white-space: normal;
}

@media (max-width: 400px) {
    .solutions-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .solution-card,
    .solution-card::before,
    .solution-card::after,
    .solution-icon-wrap,
    .solution-name {
        transition: none !important;

        animation: none !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: 0.92rem;

        padding: 0 15px;
    }

    .solutions-eyebrow-rule {
        margin-top: 18px;
    }
}
