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

:root {
    /* Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #f59e0b;
    --purple: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --white: #ffffff;
    --bg-dark: #0a0e1a;
    --bg-card: #1a1f36;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--gray-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.version-badge {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

.btn-primary-small {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding-top: calc(80px + var(--section-padding));
    padding-bottom: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1729 100%);
}

.hero-content {
    text-align: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: 4rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-code {
    max-width: 700px;
    margin: 0 auto;
}

.hero-code pre {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    overflow-x: auto;
}

.hero-code code {
    font-family: var(--font-mono);
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Problem Section */
.problem-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.problem-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.problem-card.highlight {
    border-color: var(--secondary);
    background: linear-gradient(135deg, var(--bg-card), rgba(16, 185, 129, 0.1));
}

.problem-card h3 {
    margin-bottom: 1.5rem;
}

.problem-list, .solution-list {
    list-style: none;
}

.problem-list li, .solution-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
}

/* Features Section */
.features-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1729 100%);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

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

.feature-number {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    opacity: 0.7;
}

.feature-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-code {
    background: var(--dark);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--gray-light);
    overflow-x: auto;
}

.feature-code code {
    white-space: pre;
    display: block;
}

/* Architecture Section */
.architecture-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.architecture-diagram {
    max-width: 100%;
    margin: 3rem 0;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.arch-svg {
    width: 100%;
    height: auto;
}

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

.arch-detail {
    text-align: center;
}

.arch-detail h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Comparison Section */
.comparison-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #0f1729 0%, var(--bg-dark) 100%);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 3rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background: rgba(59, 130, 246, 0.1);
    color: var(--white);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Workflow Section */
.workflow-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

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

.workflow-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.workflow-card h3 {
    margin-bottom: 2rem;
    color: var(--secondary);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.step-content code {
    display: block;
    background: var(--dark);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--gray-light);
}

/* Quick Start Section */
.quickstart-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1729 100%);
}

.quickstart-content {
    max-width: 900px;
    margin: 0 auto;
}

.quickstart-step {
    margin-bottom: 3rem;
}

.quickstart-step h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.quickstart-step pre {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.quickstart-step code {
    font-family: var(--font-mono);
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--dark) 100%);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-light);
}

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

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--gray-light);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        margin-top: 1rem;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-features { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-code { animation-delay: 0.5s; }