:root {
    --primary-gradient-top: #6B63FF;
    --primary-gradient-bottom: #1B2335;
    --bg: #0D1424;
    --bg-alt: #1B2335;
    --accent: #00D9FF;
    --text: #FFFFFF;
    --text-dim: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    --font: 'Inter', -apple-system, sans-serif;
    --card-bg: rgba(49,58,78,0.3);
    --card-border: rgba(255,255,255,0.1);
    
    /* Animation easing curves */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13,20,36,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(12px, 2vh, 16px);
    padding-bottom: clamp(12px, 2vh, 16px);
    min-height: 60px;
}

.logo {
    height: clamp(24px, 4vw, 28px);
    width: auto;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.2s;
    /* Ensure touch target size */
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: clamp(12px, 1.5vw, 13px);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    /* Ensure touch target size */
    min-height: 44px;
    padding: 8px 4px;
}

.nav-link:hover {
    color: var(--text);
}

.btn-small {
    padding: clamp(8px, 1.5vh, 10px) clamp(14px, 2.5vw, 16px);
    background: linear-gradient(135deg, var(--primary-gradient-top), var(--primary-gradient-bottom));
    color: var(--text);
    border-radius: 6px;
    font-size: clamp(12px, 1.5vw, 13px);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    /* Ensure touch target size */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.btn-small:hover {
    transform: translateY(-1px);
}

/* Main Layout */
.main {
    position: relative;
    min-height: 100vh;
    padding-top: clamp(70px, 12vh, 80px);
    padding-bottom: clamp(40px, 8vh, 60px);
}

.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: start;
    position: relative;
    z-index: 10;
    margin-bottom: clamp(60px, 10vh, 80px);
}

/* Hero Side */
.hero-side h1 {
    font-size: clamp(28px, 4.5vw, 38px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: clamp(12px, 2vh, 16px);
    background: linear-gradient(135deg, #FFF 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-dim);
    margin-bottom: clamp(20px, 3vh, 24px);
    line-height: 1.6;
    max-width: 65ch; /* Optimal line length for readability */
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.highlight-primary {
    color: var(--primary-gradient-top);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gradient-top), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(10px, 1.5vh, 12px);
    margin-bottom: clamp(18px, 2.5vh, 20px);
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(12px, 1.5vw, 13px);
    color: var(--text-dim);
    line-height: 1.5;
}

.benefit svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

/* NEW: Value Props Pills */
.value-props-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(20px, 3vh, 24px);
}

.value-prop-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    font-size: clamp(11px, 1.5vw, 12px);
    color: var(--accent);
    transition: all 0.2s;
    /* Ensure touch target size */
    min-height: 36px;
}

.value-prop-pill:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--accent);
}

.value-prop-pill svg {
    flex-shrink: 0;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 12px);
    margin-bottom: clamp(18px, 2.5vh, 20px);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(12px, 2vh, 14px) clamp(20px, 3vw, 24px);
    border-radius: 8px;
    font-size: clamp(13px, 1.8vw, 14px);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    /* Ensure touch target size */
    min-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gradient-top), var(--primary-gradient-bottom));
    color: var(--text);
}

.btn-primary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 24px rgba(107,99,255,0.4);
}

.btn-primary:active {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.1s;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(107,99,255,0.1);
    transform: translate3d(0, -1px, 0);
}

.btn-secondary:active {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.1s;
}

.meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(8px, 1.5vw, 10px);
    font-size: clamp(11px, 1.5vw, 12px);
    color: var(--text-muted);
    line-height: 1.6;
}

.meta-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    /* Ensure touch target size */
    min-height: 32px;
    padding: 4px 0;
}

.meta-link:hover {
    color: var(--text);
}

.meta-text {
    color: var(--text-muted);
}

/* Features Side */
.features-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 16px);
}

.feature {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: clamp(16px, 2.5vw, 20px);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.feature:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(107,99,255,0.5);
    box-shadow: 0 4px 16px rgba(107,99,255,0.2);
}

.feature svg {
    transition: all 0.3s var(--ease-smooth);
}

.feature:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0,217,255,0.4));
}

.feature-highlight {
    border-color: rgba(0, 217, 255, 0.4);
}

.feature-highlight:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
}

.feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    font-size: clamp(9px, 1.2vw, 10px);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature svg {
    color: var(--accent);
    margin-bottom: clamp(10px, 1.5vh, 12px);
}

.feature h3 {
    font-size: clamp(14px, 1.8vw, 15px);
    font-weight: 600;
    margin-bottom: clamp(6px, 1vh, 8px);
    line-height: 1.3;
}

.feature p {
    font-size: clamp(12px, 1.6vw, 13px);
    color: var(--text-dim);
    line-height: 1.5;
}

.feature, .comparison-card, .use-case-card, .faq-item {
    overflow: visible;
    min-height: fit-content;
}

