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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    z-index: -2;
    animation: backgroundFloat 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: gridMove 30s linear infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(1deg) scale(1.02); }
    66% { transform: rotate(-1deg) scale(0.98); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #5b21b6 0%, #16a34a 60%, #16a34a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
    padding-top: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.hero h1::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: expandLine 2s ease-out 0.5s both;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 100px; }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.screenshot-showcase {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 900px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.1);
    animation: pulseGlow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.25),
            0 6px 25px rgba(0, 0, 0, 0.15);
    }
}

.gui-screenshot {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gui-screenshot:hover {
    transform: scale(1.02);
}

.features-quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #16a34a, #22c55e, #5b21b6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 1.5rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotateY(360deg);
}

.feature-item span {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

.cta-section {
    margin-top: 4rem;
}

.github-star-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.download-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 3rem;
    background: #ffffff;
    color: #16a34a;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.download-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.download-btn:hover::after {
    opacity: 1;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.25);
}

.download-btn i {
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: scale(1.2);
}

.download-info {
    margin-top: 1rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* Comparison Section */
.comparison-section {
    padding: 4rem 0;
    background: linear-gradient(180deg,
        rgba(248, 250, 252, 0.5) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(248, 250, 252, 0.5) 100%);
    position: relative;
}

.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.comparison-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #16a34a 50%, #5b21b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.comparison-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #5b21b6);
    border-radius: 2px;
}

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

.comparison-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.comparison-card.after::before {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

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

.comparison-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 25px 60px rgba(99, 102, 241, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    color: #ef4444;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.after .card-header i {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-card:hover .card-header i {
    transform: scale(1.2) rotateY(360deg);
}

.card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}

.time-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1));
    color: #dc2626;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 2px solid rgba(239, 68, 68, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.time-badge.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

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

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    color: #475569;
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.comparison-card li:hover {
    color: #1e293b;
    padding-left: 3rem;
}

.comparison-card li::before {
    content: '✗';
    position: absolute;
    left: 0;
    top: 1rem;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.after li::before {
    content: '✓';
    color: #10b981;
}

.comparison-card li:hover::before {
    transform: scale(1.3);
}

.explore-projects-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.explore-projects {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.explore-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
    z-index: 1;
}

.explore-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.explore-projects p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #1e293b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid #1e293b;
    position: relative;
    z-index: 1;
}

.explore-btn:hover {
    background: #ffffff;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.2);
}

.explore-btn i {
    font-size: 0.9rem;
}

.final-cta-section {
    padding: 6rem 0 6rem 0;  /* Add bottom padding to match top */
    background: linear-gradient(180deg,
        rgba(248, 250, 252, 0.5) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(248, 250, 252, 0.5) 100%);
    position: relative;
}

.final-cta {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 250, 252, 0.95) 100%);
    border-radius: 32px;
    border: 2px solid rgba(22, 163, 74, 0.2);
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(99, 102, 241, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.final-cta h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e293b;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.download-btn.secondary {
    background: linear-gradient(135deg, #5b21b6 0%, #16a34a 100%);
    color: #ffffff;
}

.download-btn.secondary:hover {
    background: linear-gradient(135deg, #4c1d95 0%, #15803d 100%);
}

.trust-signals {
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}


/* Getting Started Section */
.getting-started {
    padding: 4rem 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(248, 250, 252, 0.9) 50%,
        rgba(255, 255, 255, 0.8) 100%);
    position: relative;
}

.getting-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.3), transparent);
}

