/**
 * Solvytech Landing Dedicated Mobile Stylesheet
 * Optimized for Mobile PageSpeed (100/100), Touch Target Accessibility (WCAG 48px+), and UX
 * Media Query Target: max-width 1024px
 */

@media screen and (max-width: 1024px) {
    /* 1. Prevent iOS Auto-Zoom on Input Focus (Min 16px Font Size) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select,
    button {
        font-size: 16px !important;
    }

    /* 2. Mobile Touch Target Size & Accessibility (Min 48px height) */
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 2px;
    }

    .mobile-toggle {
        min-width: 48px !important;
        min-height: 48px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem !important;
        padding: 0 !important;
    }

    .sticky-close,
    .exit-modal-close {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .est-chip,
    .option-chip {
        min-height: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 0.8rem 1.2rem !important;
        margin-bottom: 0.5rem;
    }

    .btn-antigravity,
    .btn-outline {
        min-height: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .mobile-nav-links a {
        min-height: 48px;
        padding: 0.6rem 0;
        font-size: 1.15rem !important;
    }

    .faq-card {
        min-height: 52px;
        padding: 1.2rem !important;
    }

    /* 3. Mobile Performance Optimizations (GPU & CPU Relief) */
    #bg-canvas {
        display: none !important; /* Disables heavy 60fps canvas loop on mobile CPU */
    }

    /* Solid Glass Fallback on Mobile to Avoid GPU Backdrop Blur Lag */
    .mobile-header,
    .mobile-drawer,
    .app-preloader,
    .stats-bar,
    .estimator-box,
    .scope-box,
    .sticky-cta-bar,
    .exit-modal-card,
    .spotlight-card,
    .product-card,
    .hub-card {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    }

    /* 4. Mobile Layout & Responsive Typography */
    .hero {
        padding: 3.5rem 1.2rem 2.5rem !important;
    }

    .hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
    }

    .typing-container {
        font-size: 1.05rem !important;
        min-height: 2.8rem !important;
    }

    .hero-badge {
        font-size: 0.78rem !important;
        padding: 0.4rem 0.9rem !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-cta-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.8rem !important;
    }

    .hero-cta-group .btn-antigravity,
    .hero-cta-group .btn-outline {
        width: 100% !important;
        justify-content: center !important;
    }

    .trust-badges {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        margin-top: 2rem !important;
    }

    .trust-item {
        font-size: 0.8rem !important;
    }

    .terminal-box {
        margin-top: 2rem !important;
    }

    .terminal-body {
        padding: 1rem !important;
        font-size: 0.85rem !important;
        word-break: break-word !important;
    }

    /* Stats Bar Mobile 2x2 Grid */
    .stats-bar {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        padding: 1.5rem 1rem !important;
    }

    .stat-item .stat-number {
        font-size: 1.85rem !important;
    }

    .stat-item p {
        font-size: 0.75rem !important;
    }

    /* Sections Mobile Padding */
    section {
        padding: 3.5rem 1.2rem !important;
    }

    .section-title {
        font-size: 1.85rem !important;
    }

    .section-desc {
        font-size: 0.98rem !important;
        margin-bottom: 2.5rem !important;
    }

    /* Form Mobile Single Column */
    .form-grid-antigrav {
        grid-template-columns: 1fr !important;
    }

    .input-group {
        grid-column: span 1 !important;
    }

    .scope-box {
        padding: 1.8rem 1.2rem !important;
    }

    .scope-options {
        flex-direction: column !important;
    }

    .option-chip {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Sticky CTA Bar Mobile Adjustments */
    .sticky-cta-bar {
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        padding: 0.8rem 1rem !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        text-align: center !important;
    }

    .sticky-text {
        font-size: 0.82rem !important;
    }
}