/* NEW: Comparison Section */
.comparison-section {
    position: relative;
    z-index: 10;
    margin: clamp(60px, 10vh, 80px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(36px, 6vh, 48px);
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: clamp(10px, 1.5vh, 12px);
    background: linear-gradient(135deg, #FFF 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 65ch; /* Optimal line length for readability */
    margin-left: auto;
    margin-right: auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(20px, 3vw, 24px);
}

.comparison-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 32px);
    transition: all 0.3s var(--ease-smooth);
}

.comparison-card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(107,99,255,0.5);
    box-shadow: 0 8px 24px rgba(107,99,255,0.2);
}

.comparison-icon {
    transition: all 0.3s var(--ease-smooth);
}

.comparison-card:hover .comparison-icon {
    transform: scale(1.1);
    background: rgba(107,99,255,0.2);
}

.comparison-card:hover .comparison-icon svg {
    transform: rotate(5deg);
}

.comparison-icon {
    width: clamp(40px, 6vw, 48px);
    height: clamp(40px, 6vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107,99,255,0.1);
    border-radius: 12px;
    margin-bottom: clamp(16px, 2.5vh, 20px);
}

.comparison-icon svg {
    color: var(--accent);
}

.comparison-card h3 {
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 600;
    margin-bottom: clamp(6px, 1vh, 8px);
    line-height: 1.3;
}

.comparison-subtitle {
    font-size: clamp(12px, 1.6vw, 13px);
    color: var(--text-muted);
    margin-bottom: clamp(16px, 2.5vh, 20px);
    line-height: 1.4;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vh, 12px);
}

.comparison-list li {
    font-size: clamp(13px, 1.7vw, 14px);
    color: var(--text-dim);
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
    max-width: 65ch; /* Optimal line length for readability */
}

.comparison-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.comparison-list strong {
    color: var(--text);
    font-weight: 600;
}

/* NEW: Use Cases Section */
.use-cases-section {
    position: relative;
    z-index: 10;
    margin: clamp(60px, 10vh, 80px) 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(20px, 3vw, 24px);
}

.use-case-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: clamp(24px, 3.5vw, 28px);
    transition: all 0.3s var(--ease-smooth);
}

.use-case-card:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.2);
}

.use-case-stat {
    transition: all 0.3s var(--ease-smooth);
}

.use-case-card:hover .use-case-stat {
    color: var(--text);
    transform: scale(1.05);
}

.use-case-card h4 {
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 600;
    margin-bottom: clamp(10px, 1.5vh, 12px);
    color: var(--text);
    line-height: 1.3;
}

.use-case-card p {
    font-size: clamp(13px, 1.7vw, 14px);
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: clamp(14px, 2vh, 16px);
}

.use-case-stat {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.use-case-stat span {
    font-size: clamp(11px, 1.5vw, 12px);
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
}

/* NEW: FAQ Section */
.faq-section {
    position: relative;
    z-index: 10;
    margin: clamp(60px, 10vh, 80px) 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 2.5vw, 20px);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: clamp(20px, 3vw, 24px);
    transition: all 0.3s var(--ease-smooth);
}

.faq-item:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(107,99,255,0.5);
    box-shadow: 0 4px 16px rgba(107,99,255,0.15);
}

.faq-item h4 {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    margin-bottom: clamp(8px, 1.5vh, 10px);
    color: var(--text);
    line-height: 1.4;
}

.faq-item p {
    font-size: clamp(12px, 1.6vw, 13px);
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 65ch; /* Optimal line length for readability */
}

.faq-item strong {
    color: var(--accent);
    font-weight: 600;
}

/* Animated Cubes */
.cubes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.cube {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(107,99,255,0.2);
    border-radius: 8px;
    animation: float 20s infinite ease-in-out;
    opacity: 0.3;
}

.cube::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(107,99,255,0.1), rgba(0,217,255,0.1));
    border-radius: 8px;
    z-index: -1;
}

.c1 { top: 15%; left: 8%; animation-delay: 0s; }
.c2 { top: 65%; right: 12%; animation-delay: -5s; width: 35px; height: 35px; }
.c3 { top: 40%; right: 8%; animation-delay: -10s; width: 60px; height: 60px; }
.c4 { bottom: 25%; left: 15%; animation-delay: -7s; width: 45px; height: 45px; }

/* GPU-accelerated keyframes using translate3d */
@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate3d(0, -25px, 0) rotate(5deg);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(0, -40px, 0) rotate(-5deg);
        opacity: 0.35;
    }
    75% {
        transform: translate3d(0, -25px, 0) rotate(3deg);
        opacity: 0.32;
    }
}

