/* Mobile First Responsive Design */

/* Small devices (phones, 640px and up) */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
    
    .hero p {
        font-size: var(--font-size-lg);
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: var(--spacing-md);
    }
    
    .demo-input {
        flex-direction: column;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    nav ul {
        gap: var(--spacing-md);
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-full {
        display: none;
    }
    
    .logo-compact {
        display: block;
    }
    
    .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .pricing-card .price {
        font-size: var(--font-size-4xl);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: var(--font-size-5xl);
    }
    
    .hero p {
        font-size: var(--font-size-xl);
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: var(--spacing-md);
    }
    
    .demo-input {
        flex-direction: column;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    nav ul {
        gap: var(--spacing-md);
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Print styles */
@media print {
    header {
        position: static;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .btn {
        border: 1px solid var(--text-color);
        background: transparent !important;
        color: var(--text-color) !important;
    }
    
    .card:hover {
        transform: none;
        box-shadow: none;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #000000;
    }
    
    .card {
        border-width: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --card-bg: #2d2d2d;
        --text-color: #ffffff;
        --text-light: #a0a0a0;
        --border-color: #404040;
    }
    
    header {
        background-color: rgba(26, 26, 26, 0.95);
    }
}
