/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .demo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .demo-title {
        font-size: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header-container {
        height: 60px;
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
    }

    .nav-list.show {
        display: flex;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-image-placeholder {
        height: 250px;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .demo-content {
        padding: 0 1rem;
    }

    .video-placeholder {
        height: 200px;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .screenshot-item {
        margin: 0;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-disclaimer {
        flex: none;
    }

    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-actions .btn {
        flex: 1;
        max-width: 150px;
    }

    /* Accessibility Modal */
    .accessibility-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .accessibility-header {
        padding: 1rem;
    }

    .accessibility-body {
        padding: 1rem;
    }

    .accessibility-footer {
        padding: 1rem;
        flex-direction: column;
    }

    .accessibility-footer .btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .demo-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .features-grid {
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-container {
        gap: 6rem;
    }

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

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

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50px 50px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        color: #e0e0e0;
    }

    .language-toggle,
    .accessibility-btn {
        color: #ccc;
    }

    .language-toggle:hover,
    .accessibility-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .features {
        background-color: #2a2a2a;
    }

    .feature-card {
        background: #333;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .feature-title {
        color: #e0e0e0;
    }

    .feature-description {
        color: #ccc;
    }

    .demo-section {
        background: #1a1a1a;
    }

    .demo-title,
    .section-title {
        color: #e0e0e0;
    }

    .section-subtitle,
    .demo-description {
        color: #ccc;
    }

    .screenshots {
        background-color: #2a2a2a;
    }

    .screenshot-item {
        background: #333;
    }

    .footer {
        background-color: #0a0a0a;
    }

    .cookie-consent {
        background: #333;
        border-top-color: #555;
    }

    .accessibility-content {
        background: #333;
    }

    .accessibility-header {
        border-bottom-color: #555;
    }

    .accessibility-title {
        color: #e0e0e0;
    }

    .accessibility-section h3 {
        color: #e0e0e0;
    }

    .accessibility-footer {
        border-top-color: #555;
    }
}

/* Orientation changes */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 60px 0 40px;
    }

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

    .header-container {
        height: 50px;
    }

    .logo-text {
        font-size: 1.125rem;
    }
}

/* Focus visible for better accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .language-toggle:focus-visible,
    .accessibility-btn:focus-visible {
        outline: 2px solid #007AFF;
        outline-offset: 2px;
        animation: pulse 0.3s ease-in-out;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Print optimizations */
@media print {
    .hero {
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hero-image-placeholder {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .feature-icon {
        background: #007AFF !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
