/* ===== RESPONSIVE STYLES ===== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    
    /* General */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Header */
    .header {
        padding: var(--spacing-xs) 0;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    /* Coming Soon */
    .coming-soon-text {
        font-size: 1rem;
    }
    
    /* Form */
    .form-group {
        flex-direction: column;
        max-width: 100%;
    }
    
    .form-input {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-links {
        align-items: center;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    .value-proposition,
    .coming-soon {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        padding-top: var(--spacing-xl);
    }
    
    /* Cards */
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    /* Social icons */
    .social-icons {
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xxl);
    }
    
    .feature-card {
        padding: var(--spacing-xxl);
    }
}

/* Very large screens (1400px and above) */
@media (min-width: 1400px) {
    
    .container {
        max-width: 1400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive for screen height */
@media (max-height: 700px) {
    
    .hero {
        min-height: auto;
        padding: var(--spacing-xxl) 0;
    }
    
    .hero-content {
        padding-top: var(--spacing-lg);
    }
}

/* User preferences */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark theme (system preference support) */
@media (prefers-color-scheme: dark) {
    
    :root:not([data-theme]) {
        --white: #1f2937;
        --light-bg: #111827;
        --dark-text: #f9fafb;
        --gray-text: #d1d5db;
        --silver: #374151;
        --light-gray: #374151;
        
        /* Dark theme shadows */
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    }
    
    :root:not([data-theme]) .header {
        background: rgba(31, 41, 55, 0.95);
    }
    
    :root:not([data-theme]) .hero-background {
        opacity: 0.8;
    }
    
    :root:not([data-theme]) .hero-background::after {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(16, 185, 129, 0.7) 100%);
    }
    
    :root:not([data-theme]) .feature-card {
        background: #374151;
        border-color: #4b5563;
    }
    
    :root:not([data-theme]) .form-input {
        background: #374151;
        border-color: #4b5563;
        color: var(--dark-text);
    }
    
    :root:not([data-theme]) .form-input::placeholder {
        color: var(--gray-text);
    }
    
    :root:not([data-theme]) .social-link {
        background: #374151;
        border: 1px solid #4b5563;
    }
    
    /* Theme toggle icon states for system dark mode */
    :root:not([data-theme]) .theme-toggle .sun-icon {
        opacity: 0;
        transform: rotate(-90deg) scale(0.5);
    }

    :root:not([data-theme]) .theme-toggle .moon-icon {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* High pixel density */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: none;
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* Printers */
@media print {
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .hero-buttons,
    .waitlist-form,
    .social-links {
        display: none;
    }
    
    .hero {
        min-height: auto;
        background: white;
    }
    
    .hero-background {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 18pt;
        color: black;
    }
    
    .hero-title {
        font-size: 24pt;
        color: black;
    }
}