/* Footer */
.footer {
    position: relative;
    z-index: 100;
    background: rgba(13,20,36,0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: clamp(16px, 3vh, 20px) 0;
}

.footer p {
    text-align: center;
    font-size: clamp(10px, 1.4vw, 11px);
    color: var(--text-muted);
    margin: 4px 0;
    line-height: 1.5;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    /* Ensure touch target size */
    display: inline-block;
    min-height: 32px;
    padding: 4px 0;
}

.footer a:hover {
    color: var(--accent);
}

/* ===============================================
   RESPONSIVE BREAKPOINTS - DESKTOP FIRST
   =============================================== */

/* Ultra-Wide (2560px+) - Maximum density, expanded spacing */
@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
        padding: 0 60px;
    }
    
    .layout {
        gap: clamp(80px, 8vw, 100px);
        margin-bottom: clamp(100px, 12vh, 140px);
    }
    
    .features-side {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px; /* Increased from 32px for breathing room */
    }
    
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px; /* Increased from 40px */
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px; /* Increased from 32px */
    }
    
    .faq-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px; /* Increased from 36px for consistency */
    }
    
    /* Section spacing optimization */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: clamp(120px, 14vh, 160px) 0; /* Extended max from 140px to 160px */
    }
    
    .section-header {
        margin-bottom: clamp(48px, 8vh, 64px); /* Extended from 48px max */
    }
    
    /* Card padding enhancements */
    .feature {
        padding: clamp(24px, 3vw, 32px); /* Increased internal padding */
    }
    
    .comparison-card {
        padding: clamp(32px, 4.5vw, 48px); /* Increased from 32px max to 48px */
    }
    
    .use-case-card {
        padding: clamp(28px, 4vw, 40px); /* Increased padding */
    }
    
    .faq-item {
        padding: clamp(24px, 3.5vw, 32px); /* Increased padding */
    }
    
    /* Typography optimizations for ultra-wide displays */
    .hero-side h1 {
        font-size: 64px;
        line-height: 1.15;
        letter-spacing: -0.03em;
    }
    
    .section-header h2 {
        font-size: 48px;
        line-height: 1.2;
        letter-spacing: -0.025em;
    }
    
    .tagline,
    .section-header p {
        font-size: 19px;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
    
    .feature h3 {
        font-size: 17px;
        line-height: 1.35;
    }
    
    .feature p {
        font-size: 15px;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
    
    .comparison-card h3 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .comparison-subtitle {
        font-size: 15px;
        letter-spacing: 0.02em;
    }
    
    .comparison-list li {
        font-size: 16px;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
    
    .use-case-card h4 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .use-case-card p {
        font-size: 16px;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
    
    .use-case-stat {
        font-size: 28px;
    }
    
    .use-case-stat span {
        font-size: 14px;
        letter-spacing: 0.02em;
    }
    
    .faq-item h4 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .faq-item p {
        font-size: 15px;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
    
    .benefit {
        font-size: 15px;
        line-height: 1.65;
    }
}

/* Desktop FHD (1920px - 2559px) - Rich content, enhanced spacing */
@media (min-width: 1920px) and (max-width: 2559px) {
    .container {
        max-width: 1600px;
        padding: 0 50px;
    }
    
    .layout {
        grid-template-columns: 1fr 1fr; /* 50/50 split for desktop */
        gap: 70px;
    }
    
    .features-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px; /* Adjusted for 2-column layout */
    }
    
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px; /* Increased from 36px */
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px; /* Increased from 28px */
    }
    
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px; /* Increased from 32px */
    }
    
    /* Section spacing optimization */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: clamp(100px, 12vh, 120px) 0; /* Extended min from 80px to 100px */
    }
    
    .section-header {
        margin-bottom: clamp(40px, 7vh, 56px); /* Extended from 48px max */
    }
    
    /* Card padding enhancements */
    .feature {
        padding: clamp(20px, 2.8vw, 28px); /* Optimized padding */
    }
    
    .comparison-card {
        padding: clamp(32px, 4.2vw, 40px); /* Increased padding */
    }
    
    .use-case-card {
        padding: clamp(28px, 3.8vw, 36px); /* Increased padding */
    }
    
    .faq-item {
        padding: clamp(24px, 3.2vw, 28px); /* Increased padding */
    }
    
    /* Typography optimizations for FHD displays */
    .hero-side h1 {
        font-size: 56px;
        line-height: 1.15;
        letter-spacing: -0.03em;
    }
    
    .section-header h2 {
        font-size: 42px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }
    
    .tagline,
    .section-header p {
        font-size: 18px;
        line-height: 1.65;
        letter-spacing: 0.01em;
    }
    
    .feature h3 {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .feature p {
        font-size: 14px;
        line-height: 1.65;
        letter-spacing: 0.01em;
    }
    
    .comparison-card h3 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .comparison-subtitle {
        font-size: 14px;
        letter-spacing: 0.02em;
    }
    
    .comparison-list li {
        font-size: 15px;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
    
    .use-case-card h4 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .use-case-card p {
        font-size: 15px;
        line-height: 1.65;
        letter-spacing: 0.01em;
    }
    
    .use-case-stat {
        font-size: 26px;
    }
    
    .use-case-stat span {
        font-size: 13px;
        letter-spacing: 0.02em;
    }
    
    .faq-item h4 {
        font-size: 17px;
        line-height: 1.4;
    }
    
    .faq-item p {
        font-size: 14px;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
    
    .benefit {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Desktop Small (1600px - 1919px) - Three-column layouts */
@media (min-width: 1600px) and (max-width: 1919px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .layout {
        gap: 70px;
        margin-bottom: clamp(70px, 10vh, 100px);
    }
    
    .features-side {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px; /* Increased from 24px */
    }
    
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px; /* Increased from 32px */
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px; /* Increased from 24px */
    }
    
    @media (min-width: 1024px) and (max-width: 1440px) {
        .feature h3 {
            font-size: 1.5vw;
        }
        
        .feature p {
            font-size: 1.4vw;
        }
    }
    
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px; /* Increased from 28px */
    }
    
    /* Section spacing optimization */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: clamp(80px, 11vh, 100px) 0; /* Extended min from 70px to 80px */
    }
    
    .section-header {
        margin-bottom: clamp(40px, 6.5vh, 52px); /* Enhanced section header spacing */
    }
    
    /* Card padding enhancements */
    .feature {
        padding: clamp(20px, 2.8vw, 28px);
    }
    
    .comparison-card {
        padding: clamp(28px, 4vw, 36px);
    }
    
    .use-case-card {
        padding: clamp(26px, 3.5vw, 32px);
    }
    
    .faq-item {
        padding: clamp(22px, 3vw, 26px);
    }
}

/* Large Desktop (1441px - 1599px) - Enhanced spacing */
@media (min-width: 1441px) and (max-width: 1599px) {
    .container {
        max-width: 1400px;
    }
    
    .layout {
        gap: 60px;
        margin-bottom: clamp(70px, 10vh, 90px);
    }
    
    .features-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Adjusted for 2-column layout */
    }
    
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px; /* Increased from 28px */
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px; /* Increased from 24px */
    }
    
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px; /* Increased from 24px */
    }
    
    /* Section spacing optimization */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: clamp(70px, 10vh, 90px) 0;
    }
    
    .section-header {
        margin-bottom: clamp(38px, 6vh, 50px);
    }
}

