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

:root[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --code-bg: #f5f5f5;
    --code-text: #1a1a1a;
}

:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border: #404040;
    --code-bg: #2a2a2a;
    --code-text: #f5f5f5;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition:
        background-color 0.3s,
        color 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--text-primary);
}

.theme-icon::before {
    content: "☀";
    font-size: 1.25rem;
    color: var(--text-primary);
}

:root[data-theme="dark"] .theme-icon::before {
    content: "☾";
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.install-command {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.install-command pre {
    background: var(--code-bg);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    text-align: left;
    border: 1px solid var(--border);
}

.install-command code {
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9rem;
    color: var(--code-text);
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-text {
    display: inline-block;
    padding: 0.75rem 2rem;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

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

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

.features h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

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

.feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Quick Start Section */
.quickstart {
    padding: 6rem 0;
}

.quickstart h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

.steps {
    display: grid;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.step pre {
    background: var(--code-bg);
    padding: 1.25rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.step code {
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.875rem;
    color: var(--code-text);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.links a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    font-size: 0.95rem;
}

.links a:hover {
    border-bottom-color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .features h2,
    .quickstart h2,
    .about h2 {
        font-size: 1.75rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .btn,
    .btn-text {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
