/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-highlight {
        grid-column: span 2;
    }
}

/* Tablets */
@media (max-width: 768px) {
    header {
        padding: 0.875rem 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    main {
        padding: 7rem 1rem 3rem;
    }
    
    .hero {
        margin-bottom: 4rem;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-highlight {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .platform-info {
        gap: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    main {
        padding: 6rem 0.75rem 2rem;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .version-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(15, 20, 45, 0.9);
        --glass-border: rgba(99, 102, 241, 0.4);
    }
}