:root {
    --primary-color: #111827;
    --primary-contrast: #ffffff;
    --primary-light: #1f2937;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --text-secondary: #9ca3af;
    --bg-color: #0b0f16;
    --surface-color: #111827;
    --card-bg: rgba(255,255,255,0.03);
    --border-color: rgba(128,128,128,0.2);
    --font-heading: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

[data-theme="light"] {
    --primary-color: #0b0f16;
    --primary-contrast: #ffffff;
    --primary-light: #111827;
    --text-color: #0b0f16;
    --text-muted: #4b5563;
    --text-secondary: #4b5563;
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --card-bg: rgba(17,24,39,0.05);
    --border-color: rgba(17,24,39,0.2);
}

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

html, body {
    height: 100%;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Shared constrained content wrapper */
.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.main-content {
    flex: 1;
    padding-top: 6rem;
}

/* Minimal hero */
.hero {
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.eyebrow {
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.headline {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 3rem;
}

.subhead {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 46ch;
}

.actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.button.primary {
    background: var(--primary-color);
    color: var(--primary-contrast);
}

.button.primary:hover {
    transform: translateY(-1px);
}

.button.secondary {
    background: transparent;
    color: var(--text-color);
    border-color: rgba(128,128,128,0.25);
}

.button.secondary:hover {
    border-color: rgba(128,128,128,0.45);
}

[data-theme="light"] .button.primary {
    background: var(--primary-color);
    color: var(--primary-contrast);
}

[data-theme="light"] .button.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="light"] .button.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

footer {
    padding: 2rem 0;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .headline {
        font-size: 2.25rem;
        line-height: 1.15;
    }
    .subhead {
        font-size: 1rem;
    }
    .actions {
        width: 100%;
        flex-direction: column;
    }
    .button {
        width: 100%;
    }
}


/* Readable article/guide typography */
.prose {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.prose p {
    margin: 0.85rem 0;
}

.prose .section-title,
.prose h1,
.prose h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.prose h1 {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
}

.prose h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 1.15rem;
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
}

.prose ul {
    list-style: disc;
    margin: 0.5rem 0 1rem 1.25rem;
    padding-left: 1rem;
}

.prose ol {
    list-style: decimal;
    margin: 0.5rem 0 1rem 1.25rem;
    padding-left: 1rem;
}

.prose li {
    margin: 0.25rem 0;
}

.prose .note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Code and console snippets */
.prose pre,
.prose .code-block {
    background: var(--card-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--border-color, rgba(128,128,128,0.2));
    border-radius: 12px;
    padding: 2rem 1rem 1rem 1rem;
    overflow: auto;
    margin: 0.75rem 0 1rem 0;
    position: relative;
}

.prose pre code {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.prose :not(pre) > code {
    background: var(--card-bg, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color, rgba(128,128,128,0.2));
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
}

/* Code header elements */
.prose .code-lang {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, rgba(128,128,128,0.25));
    background: var(--card-bg, rgba(255,255,255,0.03));
}

.prose .code-copy {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.8rem;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(128,128,128,0.25));
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
}

.prose .code-copy:hover {
    border-color: var(--primary-color);
}

/* Links inside article content */
.prose a {
    color: #111827;
    text-decoration: none;
}

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

[data-theme="light"] .prose a {
    color: #0b0f16;
}

/* FAQ (details/summary) */
.prose details {
    border: 1px solid var(--border-color, rgba(128,128,128,0.2));
    background: var(--card-bg, rgba(255,255,255,0.03));
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
}

.prose details + details {
    margin-top: 0.5rem;
}

.prose summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.prose summary::-webkit-details-marker {
    display: none;
}

.prose .faq-answer {
    margin-top: 0.5rem;
}


