:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #a1a1aa;
    --border: #262626;
    --success: #22c55e;
    --warning: #f59e0b;
    --accent: #06b6d4;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg-card);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-subtitle {
    font-size: 22px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-cta .btn {
    padding: 14px 28px;
    font-size: 16px;
}

.hero-code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 32px;
    display: inline-block;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 15px;
    color: var(--text-muted);
}

.hero-code span {
    color: var(--success);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Section */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.how-it-works {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.workflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.workflow-step {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
}

.workflow-step::after {
    content: "\2192";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-muted);
}

.workflow-step:last-child::after {
    display: none;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.workflow-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.workflow-step p {
    color: var(--text-muted);
    font-size: 15px;
}

.workflow-step code {
    display: block;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--accent);
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.comparison-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

/* Code Blocks */
.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.code-block.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.code-header {
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.code-header-red {
    color: #f87171;
}

.code-header-green {
    color: #22c55e;
}

.code-block.highlight .code-header {
    color: var(--primary-light);
}

.code-block pre {
    padding: 20px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    overflow-x: auto;
}

/* Syntax Highlighting */
.syn-cmd { color: #22d3ee; }
.syn-target { color: #fbbf24; }
.syn-string { color: #f87171; }
.syn-int { color: #c084fc; }
.syn-comment { color: #6b7280; }
.syn-keyword { color: #c084fc; }
.syn-attr { color: var(--accent); }
.syn-muted { color: #9ca3af; }

/* AI Section */
.ai-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.ai-content p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 24px;
}

.ai-features {
    list-style: none;
}

.ai-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

.ai-features li::before {
    content: "\2713";
    color: var(--success);
    font-weight: 600;
    flex-shrink: 0;
}

.ai-comparison {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.ai-comparison .comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.ai-comparison .comparison-header div {
    padding: 16px 24px;
    font-weight: 600;
    text-align: center;
}

.ai-comparison .comparison-header div:first-child {
    border-right: 1px solid var(--border);
    color: var(--text-muted);
}

.ai-comparison .comparison-header div:last-child {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.ai-comparison .comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

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

.ai-comparison .comparison-row div {
    padding: 16px 24px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-comparison .comparison-row div:first-child {
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.2);
}

.ai-comparison .comparison-row div:last-child {
    color: var(--success);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 500;
}

.token-warning {
    color: var(--warning);
    font-size: 11px;
}

.token-good {
    color: var(--success);
    font-size: 11px;
}

/* Example Section */
.example-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.example-note {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    margin-top: 24px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.2s;
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
}

.benefit-stat {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Quick Start Section */
.quickstart-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.quickstart-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-section .btn {
    padding: 16px 32px;
    font-size: 17px;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Docs Page Specific */
.docs-hero {
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.docs-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.docs-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    padding: 48px 0;
    min-height: calc(100vh - 200px);
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-sidebar h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 24px;
}

.docs-sidebar h4:first-child {
    margin-top: 0;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 4px;
}

.docs-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    background: var(--bg-card);
    color: var(--text);
}

.docs-main {
    max-width: 800px;
}

.docs-section {
    margin-bottom: 64px;
    scroll-margin-top: 100px;
}

.docs-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.docs-section h3 {
    font-size: 20px;
    margin: 32px 0 12px;
}

.docs-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.docs-section .code-block {
    margin: 16px 0;
}

.docs-section code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .workflow {
        grid-template-columns: 1fr;
    }
    .workflow-step::after {
        display: none;
    }
    .ai-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .comparison-grid,
    .example-grid {
        grid-template-columns: 1fr;
    }
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: static;
        border-bottom: 1px solid var(--border);
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 36px;
    }
    .stats {
        flex-direction: column;
        gap: 24px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
