/* ============================================================
   TOKENS — matches existing site visual identity
============================================================ */
.what-we-build {
    --wwb-bg: #FFFFFF;
    --wwb-primary: #1E9BF7;
    --wwb-primary-dark: #157ACB;
    --wwb-text: #000000;
    --wwb-white: #FFFFFF;
    --wwb-muted: rgba(0, 0, 0, 0.62);
    --wwb-line: rgba(0, 0, 0, 0.08);
    --wwb-font-heading: 'Inter', 'Montserrat', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --wwb-font-body: 'Poppins', sans-serif;
}

/* ============================================================
   SECTION SHELL
============================================================ */
.what-we-build {
    position: relative;
    width: 100%;
    background: var(--wwb-bg);
    overflow: hidden;
    padding: 60px 0 80px;
    isolation: isolate;
}

.what-we-build * {
    box-sizing: border-box;
}

.what-we-build__container {
    position: relative;
    z-index: 3;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BACKGROUND — subtle blue glow, matches existing sections
============================================================ */
.what-we-build__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.what-we-build__grid-glass {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 78%);
}

.what-we-build__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    background: radial-gradient(circle at 30% 30%, rgba(30, 155, 247, 0.4), rgba(30, 155, 247, 0));
}

.what-we-build__blob--one {
    width: 520px;
    height: 520px;
    top: -180px;
    left: -180px;
    opacity: 0.26;
}

.what-we-build__blob--two {
    width: 480px;
    height: 480px;
    bottom: -200px;
    right: -160px;
    opacity: 0.22;
}

.what-we-build__blob--three {
    width: 340px;
    height: 340px;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.12;
}

/* ============================================================
   HEADER — client-oriented messaging
============================================================ */
.what-we-build__header {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(56px, 7vw, 72px);
}

.what-we-build__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(--wwb-primary);
    font-family: var(--wwb-font-body);
    font-weight: 600;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.3px;
    margin-bottom: 22px;
    opacity: 0;
}

.what-we-build__badge i {
    font-size: clamp(10px, 0.9vw, 12px);
}

.what-we-build__heading {
    font-family: var(--wwb-font-heading);
    font-weight: 900;
    color: var(--wwb-text);
    font-size: clamp(28px, 4.4vw, 52px);
    line-height: 1.06;
    letter-spacing: 0.2px;
    margin: 0 0 20px;
    opacity: 0;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.what-we-build__heading-accent {
    color: var(--wwb-primary);
}

.what-we-build__desc {
    font-family: var(--wwb-font-body);
    font-weight: 400;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.7;
    color: var(--wwb-muted);
    max-width: 560px;
    margin: 0 auto;
    opacity: 0;
}

/* ============================================================
   SERVICE CATEGORY GRID — 6 client‑friendly cards
============================================================ */
.what-we-build__grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.what-we-build__card {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 24px 54px -28px rgba(0, 0, 0, 0.12),
        0 0 0 1px var(--wwb-line);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(34px) scale(0.96);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.what-we-build__card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(30, 155, 247, 0.3);
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 34px 74px -28px rgba(30, 155, 247, 0.2),
        0 0 0 1px rgba(30, 155, 247, 0.18);
}

.what-we-build__card__glow {
    position: absolute;
    top: -35%;
    right: -25%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 155, 247, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.what-we-build__card:hover .what-we-build__card__glow {
    opacity: 1;
}

.what-we-build__card__icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(19px, 1.5vw, 22px);
    color: var(--wwb-white);
    background: linear-gradient(155deg, var(--wwb-primary), var(--wwb-primary-dark));
    box-shadow: 0 14px 26px -10px rgba(30, 155, 247, 0.5);
    margin-bottom: 22px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    flex-shrink: 0;
}

.what-we-build__card:hover .what-we-build__card__icon {
    transform: rotate(-8deg) scale(1.06);
}

.what-we-build__card__title {
    position: relative;
    z-index: 2;
    font-family: var(--wwb-font-heading);
    font-weight: 900;
    font-size: clamp(18px, 1.4vw, 21px);
    line-height: 1.2;
    color: var(--wwb-text);
    margin: 0 0 10px;
    transition: color 0.35s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.what-we-build__card:hover .what-we-build__card__title {
    color: var(--wwb-primary);
}

.what-we-build__card__desc {
    position: relative;
    z-index: 2;
    font-family: var(--wwb-font-body);
    font-weight: 400;
    font-size: clamp(12.5px, 0.95vw, 14px);
    line-height: 1.6;
    color: var(--wwb-muted);
    margin: 0 0 14px;
    flex: 1;
}

.what-we-build__card__examples {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--wwb-line);
}

.what-we-build__card__examples span {
    font-family: var(--wwb-font-body);
    font-size: clamp(10px, 0.8vw, 11px);
    font-weight: 500;
    color: var(--wwb-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--wwb-line);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.what-we-build__card:hover .what-we-build__card__examples span {
    background: rgba(30, 155, 247, 0.06);
    border-color: rgba(30, 155, 247, 0.15);
    color: var(--wwb-text);
}

/* ============================================================
   TECH PILLS — secondary, subtle
============================================================ */
.what-we-build__tech {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--wwb-line);
    opacity: 0;
}

.what-we-build__tech-label {
    display: block;
    font-family: var(--wwb-font-body);
    font-weight: 500;
    font-size: clamp(10px, 0.8vw, 11px);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--wwb-muted);
    margin-bottom: 16px;
}

