/* ===========================================================
   NEXHAUL — DESKTOP (PC) DESIGN SYSTEM
   True desktop experience at >= 1024px.
   - Split hero, editorial layouts, zigzag cards, sticky panels
   - Desktop type scale, hover micro-interactions, bento grids
   The mobile web-app view (< 1024px) is NEVER touched.
   =========================================================== */

/* ===== BRAND LOGO THEME SWAP (both views) ===== */
html[data-theme="dark"] .brand-logo-on-light { display: none !important; }
html[data-theme="light"] .brand-logo-on-dark { display: none !important; }
.brand-logo { display: block; }

/* ===== DESKTOP CHROME: hidden on mobile app view ===== */
.desktop-nav,
.desktop-footer { display: none; }

/* ===== THEME TOGGLE BUTTON (shared) ===== */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-2);
    background: var(--glass-2);
    border: 1px solid var(--border);
    transition: color 0.2s, background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.theme-toggle-btn:hover { color: var(--accent); transform: rotate(15deg); }
.theme-toggle-btn .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle-btn .theme-icon-sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle-btn .theme-icon-moon { display: none; }

/* ===========================================================
   1. DESKTOP FOUNDATION
   =========================================================== */
@media (min-width: 1024px) {

    html { scroll-behavior: smooth; }

    html, body {
        overflow: auto !important;
        height: auto !important;
    }

    body {
        background: var(--bg-deep);
        font-size: 16px;
    }

    /* ----- App shell becomes a normal page ----- */
    .app-shell {
        position: static;
        inset: auto;
        max-width: none;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        display: flex;
        flex-direction: column;
        animation: none;
        box-shadow: none;
        background: var(--bg-deep);
    }

    /* ----- Hide mobile-only chrome ----- */
    .app-bar,
    .tab-bar,
    .side-nav,
    .side-nav-overlay,
    .hamburger-btn,
    .wa-fab,
    .in-app-footer,
    .app-loader,
    .custom-cursor,
    .custom-cursor-glow {
        display: none !important;
    }

    .app-content {
        overflow: visible;
        flex: 1 0 auto;
        padding-bottom: 0;
    }

    .toast-container { top: 88px; max-width: 480px; }

    /* ----- Containers ----- */
    .container,
    .hp-main .container,
    .trk-hero .container {
        max-width: 1240px !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    section { padding-top: 72px; padding-bottom: 72px; }
    section[style*="padding: 24px 0"] { padding-top: 56px !important; padding-bottom: 56px !important; }

    /* ----- Desktop type scale ----- */
    .section-title {
        font-size: 2.15rem !important;
        letter-spacing: -0.025em;
        margin-bottom: 10px !important;
    }
    .section-subtitle { font-size: 1.06rem !important; }
    .section-badge { font-size: 0.78rem !important; padding: 7px 16px !important; }

    /* ----- Editorial section headers on the homepage ----- */
    .hp-main .section-header {
        text-align: left !important;
        max-width: 680px;
        margin-bottom: 44px !important;
    }
    .hp-main .section-header .section-badge { margin-left: 0; }
    .hp-main .section-title { position: relative; padding-bottom: 16px; }
    .hp-main .section-title::after {
        content: '';
        position: absolute;
        left: 0; bottom: 0;
        width: 56px; height: 4px;
        border-radius: 4px;
        background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
    }

    /* ----- Card hover system ----- */
    .idx-svc-card, .idx-qa-card, .idx-feat-card, .idx-testi-card,
    .svc-price-card, .svc-detail-card, .abt-mv-card, .abt-val-card,
    .abt-stat-card, .ctc-info-card, .faq-section-card, .idx-about-card,
    .idx-modes-grid > div, .how-step-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        will-change: transform;
    }
    .idx-svc-card:hover, .idx-qa-card:hover, .idx-feat-card:hover,
    .idx-testi-card:hover, .abt-mv-card:hover, .abt-val-card:hover,
    .abt-stat-card:hover, .ctc-info-card:hover, .idx-about-card:hover,
    .idx-modes-grid > div:hover {
        transform: translateY(-5px);
        border-color: rgba(16, 185, 129, 0.35) !important;
        box-shadow: 0 18px 44px rgba(6, 78, 59, 0.14);
    }

    /* ----- Buttons & inputs scale up ----- */
    .btn { padding: 13px 26px !important; font-size: 0.98rem !important; }
    .btn-sm { padding: 11px 20px !important; font-size: 0.92rem !important; }
    .btn-lg { padding: 16px 34px !important; font-size: 1.02rem !important; }
    input:not([type="checkbox"]):not([type="radio"]), textarea, select {
        font-size: 1rem !important;
    }

    /* =====================================================
       2. DESKTOP NAVIGATION
       ===================================================== */
    .desktop-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 500;
        background: var(--bar-glass);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        backdrop-filter: blur(20px) saturate(160%);
        border-bottom: 1px solid var(--border);
    }
    .desktop-nav-inner {
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 40px;
        height: 74px;
        display: flex;
        align-items: center;
        gap: 36px;
    }
    .desktop-nav-brand { display: flex; align-items: center; flex-shrink: 0; }
    .desktop-nav-brand .brand-logo { height: 46px; width: auto; }
    .desktop-nav-links {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }
    .desktop-nav-link {
        position: relative;
        padding: 10px 18px;
        font-size: 0.97rem;
        font-weight: 600;
        color: var(--text-2);
        border-radius: 12px;
        transition: color 0.2s, background 0.2s;
        white-space: nowrap;
    }
    .desktop-nav-link:hover { color: var(--accent); background: var(--glass-1); }
    .desktop-nav-link.active { color: var(--accent); }
    .desktop-nav-link.active::after {
        content: '';
        position: absolute;
        left: 18px; right: 18px; bottom: 2px;
        height: 2.5px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
    }
    .desktop-nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
    .desktop-track-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--accent-2), var(--accent-deep2));
        color: #fff;
        font-weight: 700;
        font-size: 0.94rem;
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
        transition: transform 0.2s, box-shadow 0.2s;
        white-space: nowrap;
    }
    .desktop-track-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45); color: #fff; }

    /* =====================================================
       3. HOME — SPLIT HERO (content left / visual right)
       ===================================================== */
    .idx-hero {
        min-height: 620px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    .idx-hero > .container {
        display: grid !important;
        grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
        grid-template-areas: "content visual" "content dots";
        column-gap: 64px;
        align-items: center;
    }
    .idx-hero-content {
        grid-area: content;
        text-align: left !important;
        max-width: none !important;
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
    .idx-hero-badge {
        margin: 0 0 22px !important;
        font-size: 0.85rem !important;
        padding: 8px 18px !important;
    }
    .idx-hero-content h1 {
        font-size: clamp(2.6rem, 4.4vw, 3.5rem) !important;
        line-height: 1.08 !important;
        font-weight: 800 !important;
        margin-bottom: 20px !important;
        letter-spacing: -0.03em;
    }
    .idx-hero-content > p {
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
        max-width: 520px;
        margin-bottom: 28px !important;
    }
    .idx-hero-content form {
        gap: 10px !important;
        margin-top: 0 !important;
        max-width: 560px;
    }
    .idx-hero-content form input {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        border-radius: 16px !important;
        height: 56px;
    }
    .idx-hero-content form button {
        padding: 16px 26px !important;
        font-size: 1rem !important;
        border-radius: 16px !important;
        height: 56px;
    }
    .idx-hero-content > div:last-child {
        justify-content: flex-start !important;
        margin-top: 34px !important;
        gap: 22px !important;
    }
    .idx-stat-val { font-size: 1.9rem !important; }
    .idx-stat-divider { height: 44px !important; }

    /* Carousel as the right-hand visual */
    .hero-carousel {
        grid-area: visual;
        height: 480px !important;
        border-radius: 28px !important;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(6, 78, 59, 0.22);
    }
    .hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
    .hero-carousel-dots {
        grid-area: dots;
        justify-content: center;
        margin-top: 18px;
    }

    /* ----- Who We Are: story left / stats right ----- */
    .idx-about-split {
        flex-direction: row !important;
        align-items: stretch;
        gap: 24px !important;
    }
    .idx-about-card {
        flex: 1 1 58%;
        display: flex;
        flex-direction: column;
    }
    .idx-about-card img { height: 300px !important; object-fit: cover; }
    .idx-about-card > div { padding: 30px 32px !important; }
    .idx-about-card h3 { font-size: 1.35rem !important; margin-bottom: 12px !important; }
    .idx-about-card p { font-size: 0.98rem !important; line-height: 1.8 !important; }
    .idx-stats-grid {
        flex: 1 1 42%;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
        align-content: stretch;
    }
    .idx-stats-grid > div { padding: 26px 16px !important; display: flex; flex-direction: column; justify-content: center; }
    .idx-stats-grid > div > div:first-child { font-size: 2.1rem !important; }

    /* ----- Quick actions: 4 tall cards ----- */
    .idx-qa-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
    .idx-qa-card { padding: 30px 24px !important; }
    .idx-qa-icon {
        width: 58px !important;
        height: 58px !important;
        font-size: 1.55rem !important;
        margin-bottom: 18px !important;
    }
    .idx-qa-card h3 { font-size: 1.06rem !important; }
    .idx-qa-card p { font-size: 0.9rem !important; }

    /* ----- Services strip: 3 cols x 2 rows ----- */
    .idx-svc-strip {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        overflow: visible !important;
        gap: 20px !important;
    }
    .idx-svc-card { padding: 26px 24px !important; }
    .idx-svc-card h3 { font-size: 1.08rem !important; }
    .idx-svc-card p { font-size: 0.9rem !important; }
    .idx-svc-card > div:first-child { width: 54px !important; height: 54px !important; font-size: 1.4rem !important; }

    /* ----- Why Nexhaul: 4 horizontal-ish feature cards ----- */
    .idx-feat-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
    .idx-feat-card { padding: 28px 24px !important; }
    .idx-feat-card h3 { font-size: 1.05rem !important; }
    .idx-feat-card p { font-size: 0.88rem !important; }

    /* ----- Testimonials: 3 columns ----- */
    .idx-testi-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    .idx-testi-card { padding: 26px 26px !important; }
    .idx-testi-card p { font-size: 0.94rem !important; line-height: 1.75 !important; }

    /* ----- Partners: 6-up row ----- */
    .idx-modes-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 16px !important;
    }
    .idx-modes-grid > div { padding: 30px 10px !important; }
    .idx-modes-grid i { font-size: 1.9rem !important; }

    /* ----- Newsletter: split panel ----- */
    .idx-newsletter-box {
        display: grid !important;
        grid-template-columns: 1.15fr 1fr;
        align-items: center;
        gap: 48px !important;
        padding: 52px 56px !important;
        text-align: left !important;
    }
    .idx-newsletter-box h3 { font-size: 1.7rem !important; margin-bottom: 10px !important; }
    .idx-newsletter-box p { font-size: 0.98rem !important; }
    .idx-newsletter-form { max-width: none !important; }
    .idx-newsletter-form input { flex: 1; height: 52px; padding: 12px 18px !important; }
    .idx-newsletter-form button { height: 52px; padding: 12px 24px !important; font-size: 0.95rem !important; }

    /* ----- CTA banners ----- */
    .idx-cta { text-align: center; padding: 88px 40px !important; }
    .idx-cta h2, .abt-cta h2, .svc-cta h2, .ctc-cta h2, .faq-cta h2 {
        font-size: 2.3rem !important;
        letter-spacing: -0.02em;
    }
    .idx-cta-btn { display: inline-flex; padding: 16px 38px !important; font-size: 1.05rem !important; }

    /* =====================================================
       4. SUBPAGE HEROES — big screen presence
       ===================================================== */
    .abt-hero, .svc-hero, .ctc-hero, .faq-hero {
        min-height: 460px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    .abt-hero .container,
    .svc-hero .container,
    .ctc-hero .container,
    .faq-hero .container { max-width: 860px !important; text-align: center; }
    .abt-hero h1, .svc-hero h1, .ctc-hero h1, .faq-hero h1 {
        font-size: clamp(2.4rem, 3.8vw, 3.1rem) !important;
        letter-spacing: -0.03em;
        line-height: 1.12 !important;
    }
    .abt-hero p, .svc-hero p, .ctc-hero p, .faq-hero p { font-size: 1.08rem !important; }
    .trk-hero-badge, .idx-hero-badge, .abt-hero-badge, .svc-hero-badge, .ctc-hero-badge, .faq-hero-badge {
        margin-left: auto; margin-right: auto;
    }

    /* Tracking hero — search-first, generously scaled */
    .trk-hero { min-height: 540px; background-size: cover !important; }
    .trk-hero .container { padding-top: 28px; }
    .trk-search-wrap { max-width: 820px !important; margin-left: auto; margin-right: auto; width: 100%; }
    .trk-hero-desc { max-width: 680px; font-size: 1.05rem !important; }
    .trk-search-box { padding: 10px !important; }
    .trk-search-box input { padding: 18px 24px !important; font-size: 1.08rem !important; }
    .trk-search-btn { padding: 18px 38px !important; font-size: 1.06rem !important; }

    /* =====================================================
       5. ABOUT
       ===================================================== */
    .abt-story-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        gap: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .abt-story-img { flex: 0 0 46%; margin-bottom: 0 !important; border-radius: 0 !important; }
    .abt-story-img img { height: 100% !important; object-fit: cover; }
    .abt-story-content { flex: 1; padding: 52px 56px !important; }
    .abt-story-content h2 { font-size: 2rem !important; line-height: 1.25 !important; margin-bottom: 18px !important; }
    .abt-story-content p { font-size: 1rem !important; line-height: 1.85 !important; }

    /* Mission / Vision: horizontal icon-left cards */
    .abt-mv-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
    .abt-mv-card {
        display: grid !important;
        grid-template-columns: 76px 1fr;
        column-gap: 26px;
        align-items: start;
        padding: 36px 34px !important;
    }
    .abt-mv-card .abt-mv-icon {
        grid-row: 1 / span 2;
        grid-column: 1;
        width: 76px !important;
        height: 76px !important;
        font-size: 1.8rem !important;
        margin: 0 !important;
    }
    .abt-mv-card h3 { grid-column: 2; font-size: 1.3rem !important; padding-top: 8px; }
    .abt-mv-card p { grid-column: 2; font-size: 0.98rem !important; line-height: 1.8 !important; margin-top: 10px !important; }

    /* Stats band */
    .abt-stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px !important;
    }
    .abt-stat-card { padding: 38px 20px !important; }
    .abt-stat-number { font-size: 2.6rem !important; }
    .abt-stat-label { font-size: 0.95rem !important; }

    /* Values: horizontal cards, 3-up */
    .abt-values-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 22px !important; }
    .abt-val-card {
        display: grid !important;
        grid-template-columns: 64px 1fr;
        column-gap: 22px;
        align-items: start;
        padding: 30px 28px !important;
    }
    .abt-val-card .abt-val-icon {
        grid-row: 1 / span 2;
        grid-column: 1;
        width: 64px !important;
        height: 64px !important;
        font-size: 1.5rem !important;
        margin: 0 !important;
    }
    .abt-val-card h3 { grid-column: 2; font-size: 1.15rem !important; padding-top: 4px; }
    .abt-val-card p { grid-column: 2; font-size: 0.92rem !important; line-height: 1.75 !important; margin-top: 8px !important; }

    .abt-mv-section .container,
    .abt-values-section .container,
    .abt-cta .container { max-width: 1240px; }
    .abt-cta { text-align: center; }
    .abt-cta-btn { display: inline-flex; padding: 15px 36px !important; font-size: 1.02rem !important; }

    /* =====================================================
       6. SERVICES — zigzag detail cards + pricing
       ===================================================== */
    .svc-detail-card {
        max-width: none !important;
        border-left-width: 5px !important;
    }
    .svc-detail-card .card-body {
        display: grid !important;
        grid-template-columns: 104px 1fr;
        column-gap: 30px;
        row-gap: 6px;
        align-items: start;
        padding: 38px 42px !important;
    }
    .svc-detail-card .card-body > * { grid-column: 2; }
    .svc-detail-card .svc-detail-icon {
        grid-column: 1;
        grid-row: 1 / 6;
        width: 104px !important;
        height: 104px !important;
        font-size: 2.5rem !important;
        margin: 0 !important;
    }
    .svc-detail-card h2 { font-size: 1.65rem !important; margin-bottom: 10px !important; letter-spacing: -0.02em; }
    .svc-detail-card .card-body > p { font-size: 1rem !important; line-height: 1.8 !important; max-width: 820px; }
    .svc-detail-card .svc-highlight { font-size: 0.85rem !important; padding: 8px 14px !important; }
    .svc-detail-card .card-body .btn {
        justify-self: start !important;
        width: auto !important;
        margin-top: 10px;
    }
    /* Zigzag: even cards mirror the layout */
    .svc-detail-card:nth-child(even) .card-body {
        grid-template-columns: 1fr 104px;
    }
    .svc-detail-card:nth-child(even) .card-body > * { grid-column: 1; }
    .svc-detail-card:nth-child(even) .svc-detail-icon { grid-column: 2; }

    .svc-pricing-section .container,
    .svc-cta .container { max-width: 1240px; }
    .svc-price-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
        max-width: none !important;
        align-items: stretch;
    }
    .svc-price-card {
        height: 100%;
        padding: 36px 32px !important;
        display: flex;
        flex-direction: column;
    }
    .svc-price-card h3 { font-size: 1.35rem !important; }
    .svc-price-card .price { font-size: 2.3rem !important; }
    .svc-price-card .price-desc { font-size: 0.95rem !important; }
    .svc-price-card .btn { margin-top: auto; }
    .svc-price-card.popular {
        transform: scale(1.035);
        border-color: rgba(16, 185, 129, 0.55) !important;
        box-shadow: 0 24px 60px rgba(6, 78, 59, 0.18);
        z-index: 2;
    }
    .svc-price-card.popular:hover { transform: scale(1.035) translateY(-5px); }
    .svc-cta { text-align: center; }
    .svc-cta-btn { display: inline-flex; padding: 15px 36px !important; font-size: 1.02rem !important; }

    /* =====================================================
       7. CONTACT — sticky info rail + roomy form
       ===================================================== */
    .ctc-main-grid {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 44px !important;
    }
    .ctc-main-grid > .ctc-info-stack {
        flex: 0 0 400px;
        position: sticky;
        top: 104px;
    }
    .ctc-main-grid > .ctc-form-wrap { flex: 1; }
    .ctc-info-stack { gap: 16px !important; }
    .ctc-info-card { padding: 22px 24px !important; }
    .ctc-info-card .ctc-info-icon { width: 52px !important; height: 52px !important; font-size: 1.35rem !important; }
    .ctc-form-wrap { padding: 44px 46px !important; }
    .ctc-form-wrap h2 { font-size: 1.75rem !important; margin-bottom: 26px !important; }
    .ctc-form-wrap input,
    .ctc-form-wrap textarea { padding: 15px 18px !important; }
    .ctc-submit-btn { padding: 16px 30px !important; font-size: 1.02rem !important; }
    .contact-grid,
    .ctc-form-wrap { scroll-margin-top: 110px; }
    .ctc-map-container iframe, .ctc-map-container { min-height: 480px; }
    .ctc-office-section .container { max-width: 980px; }
    .ctc-office-card { padding: 30px 36px !important; align-items: center; }
    .ctc-cta { text-align: center; }
    .ctc-cta-btn { display: inline-flex; padding: 15px 36px !important; font-size: 1.02rem !important; }

    /* =====================================================
       8. FAQ
       ===================================================== */
    .faq-section-card { max-width: 940px; margin-left: auto; margin-right: auto; }
    .faq-item { margin-bottom: 10px; }
    .faq-question { padding: 22px 26px !important; font-size: 1.05rem !important; }
    .faq-answer { padding: 0 26px 22px !important; font-size: 0.98rem !important; line-height: 1.8 !important; }
    .faq-help-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
    .faq-help-card { padding: 30px 28px !important; }
    .faq-help-section .container,
    .faq-cta .container { max-width: 1240px; }
    .faq-cta { text-align: center; }
    .faq-cta-btn { display: inline-flex; padding: 15px 36px !important; font-size: 1.02rem !important; }

    /* =====================================================
       9. TRACK — results as a desktop dashboard
       ===================================================== */
    .trk-how-grid { max-width: 1180px !important; gap: 44px !important; }
    .how-steps-container {
        flex-direction: row !important;
        max-width: 1180px;
        margin: 0 auto;
        gap: 28px !important;
    }
    .how-steps-container .how-step-card { flex: 1; padding: 34px 30px !important; }
    .how-step-card h3 { font-size: 1.15rem !important; }
    .how-step-card p { font-size: 0.94rem !important; line-height: 1.75 !important; }
    .trk-demo-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 22px !important; }
    .trk-result-wrap { max-width: 1080px !important; }
    .trk-status-panel { padding: 38px 42px !important; }
    .trk-meta-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 22px !important;
    }
    .trk-meta-item { width: auto !important; }
    .trk-info-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 18px !important; }
    .trk-sender-receiver-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }

    /* =====================================================
       10. DESKTOP FOOTER
       ===================================================== */
    .desktop-footer {
        display: block;
        flex-shrink: 0;
        background: var(--bg-alt);
        border-top: 1px solid var(--border);
        position: relative;
    }
    .desktop-footer::before {
        content: '';
        position: absolute;
        top: -1px; left: 0; right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-2), var(--accent-3) 40%, transparent 80%);
        opacity: 0.7;
    }
    .desktop-footer-inner {
        max-width: 1320px;
        margin: 0 auto;
        padding: 64px 40px 30px;
    }
    .desktop-footer-grid {
        display: grid;
        grid-template-columns: 2.2fr 1fr 1fr 1fr;
        gap: 52px;
    }
    .desktop-footer-logo { display: inline-flex; margin-bottom: 18px; }
    .desktop-footer-logo .brand-logo { height: 48px; width: auto; }
    .desktop-footer-desc {
        color: var(--text-3);
        font-size: 0.94rem;
        line-height: 1.8;
        max-width: 400px;
        margin-bottom: 22px;
    }
    .desktop-footer-social { display: flex; gap: 10px; }
    .desktop-footer-social a {
        width: 42px; height: 42px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--glass-2);
        border: 1px solid var(--border);
        color: var(--text-2);
        font-size: 1.08rem;
        transition: all 0.2s;
    }
    .desktop-footer-social a:hover {
        background: var(--accent-2);
        color: #fff;
        border-color: var(--accent-2);
        transform: translateY(-3px);
    }
    .desktop-footer-col h4 {
        font-size: 0.84rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        color: var(--text);
        margin-bottom: 20px;
    }
    .desktop-footer-col a {
        display: block;
        color: var(--text-3);
        font-size: 0.94rem;
        padding: 7px 0;
        transition: color 0.2s, padding-left 0.2s;
    }
    .desktop-footer-col a:hover { color: var(--accent); padding-left: 5px; }
    .desktop-footer-bottom {
        margin-top: 48px;
        padding-top: 24px;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .desktop-footer-bottom p { color: var(--text-3); font-size: 0.87rem; }

    /* ----- Misc desktop polish ----- */
    .card { max-width: none; }
    .features-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 22px !important; }
    .stats-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 18px !important; }
    .contact-grid { flex-direction: row !important; gap: 44px !important; }
    .contact-grid > * { flex: 1; min-width: 0; }
    .idx-cta-btn, .abt-cta-btn, .svc-cta-btn, .ctc-cta-btn, .faq-cta-btn,
    .cta-section .btn-primary {
        width: auto !important;
        min-width: 240px;
        justify-content: center;
    }
}

/* ===== Ultra-wide polish ===== */
@media (min-width: 1500px) {
    .container, .hp-main .container, .trk-hero .container { max-width: 1360px !important; }
    .hero-carousel { height: 520px !important; }
    .idx-hero-content h1 { font-size: 3.7rem !important; }
}

/* ===== Safety: never show desktop chrome on mobile app view ===== */
@media (max-width: 1023.98px) {
    .desktop-nav, .desktop-footer { display: none !important; }
}

