/* Shared hero metrics — mobile grid cards (Capabilities / Products / About) */

body.page-capabilities .hero-stats,
body.page-products .hero-counters,
body.page-about .stats-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-capabilities .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
    padding-top: 28px;
    max-width: 520px;
}

body.page-products .hero-counters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
    padding-top: 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

body.page-about .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

body.page-capabilities .hero-stat,
body.page-products .hero-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

body.page-capabilities .hero-stat::before,
body.page-products .hero-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.75;
}

body.page-products .hero-counter strong,
body.page-capabilities .hero-stat strong {
    display: block;
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.page-products .hero-counter-label,
body.page-capabilities .hero-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
}

@media (max-width: 768px) {
    body.page-capabilities .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px;
        padding-top: 24px;
        margin-top: 28px;
    }

    body.page-products .hero-counters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        padding-top: 24px;
        margin-top: 28px;
    }

    body.page-about .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        margin-top: 28px;
    }

    body.page-capabilities .hero-stat,
    body.page-products .hero-counter {
        padding: 14px 8px 12px;
    }

    body.page-capabilities .hero-stat strong,
    body.page-products .hero-counter strong {
        font-size: clamp(20px, 5.5vw, 26px);
        margin-bottom: 4px;
    }

    body.page-capabilities .hero-stat-label,
    body.page-products .hero-counter-label {
        font-size: 9px;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 380px) {
    body.page-capabilities .hero-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.page-products .hero-counters,
    body.page-about .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.page-capabilities .hero-stat,
    body.page-products .hero-counter {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 12px 14px;
    }

    body.page-capabilities .hero-stat strong,
    body.page-products .hero-counter strong {
        margin-bottom: 0;
        font-size: 22px;
    }

    body.page-capabilities .hero-stat-label,
    body.page-products .hero-counter-label {
        font-size: 10px;
        text-align: right;
        max-width: 52%;
    }
}
