/* ============================================
   SCRABL MOBILE RESPONSIVE — MASTER OVERRIDES
   Add this at the END of style.css
   ============================================ */

/* ===== 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;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 1000;
        padding: 40px;
    }
    .nav-links.mobile-open {
        display: flex !important;
    }
    .nav-links a { font-size: 1.3rem; }

    /* Flatten dropdown into regular links on mobile */
    .nav-links .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .nav-links .dropdown-btn { display: none; }
    .nav-links .dropdown-content {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-links .dropdown-content a {
        font-size: 1.3rem;
        color: var(--text);
    }

    .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; }
}