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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --code-bg: #1f2937;
    --success-color: #10b981;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
}

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

/* Header */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.logo svg {
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.github-link:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Demo */
.hero-demo {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.hero-demo pre {
    background: var(--code-bg);
    color: #e5e7eb;
    padding: 2rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-demo code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

.prompt {
    color: #60a5fa;
}

.output {
    color: #9ca3af;
}

.success {
    color: var(--success-color);
}

.comment {
    color: #6b7280;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.features h2,
.quickstart h2,
.documentation h2,
.self-hosting h2,
.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Quick Start Section */
.quickstart {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

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

.step {
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    position: absolute;
    left: -4rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step pre {
    background: var(--code-bg);
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

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

/* Documentation Section */
.documentation {
    padding: 5rem 0;
    background: var(--bg-primary);
}

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

.doc-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    border: 2px solid transparent;
}

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

.doc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.doc-card p {
    color: var(--text-secondary);
}

/* Self-Hosting Section */
.self-hosting {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.self-hosting p {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hosting-steps {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hosting-steps pre {
    background: var(--code-bg);
    color: #e5e7eb;
    padding: 2rem;
    border-radius: 0.75rem;
    overflow-x: auto;
}

.hosting-note {
    text-align: center;
}

.hosting-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.hosting-note a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #9ca3af;
}

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

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

.cta .btn-primary:hover {
    background: var(--bg-secondary);
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta .btn-secondary:hover {
    background: white;
    color: var(--text-primary);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #9ca3af;
    padding: 3rem 0 2rem;
    border-top: 1px solid #374151;
}

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

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

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

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

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-license {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .step-number {
        position: static;
        margin-bottom: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-cards {
        grid-template-columns: 1fr;
    }
}