/* ============================================
   SCRABL MOBILE RESPONSIVE — MASTER OVERRIDES
   Add this at the END of style.css
   ============================================ */

/* Force all form elements to inherit page font */
input, select, textarea, button {
    font-family: 'Poppins', sans-serif;
}

/* ===== MOBILE NAV OVERLAY — Premium Fullscreen ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}
.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}
.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.mobile-nav-close:hover { opacity: 1; }
.mobile-nav-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 10% 40px;
    gap: 0;
}
.mobile-nav-link {
    display: flex;
    flex-direction: column;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.mobile-nav-link:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-link:hover { opacity: 0.7; }
.mobile-nav-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #f5f5f5;
    letter-spacing: -0.02em;
}
.mobile-nav-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
    letter-spacing: 0.03em;
}
.mobile-nav-cta {
    margin-top: 40px;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== TABLET — 1024px ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .offset-title { font-size: 3.5rem; }
    .use-cases-title { font-size: 3rem; }
    .testimonials-title { font-size: 3rem; }
    .faq-title { font-size: 3rem; }
    .pricing-title { font-size: 3rem; }
    .cta-title { font-size: 2.8rem; }
}

/* ===== MOBILE — 768px ===== */
@media (max-width: 768px) {

    /* --- NAV --- */
    .hamburger { display: flex; }
    .nav-links { display: none !important; }

    .nav-container {
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }
    .nav-auth .login-link { display: none; }
    .nav-auth .signup-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    /* --- HERO --- */
    .hero {
        padding: 120px 6% 60px;
    }
    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: -0.02em;
    }
    .hero h1 br { display: none; }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }
    .hero p br { display: none; }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .hero-actions .cta-massive,
    .hero-actions .cta-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* --- MAC WINDOW --- */
    .hero-visual { margin-top: 20px; }
    .mac-window { width: 100%; }
    .mac-grid { grid-template-columns: 1fr; }
    .mac-card.full { grid-column: span 1; }
    .scrabl-title { font-size: 1.3rem; }

    /* --- FEATURES (OFFSET SECTION) --- */
    .offset-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 80px auto;
        padding: 0 5%;
    }
    .offset-title {
        font-size: 2.4rem;
        line-height: 1.05;
    }
    .offset-title br { display: none; }
    .offset-description { font-size: 1rem; }
    .industrial-grid {
        grid-template-columns: 1fr;
    }
    .feature-item {
        border-left: none;
        padding: 30px 0;
    }

    /* --- USE CASES --- */
    .use-cases-section { padding: 80px 5%; }
    .use-cases-header { margin-bottom: 40px; }
    .use-cases-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    .use-cases-title br { display: none; }
    .use-cases-description { font-size: 1rem; }
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .case-card { padding: 32px 24px; }

    /* --- TESTIMONIALS --- */
    .testimonials-section { padding: 80px 5%; }
    .testimonials-header { margin-bottom: 40px; }
    .testimonials-title {
        font-size: 2.2rem;
    }
    .testimonials-title br { display: none; }
    .testimonials-description { font-size: 1rem; }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
    .testi-card { padding: 28px 24px; }
    .metrics-row {
        flex-direction: column;
        gap: 24px;
    }

    /* --- FAQ --- */
    .faq-section { padding: 80px 5%; }
    .faq-header { margin-bottom: 40px; }
    .faq-title {
        font-size: 2.2rem;
    }
    .faq-title br { display: none; }
    .faq-description { font-size: 1rem; }
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* --- PRICING --- */
    .pricing-section { padding: 80px 5%; }
    .pricing-title {
        font-size: 2.2rem;
    }
    .pricing-title br { display: none; }
    .pricing-description { font-size: 1rem; }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* --- FEEDBACK FORM --- */
    .feedback-area { padding: 80px 5%; }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* --- FINAL CTA --- */
    .final-cta { padding: 60px 5%; }
    .cta-container { padding: 50px 24px; border-radius: 24px; }
    .cta-title { font-size: 1.8rem; letter-spacing: -1px; }
    .cta-description { font-size: 0.95rem; }
    .cta-button-group {
        flex-direction: column;
        width: 100%;
    }
    .cta-btn-primary, .cta-btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* --- FOOTER --- */
    .main-footer { padding: 60px 5% 30px; }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* --- WAITLIST PAGE --- */
    .waitlist-container {
        width: 95%;
        padding: 50px 20px;
    }
    .waitlist-container .modal-title {
        font-size: 2.4rem !important;
    }
    .waitlist-container p br { display: none; }
    #waitlist-name,
    #waitlist-email,
    #waitlist-code {
        padding: 16px;
        font-size: 0.95rem;
    }
    .waitlist-loader-panel {
        padding: 24px 20px;
    }
    .waitlist-loading-title { font-size: 1.2rem; }
}

/* ===== SMALL PHONES — 480px ===== */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .offset-title { font-size: 2rem; }
    .use-cases-title { font-size: 1.8rem; }
    .testimonials-title { font-size: 1.8rem; }
    .faq-title { font-size: 1.8rem; }
    .pricing-title { font-size: 1.8rem; }
    .cta-title { font-size: 1.5rem; }

    .hero { padding: 100px 5% 50px; }
    .cta-massive { padding: 16px 28px; font-size: 0.95rem; }
    .cta-secondary { padding: 14px 28px; font-size: 0.95rem; }
    .case-card { padding: 24px 20px; }
    .case-card h3 { font-size: 1.2rem; }
    .testi-card { padding: 24px 20px; }

    /* Waitlist */
    .waitlist-container { padding: 40px 16px; }
    .waitlist-container .modal-title { font-size: 2rem !important; }

    /* Footer */
    .footer-links-grid { grid-template-columns: 1fr; }
}