/* ============================================================
   TOKENS — reuses the same brand values as previous sections
============================================================ */
.why-us {
    --why-bg: #FFFFFF;
    --why-primary: #1E9BF7;
    --why-primary-dark: #157ACB;
    --why-text: #000000;
    --why-white: #FFFFFF;
    --why-muted: rgba(0, 0, 0, 0.62);
    --why-line: rgba(0, 0, 0, 0.08);
    --why-font-heading: 'Inter', 'Montserrat', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --why-font-body: 'Poppins', sans-serif;
}

/* ============================================================
   SECTION SHELL
============================================================ */
.why-us {
    position: relative;
    width: 100%;
    background: var(--why-bg);
    overflow: hidden;
    padding: 40px 0 80px;
    isolation: isolate;
}

.why-us * {
    box-sizing: border-box;
}

.why-us__container {
    position: relative;
    z-index: 3;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BACKGROUND — subtle blue glow, matches sibling sections
============================================================ */
.why-us__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.why-us__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    background: radial-gradient(circle at 30% 30%, rgba(30, 155, 247, 0.42), rgba(30, 155, 247, 0));
}

.why-us__glow--one {
    width: 540px;
    height: 540px;
    top: -160px;
    right: -160px;
    opacity: 0.26;
}

.why-us__glow--two {
    width: 460px;
    height: 460px;
    bottom: -200px;
    left: -140px;
    opacity: 0.22;
}

/* ============================================================
   HEADER
============================================================ */
.why-us__header {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(56px, 7vw, 56px);
}

.why-us__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(30, 155, 247, 0.08);
    border: 1px solid rgba(30, 155, 247, 0.18);
    color: var(--why-primary);
    font-family: var(--why-font-body);
    font-weight: 600;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.3px;
    margin-bottom: 22px;
    opacity: 0;
}

.why-us__badge i {
    font-size: clamp(10px, 0.9vw, 12px);
}

