/* Mobile First Responsive Design */

/* Extra Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Screens (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-grid {
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Medium Screens (768px to 991px) */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-terminal {
        order: -1;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-logo {
        gap: 0.75rem;
    }
    
    .logo-company {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Small Screens (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .demo-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Extra Small Screens (up to 575px) */
@media (max-width: 575px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-content {
        height: 3.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-text-container {
        display: none;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .hero-stats .stat-number {
        font-size: 1.25rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-section {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .terminal {
        font-size: 0.75rem;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .use-case-title {
        font-size: 1.1rem;
    }
    
    .process-title {
        font-size: 1.1rem;
    }
    
    .process-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .pricing-title {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .demo-title {
        font-size: 2rem;
    }
    
    .demo-description {
        font-size: 1.1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .form-submit {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 1rem;
    }
    
    .modal-content h3 {
        font-size: 1.25rem;
    }
    
    .flow-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.875rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        width: auto;
        padding: 0.75rem 1.5rem;
    }
    
    .demo-section {
        padding: 2rem 0;
    }
    
    .demo-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .demo-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-btn,
    .hero-buttons,
    .demo-section,
    .modal {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
    }
    
    .feature-card,
    .use-case-card,
    .pricing-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .footer {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .feature-card,
    .use-case-card,
    .pricing-card {
        border: 2px solid #000;
    }
    
    .nav-link:hover {
        background: #000;
        color: #fff;
    }
}

/* 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-animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    .hero-content,
    .hero-terminal,
    .hero-title,
    .hero-description,
    .hero-buttons {
        opacity: 1;
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border-color: #374151;
    }
    
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .navbar {
        background: rgba(31, 41, 55, 0.95);
        border-bottom-color: var(--border-color);
    }
    
    .value-prop-section,
    .how-it-works-section {
        background: var(--bg-secondary);
    }
    
    .feature-card,
    .use-case-card,
    .pricing-card {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .section-title {
        color: var(--text-primary);
    }
    
    .section-description,
    .feature-description,
    .use-case-description {
        color: var(--text-secondary);
    }
}
