/* =================================================================
   Responsive Design - Mobile & Tablet Breakpoints
   ================================================================= */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: var(--spacing-md);
        border-top: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        gap: var(--spacing-xs);
    }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .title-highlight {
        font-size: 3rem;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: var(--spacing-lg);
    }
    
    /* Tabs */
    .tab-buttons {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .tab-icon {
        font-size: 1.2rem;
    }
    
    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    /* Zeno Showcase */
    .zeno-showcase {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Navigation */
    .nav-container {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-actions {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-sm);
        justify-content: space-between;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
    }
    
    .title-line {
        font-size: 1.2rem;
    }
    
    .title-highlight {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .stats-preview {
        padding: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Tabs */
    .tab-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .tab-btn {
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        font-size: 0.85rem;
    }
    
    .tab-btn span:last-child {
        font-size: 0.8rem;
    }
    
    /* Feature Cards */
    .feature-grid {
        gap: var(--spacing-sm);
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
    
    /* Metrics */
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .metric-card {
        padding: var(--spacing-md);
    }
    
    .metric-value {
        font-size: 2.5rem;
    }
    
    .metric-label {
        font-size: 0.9rem;
    }
    
    /* Zeno Showcase */
    .avatar-circle {
        width: 120px;
        height: 120px;
    }
    
    .avatar-initial {
        font-size: 3rem;
    }
    
    .capability-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    /* Dashboard Previews */
    .dashboard-previews {
        grid-template-columns: 1fr;
    }
    
    /* About */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-content {
        padding: var(--spacing-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn-hero {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        height: 80%;
    }
    
    .modal-close {
        top: -30px;
        font-size: 2rem;
    }
}

/* Small Mobile (< 400px) */
@media (max-width: 400px) {
    html {
        font-size: 13px;
    }
    
    .title-highlight {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Large Desktop (> 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    html {
        font-size: 18px;
    }
    
    .hero-container {
        gap: var(--spacing-xl);
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .mobile-menu-toggle,
    .scroll-indicator,
    .modal,
    .particles-bg {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .neon-card {
        border: 1px solid #ccc;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* 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-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Override (if system prefers light) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless - it's part of the brand */
    /* But ensure sufficient contrast for accessibility */
    
    :root {
        --text-secondary: #b0b0c8;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
    }
    
    .neon-card {
        border-width: 2px;
    }
    
    button,
    a {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }
}

/* Orientation: Landscape on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(60px + var(--spacing-md)) 0 var(--spacing-md);
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-visual {
        margin-top: 0;
    }
    
    .title-highlight {
        font-size: 2rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .nav-link,
    .tab-btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .neon-card:hover {
        transform: none;
    }
    
    .hover-lift:hover {
        transform: none;
    }
    
    /* Active state for touch feedback */
    button:active,
    a:active {
        transform: scale(0.95);
    }
}
