/* Enhanced Responsive Design */

/* Large screens and up (1536px+) */
@media (min-width: 1536px) {
    .hero-content,
    .section-header,
    .features-grid,
    .ecosystem-grid,
    .footer-content {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: calc(var(--font-size-7xl) * 1.2);
    }
    
    .section-title {
        font-size: calc(var(--font-size-5xl) * 1.1);
    }
}

/* Extra large screens (1280px - 1535px) */
@media (max-width: 1535px) and (min-width: 1280px) {
    .hero-content {
        gap: var(--spacing-3xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }
}

/* Large screens (1024px - 1279px) */
@media (max-width: 1279px) and (min-width: 1024px) {
    .enhanced-nav {
        height: 70px;
    }
    
    .nav-mobile {
        top: 70px;
    }
    
    .hero-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-6xl);
    }
    
    .features-grid,
    .ecosystem-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }
}

/* Medium screens (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-description {
        max-width: 100%;
        font-size: var(--font-size-lg);
    }
    
    .floating-icons {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid,
    .ecosystem-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .section-title {
        font-size: var(--font-size-4xl);
    }
}

/* Small screens (640px - 767px) */
@media (max-width: 767px) and (min-width: 640px) {
    .enhanced-nav {
        height: 65px;
    }
    
    .nav-mobile {
        top: 65px;
    }
    
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .features-section,
    .ecosystem-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .features-grid,
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
}

/* Extra small screens (475px - 639px) */
@media (max-width: 639px) and (min-width: 475px) {
    .enhanced-nav {
        height: 60px;
    }
    
    .nav-mobile {
        top: 60px;
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .brand-text {
        font-size: var(--font-size-lg);
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .title-primary,
    .title-secondary,
    .title-accent {
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
    }
    
    .cta-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-header {
        padding: 0 var(--spacing-md);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .features-grid,
    .ecosystem-grid {
        padding: 0 var(--spacing-md);
    }
    
    .feature-card,
    .ecosystem-card .card-content {
        padding: var(--spacing-lg);
    }
}

/* Ultra small screens (320px - 474px) */
@media (max-width: 474px) {
    :root {
        --spacing-xs: 0.125rem;
        --spacing-sm: 0.25rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.25rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
        --spacing-4xl: 3rem;
        --spacing-5xl: 4rem;
    }
    
    .enhanced-nav {
        height: 56px;
    }
    
    .nav-mobile {
        top: 56px;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .brand-logo {
        width: 28px;
        height: 28px;
    }
    
    .brand-text {
        font-size: var(--font-size-base);
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .status-badge {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-md);
    }
    
    .title-decoration {
        width: 60px;
        height: 2px;
        bottom: -10px;
    }
    
    .hero-description {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-lg);
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
        border-radius: var(--radius-md);
    }
    
    .button-icon {
        font-size: var(--font-size-lg);
    }
    
    .hero-stats {
        gap: var(--spacing-xs);
    }
    
    .stat-number {
        font-size: var(--font-size-lg);
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
    
    .features-section,
    .ecosystem-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-header {
        padding: 0 var(--spacing-sm);
        margin-bottom: var(--spacing-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-xs);
    }
    
    .features-grid,
    .ecosystem-grid {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .feature-card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .feature-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .feature-description {
        font-size: var(--font-size-xs);
    }
    
    .ecosystem-card .card-content {
        padding: var(--spacing-md);
    }
    
    .ecosystem-icon {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .ecosystem-title {
        font-size: var(--font-size-base);
    }
    
    .ecosystem-description {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
    }
    
    .ecosystem-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .enhanced-footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        padding: 0 var(--spacing-sm);
    }
    
    .footer-brand .brand-logo {
        width: 32px;
        height: 32px;
    }
    
    .footer-brand .brand-text {
        font-size: var(--font-size-lg);
    }
    
    .footer-tagline {
        font-size: var(--font-size-xs);
    }
    
    .link-group h4 {
        font-size: var(--font-size-base);
    }
    
    .link-group a {
        font-size: var(--font-size-xs);
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-base);
    }
    
    .footer-bottom {
        padding: var(--spacing-sm) var(--spacing-sm) 0;
    }
    
    .footer-bottom p,
    .footer-bottom-links a {
        font-size: var(--font-size-xs);
    }
}

/* Landscape orientation adjustments for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-lg) 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-description {
        margin-bottom: var(--spacing-md);
    }
    
    .hero-actions {
        margin-bottom: var(--spacing-lg);
    }
    
    .floating-icons {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-logo,
    .footer-brand .brand-logo {
        background-size: contain;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .decoration-orb {
        animation: none;
    }
    
    .float-icon {
        animation: none;
    }
    
    .status-indicator {
        animation: none;
    }
}

/* Print styles */
@media print {
    .enhanced-nav,
    .enhanced-particles,
    .bg-decorations,
    .floating-icons,
    .hero-actions,
    .ecosystem-btn,
    .social-links,
    .footer-bottom-links {
        display: none !important;
    }
    
    .hero-section,
    .features-section,
    .ecosystem-section,
    .enhanced-footer {
        padding: 1rem 0 !important;
    }
    
    .hero-title,
    .section-title {
        color: #000 !important;
    }
    
    .hero-description,
    .section-subtitle,
    .feature-description,
    .ecosystem-description {
        color: #333 !important;
    }
}