/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Header */
    .nav {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .header-download {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        margin-top: 2rem;
    }
    
    /* How It Works */
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .preview-phone {
        width: 200px;
        height: 400px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    /* App Mockups */
    .mockups-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mockup-phone {
        width: 220px;
        height: 440px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .nav {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .primary-btn, .secondary-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .step-card,
    .feature-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon svg {
        width: 25px;
        height: 25px;
    }
    
    /* Mockups */
    .mockup-phone {
        width: 180px;
        height: 360px;
    }
    
    .preview-phone {
        width: 160px;
        height: 320px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat-box {
        padding: 0.8rem;
    }
    
    /* CTA */
    .cta {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Floating elements */
    .floating-elements {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .phone-mockup {
        width: 160px;
        height: 320px;
    }
    
    .mockup-phone {
        width: 140px;
        height: 280px;
    }
    
    .preview-phone {
        width: 120px;
        height: 240px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .phone-mockup,
    .mockup-phone,
    .preview-phone {
        border-radius: 30px;
    }
    
    .step-card,
    .feature-card,
    .testimonial-card {
        border-radius: 20px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-grey: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --dark-grey: #000000;
    }
    
    body {
        background-color: var(--white);
        color: var(--text-dark);
    }
    
    .header,
    .step-card,
    .feature-card,
    .testimonial-card,
    .phone-screen,
    .mockup-screen,
    .preview-screen {
        background: var(--light-grey);
    }
}

/* Print Styles */
@media print {
    .header,
    .floating-elements,
    .nav-toggle,
    .download-btn,
    .cta-btn {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .phone-mockup {
        display: none;
    }
    
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .step-card,
    .feature-card,
    .testimonial-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .primary-btn:focus,
    .secondary-btn:focus,
    .download-btn:focus,
    .cta-btn:focus {
        outline: 2px solid var(--primary-red);
        outline-offset: 2px;
    }
}

/* Hover Effects for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .step-card:hover,
    .feature-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .primary-btn:hover,
    .secondary-btn:hover,
    .download-btn:hover,
    .cta-btn:hover {
        transform: none;
    }
} 