/* Responsive Design Enhancement
 * This file contains additional responsive styles to ensure optimal display
 * across all devices with priority given to laptop experience
 */

/* Base responsive adjustments */
html {
    font-size: 16px; /* Base font size */
}

/* Large Desktop (1440px and up) */
@media screen and (min-width: 1440px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1320px;
    }
    
    /* Larger hero section for big screens */
    .hero {
        min-height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Standard Desktop/Laptop (992px to 1439px) - PRIORITY EXPERIENCE */
@media screen and (min-width: 992px) and (max-width: 1439px) {
    /* This is our priority range - optimized for laptop experience */
    .container {
        max-width: 960px;
        padding: 0 2rem;
    }
    
    /* Refined spacing for laptop screens */
    section {
        padding: 5rem 0;
    }
    
    /* Optimize feature cards for laptop screens */
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Ensure testimonial cards have consistent height */
    .testimonial-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .testimonial-author {
        margin-top: auto;
    }
    
    /* Optimize tool logos for laptop screens */
    .tools-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* Optimize pricing cards */
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Optimize updates grid */
    .updates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Optimize demo options */
    .demo-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (768px to 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* Adjust hero for tablets */
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 5rem 0;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    /* Adjust feature grid for tablets */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Adjust tools grid for tablets */
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Adjust pricing grid for tablets */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-card.popular {
        grid-column: span 2;
        margin-top: 2rem;
    }
    
    /* Adjust updates grid for tablets */
    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust demo options for tablets */
    .demo-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust testimonials for tablets */
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust footer for tablets */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile (576px to 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    /* Adjust hero for large mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    /* Adjust feature grid for large mobile */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        margin-bottom: 0.5rem;
        flex: 1 0 calc(50% - 10px);
    }
    
    /* Adjust tools grid for large mobile */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust pricing grid for large mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Adjust updates grid for large mobile */
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust demo options for large mobile */
    .demo-options {
        grid-template-columns: 1fr;
    }
    
    /* Adjust testimonials for large mobile */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust footer for large mobile */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust CTA section for large mobile */
    .cta-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button, .cta-button-secondary {
        width: 100%;
    }
}

/* Small Mobile (575px and below) */
@media screen and (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Adjust hero for small mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .hero-badges {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Adjust feature tabs for small mobile */
    .feature-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    /* Adjust section headings for small mobile */
    section h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Adjust navigation for small mobile */
    .navbar {
        padding: 0.75rem 1.25rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Adjust video placeholder for small mobile */
    .video-placeholder i {
        font-size: 3rem;
    }
    
    .video-placeholder span {
        font-size: 1rem;
    }
    
    /* Adjust tools grid for small mobile */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-logo {
        height: 80px;
    }
}

/* Print styles */
@media print {
    .navbar, .cta-section, .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .hero {
        background: none;
        color: #000;
        padding: 1cm 0;
        min-height: auto;
    }
    
    .hero-content h1, .hero-content h2 {
        color: #000;
    }
    
    .hero-image, .video-container, .hero-stats, .hero-badges {
        display: none;
    }
    
    section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        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 {
        --primary-color: #0000ff;
        --primary-dark: #0000cc;
        --secondary-color: #000000;
        --accent-color: #00ccff;
        --text-light: #ffffff;
        --text-dark: #000000;
        --text-gray: #444444;
        --bg-dark: #000000;
        --bg-light: #ffffff;
        --bg-card: #ffffff;
    }
    
    .feature-card, .pricing-card, .testimonial-card, .update-card, .demo-option {
        border: 2px solid #000;
    }
    
    .tab-btn.active {
        border: 2px solid #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4286f4;
        --primary-dark: #3a76d8;
        --secondary-color: #121212;
        --accent-color: #00c2ff;
        --text-light: #ffffff;
        --text-dark: #e0e0e0;
        --text-gray: #b0b0b0;
        --bg-dark: #121212;
        --bg-light: #1e1e1e;
        --bg-card: #2a2a2a;
        --shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    body {
        background-color: var(--bg-light);
        color: var(--text-light);
    }
    
    .feature-card, .pricing-card, .testimonial-card, .update-card, .demo-option, .tool-logo {
        background-color: var(--bg-card);
        color: var(--text-light);
    }
    
    .feature-card h3, .pricing-card h3, .testimonial-card h4, .update-card h3, .demo-option h3 {
        color: var(--text-light);
    }
    
    .feature-card p, .pricing-card li, .testimonial-card p, .update-card p, .demo-option p {
        color: var(--text-gray);
    }
}
