/**
 * Mobil ana sayfa — premium glass bölümler (TSE kaldırıldı, istatistik vitrin)
 */

.middle6s {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-stats,
    .mobile-tech-spotlight,
    .mobile-section-head {
        font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    }

    /* Mobil vitrin aktifken masaüstü tekrarlarını gizle */
    .page-content:has(.mh) .service-wrapper {
        display: none !important;
        content-visibility: hidden;
    }

    /* İstatistik bandı — yalnızca mh-after içindeki alt bölüm */
    .page-content:has(.mh) .mh-after .mobile-stats {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        margin: 0 0 24px !important;
        padding: 0 !important;
        overflow: visible !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    /* Eski arka planlı sayaç kutuları — yeni grid kullanılır */
    .page-content:has(.mh) .middle3--legacy,
    .page-content:has(.mh) .middle4--legacy,
    .page-content:has(.mh) .middle5--legacy,
    .page-content:has(.mobile-home-hero) .middle3--legacy,
    .page-content:has(.mobile-home-hero) .middle4--legacy,
    .page-content:has(.mobile-home-hero) .middle5--legacy,
    .mh-after .middle3--legacy,
    .mh-after .middle4--legacy,
    .mh-after .middle5--legacy {
        display: none !important;
    }

    /* ---- Ortak bölüm başlığı ---- */
    .mobile-section-head {
        text-align: center;
        padding: 20px 18px 14px;
        margin: 0;
    }

    .mobile-section-head__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0 0 10px;
        padding: 6px 14px;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #2dd4d2;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(1, 177, 175, 0.28);
        border-radius: 100px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-section-head__title {
        margin: 0;
        font-size: clamp(1.35rem, 5.5vw, 1.6rem);
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1.2;
        color: #f8fafc;
        text-transform: none;
        background: none;
        -webkit-text-fill-color: #f8fafc;
        -webkit-text-stroke: 0;
    }

    /* Ortaklar başlığı — mobilde okunaklı boyut */
    .page-content:has(.mh) .middle8 h2,
    .page-content:has(.mobile-home-hero) .middle8 h2 {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 4px;
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1.3;
        text-align: center;
        color: #f8fafc;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: #f8fafc;
        -webkit-text-stroke-width: 0;
        -webkit-text-stroke-color: transparent;
        text-transform: none;
    }

    .page-content:has(.mh) .middle8,
    .page-content:has(.mobile-home-hero) .middle8 {
        margin: 8px 0 12px !important;
        padding: 0 16px !important;
    }

    /* ---- İstatistik bandı ---- */
    .mobile-stats {
        display: block;
        width: 100%;
        margin: 0 0 24px;
        padding: 0;
        box-sizing: border-box;
    }

    .mobile-stats .mobile-section-head {
        padding-top: 4px;
        padding-bottom: 14px;
    }

    .mobile-stats__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin: 0 18px;
        padding: 0;
        border-radius: 16px;
        overflow: hidden;
        background: #111a26;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-stat-card {
        position: relative;
        padding: 18px 10px 16px;
        text-align: center;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .mobile-stat-card:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 18%;
        right: 0;
        bottom: 18%;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-stat-card__icon {
        display: none;
    }

    .mobile-stat-card__value {
        margin: 0 0 6px;
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        font-weight: 800;
        line-height: 1.1;
        color: #fff;
        letter-spacing: -0.03em;
    }

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

    .mobile-stat-card__label {
        margin: 0;
        font-size: 0.65rem;
        line-height: 1.35;
        font-weight: 500;
        color: #94a3b8;
    }

    /* ---- Süreç / çalışma modeli (mh içinde) ---- */
    .mh .mh-process.mobile-tech-spotlight {
        display: block;
        margin: 4px 16px 20px;
        padding: 20px 16px 18px;
        border-radius: 20px;
        background: rgba(14, 22, 34, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.09);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .mh-process.mobile-tech-spotlight {
        display: block;
        margin: 0 16px 24px;
        padding: 20px 16px 18px;
        border-radius: 20px;
        background: rgba(14, 22, 34, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.09);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .mh-process__head {
        margin-bottom: 18px;
    }

    .mh-process__eyebrow {
        margin: 0 0 6px;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #01b1af;
    }

    .mh-process__title {
        margin: 0;
        font-family: "Montserrat", sans-serif;
        font-size: 1.22rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: #f8fafc;
        line-height: 1.25;
    }

    .mh-process__steps {
        margin: 0 0 18px;
        padding: 0 0 0 6px;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
    }

    .mh-process__steps::before {
        content: "";
        position: absolute;
        left: 21px;
        top: 22px;
        bottom: 22px;
        width: 1px;
        background: linear-gradient(180deg, rgba(1, 177, 175, 0.45), rgba(1, 177, 175, 0.08));
    }

    .mh-process__step {
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 12px;
        align-items: start;
        padding: 0 0 18px;
        border-bottom: none;
    }

    .mh-process__step:last-child {
        padding-bottom: 0;
    }

    .mh-process__num {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        color: #01b1af;
        background: #0d1520;
        border: 1px solid rgba(1, 177, 175, 0.35);
        box-shadow: 0 0 0 4px rgba(1, 177, 175, 0.08);
    }

    .mh-process__step h3 {
        margin: 0 0 4px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #f1f5f9;
    }

    .mh-process__step p {
        margin: 0;
        font-size: 0.875rem;
        line-height: 1.55;
        color: #b8c5d4;
    }

    .mh-process__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        color: #041214;
        background: linear-gradient(135deg, #2dd4d2 0%, #01b1af 100%);
        box-shadow: 0 10px 28px rgba(1, 177, 175, 0.3);
    }

    /* ---- İş ortakları altı gri boşluk: vh/mutlak yerleşim iptal ---- */
    .page-content:has(.mobile-home-hero) > .middle3--legacy,
    .page-content:has(.mobile-home-hero) > .middle4--legacy,
    .page-content:has(.mobile-home-hero) > .middle5--legacy,
    .page-content:has(.mh) > .middle7,
    .page-content:has(.mh) > .middle7.middle7--desktop,
    .page-content:has(.mobile-home-hero) > .middle7,
    .page-content:has(.mobile-home-hero) > .middle7.middle7--desktop {
        display: none !important;
        position: fixed !important;
        top: -9999px !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .page-content:has(.mh) .middle8,
    .page-content:has(.mobile-home-hero) .middle8 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 24px 0 20px !important;
        padding: 8px 18px 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .page-content:has(.mh) .landing-page3:not(.partner-marquee),
    .page-content:has(.mobile-home-hero) .landing-page3:not(.partner-marquee) {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* ---- Ortaklar şeridi ---- */
    .landing-page3.partner-marquee,
    .page-content:has(.mh) .landing-page3.partner-marquee,
    .page-content:has(.mobile-home-hero) .landing-page3.partner-marquee {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 16px !important;
        padding: 0 12px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .page-content:has(.mh) .landing-page3.partner-marquee + .service-wrapper,
    .page-content:has(.mh) .service-wrapper,
    .page-content:has(.mobile-home-hero) .landing-page3.partner-marquee + .service-wrapper,
    .page-content:has(.mobile-home-hero) .service-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 12px 8px 28px !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .partner-marquee__glass {
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 8px 24px rgba(0, 0, 0, 0.22) !important;
    }

    /* Yazılım vitrin kartı — mobilde kompakt */
    .page-content:has(.mh) .solution-card--wide .solution-card__link {
        aspect-ratio: auto;
        min-height: 0;
        max-height: none;
    }

    .page-content:has(.mh) .solution-feature__title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 380px) {
    .mobile-stats__grid {
        grid-template-columns: 1fr;
    }

    .mobile-stat-card:not(:last-child)::after {
        top: auto;
        right: 18%;
        left: 18%;
        bottom: 0;
        width: auto;
        height: 1px;
    }

    .mobile-stat-card {
        padding: 14px 16px;
    }
}

@media (min-width: 992px) {
    .mobile-stats {
        display: none !important;
    }
}
