/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .tab-feature-title {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .nav-container,
    .hero-container,
    .features-container,
    .modes-container,
    .download-container,
    .documentation-container,
    .faq-container,
    .footer-container {
        padding: 0 1.5rem;
    }
}

/* Tablet */
@media (max-width: 968px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        transition: left 0.3s ease;
        padding: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .tab-feature-title {
        font-size: 2.5rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Modes Grid */
    .modes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Download Options */
    .download-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Documentation Grid */
    .documentation-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Base */
    .nav-container,
    .hero-container,
    .features-container,
    .modes-container,
    .download-container,
    .documentation-container,
    .faq-container,
    .footer-container {
        padding: 0 1rem;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .tab-feature-title {
        font-size: 2rem;
    }
    
    .tab-feature-subtitle {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 250px;
    }
    
    /* Hero Demo */
    .demo-window {
        max-width: 100%;
    }
    
    .demo-content {
        padding: 1rem;
        font-size: 12px;
    }
    
    .code-line {
        flex-wrap: wrap;
    }
    
    .line-number {
        min-width: 15px;
        margin-right: 0.5rem;
    }
    
    /* Trust Section */
    .trust-logos {
        gap: 1rem;
    }
    
    .trust-logo {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Cards */
    .feature-card,
    .mode-card,
    .download-card,
    .doc-card {
        padding: 1.5rem;
    }
    
    .feature-icon,
    .mode-icon,
    .download-icon,
    .doc-icon {
        font-size: 2rem;
    }
    
    .feature-title,
    .mode-title,
    .download-title,
    .doc-title {
        font-size: 1.2rem;
    }
    
    /* Grids */
    .features-grid,
    .modes-grid,
    .documentation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Tab Feature */
    .tab-feature-demo {
        height: 200px;
    }
    
    .gradient-bg {
        height: 150px;
    }
    
    /* FAQ */
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 1rem;
    }
    
    .faq-toggle {
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.6rem;
    }
    
    .tab-feature-title {
        font-size: 1.8rem;
    }
    
    /* Cards */
    .feature-card,
    .mode-card,
    .download-card,
    .doc-card {
        padding: 1rem;
    }
    
    /* Demo Window */
    .demo-header {
        padding: 0.75rem;
    }
    
    .demo-content {
        padding: 0.75rem;
        font-size: 11px;
    }
    
    .demo-control {
        width: 10px;
        height: 10px;
    }
    
    /* Trust Logos */
    .trust-logos {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Mode Features */
    .mode-features {
        justify-content: center;
    }
    
    .mode-feature {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Sections Padding */
    .hero,
    .features,
    .modes,
    .download,
    .documentation,
    .faq {
        padding: 4rem 0;
    }
    
    .trust,
    .tab-feature {
        padding: 3rem 0;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .tab-feature-title {
        font-size: 1.6rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-container,
    .features-container,
    .modes-container,
    .download-container,
    .documentation-container,
    .faq-container,
    .footer-container {
        padding: 0 0.75rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .demo-window {
        border: 0.5px solid rgba(255, 255, 255, 0.2);
    }
    
    .feature-card,
    .mode-card,
    .download-card,
    .doc-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Reduced Motion */
@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 Mode Support */
@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-logo,
    .nav-link {
        color: #fff;
    }
    
    .nav-link:hover {
        color: #667eea;
    }
    
    .nav-toggle-line {
        background: #fff;
    }
    
    .trust {
        background: #1a1a1a;
    }
    
    .trust-text {
        color: #ccc;
    }
    
    .trust-logo {
        background: #333;
        color: #ccc;
    }
    
    .features {
        background: #1a1a1a;
    }
    
    .section-title {
        color: #fff;
    }
    
    .section-subtitle {
        color: #ccc;
    }
    
    .feature-card {
        background: #333;
        color: #fff;
    }
    
    .feature-title {
        color: #fff;
    }
    
    .feature-description {
        color: #ccc;
    }
    
    .modes {
        background: #1a1a1a;
    }
    
    .mode-card {
        background: #333;
        color: #fff;
    }
    
    .mode-title {
        color: #fff;
    }
    
    .mode-description {
        color: #ccc;
    }
    
    .documentation {
        background: #1a1a1a;
    }
    
    .doc-card {
        background: #333;
        color: #fff;
    }
    
    .doc-title {
        color: #fff;
    }
    
    .doc-description {
        color: #ccc;
    }
    
    .faq {
        background: #1a1a1a;
    }
    
    .faq-item {
        border-bottom-color: #333;
    }
    
    .faq-question {
        color: #fff;
    }
    
    .faq-answer p {
        color: #ccc;
    }
}