/* ═══════════════════════════════════════════════════════════
   Home Hero — true mobile-first vertical landing (≤768px)
   Image is visual only; copy/CTAs sit below on solid surface
   Desktop (≥769px) uses .home-hero__desktop unchanged
   ═══════════════════════════════════════════════════════════ */

.home-hero__mobile {
    display: none;
}

.home-hero__desktop {
    display: block;
}

@media (max-width: 768px) {
    .mk-home-page {
        --mk-site-header-h: 3.35rem;
        --hh-pad-x: 1.25rem; /* 20px */
        --hh-section-gap: 1.75rem; /* 28px */
        --hh-radius: 14px;
        --hh-btn-h: 3.375rem; /* 54px */

        --hh-page-bg: #f8fafc;
        --hh-surface: #ffffff;
        --hh-title: #0f172a;
        --hh-brand: #f59e0b;
        --hh-subtitle: #475569;
        --hh-kicker-color: #5b21b6;
        --hh-kicker-icon: #7c3aed;
        --hh-kicker-bg: rgba(237, 233, 254, 0.95);
        --hh-kicker-border: rgba(167, 139, 250, 0.4);
        --hh-ghost-color: #1e293b;
        --hh-ghost-bg: #ffffff;
        --hh-ghost-border: rgba(148, 163, 184, 0.35);
        --hh-chip-color: #334155;
        --hh-chip-bg: #ffffff;
        --hh-chip-border: rgba(148, 163, 184, 0.22);
        --hh-chip-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        --hh-media-bg: #0f172a;
        --hh-img-filter: saturate(1.05) contrast(1.04) brightness(0.96);
        --hh-overlay:
            linear-gradient(
                180deg,
                rgba(15, 23, 42, 0.18) 0%,
                rgba(15, 23, 42, 0.05) 42%,
                rgba(15, 23, 42, 0.45) 100%
            ),
            radial-gradient(ellipse 80% 55% at 72% 30%, rgba(124, 58, 237, 0.22) 0%, transparent 60%);
        --hh-header-bg: rgba(255, 255, 255, 0.92);
        --hh-header-border: rgba(148, 163, 184, 0.18);
        --hh-header-brand: #0f172a;
        --hh-toggle-bg: rgba(241, 245, 249, 0.95);
        --hh-toggle-border: rgba(148, 163, 184, 0.28);
        --hh-toggle-color: #475569;
        --hh-body-sheet: var(--mk-bg, #f1f5f9);
    }

    html.mk-public[data-theme="dark"] .mk-home-page {
        --hh-page-bg: #070b14;
        --hh-surface: #0b1220;
        --hh-title: #f8fafc;
        --hh-brand: #fbbf24;
        --hh-subtitle: #94a3b8;
        --hh-kicker-color: #ddd6fe;
        --hh-kicker-icon: #c4b5fd;
        --hh-kicker-bg: rgba(124, 58, 237, 0.22);
        --hh-kicker-border: rgba(167, 139, 250, 0.32);
        --hh-ghost-color: #e2e8f0;
        --hh-ghost-bg: rgba(255, 255, 255, 0.06);
        --hh-ghost-border: rgba(255, 255, 255, 0.12);
        --hh-chip-color: #e2e8f0;
        --hh-chip-bg: rgba(255, 255, 255, 0.05);
        --hh-chip-border: rgba(255, 255, 255, 0.1);
        --hh-chip-shadow: none;
        --hh-media-bg: #05070f;
        --hh-img-filter: saturate(0.92) contrast(1.05) brightness(0.78);
        --hh-overlay:
            linear-gradient(
                180deg,
                rgba(7, 6, 18, 0.35) 0%,
                rgba(7, 6, 18, 0.12) 40%,
                rgba(7, 6, 18, 0.72) 100%
            ),
            radial-gradient(ellipse 80% 55% at 72% 30%, rgba(124, 58, 237, 0.28) 0%, transparent 60%);
        --hh-header-bg: rgba(8, 12, 24, 0.94);
        --hh-header-border: rgba(255, 255, 255, 0.08);
        --hh-header-brand: #f8fafc;
        --hh-toggle-bg: rgba(255, 255, 255, 0.08);
        --hh-toggle-border: rgba(255, 255, 255, 0.14);
        --hh-toggle-color: #f1f5f9;
        --hh-body-sheet: var(--mk-bg, #070b14);
    }

    /* ── Header (solid, above content — not over busy image) ── */
    .mk-home-page .mk-site-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 12010;
        background: var(--hh-header-bg);
        border-bottom: 1px solid var(--hh-header-border);
        backdrop-filter: blur(14px) saturate(1.2);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
        padding-top: env(safe-area-inset-top, 0px);
        overflow: visible;
    }

    .mk-home-page .mk-site-header .mk-navbar,
    .mk-home-page .mk-site-header .navbar {
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .mk-home-page .mk-nav-inner,
    .mk-home-page .nav-wrapper {
        padding: 0.55rem var(--hh-pad-x) 0.5rem !important;
        min-height: var(--mk-site-header-h);
    }

    .mk-home-page .mk-brand,
    .mk-home-page .logo {
        color: var(--hh-header-brand) !important;
    }

    .mk-home-page .mk-brand-name {
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em;
    }

    .mk-home-page .mk-nav-mobile-tools {
        display: inline-flex !important;
        align-items: center;
        gap: 0.35rem;
        margin-inline-start: auto;
    }

    .mk-home-page .mk-nav-mobile-tools .mk-nav-toggle,
    .mk-home-page .mk-nav-mobile-tools .mk-theme-toggle--bar {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        border-radius: 12px;
        border: 1px solid var(--hh-toggle-border);
        background: var(--hh-toggle-bg);
        color: var(--hh-toggle-color);
    }

    .mk-home-page .mk-theme-toggle--auth {
        display: none;
    }

    .mk-home-page .main-content {
        padding-top: 0;
        overflow-x: clip;
    }

    /* ── Hero: natural height vertical stack
       Specificity beats mizkar-home .mk-hero--cinema mobile rules ── */
    .mk-home-page .home-hero.mk-hero--split.mk-hero--pro.mk-hero--cinema,
    .mk-home-page section.home-hero.mk-hero--cinema {
        position: relative;
        isolation: isolate;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        margin: 0;
        padding: 0 !important;
        overflow: hidden;
        border: none;
        background: var(--hh-page-bg) !important;
    }

    .mk-home-page .home-hero.mk-hero--split.mk-hero--pro.mk-hero--cinema::after,
    .mk-home-page .home-hero.mk-hero--split.mk-hero--pro.mk-hero--cinema::before {
        display: none !important;
        content: none !important;
    }

    .home-hero__desktop {
        display: none !important;
    }

    .home-hero__mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        background: var(--hh-page-bg);
    }

    /* ── 1) Hero image (visual only) ── */
    .home-hero__media {
        position: relative;
        width: 100%;
        height: clamp(200px, 46vw, 280px);
        flex-shrink: 0;
        overflow: hidden;
        background: var(--hh-media-bg);
    }

    .home-hero__bg-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 68% 40%;
        filter: var(--hh-img-filter);
    }

    .home-hero__overlay {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: var(--hh-overlay);
    }

    /* ── 2–8) Content below image ── */
    .home-hero__shell {
        position: relative;
        z-index: 2;
        display: block;
        width: 100%;
        padding:
            1.5rem
            var(--hh-pad-x)
            calc(1.75rem + env(safe-area-inset-bottom, 0px));
        background: var(--hh-surface);
        border-radius: 22px 22px 0 0;
        margin-top: -1.25rem;
        box-shadow: 0 -8px 32px -18px rgba(15, 23, 42, 0.18);
    }

    html.mk-public[data-theme="dark"] .home-hero__shell {
        box-shadow: 0 -8px 32px -18px rgba(0, 0, 0, 0.45);
    }

    .home-hero__content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 28rem;
        margin-inline: auto;
        gap: 0;
    }

    /* Badge */
    .home-hero__kicker {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        gap: 0.4rem;
        margin: 0 0 0.9rem;
        padding: 0.38rem 0.8rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1.3;
        color: var(--hh-kicker-color);
        background: var(--hh-kicker-bg);
        border: 1px solid var(--hh-kicker-border);
        border-radius: 999px;
    }

    .home-hero__kicker i {
        font-size: 0.68rem;
        color: var(--hh-kicker-icon);
    }

    /* Title */
    .home-hero__title {
        margin: 0 0 0.75rem;
        font-size: clamp(1.55rem, 6.8vw, 2rem);
        font-weight: 800;
        line-height: 1.32;
        letter-spacing: -0.03em;
        color: var(--hh-title);
        text-wrap: balance;
    }

    .home-hero__brand {
        color: var(--hh-brand);
    }

    /* Subtitle */
    .home-hero__subtitle {
        margin: 0 0 1.25rem;
        font-size: 0.92rem;
        font-weight: 500;
        line-height: 1.7;
        color: var(--hh-subtitle);
        max-width: 100%;
    }

    /* CTAs: primary stack, secondary as light link */
    .home-hero__actions {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        margin-bottom: 1.1rem;
    }

    .home-hero__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        min-height: var(--hh-btn-h);
        height: var(--hh-btn-h);
        padding: 0 1.1rem;
        border-radius: var(--hh-radius);
        text-decoration: none;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .home-hero__btn:active {
        transform: scale(0.985);
    }

    .home-hero__btn-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        text-align: start;
    }

    .home-hero__btn-text strong {
        font-size: 0.95rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .home-hero__btn-text em {
        display: none;
    }

    .home-hero__btn > i {
        flex-shrink: 0;
        font-size: 0.85rem;
        opacity: 0.9;
    }

    .home-hero__btn--primary {
        color: #fff;
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 48%, #6d28d9 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
            0 14px 28px -12px rgba(124, 58, 237, 0.65),
            0 0 0 1px rgba(124, 58, 237, 0.12) inset;
    }

    .home-hero__btn--academy {
        color: #0f172a;
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #ea580c 100%);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 12px 24px -12px rgba(234, 88, 12, 0.55);
    }

    .home-hero__btn--academy > i {
        display: grid;
        place-items: center;
        width: 1.65rem;
        height: 1.65rem;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.12);
        font-size: 0.62rem;
        color: #0f172a;
    }

    .home-hero__btn--ghost {
        justify-content: center;
        gap: 0.45rem;
        min-height: 2.75rem;
        height: auto;
        padding: 0.55rem 0.85rem;
        color: var(--hh-ghost-color);
        background: transparent;
        border: none;
        box-shadow: none;
        font-weight: 700;
    }

    .home-hero__btn--ghost .home-hero__btn-text strong {
        font-size: 0.88rem;
        font-weight: 700;
        color: inherit;
    }

    .home-hero__btn--ghost > i {
        font-size: 0.75rem;
        opacity: 0.7;
    }

    .home-hero__trust {
        margin: 0;
        padding: 0.15rem 0.1rem 0;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.55;
        color: #64748b;
        text-align: center;
    }

    html.mk-public[data-theme="dark"] .home-hero__trust {
        color: #94a3b8;
    }

    /* Feature cards — 2-column grid */
    .home-hero__chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .home-hero__chips li {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        min-height: 3.25rem;
        padding: 0.65rem 0.7rem;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.35;
        color: var(--hh-chip-color);
        background: var(--hh-chip-bg);
        border: 1px solid var(--hh-chip-border);
        border-radius: 12px;
        box-shadow: var(--hh-chip-shadow);
        -webkit-tap-highlight-color: transparent;
    }

    .home-hero__chip-icon {
        display: grid;
        place-items: center;
        width: 2rem;
        height: 2rem;
        border-radius: 9px;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    .home-hero__chip-icon[data-tone="violet"] {
        color: #7c3aed;
        background: rgba(124, 58, 237, 0.12);
    }

    .home-hero__chip-icon[data-tone="emerald"] {
        color: #059669;
        background: rgba(16, 185, 129, 0.12);
    }

    .home-hero__chip-icon[data-tone="sky"] {
        color: #0284c7;
        background: rgba(14, 165, 233, 0.12);
    }

    .home-hero__chip-icon[data-tone="amber"] {
        color: #d97706;
        background: rgba(245, 158, 11, 0.14);
    }

    html.mk-public[data-theme="dark"] .home-hero__chip-icon[data-tone="violet"] {
        color: #c4b5fd;
        background: rgba(124, 58, 237, 0.22);
    }

    html.mk-public[data-theme="dark"] .home-hero__chip-icon[data-tone="emerald"] {
        color: #6ee7b7;
        background: rgba(16, 185, 129, 0.18);
    }

    html.mk-public[data-theme="dark"] .home-hero__chip-icon[data-tone="sky"] {
        color: #7dd3fc;
        background: rgba(14, 165, 233, 0.18);
    }

    html.mk-public[data-theme="dark"] .home-hero__chip-icon[data-tone="amber"] {
        color: #fbbf24;
        background: rgba(245, 158, 11, 0.18);
    }

    /* ── Post-hero sheet ── */
    .mk-home-page .mk-home-body {
        position: relative;
        z-index: 3;
        background: var(--hh-body-sheet);
        border-radius: 0;
        margin-top: 0;
    }

    .mk-home-page .mk-home-intro-band {
        margin-top: 0;
        padding-top: 1.5rem;
    }

    .mk-home-page .mk-home-stats {
        padding-top: 0.25rem;
    }

    .mk-home-page .mk-home-stats > .container {
        padding-inline: var(--hh-pad-x);
    }

    .mk-home-page .mk-stats-strip {
        border-radius: 0;
    }

    .mk-home-page .mk-stats-panel {
        border-radius: 16px;
    }

    .mk-home-page .mk-stats-panel-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.75rem 0.85rem;
    }

    .mk-home-page .mk-stats-live-text {
        white-space: normal;
        line-height: 1.45;
    }

    .mk-home-page .mk-stats-uptime {
        justify-content: flex-start;
        border-radius: 12px;
        padding: 0.45rem 0.7rem;
    }

    .mk-home-page .mk-stats-uptime-since {
        width: 100%;
        margin-inline-start: 1.1rem;
    }

    html.mk-public[data-theme="light"] .mk-home-page .mk-stat-item {
        background: rgba(255, 255, 255, 0.72);
        border-color: rgba(148, 163, 184, 0.14);
    }

    html.mk-public[data-theme="light"] .mk-home-page .mk-stat-lbl {
        color: var(--mk-text-muted);
    }

    html.mk-public[data-theme="dark"] .mk-home-page .mk-stat-item {
        background: rgba(148, 163, 184, 0.06);
        border-color: rgba(148, 163, 184, 0.08);
    }

    html.mk-public[data-theme="dark"] .mk-home-page .mk-stat-lbl {
        color: #94a3b8;
    }
}

@media (max-width: 360px) {
    .home-hero__title {
        font-size: 1.75rem; /* 28px floor on very small */
    }

    .home-hero__chips li {
        font-size: 0.72rem;
        padding: 0.55rem 0.55rem;
        min-height: 3rem;
    }

    .home-hero__btn {
        min-height: 3.25rem;
        height: 3.25rem;
    }
}

@media (min-width: 769px) {
    .home-hero__mobile {
        display: none !important;
    }

    .home-hero__desktop {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 100%;
        align-self: stretch;
    }

    .mk-home-page .home-hero.mk-hero--cinema {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .home-hero__btn:active {
        transform: none;
    }
}