/* Laptop Standard (1366px - 1440px) - Three-column grids */
@media (min-width: 1366px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .layout {
        gap: 50px;
        margin-bottom: clamp(65px, 9vh, 80px);
    }
    
    .features-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px; /* Adjusted for 2-column layout */
    }
    
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px; /* Increased from 24px */
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px; /* Increased from 20px */
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px; /* Increased from 20px */
    }
    
    /* Section spacing optimization */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: clamp(65px, 9vh, 80px) 0;
    }
    
    .section-header {
        margin-bottom: clamp(36px, 6vh, 46px);
    }
}

/* Desktop (1200px - 1365px) - Standard spacing, hero stays two-column */
@media (min-width: 1200px) and (max-width: 1365px) {
    .layout {
        gap: 60px;
        margin-bottom: clamp(60px, 9vh, 75px);
    }
    
    .features-side {
        gap: 22px;
    }
    
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px; /* Increased from 24px */
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px; /* Explicit gap */
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px; /* Explicit gap */
    }
    
    /* Section spacing optimization */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: clamp(60px, 9vh, 75px) 0;
    }
    
    .section-header {
        margin-bottom: clamp(36px, 5.5vh, 44px);
    }
    
    /* Typography optimizations for compact desktop */
    .hero-side h1 {
        font-size: 44px;
        line-height: 1.15;
    }
    
    .section-header h2 {
        font-size: 34px;
        line-height: 1.2;
    }
}

/* Laptop Small (1024px - 1199px) - Keep hero two-column */
@media (min-width: 1024px) and (max-width: 1199px) {
    .layout {
        /* Keep two-column layout - this is the key change */
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        margin-bottom: clamp(60px, 9vh, 70px);
    }
    
    .features-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Increased from 18px */
    }
    
    /* Section spacing optimization */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: clamp(60px, 9vh, 70px) 0;
    }
    
    .section-header {
        margin-bottom: clamp(36px, 5.5vh, 42px);
    }
    
    .hero-side h1 {
        font-size: 40px;
        line-height: 1.15;
    }
    
    .section-header h2 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .tagline,
    .section-header p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px; /* Increased from 20px */
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Explicit gap */
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Explicit gap */
    }
}

