/**
 * Mobil ana sayfa — 2026 bento vitrin (max-width: 991px)
 */

.mh,
.mobile-home-hero,
.mobile-tech-spotlight,
.mobile-stats {
    display: none;
}

@media (max-width: 991px) {
    .hero-slider--desktop,
    .slidings.hero-slider--desktop {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: fixed !important;
        top: -9999px !important;
    }

    .middle7--desktop {
        display: none !important;
    }

    .mh {
        --mh-font: "Montserrat", system-ui, sans-serif;
        --mh-bg: #070b12;
        --mh-glass: rgba(14, 22, 34, 0.72);
        --mh-glass-border: rgba(255, 255, 255, 0.09);
        --mh-text: #f8fafc;
        --mh-muted: #b8c5d4;
        --mh-accent: #01b1af;
        --mh-accent-2: #2dd4d2;
        --mh-nav-h: calc(var(--mobile-nav-h, 76px) + env(safe-area-inset-top, 0px));
        display: block;
        position: relative;
        width: 100%;
        margin: 0;
        padding: var(--mh-nav-h) 0 calc(28px + env(safe-area-inset-bottom, 0px));
        font-family: var(--mh-font);
        color: var(--mh-text);
        background:
            radial-gradient(ellipse 90% 60% at 50% -20%, rgba(1, 177, 175, 0.16), transparent 60%),
            radial-gradient(ellipse 50% 40% at 100% 20%, rgba(99, 102, 241, 0.1), transparent 55%),
            var(--mh-bg);
        box-sizing: border-box;
        overflow: hidden;
    }

    /* ---- Hero ---- */
    .mh-hero {
        position: relative;
        margin: 0 16px 20px;
        border-radius: 22px;
        overflow: hidden;
        border: 1px solid var(--mh-glass-border);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    }

    .mh-hero__banner {
        position: relative;
        height: clamp(160px, 34vw, 220px);
        overflow: hidden;
        isolation: isolate;
    }

    .mh-hero__banner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 35%;
        display: block;
        z-index: 0;
    }

    .mh-hero__banner-mesh {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        /* Karartma yalnızca görselin alt bandında — metin alanına taşmaz */
        background: linear-gradient(
            180deg,
            rgba(7, 11, 18, 0) 0%,
            rgba(7, 11, 18, 0.08) 45%,
            rgba(7, 11, 18, 0.42) 78%,
            rgba(7, 11, 18, 0.58) 100%
        );
    }

    .mh-hero__panel {
        position: relative;
        margin-top: 0;
        padding: 16px 18px 20px;
        z-index: 2;
        background: #070b12;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mh-hero__eyebrow {
        margin: 0 0 8px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--mh-accent-2);
    }

    .mh-hero__title {
        margin: 0 0 10px;
        font-size: clamp(1.45rem, 6vw, 1.85rem);
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.02em;
        color: #fff;
    }

    .mh-hero__title em {
        font-style: normal;
        color: var(--mh-accent-2);
    }

    .mh-hero__lead {
        margin: 0 0 16px;
        font-size: 0.9375rem;
        line-height: 1.65;
        color: var(--mh-muted);
    }

    .mh-hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mh-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 0 18px;
        border-radius: 14px;
        font-size: 0.86rem;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mh-btn--primary {
        color: #041214;
        background: linear-gradient(135deg, var(--mh-accent-2), var(--mh-accent));
        box-shadow: 0 8px 24px rgba(1, 177, 175, 0.35);
    }

    .mh-btn--ghost {
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--mh-glass-border);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mh-btn:active {
        transform: scale(0.98);
    }

    /* ---- İstatistikler (masaüstü middle5/4/3 görselleri) ---- */
    .mh-stats--photo {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0 16px 18px;
        padding: 0;
    }

    @media (max-width: 767px) {
        .mh-stats--photo {
            flex-direction: row;
            margin: 0 0 12px;
            padding: 0;
        }
    }

    .mh-stat-card {
        position: relative;
        min-height: 112px;
        border-radius: 18px;
        overflow: hidden;
        background-color: #0c1420;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    }

    .mh-stat-card__shade {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22) 0%,
            rgba(0, 0, 0, 0.42) 55%,
            rgba(0, 0, 0, 0.58) 100%
        );
    }

    .mh-stat-card__body {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 112px;
        padding: 18px 16px;
        text-align: center;
        color: #fff;
    }

    .mh-stat-card__value {
        margin: 0;
        font-size: clamp(1.65rem, 7vw, 2rem);
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: #fff;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    }

    .mh-stat-card__value .count {
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
    }

    .mh-stat-card__label {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin: 8px 0 0;
        font-size: 0.82rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.92);
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    }

    .mh-stat-card__label-sub {
        font-size: 0.78rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.82);
    }

    /* ---- Güven rozetleri ---- */
    .mh-trust {
        display: flex;
        gap: 8px;
        margin: 0 16px 22px;
        padding: 0;
        list-style: none;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mh-trust::-webkit-scrollbar {
        display: none;
    }

    .mh-trust li {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 13px;
        border-radius: 100px;
        font-size: 0.78rem;
        font-weight: 600;
        color: #e2e8f0;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--mh-glass-border);
    }

    .mh-trust i {
        color: var(--mh-accent);
        font-size: 0.72rem;
    }

    /* ---- Bölüm başlığı ---- */
    .mh-section-head {
        padding: 0 16px 14px;
    }

    .mh-section-head__eyebrow {
        margin: 0 0 6px;
        font-size: 0.66rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--mh-accent-2);
    }

    .mh-section-head__title {
        margin: 0;
        font-size: 1.22rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: #fff;
    }

    /* ---- Bento çözüm kartları ---- */
    .mh-bento {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 16px 8px;
    }

    .mh-bento-card {
        min-width: 0;
    }

    .mh-bento-card--featured {
        grid-column: 1 / -1;
    }

    .mh-bento-card__link {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
        border-radius: 18px;
        overflow: hidden;
        background: var(--mh-glass);
        border: 1px solid var(--mh-glass-border);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transition: transform 0.25s ease, border-color 0.25s ease;
    }

    .mh-bento-card__link:active {
        transform: scale(0.98);
        border-color: rgba(1, 177, 175, 0.35);
    }

    .mh-bento-card--featured .mh-bento-card__media {
        height: clamp(156px, 40vw, 200px);
    }

    .mh-bento-card__media {
        position: relative;
        height: 128px;
        background-color: #0c1420;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    .mh-bento-card__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transform: scale(1.03);
        transition: transform 0.35s ease;
    }

    .mh-bento-card__link:active .mh-bento-card__img {
        transform: scale(1.06);
    }

    /* Görsel yoksa gradient + ikon */
    .mh-bento-card__media[data-solution="kamera_sistemleri"] {
        background-color: #0d1a28;
    }

    .mh-bento-card__media[data-solution="yangin_algilama_sistemleri"] {
        background-color: #1a120d;
    }

    .mh-bento-card__media[data-solution="personel_devam_gecis_kontrol_sistemleri"] {
        background-color: #101828;
    }

    .mh-bento-card__media[data-solution="telefon_santral_sistemleri"] {
        background-color: #0d1824;
    }

    .mh-bento-card__media[data-solution="rack_kabinetler"] {
        background-color: #12121a;
    }

    .mh-bento-card__media[data-solution="firewall_cozumleri"] {
        background-color: #14101f;
    }

    .mh-bento-card__media[data-solution="network_altyapisi"] {
        background-color: #0a1620;
    }

    .mh-bento-card__media[data-solution="seslendirme_sistemleri"] {
        background-color: #18141c;
    }

    .mh-bento-card__media[data-solution="autocad_ile_projelendirme"] {
        background-color: #101820;
    }

    .mh-bento-card__shade {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(7, 11, 18, 0) 0%,
            rgba(7, 11, 18, 0.18) 62%,
            rgba(7, 11, 18, 0.48) 100%
        );
    }

    .mh-bento-card__icon {
        position: absolute;
        top: auto;
        left: auto;
        right: 10px;
        bottom: 8px;
        z-index: 2;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 0.8rem;
        color: #fff;
        background: rgba(7, 11, 18, 0.55);
        border: 1px solid rgba(1, 177, 175, 0.3);
        pointer-events: none;
    }

    .mh-bento-card--featured .mh-bento-card__icon {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

    .mh-bento-card__badge {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 2;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mh-bento-card__body {
        padding: 12px 14px 14px;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 88px;
        justify-content: space-between;
    }

    .mh-bento-card__body h3 {
        margin: 0 0 4px;
        font-size: 0.88rem;
        font-weight: 600;
        color: #fff;
        line-height: 1.25;
    }

    .mh-bento-card--featured .mh-bento-card__body h3 {
        font-size: 1rem;
    }

    .mh-bento-card__body p {
        margin: 0;
        font-size: 0.8125rem;
        line-height: 1.5;
        color: var(--mh-muted);
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mh-bento-card__cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--mh-accent-2);
    }

    /* ---- Yazılım kartları — net okunaklı panel ---- */
    .mh-software {
        margin: 20px 0 16px;
    }

    .mh-software .mh-section-head__eyebrow {
        color: #2dd4d2;
    }

    .mh-software .mh-section-head__title {
        color: #f8fafc;
    }

    .mh-software__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 12px;
        padding: 0 16px;
    }

    .mh-app-card {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        height: 100%;
        min-height: 152px;
        padding: 12px 14px;
        border-radius: 12px;
        box-sizing: border-box;
        text-decoration: none;
        color: #f8fafc !important;
        background: #141e2e !important;
        border: 1px solid rgba(1, 177, 175, 0.32) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 10px 28px rgba(0, 0, 0, 0.35) !important;
        backdrop-filter: blur(12px) saturate(1.15);
        -webkit-backdrop-filter: blur(12px) saturate(1.15);
        opacity: 1 !important;
        transform: none !important;
        isolation: isolate;
        transition: transform 0.2s ease;
    }

    .mh-app-card:active {
        transform: scale(0.98);
    }

    .mh-app-card__icon,
    .mh-app-card__logo {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 1rem;
        color: #ffffff !important;
        background: linear-gradient(135deg, #01b1af, #018a88) !important;
        text-shadow: none !important;
        flex-shrink: 0;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    }

    .mh-app-card__logo {
        background: transparent !important;
        padding: 0;
    }

    .mh-app-card__logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 14px;
    }

    .mh-app-card__name {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #f8fafc !important;
        -webkit-text-fill-color: #f8fafc !important;
        line-height: 1.25;
        letter-spacing: -0.01em;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    }

    .mh-app-card__desc {
        flex: 1 1 auto;
        min-height: 2.9em;
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        color: #d8e2ec !important;
        -webkit-text-fill-color: #d8e2ec !important;
    }

    /* ---- Alt dock ---- */
    .mh-dock {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin: 16px 16px 0;
        padding: 10px 8px;
        border-radius: 20px;
        background: var(--mh-glass);
        border: 1px solid var(--mh-glass-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
    }

    .mh-dock__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 8px 4px;
        border-radius: 12px;
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 600;
        color: #c5d0dc;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mh-dock__item i {
        font-size: 1rem;
        color: var(--mh-accent-2);
    }

    .mh-dock__item--accent {
        color: #fff;
        background: rgba(1, 177, 175, 0.12);
    }

    .mh-dock__item--accent i {
        color: #fff;
    }

    .mh-dock__item:active {
        background: rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 380px) {
    .mh-stat-card {
        min-height: 104px;
    }

    .mh-stat-card__body {
        min-height: 104px;
        padding: 14px 12px;
    }

    .mh-hero__actions {
        flex-direction: column;
    }

    .mh-btn {
        width: 100%;
    }

    .mh-bento {
        grid-template-columns: 1fr;
    }

    .mh-bento-card--featured {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-bento-card__link,
    .mh-btn,
    .mh-app-card,
    .mh-dock__item {
        transition: none !important;
    }
}
