/* ========================================= */
/* MOBILE RESPONSIVE FRAMEWORK */
/* ========================================= */

/* Desktop Only Elements */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1d1d1f;
    z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1d1d1f;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-menu-links a {
    padding: 18px 24px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.mobile-menu-links a:hover {
    background: #f9fafb;
    color: #667eea;
}

.mobile-menu-links .mobile-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    text-align: center;
    padding: 16px 24px;
    border-radius: 12px;
    margin: 20px;
    border: none;
    font-weight: 600;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.mobile-menu-backdrop.active {
    display: block;
}

/* ========================================= */
/* MOBILE BREAKPOINT: 768px */
/* ========================================= */
@media (max-width: 768px) {
    
    /* Show/Hide Elements */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }

    /* Navigation */
    nav {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
    }

    .nav-content {
        padding: 0 20px !important;
        height: 60px !important;
    }

    .logo img {
        height: 50px !important;
    }

    /* Typography */
    h1 {
        font-size: 36px !important;
        line-height: 1.2 !important;
        letter-spacing: -1px !important;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p, li {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Hero Sections */
    .hero,
    section.hero {
        padding: 80px 20px 50px !important;
        min-height: auto !important;
    }

    .hero-content {
        padding: 0 !important;
    }

    .hero-subtitle {
        font-size: 18px !important;
    }

    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero-cta a,
    .hero-cta .btn,
    .hero-cta button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Sections */
    section,
    .section {
        padding: 50px 20px !important;
    }

    .section-header {
        padding: 0 !important;
        margin-bottom: 40px !important;
    }

    /* Grids - ALL to 1 column */
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: 1fr 1fr"],
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Stats keep 2 columns */
    .mockup-stats,
    [class*="stats"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Cards */
    .feature-card,
    .pricing-card,
    .card {
        margin: 0 !important;
        padding: 24px !important;
    }

    .pricing-card.featured {
        transform: scale(1) !important;
        margin: 0 !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Mockups - Remove fixed positioning */
    .dashboard-mockup,
    .macbook-mockup,
    .iphone-mockup,
    .device-mockup {
        position: relative !important;
        transform: none !important;
        margin: 20px 0 !important;
    }

    /* Remove complex positioning */
    [style*="position: absolute"],
    [style*="position: fixed"] {
        position: relative !important;
    }

    /* Keep nav fixed */
    nav,
    nav[style*="position"] {
        position: fixed !important;
    }

    /* Keep mobile menu fixed */
    .mobile-menu,
    .mobile-menu-backdrop {
        position: fixed !important;
    }

    /* Buttons */
    .btn,
    .btn-primary,
    .btn-secondary,
    button {
        padding: 14px 24px !important;
        font-size: 16px !important;
    }

    /* Tables */
    table {
        font-size: 14px !important;
    }

    /* Forms */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    .form-group {
        margin-bottom: 16px !important;
    }

    /* Footer */
    footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Comparison Images */
    [style*="gap: 40px"] {
        gap: 20px !important;
    }

    /* Padding/Margin resets */
    [style*="padding: 40px"],
    [style*="padding: 50px"] {
        padding: 20px !important;
    }

    /* Max widths */
    [style*="max-width"] {
        max-width: 100% !important;
    }

    /* Overflow fixes */
    body {
        overflow-x: hidden !important;
    }

    /* Hide complex animations on mobile */
    .parallax-bg,
    .floating {
        display: none !important;
    }
}

/* ========================================= */
/* TABLET BREAKPOINT: 969px - 1200px */
/* ========================================= */
@media (min-width: 769px) and (max-width: 1200px) {
    
    .nav-content {
        padding: 0 30px !important;
    }

    h1 {
        font-size: 56px !important;
    }

    h2 {
        font-size: 40px !important;
    }

    /* 2 columns for grids */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    section,
    .section {
        padding: 70px 30px !important;
    }
}