/* Tablet (768px - 1023px) - Compact tablet view */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 20px;
    }
    
    .layout {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .hero-side {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-side h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .features-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .feature {
        padding: 18px;
    }
    
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .comparison-card {
        padding: 24px;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: 60px 0;
    }
}

/* Mobile Large (481px - 767px) - Single column layouts */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 18px;
    }
    
    .layout {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 50px;
    }
    
    .hero-side h1 {
        font-size: 32px;
        line-height: 1.15;
    }
    
    .tagline {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .value-props-compact {
        flex-direction: column;
        align-items: stretch;
    }
    
    .value-prop-pill {
        justify-content: flex-start;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .features-side {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .comparison-card {
        padding: 24px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: 50px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
}

/* Mobile Medium (376px - 480px) - Optimized for most phones */
@media (min-width: 376px) and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .main {
        padding-top: 70px;
        padding-bottom: 40px;
    }
    
    .layout {
        gap: 32px;
        margin-bottom: 50px;
    }
    
    .hero-side h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .tagline {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .benefit {
        font-size: 12px;
    }
    
    .value-props-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .value-prop-pill {
        font-size: 11px;
        padding: 8px 10px;
        justify-content: flex-start;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .meta {
        gap: 6px;
        font-size: 11px;
    }
    
    .features-side {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature {
        padding: 18px;
    }
    
    .feature h3 {
        font-size: 14px;
    }
    
    .feature p {
        font-size: 12px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .comparison-card {
        padding: 20px;
    }
    
    .comparison-card h3 {
        font-size: 17px;
    }
    
    .comparison-list li {
        font-size: 13px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .use-case-card {
        padding: 20px;
    }
    
    .use-case-card h4 {
        font-size: 16px;
    }
    
    .use-case-stat {
        font-size: 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .faq-item {
        padding: 18px;
    }
    
    .faq-item h4 {
        font-size: 14px;
    }
    
    .faq-item p {
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: 50px 0;
    }
    
    .section-header {
        margin-bottom: 28px;
    }
}

/* Mobile Small (320px - 375px) - Maximum compaction */
@media (max-width: 375px) {
    .container {
        padding: 0 14px;
    }
    
    .header .container {
        padding-left: 14px;
        padding-right: 14px;
        min-height: 56px;
    }
    
    .logo {
        height: 22px;
    }
    
    .nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 11px;
        gap: 4px;
        padding: 8px 2px;
    }
    
    .nav-link svg {
        width: 14px;
        height: 14px;
    }
    
    .btn-small {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .main {
        padding-top: 66px;
        padding-bottom: 36px;
    }
    
    .layout {
        gap: 28px;
        margin-bottom: 40px;
    }
    
    .hero-side h1 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .tagline {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .benefit {
        font-size: 11px;
        gap: 6px;
    }
    
    .benefit svg {
        width: 16px;
        height: 16px;
    }
    
    .value-props-compact {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 18px;
    }
    
    .value-prop-pill {
        font-size: 11px;
        padding: 7px 10px;
        min-height: 32px;
    }
    
    .value-prop-pill svg {
        width: 12px;
        height: 12px;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 11px 18px;
        font-size: 12px;
        min-height: 42px;
    }
    
    .btn-primary svg,
    .btn-secondary svg {
        width: 14px;
        height: 14px;
    }
    
    .meta {
        gap: 6px;
        font-size: 10px;
    }
    
    .meta svg {
        width: 10px;
        height: 10px;
    }
    
    .features-side {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature {
        padding: 16px;
    }
    
    .feature svg {
        width: 18px;
        height: 18px;
        margin-bottom: 10px;
    }
    
    .feature-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .feature h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .feature p {
        font-size: 11px;
    }
    
    .comparison-section,
    .use-cases-section,
    .faq-section {
        margin: 40px 0;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    .section-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .section-header p {
        font-size: 13px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .comparison-card {
        padding: 18px;
    }
    
    .comparison-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 14px;
    }
    
    .comparison-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .comparison-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .comparison-subtitle {
        font-size: 11px;
        margin-bottom: 14px;
    }
    
    .comparison-list {
        gap: 10px;
    }
    
    .comparison-list li {
        font-size: 12px;
        padding-left: 20px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .use-case-card {
        padding: 18px;
    }
    
    .use-case-card h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .use-case-card p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .use-case-stat {
        font-size: 18px;
        gap: 4px;
    }
    
    .use-case-stat span {
        font-size: 10px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .faq-item {
        padding: 16px;
    }
    
    .faq-item h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .faq-item p {
        font-size: 11px;
    }
    
    .footer {
        padding: 14px 0;
    }
    
    .footer p {
        font-size: 10px;
    }
    
    /* Hide decorative cubes on small screens for performance */
    .cubes {
        display: none;
    }
}

/* Prevent horizontal scrolling at all viewport sizes */
body, html {
    max-width: 100vw;
    overflow-x: hidden;
}

img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

/* Ensure proper word wrapping */
h1, h2, h3, h4, h5, h6, p, li, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.feature h3, .feature p, .comparison-card h3, .comparison-list li,
.use-case-card h4, .use-case-card p, .faq-item h4, .faq-item p,
.feature-badge, strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ===============================================
   DESKTOP-SPECIFIC INTERACTIONS & ANIMATIONS
   Agent 3: Interaction & Animation Designer
   =============================================== */

/* Desktop-only hover states (1024px+) with precise pointer devices */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    
    /* Enhanced Button Interactions */
    .btn-primary,
    .btn-secondary {
        transition: all 0.25s var(--ease-smooth);
    }
    
    .btn-primary:hover {
        transform: translate3d(0, -2px, 0) scale(1.02);
        box-shadow: 0 12px 32px rgba(107,99,255,0.5);
    }
    
    .btn-secondary:hover {
        transform: translate3d(0, -1px, 0) scale(1.01);
        box-shadow: 0 4px 16px rgba(107,99,255,0.2);
    }
    
    /* Enhanced Card Depth Effects */
    .feature:hover {
        transform: translate3d(0, -4px, 0) scale(1.01);
        box-shadow:
            0 8px 20px rgba(107,99,255,0.25),
            0 0 0 1px rgba(107,99,255,0.1);
        z-index: 10;
    }
    
    .comparison-card:hover {
        transform: translate3d(0, -6px, 0) scale(1.01);
        box-shadow:
            0 12px 28px rgba(107,99,255,0.3),
            0 0 0 1px rgba(107,99,255,0.15);
        z-index: 10;
    }
    
    .use-case-card:hover {
        transform: translate3d(0, -4px, 0) scale(1.01);
        box-shadow:
            0 8px 20px rgba(0, 217, 255, 0.25),
            0 0 0 1px rgba(0, 217, 255, 0.1);
        z-index: 10;
    }
    
    .faq-item:hover {
        transform: translate3d(0, -3px, 0);
        box-shadow:
            0 6px 18px rgba(107,99,255,0.2),
            0 0 0 1px rgba(107,99,255,0.1);
    }
    
    /* Icon Animations on Hover */
    .feature:hover svg {
        transform: scale(1.1) rotate(3deg);
        filter: drop-shadow(0 4px 8px rgba(0,217,255,0.5));
    }
    
    .comparison-card:hover .comparison-icon svg {
        transform: rotate(8deg) scale(1.1);
        filter: drop-shadow(0 2px 6px rgba(0,217,255,0.4));
    }
    
    /* Enhanced Link Hover States */
    .nav-link,
    .meta-link,
    .footer a {
        transition: all 0.2s var(--ease-smooth);
    }
    
    .nav-link:hover {
        transform: translateY(-1px);
    }
    
    /* Value Props Pills Enhanced Interaction */
    .value-prop-pill {
        transition: all 0.25s var(--ease-smooth);
    }
    
    .value-prop-pill:hover {
        background: rgba(0, 217, 255, 0.2);
        border-color: var(--accent);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
    }
    
    .value-prop-pill:hover svg {
        transform: scale(1.1);
    }
    
    /* Logo Animation */
    .logo-link:hover .logo {
        transform: scale(1.05);
        transition: transform 0.3s var(--ease-smooth);
    }
    
    /* Small Button Enhancement */
    .btn-small:hover {
        transform: translate3d(0, -1px, 0);
        box-shadow: 0 4px 16px rgba(107,99,255,0.3);
    }
}

/* Desktop Large (1920px+) - Enhanced hover effects */
@media (min-width: 1920px) and (hover: hover) and (pointer: fine) {
    
    .btn-primary:hover {
        transform: translate3d(0, -3px, 0) scale(1.03);
        box-shadow: 0 16px 40px rgba(107,99,255,0.6);
    }
    
    .comparison-card:hover {
        transform: translate3d(0, -8px, 0) scale(1.02);
        box-shadow:
            0 16px 32px rgba(107,99,255,0.35),
            0 0 0 1px rgba(107,99,255,0.2);
    }
    
    .feature:hover {
        transform: translate3d(0, -5px, 0) scale(1.02);
        box-shadow:
            0 10px 24px rgba(107,99,255,0.3),
            0 0 0 1px rgba(107,99,255,0.15);
    }
}

/* Accessibility: Reduced Motion Support */
@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;
    }
    
    /* Keep cubes static */
    .cube {
        animation: none;
    }
}

/* Accessibility: High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --card-border: rgba(255,255,255,0.3);
    }
    
    .feature,
    .comparison-card,
    .use-case-card,
    .faq-item {
        border-width: 2px;
    }
}

/* Screen Reader Only Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Visible Styles for Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-small:focus-visible {
    outline-offset: 4px;
}

/* ===============================================
   AGENT 5: PERFORMANCE & OPTIMIZATION ENGINEER
   Desktop Performance Optimizations
   =============================================== */

/* GPU Acceleration & Performance Optimizations for Desktop */
@media (min-width: 1024px) {
    
    /* Prepare elements for GPU acceleration */
    .feature,
    .comparison-card,
    .use-case-card,
    .faq-item,
    .btn-primary,
    .btn-secondary {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Optimize cube animations */
    .cube {
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }
    
    /* Create isolated stacking contexts for better paint performance */
    .feature,
    .comparison-card,
    .use-case-card,
    .faq-item {
        isolation: isolate;
        /* Contain layout and style to prevent unnecessary repaints */
        contain: paint;
    }
    
    /* Content Visibility API for Below-Fold Sections */
    .comparison-section,
    .use-cases-section,
    .faq-section {
        content-visibility: auto;
        /* Estimated heights to maintain accurate scrollbar sizing */
        contain-intrinsic-size: 0 800px;
    }
    
    /* Will-change optimization for interactive elements (on hover) */
    .btn-primary:hover,
    .btn-secondary:hover,
    .feature:hover,
    .comparison-card:hover,
    .use-case-card:hover,
    .faq-item:hover {
        will-change: transform, box-shadow;
    }
    
    /* Remove will-change after interaction to free GPU memory */
    .btn-primary:not(:hover),
    .btn-secondary:not(:hover),
    .feature:not(:hover),
    .comparison-card:not(:hover),
    .use-case-card:not(:hover),
    .faq-item:not(:hover) {
        will-change: auto;
    }
    
    /* Optimize icon transitions for GPU */
    .feature svg,
    .comparison-icon svg {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
    
    /* Header backdrop optimization */
    .header {
        will-change: backdrop-filter;
        contain: layout style paint;
    }
    
    /* Footer optimization */
    .footer {
        contain: layout style paint;
    }
}

/* Large Desktop (1920px+) - Enhanced performance budgets */
@media (min-width: 1920px) {
    
    /* Increase contain-intrinsic-size for larger sections */
    .comparison-section {
        contain-intrinsic-size: 0 1000px;
    }
    
    .use-cases-section {
        contain-intrinsic-size: 0 900px;
    }
    
    .faq-section {
        contain-intrinsic-size: 0 1200px;
    }
}

/* Ultra-Wide (2560px+) - Maximum performance optimization */
@media (min-width: 2560px) {
    
    /* Adjust intrinsic sizes for ultra-wide layouts */
    .comparison-section {
        contain-intrinsic-size: 0 1100px;
    }
    
    .use-cases-section {
        contain-intrinsic-size: 0 1000px;
    }
    
    .faq-section {
        contain-intrinsic-size: 0 1400px;
    }
}

/* Desktop Parallax Effect for Cubes (Performance Optimized) */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .cubes {
        transform: translateZ(0);
        will-change: transform;
    }
    
    .cube {
        animation: float 20s infinite ease-in-out;
        will-change: transform, opacity;
        /* Optimize for compositing */
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
    
    /* Stagger animations more on desktop */
    .c1 { animation-delay: 0s; animation-duration: 24s; }
    .c2 { animation-delay: -6s; animation-duration: 26s; }
    .c3 { animation-delay: -12s; animation-duration: 22s; }
    .c4 { animation-delay: -8s; animation-duration: 28s; }
}

/* Performance optimization: Reduce cube complexity on lower-end devices */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) and (max-width: 1365px) {
    /* Simplify animations on smaller desktop screens */
    .cube {
        animation-duration: 30s;
    }
    
    .c3, .c4 {
        opacity: 0.2; /* Reduce visual complexity */
    }
}

/* Ultra-Wide Desktop (2560px+) - Maximum effect enhancements */
@media (min-width: 2560px) and (hover: hover) and (pointer: fine) {
    
    .btn-primary:hover {
        transform: translate3d(0, -4px, 0) scale(1.04);
        box-shadow: 0 20px 48px rgba(107,99,255,0.7);
    }
    
    .comparison-card:hover {
        transform: translate3d(0, -10px, 0) scale(1.02);
        box-shadow:
            0 20px 40px rgba(107,99,255,0.4),
            0 0 0 2px rgba(107,99,255,0.2);
    }
    
    .feature:hover svg {
        transform: scale(1.15) rotate(5deg);
    }
}

/* ===============================================
   AGENTS SECTION - HORIZONTAL SCROLL WIDGETS
   =============================================== */

.agents-section {
    position: relative;
}

.agents-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: clamp(16px, 3vh, 24px) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(107,99,255,0.5) rgba(27,35,53,0.5);
    -webkit-overflow-scrolling: touch;
}

.agents-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.agents-scroll-container::-webkit-scrollbar-track {
    background: rgba(27,35,53,0.5);
    border-radius: 4px;
}

.agents-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(107,99,255,0.5);
    border-radius: 4px;
    transition: background 0.3s;
}

.agents-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(107,99,255,0.7);
}

.agents-track {
    display: flex;
    gap: clamp(16px, 2vw, 20px);
    padding-bottom: 8px;
}

.agent-widget {
    flex: 0 0 auto;
    width: clamp(320px, 35vw, 420px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: clamp(20px, 3vw, 24px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.agent-widget:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.3);
}

.agent-widget-icon {
    flex-shrink: 0;
    width: clamp(48px, 6vw, 56px);
    height: clamp(48px, 6vw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107,99,255,0.1);
    border-radius: 12px;
    color: var(--accent);
    transition: all 0.3s var(--ease-smooth);
}

.agent-widget:hover .agent-widget-icon {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.agent-widget-content {
    flex: 1;
    min-width: 0;
}

.agent-widget-title {
    font-size: clamp(15px, 2vw, 17px);
    font-weight: 600;
    color: var(--text);
    margin-bottom: clamp(4px, 0.8vh, 6px);
    transition: color 0.3s var(--ease-smooth);
}

.agent-widget:hover .agent-widget-title {
    color: var(--accent);
}

.agent-widget-description {
    font-size: clamp(12px, 1.5vw, 13px);
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-definitions-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-gradient-top), var(--primary-gradient-bottom));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--ease-smooth);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.agent-definitions-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107,99,255,0.4);
}

/* Mobile responsive for agents */
@media (max-width: 767px) {
    .agent-widget {
        width: clamp(280px, 85vw, 320px);
    }
    
    .agents-track {
        animation-duration: 30s;
    }
}

/* ===============================================
   MARKDOWN MODAL STYLES
   =============================================== */

.markdown-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(13, 20, 36, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    animation: fadeIn 0.3s var(--ease-smooth);
}

.markdown-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(20px, 4vh, 40px) clamp(16px, 3vw, 24px);
}

.markdown-modal-content {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s var(--ease-smooth);
}

.markdown-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(16px, 2.5vh, 20px) clamp(20px, 3vw, 24px);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--card-border);
    border-radius: 16px 16px 0 0;
    z-index: 10;
}

.markdown-modal-header h2 {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text);
    margin: 0;
    flex: 1;
}

.markdown-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s var(--ease-smooth);
    flex-shrink: 0;
    margin-left: 16px;
}

.markdown-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.markdown-modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.markdown-modal-body {
    padding: clamp(24px, 4vh, 32px) clamp(20px, 3vw, 32px);
    max-height: 70vh;
    overflow-y: auto;
}

.markdown-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.markdown-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(107, 99, 255, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   RENDERED MARKDOWN CONTENT STYLES
   =============================================== */

.markdown-content {
    color: var(--text-dim);
    line-height: 1.7;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: var(--text);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.markdown-content h1 {
    font-size: clamp(28px, 4vw, 32px);
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.markdown-content h2 {
    font-size: clamp(24px, 3.5vw, 28px);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.4em;
    margin-bottom: 0.8em;
}

.markdown-content h3 {
    font-size: clamp(20px, 3vw, 24px);
}

.markdown-content h4 {
    font-size: clamp(17px, 2.5vw, 20px);
}

.markdown-content h5 {
    font-size: clamp(15px, 2vw, 17px);
}

.markdown-content h6 {
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--text-muted);
}

.markdown-content p {
    margin-bottom: 1em;
    font-size: clamp(14px, 1.8vw, 15px);
}

.markdown-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.2s;
}

.markdown-content a:hover {
    color: #00D9FF;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.markdown-content li {
    margin-bottom: 0.5em;
    font-size: clamp(14px, 1.8vw, 15px);
}

.markdown-content code {
    background: rgba(107, 99, 255, 0.1);
    border: 1px solid rgba(107, 99, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.markdown-content pre {
    background: rgba(27, 35, 53, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.markdown-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-dim);
    font-size: clamp(12px, 1.6vw, 13px);
    line-height: 1.6;
}

.markdown-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1em 0;
    padding: 0.5em 0 0.5em 1em;
    color: var(--text-muted);
    font-style: italic;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: clamp(13px, 1.7vw, 14px);
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid var(--card-border);
    padding: clamp(8px, 1.5vw, 12px);
    text-align: left;
}

.markdown-content table th {
    background: rgba(107, 99, 255, 0.1);
    color: var(--text);
    font-weight: 600;
}

.markdown-content table tr:hover {
    background: rgba(107, 99, 255, 0.05);
}

.markdown-content hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 2em 0;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Mermaid diagram styles */
.markdown-content .mermaid {
    background: rgba(27, 35, 53, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: clamp(16px, 3vw, 24px);
    margin: 1.5em 0;
    overflow-x: auto;
}

.markdown-content .mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive styles for markdown modal */
@media (max-width: 767px) {
    .markdown-modal-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        min-height: 100vh;
    }
    
    .markdown-modal-body {
        max-height: none;
    }
    
    .markdown-content pre {
        font-size: 12px;
    }
    
    .markdown-content table {
        font-size: 12px;
    }
}

/* Smooth transitions for text content on hover */
@media (min-width: 1024px) and (hover: hover) {
    
    .feature h3,
    .feature p,
    .comparison-card h3,
    .use-case-card h4 {
        transition: color 0.3s var(--ease-smooth);
    }
    
    .feature:hover h3,
    .comparison-card:hover h3,
    .use-case-card:hover h4 {
        color: var(--accent);
    }
}
