/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure all elements respect the viewport width */
section, div, header, nav, main, footer {
    max-width: 100%;
}

/* Responsive breakpoints for different devices */
@media (max-width: 1024px) {
    .logo {
        height: 55px;
        font-size: 1.2rem;
    }
    
    .logo img {
        max-height: 38px;
    }
    
    .nav-cta {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 7rem 0 2.5rem;
    }
}

@media (max-width: 900px) {
    .nav {
        gap: 1rem;
    }
    
    .nav-documentation {
        font-size: 0.8rem;
    }
    
    .nav-contact {
        font-size: 0.8rem;
    }
    
    .nav-cta {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    .nav-cta {
        display: none !important; /* Force hide Try Now button on mobile */
    }
    
    .nav {
        gap: 1rem;
        justify-content: flex-end;
    }
    
    .nav-documentation, .nav-contact {
        font-size: 0.9rem;
    }
    
    /* Improve touch targets for mobile */
    a, button, .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Add subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0.25rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    height: 60px;
    z-index: 1001;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 42px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.nav-cta {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.nav-documentation {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-documentation:hover {
    color: white;
}

.nav-contact {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-contact:hover {
    color: white;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 600px;
}

.highlight {
    color: #8b5cf6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.launch-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Demo video container */
.demo-video {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

.demo-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.demo-video video {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
}

/* Add floating animation elements */
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Core Functionality Section */
.core-functionality {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    color: white;
    position: relative;
}

.core-functionality::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: #0a0a0a;
    color: white;
    position: relative;
}

/* Enhanced section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Enhanced feature cards */
.feature-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #8b5cf6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* Enhanced stats */
.stat-item {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* MCP Servers Showcase */
.mcp-showcase {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.mcp-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.mcp-grid {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    margin-top: 3rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.mcp-card {
    background: transparent;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    min-width: 150px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mcp-card::before {
    display: none;
}

.mcp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.mcp-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.mcp-icon img {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.mcp-card:hover .mcp-icon img {
    transform: scale(1.1);
    opacity: 1;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: #0a0a0a;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    padding: 0;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        padding: 0.75rem 15px;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-documentation {
        font-size: 0.9rem;
    }
    
    .nav-contact {
        font-size: 0.9rem;
    }
    
    .nav-cta {
        display: none !important; /* Hide Try Now button on mobile */
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .demo-video {
        max-width: 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .mcp-grid {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .mcp-card {
        min-width: 120px;
    }
    
    .mcp-icon {
        width: 60px;
        height: 60px;
    }
    
    .mcp-icon img {
        max-width: 60px;
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 0.5rem 10px;
    }
    
    .logo {
        height: 35px;
        font-size: 0.85rem;
    }
    
    .logo img {
        max-height: 22px;
    }
    
    .nav {
        gap: 0.75rem;
    }
    
    .nav-documentation {
        font-size: 0.8rem;
    }
    
    .nav-contact {
        font-size: 0.8rem;
    }
    
    .nav-cta {
        display: none !important; /* Hide on very small mobile */
    }
    
    .hero {
        padding: 5rem 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .mcp-grid {
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .mcp-card {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .mcp-icon {
        width: 50px;
        height: 40px;
    }
    
    .mcp-icon img {
        max-width: 50px;
        max-height: 30px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Documentation Section */
.docs {
    padding: 6rem 0 4rem;
    background: rgba(139, 92, 246, 0.05);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.doc-card:hover::before {
    transform: scaleX(1);
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.doc-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.doc-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Documentation Pages */
.docs-content {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.docs-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 0 0 2rem 0;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8b5cf6;
}

.doc-article {
    max-width: 800px;
    margin: 0 auto;
}

.doc-article h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doc-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.doc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.doc-section:hover::before {
    transform: scaleX(1);
}

.doc-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
}

.doc-section h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.doc-section h3 {
    color: white;
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.doc-section h4 {
    color: #8b5cf6;
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.doc-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.doc-section ul, .doc-section ol {
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0;
    padding-left: 2rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.doc-section strong {
    color: white;
    font-weight: 600;
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.language-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.language-card:hover::before {
    transform: scaleX(1);
}

.language-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.language-card h3 {
    color: #8b5cf6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.language-details h4 {
    color: white;
    margin: 1rem 0 0.5rem;
}

.language-details ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.5rem;
}

/* Additional Languages */
.additional-languages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.language-item {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.language-item h4 {
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.language-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.standard-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.standard-item h4 {
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.standard-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.comparison-card:hover::before {
    transform: scaleX(1);
}

.comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.comparison-card.codeglide {
    border-color: rgba(139, 92, 246, 0.3);
}

.comparison-card.alternative {
    border-color: rgba(255, 255, 255, 0.2);
}

.comparison-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.metric {
    margin-bottom: 1.5rem;
}

.metric h4 {
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.metric .highlight {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.metric p:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Feature Comparison */
.feature-comparison {
    margin: 2rem 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-name {
    color: white;
    font-weight: 600;
}

.feature-codeglide, .feature-alternative {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.checkmark {
    color: #8b5cf6;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Capability Grid */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.capability-card h3 {
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.capability-card ul {
    margin-top: 1rem;
}

/* Accuracy Metrics */
.accuracy-metrics {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
}

.metric-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.accuracy-score {
    margin-bottom: 1.5rem;
}

.accuracy-score .score {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #8b5cf6;
}

.accuracy-score .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.accuracy-details h4 {
    color: white;
    margin-bottom: 1rem;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.advantage-item h4 {
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.advantage-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.result-item h4 {
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.result-item p {
    margin-bottom: 0.5rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.benefit-item h4 {
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.resource-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.resource-item h4 {
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.resource-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cta-box:hover::before {
    transform: scaleX(1);
}

.cta-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.cta-box h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Code Block */
.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block pre {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    color: #8b5cf6;
}

/* Help Section */
.help-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.help-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.help-content h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.help-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.help-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Responsive Design for Docs */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .accuracy-metrics {
        grid-template-columns: 1fr;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .doc-article h1 {
        font-size: 2rem;
    }
    
    .help-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Release Cycle Styles */
.release-info {
    margin: 2rem 0;
}

.release-item {
    margin-bottom: 2rem;
}

.release-item h4 {
    color: #8b5cf6;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.release-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.release-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.channel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.channel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.channel:hover::before {
    transform: scaleX(1);
}

.channel:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.channel h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.channel p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.channel .btn-primary,
.channel .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Enhanced Flow Diagram Section */
.flow-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.flow-section .container {
    max-width: 100%;
    overflow: hidden;
}

.flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.enhanced-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 2rem 1rem;
    max-width: 100%;
    box-sizing: border-box;
    /* Smooth scrolling for mobile */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar but maintain functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.enhanced-flow-diagram::-webkit-scrollbar {
    display: none;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
    max-width: 120px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
    flex-shrink: 0;
}

.flow-step[data-step="1"] { animation-delay: 0.2s; }
.flow-step[data-step="2"] { animation-delay: 0.4s; }
.flow-step[data-step="3"] { animation-delay: 0.6s; }
.flow-step[data-step="4"] { animation-delay: 0.8s; }
.flow-step[data-step="5"] { animation-delay: 1.0s; }
.flow-step[data-step="6"] { animation-delay: 1.2s; }
.flow-step[data-step="7"] { animation-delay: 1.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-step .step-icon {
    width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flow-step .step-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.flow-step:hover .step-icon::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.flow-step:hover .step-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.step-logo {
    width: 30px;
    height: auto;
    filter: brightness(0) invert(1);
}

.github-step {
    background: linear-gradient(135deg, #333, #24292e);
}

.language-step {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    position: relative;
    overflow: hidden;
}

.security-step {
    background: linear-gradient(135deg, #059669, #047857);
}

.mcp-step {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    position: relative;
}

.pr-step {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.deploy-step {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.rotating-language {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-display {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transform: scale(0.8) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.lang-display.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.lang-emoji {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lang-label {
    font-size: 8px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    opacity: 0.9;
}

.mcp-icon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.mcp-icon-content svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: serverPulse 2s ease-in-out infinite;
}

@keyframes serverPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Language rotation animation - slower transitions */
.rotating-language .lang-display:nth-child(1) { animation: rotateLanguages 15s infinite; animation-delay: 0s; }
.rotating-language .lang-display:nth-child(2) { animation: rotateLanguages 15s infinite; animation-delay: 3s; }
.rotating-language .lang-display:nth-child(3) { animation: rotateLanguages 15s infinite; animation-delay: 6s; }
.rotating-language .lang-display:nth-child(4) { animation: rotateLanguages 15s infinite; animation-delay: 9s; }
.rotating-language .lang-display:nth-child(5) { animation: rotateLanguages 15s infinite; animation-delay: 12s; }

@keyframes rotateLanguages {
    0%, 20% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
    40%, 100% {
        opacity: 0;
        transform: scale(0.8) rotateY(90deg);
    }
}

.secure-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 16px;
    background: rgba(34, 197, 94, 0.9);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.flow-step h3 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.flow-step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
}

.flow-arrow {
    display: flex;
    align-items: center;
    margin: 0 0.25rem;
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
    flex-shrink: 0;
}

.flow-arrow:nth-of-type(2) { animation-delay: 0.5s; }
.flow-arrow:nth-of-type(4) { animation-delay: 0.7s; }
.flow-arrow:nth-of-type(6) { animation-delay: 0.9s; }
.flow-arrow:nth-of-type(8) { animation-delay: 1.1s; }
.flow-arrow:nth-of-type(10) { animation-delay: 1.3s; }
.flow-arrow:nth-of-type(12) { animation-delay: 1.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
    }
}

.arrow-line {
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    position: relative;
    overflow: hidden;
}

.arrow-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: flowAnimation 3s infinite;
}

@keyframes flowAnimation {
    0% { left: -100%; }
    100% { left: 100%; }
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 6px solid #8b5cf6;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: -1px;
}

/* Hover effects for the entire flow */
.enhanced-flow-diagram:hover .flow-step {
    opacity: 0.6;
}

.enhanced-flow-diagram .flow-step:hover {
    opacity: 1;
    transform: translateY(-8px);
}

/* Responsive Design for Enhanced Flow Diagram */
@media (max-width: 1200px) {
    .enhanced-flow-diagram {
        gap: 0.4rem;
        padding: 1.5rem 0.5rem;
    }
    
    .flow-step {
        min-width: 85px;
        max-width: 100px;
    }
    
    .flow-step .step-icon {
        width: 50px;
        height: 40px;
    }
    
    .flow-step h3 {
        font-size: 0.8rem;
    }
    
    .flow-step p {
        font-size: 0.65rem;
    }
    
    .lang-emoji {
        font-size: 14px;
    }
    
    .lang-label {
        font-size: 7px;
    }
    
    .arrow-line {
        width: 20px;
    }
    
    .step-logo {
        width: 25px;
    }
}

@media (max-width: 1024px) {
    .enhanced-flow-diagram {
        gap: 0.3rem;
        padding: 1.5rem 0.25rem;
    }
    
    .flow-step {
        min-width: 75px;
        max-width: 90px;
    }
    
    .flow-step .step-icon {
        width: 45px;
        height: 35px;
    }
    
    .flow-step h3 {
        font-size: 0.7rem;
    }
    
    .flow-step p {
        font-size: 0.6rem;
    }
    
    .lang-emoji {
        font-size: 12px;
    }
    
    .lang-label {
        font-size: 6px;
    }
    
    .arrow-line {
        width: 15px;
    }
    
    .step-logo {
        width: 20px;
    }
}

@media (max-width: 768px) {
    .flow-section {
        padding: 3rem 0;
    }
    
    .enhanced-flow-diagram {
        gap: 0.2rem;
        padding: 1rem 0.1rem;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .flow-step {
        min-width: 65px;
        max-width: 80px;
    }
    
    .flow-step .step-icon {
        width: 40px;
        height: 32px;
    }
    
    .flow-step h3 {
        font-size: 0.65rem;
    }
    
    .flow-step p {
        font-size: 0.55rem;
    }
    
    .lang-emoji {
        font-size: 10px;
    }
    
    .lang-label {
        font-size: 5px;
    }
    
    .arrow-line {
        width: 12px;
    }
    
    .step-logo {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .enhanced-flow-diagram {
        gap: 0.15rem;
        padding: 1rem 0.05rem;
        overflow-x: auto;
        justify-content: flex-start;
        position: relative;
    }
    
    /* Add scroll indicator for mobile */
    .enhanced-flow-diagram::after {
        content: "Swipe to see more";
        position: absolute;
        bottom: -30px;
        right: 10px;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.6);
        animation: fadeInOut 3s ease-in-out infinite;
        pointer-events: none;
    }
    
    @keyframes fadeInOut {
        0%, 50%, 100% { opacity: 0.6; }
        25%, 75% { opacity: 1; }
    }
    
    .flow-step {
        min-width: 55px;
        max-width: 70px;
    }
    
    .flow-step .step-icon {
        width: 35px;
        height: 28px;
    }
    
    .step-logo {
        width: 15px;
    }
    
    .flow-step h3 {
        font-size: 0.6rem;
    }
    
    .flow-step p {
        font-size: 0.5rem;
    }
    
    .lang-emoji {
        font-size: 8px;
    }
    
    .lang-label {
        font-size: 4px;
    }
    
    .arrow-line {
        width: 10px;
    }
    
    .secure-badge {
        width: 12px;
        height: 12px;
        font-size: 8px;
    }
    
    .mcp-icon-content svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive Design for Release Channels */
@media (max-width: 768px) {
    .release-channels {
        grid-template-columns: 1fr;
    }
    
    .channel {
        padding: 1.25rem;
    }
}

/* Docs Layout with Sidebar */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
}

.docs-sidebar {
    position: sticky;
    top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-nav h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    color: white;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.sidebar-nav a.active {
    color: white;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.docs-main {
    min-width: 0;
    grid-column: 2;
    width: 100%;
}

.docs-sidebar {
    grid-column: 1;
}

/* Ensure flow starts at the very left in docs */
.docs-main .enhanced-flow-diagram { 
    justify-content: flex-start;
    padding-left: 0; 
}

/* Responsive Design for Docs Layout */
@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .docs-sidebar {
        position: static !important;
        order: 1 !important; /* Move sidebar to TOP on mobile */
        width: 100% !important;
        margin: 1rem 0 2rem 0 !important;
        background: rgba(139, 92, 246, 0.1) !important;
        border: 2px solid rgba(139, 92, 246, 0.3) !important;
        border-radius: 12px !important;
        padding: 1.5rem !important;
    }
    
    .docs-main {
        order: 2 !important; /* Move content below sidebar */
        width: 100% !important;
        padding: 0 !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    .docs-content, .main {
        padding: 6rem 0 2rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .doc-article {
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* Flow Diagram Styles */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    max-width: 150px;
}

.step-icon {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.step-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.flow-step h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.flow-step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.flow-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    position: relative;
    margin: 0 0.5rem;
}

.flow-connector::before,
.flow-connector::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    top: -3px;
}

.flow-connector::before {
    left: -4px;
}

.flow-connector::after {
    right: -4px;
}

/* Responsive Design for Flow Diagram */
@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
        gap: 2rem;
    }
    
    .flow-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }
    
    .flow-connector::before,
    .flow-connector::after {
        left: -3px;
        top: -4px;
        width: 8px;
        height: 8px;
    }
    
    .flow-connector::after {
        left: auto;
        right: -3px;
    }
    
    .flow-step {
        min-width: auto;
    }
}

/* Get Started Header Styles */
.get-started-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.get-started-title-row h2 {
    margin: 0;
}

.get-started-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.get-started-header h2 {
    margin: 0;
    color: white;
}

.get-started-content {
    text-align: center;
    margin-bottom: 2rem;
}

.get-started-content h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.get-started-content .intro-link {
    text-align: center;
    margin-top: 1rem;
}

.get-started-buttons {
    margin-top: 1.5rem;
}

.intro-link {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.intro-link a {
    color: #8b5cf6;
    text-decoration: underline;
    font-weight: 500;
}

.intro-link a:hover {
    color: #a855f7;
}

/* Step List Styles */
.steps-overview {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.step-content {
    flex: 1;
    padding: 0 1rem;
}

.step-content h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-substeps {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.substep {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.substep:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.substep h4 {
    color: #8b5cf6;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.substep p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.step-images {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.step-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.step-image:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.6);
}

.step-image-caption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Additional image quality improvements */
.step-images img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images maintain quality on high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .step-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Force hardware acceleration for better image rendering */
.step-image {
    will-change: transform;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
}

.note-box {
    background: rgba(139, 92, 246, 0.15);
    border-left: 4px solid #8b5cf6;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.troubleshooting-note {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.troubleshooting-note a {
    color: #fca5a5;
    text-decoration: underline;
}

.troubleshooting-note a:hover {
    color: #fecaca;
}

.troubleshooting-link {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    border-radius: 0 6px 6px 0;
}

.troubleshooting-link p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

.troubleshooting-link strong {
    color: #fca5a5;
}

.troubleshooting-link a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.troubleshooting-link a:hover {
    color: #e5e7eb;
    text-decoration: none;
}

.wait-note {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.wait-note p {
    color: #60a5fa;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wait-note strong {
    color: #3b82f6;
}

/* Responsive Design for Steps */
@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-images {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-image {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-image {
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
    }
    
    /* Documentation Mobile Fixes */
    .docs-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .docs-sidebar {
        width: 100% !important;
        margin: 1rem 0 2rem 0 !important;
        padding: 1.5rem !important;
        background: rgba(139, 92, 246, 0.15) !important;
        border: 2px solid rgba(139, 92, 246, 0.4) !important;
        border-radius: 12px !important;
        order: 1 !important; /* Always show at top */
    }
    
    .docs-main {
        width: 100% !important;
        padding: 0 !important;
        order: 2 !important;
    }
    
    .sidebar-nav h3 {
        font-size: 1.1rem !important;
        color: #8b5cf6 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .sidebar-nav ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .sidebar-nav li {
        margin: 0 !important;
    }
    
    .sidebar-nav a {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
        background: rgba(139, 92, 246, 0.2) !important;
        border: 1px solid rgba(139, 92, 246, 0.3) !important;
        border-radius: 6px !important;
        display: block !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    .sidebar-nav a.active {
        background: rgba(139, 92, 246, 0.4) !important;
        border-color: rgba(139, 92, 246, 0.6) !important;
        color: white !important;
    }
} 