.what-we-build__tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.what-we-build__tech-pill {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--wwb-line);
    font-family: var(--wwb-font-body);
    font-size: clamp(11px, 0.85vw, 12px);
    font-weight: 500;
    color: var(--wwb-text);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.what-we-build__tech-pill:hover {
    background: rgba(30, 155, 247, 0.06);
    border-color: rgba(30, 155, 247, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(30, 155, 247, 0.15);
}

.what-we-build__tech-pill i {
    margin-right: 6px;
    color: var(--wwb-primary);
    font-size: clamp(10px, 0.8vw, 12px);
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
    .what-we-build * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   RESPONSIVE — Large Desktop (1300px to 1468px)
============================================================ */
@media (min-width: 1300px) and (max-width: 1468px) {
    .what-we-build__container {
        max-width: 1220px;
    }

    .what-we-build__heading {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .what-we-build__grid {
        gap: 20px;
    }

    .what-we-build__card {
        padding: 28px 24px 24px;
        min-height: 240px;
    }

    .what-we-build__card__title {
        font-size: 19px;
    }

    .what-we-build__card__desc {
        font-size: 13.5px;
    }
}

/* ============================================================
   RESPONSIVE — Desktop (992px to 1299px)
============================================================ */
@media (min-width: 992px) and (max-width: 1299px) {
    .what-we-build__container {
        max-width: 96%;
        padding: 0 20px;
    }

    .what-we-build__grid {
        gap: 18px;
    }

    .what-we-build__card {
        padding: 24px 20px 20px;
        min-height: 220px;
    }

    .what-we-build__card__icon {
        width: 50px;
        height: 50px;
        font-size: 19px;
        margin-bottom: 18px;
    }

    .what-we-build__card__title {
        font-size: 18px;
    }

    .what-we-build__card__desc {
        font-size: 13px;
    }

    .what-we-build__card__examples span {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* ============================================================
   RESPONSIVE — Tablets (max-width: 991.98px)
============================================================ */
@media (max-width: 991.98px) {
    .what-we-build {
        padding: 100px 0 110px;
    }

    .what-we-build__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .what-we-build__card {
        min-height: 230px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 576px)
============================================================ */
@media (max-width: 576px) {
    .what-we-build {
        padding: 40px 0 40px;
    }

    .what-we-build__container {
        padding: 0 16px;
    }

    .what-we-build__heading {
        font-size: clamp(28px, 8.2vw, 38px);
    }

    .what-we-build__desc {
        font-size: 15px;
    }

    .what-we-build__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .what-we-build__card {
        padding: 24px 20px 20px;
        min-height: auto;
    }

    .what-we-build__card__icon {
        width: 50px;
        height: 50px;
        font-size: 19px;
        margin-bottom: 16px;
    }

    .what-we-build__card__title {
        font-size: 19px;
    }

    .what-we-build__card__desc {
        font-size: 13.5px;
    }

    .what-we-build__card__examples span {
        font-size: 10px;
        padding: 3px 10px;
    }

    .what-we-build__tech-pills {
        gap: 8px;
    }

    .what-we-build__tech-pill {
        font-size: 11px;
        padding: 5px 14px;
    }
}

/* ============================================================
   RESPONSIVE — Very Small Mobile (max-width: 400px)
============================================================ */
@media (max-width: 400px) {
    .what-we-build {
        padding: 30px 0 30px;
    }

    .what-we-build__heading {
        font-size: clamp(24px, 7vw, 28px);
    }

    .what-we-build__desc {
        font-size: 13px;
    }

    .what-we-build__card {
        padding: 20px 16px 16px;
        border-radius: 20px;
    }

    .what-we-build__card__icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .what-we-build__card__title {
        font-size: 17px;
    }

    .what-we-build__card__desc {
        font-size: 12.5px;
    }

    .what-we-build__card__examples {
        gap: 4px;
        padding-top: 10px;
    }

    .what-we-build__card__examples span {
        font-size: 9px;
        padding: 2px 8px;
    }

    .what-we-build__tech-pill {
        font-size: 10px;
        padding: 4px 12px;
    }
}

/* ============================================================
   FONT FIX - Ensure consistent font rendering across all screens
============================================================ */
@supports (font-variation-settings: normal) {
    .what-we-build__heading,
    .what-we-build__card__title {
        font-variation-settings: 'wght' 900, 'wdth' 100;
    }
}

/* Fallback for browsers that don't support variable fonts */
@supports not (font-variation-settings: normal) {
    .what-we-build__heading,
    .what-we-build__card__title {
        font-weight: 900;
        letter-spacing: -0.5px;
    }
}