/* ========================================
   Responsive Design - Mobile First
   ======================================== */

/* Base styles are mobile-first (defined in main.css) */

/* ========================================
   Mobile Adjustments (under 768px)
   ======================================== */

@media (max-width: 767px) {
    :root {
        --spacing-3xl: 4rem;  /* Reduce spacing on mobile */
    }

    .app-icon {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: var(--font-size-xl);
    }

    .hero-description {
        font-size: var(--font-size-sm);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .features-grid,
    .instructions-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ========================================
   Small Mobile (under 375px)
   ======================================== */

@media (max-width: 374px) {
    .app-icon {
        width: 160px;
        height: 160px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .btn {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

/* ========================================
   Tablet (768px and up)
   ======================================== */

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    /* Hero Section */
    .app-icon {
        width: 350px;
        height: 350px;
    }

    .hero-title {
        font-size: 4rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Instructions Grid */
    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Screenshots Grid */
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Desktop (1024px and up)
   ======================================== */

@media (min-width: 1024px) {
    :root {
        --container-padding: 3rem;
    }

    /* Hero Section */
    .app-icon {
        width: 400px;
        height: 400px;
    }

    .hero-title {
        font-size: 5rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Instructions Grid */
    .instructions-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Screenshots Grid */
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Large Desktop (1440px and up)
   ======================================== */

@media (min-width: 1440px) {
    :root {
        --font-size-5xl: 5rem;  /* Larger hero title on big screens */
    }
}

/* ========================================
   Reduced Motion Preferences (Accessibility)
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in-element {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .hero-section,
    section {
        page-break-inside: avoid;
    }

    .cta-buttons {
        display: none;
    }
}
