/* ===== RESPONSIVE DESIGN ENHANCEMENTS ===== */

/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large devices (desktops, 1200px to 1399px) */
@media (max-width: 1399.98px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .feature-detail-grid {
        max-width: 1000px;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .feature-detail-card {
        padding: 30px;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Hero Section */
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .nav-actions {
        gap: 15px;
    }
    
    /* Features Page Specific */
    .feature-detail-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .feature-detail-icon {
        margin: 0 auto;
    }
    
    .feature-list li {
        text-align: left;
        padding-left: 25px;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .progress-item span:first-child {
        width: 100%;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .server-count {
        justify-content: center;
        gap: 20px;
    }
    
    /* Platforms */
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Steps */
    .steps-container::before {
        left: 30px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Comparison Table */
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-table table {
        min-width: 700px;
    }
    
    /* Stats Banner */
    .stats-banner .container {
        gap: 30px;
    }
    
    .stat-banner-item::after {
        display: none;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-payments {
        justify-content: center;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Pricing */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-switch {
        flex-direction: column;
        gap: 15px;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    /* Features Page Specific */
    .feature-detail-card {
        padding: 25px;
    }
    
    .feature-detail-content h3 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .special-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Steps */
    .step {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Platforms */
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Stats Banner */
    .stats-banner {
        padding: 60px 0;
    }
    
    .stat-banner-item {
        min-width: 150px;
        padding: 15px;
    }
    
    .stat-banner-item h3 {
        font-size: 2.5rem;
    }
    
    .stat-banner-item p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Navigation */
    .nav-actions {
        gap: 10px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .btn-login {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary, .btn-outline, .btn-login {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card, .pricing-card, .special-feature-card, .platform-card {
        padding: 20px;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    /* Hero */
    .hero-image img {
        border-radius: 10px;
    }
    
    .hero-badges {
        gap: 10px;
    }
    
    .hero-badge {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    /* Features Page Specific */
    .feature-detail-card {
        padding: 20px;
    }
    
    .feature-detail-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .server-count {
        gap: 15px;
    }
    
    .count-item {
        min-width: 80px;
        padding: 15px 10px;
    }
    
    .count-item h4 {
        font-size: 1.8rem;
    }
    
    .count-item p {
        font-size: 0.8rem;
    }
    
    /* Stats Banner */
    .stat-banner-item {
        min-width: 120px;
        padding: 10px;
    }
    
    .stat-banner-item h3 {
        font-size: 2rem;
    }
    
    .stat-banner-item p {
        font-size: 0.9rem;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        padding: 15px;
    }
    
    .mobile-menu a {
        padding: 12px 0;
        font-size: 0.95rem;
    }
    
    /* Logo */
    .logo span {
        font-size: 1.3rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
}

/* Very small devices (less than 400px) */
@media (max-width: 399.98px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .feature-detail-content h3 {
        font-size: 1.3rem;
    }
    
    .platform-card i {
        font-size: 2.5rem;
    }
    
    .special-feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .stats-banner .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-banner-item {
        width: 100%;
    }
}

/* Orientation specific */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero .container {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .mobile-menu {
        max-height: 300px;
    }
}

/* Print media */
@media print {
    .navbar,
    .mobile-menu-btn,
    .theme-toggle,
    .footer,
    .cta-section,
    .hero-buttons {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff !important;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    h1, h2, h3 {
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .feature-card,
    .pricing-card,
    .feature-detail-card,
    .special-feature-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --secondary-color: #00875a;
        --dark-color: #000000;
        --light-color: #ffffff;
    }
    
    .btn-primary, .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode system preference */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --dark-color: #f1f5f9;
        --light-color: #0f172a;
        --gray-color: #94a3b8;
        --gray-light: #1e293b;
    }
}

/* Light mode system preference */
@media (prefers-color-scheme: light) {
    body:not(.dark-mode) {
        --dark-color: #1e293b;
        --light-color: #ffffff;
        --gray-color: #64748b;
        --gray-light: #f1f5f9;
    }
}