/* Enhanced Responsive Design System */

/* Mobile First Breakpoints */
/* 
  - 320px: Small phones
  - 480px: Phones
  - 640px: Large phones
  - 768px: Tablets
  - 1024px: Large tablets / Small desktops
  - 1280px: Desktops
  - 1536px: Large desktops
*/

/* Base mobile styles (320px and up) */
@media (min-width: 320px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-visualization {
        display: none; /* Hide complex animations on small screens */
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Large phones (480px and up) */
@media (min-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 5rem 0 4rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Large phones / Small tablets (640px and up) */
@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-visualization {
        display: block;
        transform: scale(0.7);
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
        max-width: 768px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .navbar {
        padding: 1.25rem 0;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        gap: 2rem;
        padding: 0;
        box-shadow: none;
    }
    
    .nav-actions {
        display: flex;
        position: static;
        width: auto;
        padding: 0;
    }
    
    .hamburger {
        display: none;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-visualization {
        transform: scale(0.85);
    }
    
    .comparison-table {
        font-size: 1rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large tablets / Small desktops (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 6rem 0 5rem;
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .hero-visualization {
        transform: scale(1);
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-flow {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

/* Desktops (1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
        padding: 0 2rem;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 8rem 0 6rem;
    }
    
    .hero-content {
        max-width: 800px;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
}

/* Large desktops (1536px and up) */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
    
    .hero-section {
        padding: 10rem 0 8rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .nav-link,
    .nav-cta,
    .nav-cta-secondary {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        min-height: 44px;
        padding: 0.875rem 2rem;
    }
    
    /* Disable hover effects on touch devices */
    .feature-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* Simplify animations */
    .animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Use higher resolution assets if available */
    .logo-text {
        font-weight: 600;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-visualization,
    .cta-footer,
    .hamburger {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    .feature-card {
        page-break-inside: avoid;
    }
}