:root {
    --color-bg: #0f0f0f;
    --color-bg-elevated: #1a1a1a;
    --color-bg-card: #242424;
    --color-text: #e8e8e8;
    --color-text-muted: #a0a0a0;
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --color-accent-muted: #4338ca;
    --color-border: #333;
    --color-code-bg: #1a1a1a;
    --color-success: #10b981;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --content-width: 1200px;
    --content-width-narrow: 800px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

nav {
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
}

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

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

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

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero .highlight {
    color: var(--color-accent);
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

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

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-card);
    border-color: var(--color-accent);
}

.hero-code {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Code blocks */
pre {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    line-height: 1.7;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-code-bg);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

pre code {
    background: transparent;
    padding: 0;
}

/* Prism overrides for better dark theme integration */
pre[class*="language-"] {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border);
    margin: 0;
}

code[class*="language-"] {
    background: transparent;
    text-shadow: none;
    color: var(--color-text);
}

.token.comment {
    color: #6b7280;
    font-style: italic;
}

.token.keyword,
.token.builtin,
.token.function {
    color: #818cf8;
}

.token.string {
    color: #a3a3a3;
}

.token.number,
.token.boolean {
    color: #f59e0b;
}

.token.operator,
.token.punctuation {
    color: #9ca3af;
}

.token.class-name {
    color: #34d399;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

section .section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: var(--content-width-narrow);
    margin: 0 auto 3rem;
}

/* Problem Section */
.problem {
    background: var(--color-bg-elevated);
}

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

.problem-item {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.problem-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.problem-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.solution {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    margin-top: 2rem;
}

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

.solution p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.solution a {
    color: var(--color-accent);
    text-decoration: none;
}

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

.go-benefits {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.go-benefits li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.go-benefits li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.go-benefits a {
    color: var(--color-accent);
    text-decoration: none;
}

.go-benefits a:hover {
    text-decoration: underline;
}

/* Features */
.feature-demo {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.demo-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.demo-text p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.demo-text a {
    color: var(--color-accent);
    text-decoration: none;
}

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

/* Machines */
.machines {
    background: var(--color-bg-elevated);
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.machine-item {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.machine-item h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-weight: 600;
}

.machine-item pre {
    font-size: 0.9375rem;
    padding: 1rem;
}

.machine-demo {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.machine-demo h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Shells */
.shell-demo {
    max-width: var(--content-width-narrow);
    margin: 0 auto 3rem;
}

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

.benefit {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.benefit h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.benefit p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Filesystem */
.filesystem {
    background: var(--color-bg-elevated);
}

.fs-demo {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.fs-demo .demo-text {
    order: 2;
}

.fs-demo .demo-text p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Docker Example */
.docker-example {
    background: var(--color-bg);
}

.docker-demo {
    max-width: var(--content-width-narrow);
    margin: 0 auto;
}

/* Testing */
.test-demo {
    max-width: var(--content-width-narrow);
    margin: 0 auto;
}

/* Autopatcher */
.autopatcher {
    background: var(--color-bg-elevated);
}

/* Kubernetes */
.kubernetes {
    background: var(--color-bg-elevated);
}

.k8s-demo {
    max-width: var(--content-width-narrow);
    margin: 0 auto;
}

/* Real World */
.real-world {
    background: var(--color-bg);
}

.example-features {
    max-width: var(--content-width-narrow);
    margin: 0 auto 2rem;
}

.example-features ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.example-features li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.example-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.example-code {
    max-width: var(--content-width-narrow);
    margin: 2rem auto;
}

.example-note {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 2rem;
}

.example-note a {
    color: var(--color-accent);
    text-decoration: none;
}

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

/* Getting Started */
.install {
    max-width: var(--content-width-narrow);
    margin: 0 auto 3rem;
}

.install pre {
    background: var(--color-bg-card);
    text-align: center;
    font-size: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--color-accent);
}

.quick-example {
    max-width: var(--content-width-narrow);
    margin: 0 auto 4rem;
}

.quick-example h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.next-steps h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

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

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

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.step-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    background: var(--color-bg-elevated);
}

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

footer p {
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.125rem;
    }

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

    .feature-demo,
    .fs-demo {
        grid-template-columns: 1fr;
    }

    .fs-demo .demo-text {
        order: 1;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .machine-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 2rem;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    pre {
        font-size: 0.75rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

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

    section {
        padding: 3rem 0;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