.why-us__heading {
    font-family: var(--why-font-heading);
    font-weight: 900;
    color: var(--why-text);
    font-size: clamp(28px, 4.4vw, 50px);
    line-height: 1.08;
    letter-spacing: 0.2px;
    margin: 0 0 20px;
    opacity: 0;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.why-us__heading-accent {
    color: var(--why-primary);
}

/* ============================================================
   TEXT FILL ON SCROLL — fill-run spans (created by JS)
============================================================ */
.why-us__heading .fill-run {
    display: inline;
    background-image: linear-gradient(90deg,
            #000000 0%, #000000 50%,
            rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.18) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.why-us__heading .fill-run--accent {
    background-image: linear-gradient(90deg,
            #1E9BF7 0%, #1E9BF7 50%,
            rgba(30, 155, 247, 0.25) 50%, rgba(30, 155, 247, 0.25) 100%);
}

.why-us__desc {
    font-family: var(--why-font-body);
    font-weight: 400;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.7;
    color: var(--why-muted);
    max-width: 520px;
    margin: 0 auto;
    opacity: 0;
}

/* ============================================================
   HORIZONTAL CARD RAIL
============================================================ */
.why-us__rail {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.why-card {
    position: relative;
    flex: 1 1 335px;
    max-width: 410px;
    padding: 34px 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 24px 54px -26px rgba(0, 0, 0, 0.16),
        0 0 0 1px var(--why-line);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow: hidden;
    opacity: 0;
    transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.why-card__glow {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 155, 247, 0.28), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.why-card:hover {
    border-color: rgba(30, 155, 247, 0.35);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 34px 74px -28px rgba(30, 155, 247, 0.28),
        0 0 0 1px rgba(30, 155, 247, 0.22);
}

.why-card:hover .why-card__glow {
    opacity: 1;
}

.why-card:hover .why-card__icon {
    transform: rotate(-8deg) scale(1.06);
}

.why-card:hover .why-card__title {
    color: var(--why-primary);
}

.why-card__icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(19px, 1.5vw, 22px);
    color: var(--why-white);
    background: linear-gradient(155deg, var(--why-primary), var(--why-primary-dark));
    box-shadow: 0 14px 26px -10px rgba(30, 155, 247, 0.55);
    margin-bottom: 22px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.why-card__title {
    position: relative;
    z-index: 2;
    font-family: var(--why-font-heading);
    font-weight: 900;
    font-size: clamp(18px, 1.4vw, 21px);
    line-height: 1.25;
    color: var(--why-text);
    margin: 0 0 12px;
    transition: color 0.35s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.why-card__desc {
    position: relative;
    z-index: 2;
    font-family: var(--why-font-body);
    font-weight: 400;
    font-size: clamp(13px, 1vw, 14.5px);
    line-height: 1.7;
    color: var(--why-muted);
    margin: 0;
    transition: opacity 0.35s ease;
}

.why-card:focus-visible {
    outline: 2px solid var(--why-primary);
    outline-offset: 4px;
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
    .why-us * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   RESPONSIVE — Large Desktop (1300px to 1468px)
============================================================ */
@media (min-width: 1300px) and (max-width: 1468px) {
    .why-us__container {
        max-width: 1220px;
    }

    .why-us__heading {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .why-us__rail {
        gap: 18px;
    }

    .why-card {
        flex: 1 1 280px;
        max-width: 350px;
        padding: 30px 24px;
    }

    .why-card__icon {
        width: 52px;
        height: 52px;
        font-size: 19px;
        margin-bottom: 18px;
    }

    .why-card__title {
        font-size: 19px;
    }

    .why-card__desc {
        font-size: 13.5px;
    }
}

/* ============================================================
   RESPONSIVE — Desktop (992px to 1299px)
============================================================ */
@media (min-width: 992px) and (max-width: 1299px) {
    .why-us__container {
        max-width: 96%;
        padding: 0 20px;
    }

    .why-us__rail {
        gap: 18px;
    }

    .why-card {
        flex: 1 1 260px;
        max-width: 340px;
        padding: 28px 22px;
    }

    .why-card__icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 18px;
    }

    .why-card__title {
        font-size: 18px;
    }

    .why-card__desc {
        font-size: 13px;
    }
}

/* ============================================================
   RESPONSIVE — Tablets (max-width: 991.98px)
============================================================ */
@media (max-width: 991.98px) {
    .why-us {
        padding: 108px 0 120px;
    }

    .why-card {
        flex: 1 1 240px;
        max-width: 340px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 576px)
============================================================ */
@media (max-width: 576px) {
    .why-us {
        padding: 40px 0 40px;
    }

    .why-us__container {
        padding: 0 16px;
    }

    .why-us__heading {
        font-size: clamp(28px, 8.4vw, 38px);
    }

    .why-us__desc {
        font-size: 15px;
    }

    .why-us__rail {
        flex-direction: column;
        gap: 16px;
    }

    .why-card {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        padding: 28px 24px;
    }

    .why-card__icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
        margin-bottom: 18px;
    }

    .why-card__title {
        font-size: 19px;
    }

    .why-card__desc {
        font-size: 14px;
    }
}

/* ============================================================
   RESPONSIVE — Very Small Mobile (max-width: 400px)
============================================================ */
@media (max-width: 400px) {
    .why-us {
        padding: 30px 0 30px;
    }

    .why-us__heading {
        font-size: clamp(24px, 7vw, 28px);
    }

    .why-us__desc {
        font-size: 13px;
    }

    .why-card {
        padding: 22px 18px;
    }

    .why-card__icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
        margin-bottom: 14px;
    }

    .why-card__title {
        font-size: 17px;
    }

    .why-card__desc {
        font-size: 12.5px;
    }
}

/* ============================================================
   FONT FIX - Ensure consistent font rendering across all screens
============================================================ */
@supports (font-variation-settings: normal) {
    .why-us__heading,
    .why-card__title {
        font-variation-settings: 'wght' 900, 'wdth' 100;
    }
}

/* Fallback for browsers that don't support variable fonts */
@supports not (font-variation-settings: normal) {
    .why-us__heading,
    .why-card__title {
        font-weight: 900;
        letter-spacing: -0.5px;
    }
}