.getting-started h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #16a34a 50%, #5b21b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.getting-started h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #5b21b6);
    border-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(22, 163, 74, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #5b21b6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(22, 163, 74, 0.3);
    box-shadow:
        0 20px 50px rgba(22, 163, 74, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #16a34a 0%, #5b21b6 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    transition: transform 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotateY(360deg);
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.step-card p {
    color: #475569;
    line-height: 1.6;
    font-size: 1rem;
}

.step-card a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.step-card a:hover {
    color: #5b21b6;
    text-decoration: underline;
}




/* Responsive Design */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-quick {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .comparison-section {
        padding: 4rem 0;
    }

    .screenshot-showcase {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .final-cta {
        padding: 2.5rem 1.5rem;
    }

    .explore-projects {
        padding: 2rem 1.5rem;
    }

    .explore-projects h3 {
        font-size: 1.25rem;
    }

    .explore-projects p {
        font-size: 0.9rem;
    }

    .explore-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.download-btn:focus,
.feature-item:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.comparison-section .download-btn:focus {
    outline: 3px solid rgba(99, 102, 241, 0.5);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.learn-more-cta {
    text-align: center;
    margin-top: 3rem;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #5b21b6 0%, #16a34a 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.3);
    border: 2px solid transparent;
}

.learn-more-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(91, 33, 182, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.learn-more-btn i {
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: scale(1.2);
}


/* ============================================
   DOCUMENTATION PAGE STYLES
   Add these to the END of your style.css
   ============================================ */

/* Documentation Hero */
.doc-hero {
    min-height: 50vh;
    padding: 6rem 0 3rem 0;
}

.doc-hero .hero-content {
    padding-top: 2rem;
}

/* Fixed Navigation Bar */
.doc-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg,
        rgba(91, 33, 182, 0.95) 0%,
        rgba(22, 163, 74, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.doc-navbar.scrolled {
    background: linear-gradient(135deg,
        rgba(91, 33, 182, 0.98) 0%,
        rgba(22, 163, 74, 0.98) 100%);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.doc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0;
}

.doc-nav-link {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doc-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.doc-nav-link:hover::before {
    left: 100%;
}

.doc-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.doc-nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.doc-nav-link.home-link {
    background: rgba(255, 255, 255, 0.95);
    color: #16a34a;
    border-color: rgba(255, 255, 255, 0.8);
}

.doc-nav-link.home-link:hover {
    background: #ffffff;
    color: #5b21b6;
}

/* Documentation Sections */
.doc-section {
    padding: 5rem 0;
    position: relative;
}

.doc-section.alt-bg {
    background: linear-gradient(180deg,
        rgba(248, 250, 252, 0.5) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(248, 250, 252, 0.5) 100%);
}

.doc-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1e293b 0%, #16a34a 50%, #5b21b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.doc-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #5b21b6);
    border-radius: 2px;
}

.doc-section h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.doc-section p {
    color: #475569;
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    margin-bottom: 1rem;
}

.doc-section code {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #5b21b6;
    border: 1px solid rgba(99, 102, 241, 0.2);
    word-break: break-word;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(22, 163, 74, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #5b21b6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(22, 163, 74, 0.3);
    box-shadow:
        0 20px 50px rgba(22, 163, 74, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Prerequisites */
.prereq-container {
    display: grid;
    gap: 2rem;
}

.prereq-group {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(22, 163, 74, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.prereq-group h3 {
    margin-top: 0;
    color: #16a34a;
}

.prereq-list {
    list-style: none;
    padding-left: 0;
}

.prereq-list > li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
    line-height: 1.6;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    word-wrap: break-word;
}

.prereq-list > li:last-child {
    border-bottom: none;
}

.prereq-list > li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
    font-size: 1.2rem;
}

.nested-list {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.nested-list li {
    padding: 0.4rem 0;
    color: #64748b;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
}

.nested-list li::before {
    content: '→';
    margin-right: 0.5rem;
    color: #5b21b6;
}

.prereq-list a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    word-break: break-word;
}

.prereq-list a:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* Quick Start */
.quickstart-steps {
    display: grid;
    gap: 2.5rem;
    max-width: 100%;
}

.step-section {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(22, 163, 74, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow: hidden;
}

.step-section h3 {
    margin-top: 0;
    color: #16a34a;
}

.step-note {
    font-style: italic;
    color: #64748b;
    margin-top: 1rem;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
}

.numbered-steps {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    margin-top: 1.5rem;
}

.numbered-steps li {
    counter-increment: step-counter;
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.numbered-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    width: 1.8rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #16a34a, #5b21b6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.2);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.code-block pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    max-width: 100%;
    word-wrap: normal;
}

.code-block code {
    background: transparent;
    padding: 0;
    border: none;
    color: #e2e8f0;
    font-size: 0.95rem;
    white-space: pre;
    display: block;
}

.output-example {
    background: #f8fafc;
    border: 2px solid rgba(22, 163, 74, 0.2);
}

.output-example pre {
    color: #1e293b;
}

.output-example code {
    color: #1e293b;
}

/* Configuration */
.config-groups {
    display: grid;
    gap: 2rem;
}

.config-group {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(22, 163, 74, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.config-group h3 {
    margin-top: 0;
    color: #16a34a;
}

.config-list {
    list-style: none;
    padding-left: 0;
}

.config-list > li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.config-list > li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #5b21b6;
    font-size: 1.5rem;
    line-height: 1;
}

/* Troubleshooting Table */
.troubleshooting-table {
    overflow-x: auto;
    margin-top: 2rem;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
}

.troubleshooting-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.troubleshooting-table thead {
    background: linear-gradient(135deg, #16a34a, #5b21b6);
}

.troubleshooting-table th {
    padding: 1.2rem;
    text-align: left;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.troubleshooting-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    color: #475569;
    line-height: 1.6;
    font-size: 1rem;
    vertical-align: top;
}

.troubleshooting-table tbody tr:last-child td {
    border-bottom: none;
}

.troubleshooting-table tbody tr {
    transition: background 0.3s ease;
}

.troubleshooting-table tbody tr:hover {
    background: rgba(22, 163, 74, 0.05);
}

.troubleshooting-table td code {
    white-space: normal;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}

/* CTA Inline */
.cta-inline {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.1);
}

.cta-inline p {
    margin: 0;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 600;
}

.cta-inline a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.cta-inline a:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* Animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-section {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN FOR DOCUMENTATION
   ============================================ */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .doc-section {
        padding: 4rem 0;
    }

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

/* Mobile Large & Tablet (481px - 768px) */
@media (max-width: 768px) {
    .doc-hero {
        min-height: 40vh;
        padding: 4rem 0 2rem 0;
    }

    .doc-hero .hero-content {
        padding-top: 1rem;
    }

    .doc-nav {
        gap: 0.3rem;
        padding: 0.8rem 0;
    }

    .doc-nav-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        flex: 1 1 auto;
        text-align: center;
        min-width: fit-content;
    }

    .doc-nav-link.home-link {
        flex-basis: 100%;
        margin-top: 0.3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doc-section {
        padding: 3rem 0;
    }

    .code-block {
        padding: 1rem;
        border-radius: 8px;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .code-block pre,
    .code-block code {
        font-size: 0.85rem;
    }

    .step-section,
    .prereq-group,
    .config-group,
    .feature-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .troubleshooting-table {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }

    .troubleshooting-table table {
        min-width: 700px;
        border-radius: 0;
    }

    .troubleshooting-table th,
    .troubleshooting-table td {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }

    .troubleshooting-table th {
        font-size: 1rem;
    }

    .numbered-steps li {
        padding-left: 2.2rem;
    }

    .numbered-steps li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .doc-hero {
        min-height: 35vh;
        padding: 3rem 0 1.5rem 0;
    }

    .doc-nav {
        padding: 0.6rem 0.25rem;
        gap: 0.25rem;
    }

    .doc-nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
    }

    .doc-section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 15px;
    }

    .step-section,
    .prereq-group,
    .config-group,
    .feature-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .code-block {
        padding: 0.8rem;
        margin: 1rem -0.5rem;
        border-radius: 8px;
    }

    .code-block pre,
    .code-block code {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .troubleshooting-table {
        margin-left: -15px;
        margin-right: -15px;
    }

    .troubleshooting-table table {
        min-width: 650px;
    }

    .troubleshooting-table th,
    .troubleshooting-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.85rem;
    }

    .troubleshooting-table th {
        font-size: 0.95rem;
    }

    .numbered-steps li {
        padding-left: 2rem;
        font-size: 0.9rem;
    }

    .numbered-steps li::before {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.75rem;
    }

    .prereq-list > li,
    .config-list > li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .doc-nav-link,
    .feature-card {
        -webkit-tap-highlight-color: rgba(22, 163, 74, 0.2);
    }

    .doc-nav-link:active {
        transform: scale(0.95);
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-card:active {
        transform: scale(0.98);
    }
}
