/* ============================================================
   AODHML DOCUMENTATION — MAIN STYLESHEET
   Background: #000000 | Text: #E8E5DC | Accent: #E85D2B
   Serif: Crimson Pro | Mono: JetBrains Mono | Sans: Inter
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #111111;
    --bg-elevated: #161616;
    --bg-code: #0D0D0D;
    --bg-hover: #1A1A1A;

    --text-primary: #E8E5DC;
    --text-secondary: #B8B5AD;
    --text-muted: #6B6860;
    --text-dim: #4A4740;

    --accent: #E85D2B;
    --accent-dim: #E85D2B33;
    --accent-glow: #E85D2B1A;
    --accent-light: #F07A4A;

    --border: #1E1E1E;
    --border-light: #2A2A2A;

    --font-serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --sidebar-width: 280px;
    --content-max: 900px;
    --radius: 8px;
    --radius-lg: 12px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-dim);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform var(--transition-base);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.version-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 12px 16px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: text;
    transition: border-color var(--transition-fast);
}

.sidebar-search:focus-within {
    border-color: var(--accent);
}

.sidebar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    width: 100%;
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 8px 16px 4px;
    margin-bottom: 4px;
}

.nav-link {
    display: block;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: var(--accent);
    border-radius: 1px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-fast);
}

.sidebar-footer-link:hover {
    color: var(--text-primary);
}

/* ---- Mobile Nav Toggle ---- */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

/* ---- Main Content ---- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#emberCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 75%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 28px;
}

.hero-title-line {
    display: block;
    font-size: clamp(48px, 10vw, 96px);
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title-line--sub {
    font-size: clamp(28px, 5vw, 48px);
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 300;
    opacity: 0.85;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-dim);
}

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

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

/* ---- Hero Code Preview ---- */
.hero-code-preview {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.code-window {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,93,43,0.05);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.code-window-dots {
    display: flex;
    gap: 6px;
}

.code-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-window-dots span:nth-child(1) { background: #FF5F57; }
.code-window-dots span:nth-child(2) { background: #FFBD2E; }
.code-window-dots span:nth-child(3) { background: #28CA42; }

.code-window-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.code-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.code-copy-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.code-window-body {
    padding: 20px 24px;
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-primary);
}

.code-window-body .kw { color: #C586C0; }
.code-window-body .type { color: #4EC9B0; }
.code-window-body .fn { color: #DCDCAA; }
.code-window-body .str { color: #CE9178; }
.code-window-body .num { color: #B5CEA8; }
.code-window-body .comment { color: #6A9955; }
.code-window-body .param { color: #9CDCFE; }
.code-window-body .var { color: #9CDCFE; }
.code-window-body .op { color: #D4D4D4; }

/* ---- Scroll Hint ---- */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Section Base ---- */
section {
    padding: 100px 48px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ---- Features Section ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Install Section ---- */
.install-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius);
    width: fit-content;
    border: 1px solid var(--border);
}

.install-tab {
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.install-tab:hover {
    color: var(--text-primary);
}

.install-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.install-content {
    display: none;
}

.install-content.active {
    display: block;
}

/* ---- Code Block ---- */
.code-block-wrapper {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-block-wrapper.small {
    max-width: 640px;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.code-block-lang {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-block {
    padding: 20px 24px;
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-primary);
    background: transparent;
}

.code-block .kw { color: #C586C0; }
.code-block .type { color: #4EC9B0; }
.code-block .fn { color: #DCDCAA; }
.code-block .str { color: #CE9178; }
.code-block .num { color: #B5CEA8; }
.code-block .comment { color: #6A9955; }
.code-block .var { color: #9CDCFE; }

/* ---- Quick Start ---- */
.quickstart-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.quickstart-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ---- Examples Section ---- */
.examples-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.example-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.example-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.example-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.example-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.example-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.example-difficulty {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.example-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.example-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.example-code-animated {
    padding: 20px 24px;
    background: var(--bg-code);
    min-height: 200px;
}

.code-typing {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    min-height: 160px;
}

.code-typing .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- Language Features ---- */
.lang-features-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.lang-feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.lang-feature-item--reverse {
    direction: rtl;
}

.lang-feature-item--reverse > * {
    direction: ltr;
}

.lang-feature-code {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lang-feature-code pre {
    padding: 24px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
}

.lang-feature-code .kw { color: #C586C0; }
.lang-feature-code .type { color: #4EC9B0; }
.lang-feature-code .fn { color: #DCDCAA; }
.lang-feature-code .str { color: #CE9178; }
.lang-feature-code .num { color: #B5CEA8; }
.lang-feature-code .var { color: #9CDCFE; }

.lang-feature-info h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.lang-feature-info p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.lang-feature-info code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---- Playground ---- */
.playground-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
}

.playground-editor {
    display: flex;
    flex-direction: column;
    background: var(--bg-code);
    border-right: 1px solid var(--border);
}

.playground-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.playground-filename {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.playground-actions {
    display: flex;
    gap: 8px;
}

.playground-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.playground-btn:hover {
    background: var(--accent-light);
}

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

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

.playground-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-primary);
    resize: none;
    white-space: pre;
    overflow: auto;
}

.playground-output {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.playground-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.playground-status {
    color: var(--accent);
}

.playground-output-body {
    flex: 1;
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    overflow: auto;
}

.playground-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
}

.playground-placeholder p {
    color: var(--text-secondary);
    font-size: 14px;
}

.playground-note {
    font-size: 11px;
    color: var(--text-dim);
    max-width: 280px;
}

/* ---- Roadmap ---- */
.roadmap-timeline {
    position: relative;
    padding-left: 32px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.roadmap-item {
    position: relative;
    padding-bottom: 40px;
}

.roadmap-marker {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-primary);
}

.roadmap-item--done .roadmap-marker {
    border-color: var(--accent);
    background: var(--accent);
}

.roadmap-item--current .roadmap-marker {
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px var(--accent-dim);
    animation: roadmap-pulse 2s ease-in-out infinite;
}

@keyframes roadmap-pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--accent-dim); }
    50% { box-shadow: 0 0 0 8px var(--accent-glow); }
}

.roadmap-version {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.roadmap-content h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.roadmap-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.roadmap-content li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.roadmap-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

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

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-version {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
}

/* ---- Search Overlay ---- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.active {
    display: flex;
}

.search-modal {
    width: 100%;
    max-width: 640px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.search-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-primary);
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-kbd {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .lang-feature-item {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .playground-container {
        grid-template-columns: 1fr;
    }

    .playground-editor {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    section {
        padding: 60px 20px;
    }

    .hero {
        padding: 100px 20px 80px;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .examples-showcase {
        grid-template-columns: 1fr;
    }

    .quickstart-step {
        flex-direction: column;
        gap: 16px;
    }

    .install-tabs {
        flex-wrap: wrap;
    }

    .site-footer {
        padding: 32px 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ---- Page Content Styles (for subpages) ---- */
.page-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 48px;
}

.page-content h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.page-content h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.page-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.page-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.page-content code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
}

.page-content pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 20px 0;
}

.page-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.page-content th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.page-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.page-content tr:hover td {
    background: var(--bg-hover);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb-sep {
    color: var(--text-dim);
}

.prev-next-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.prev-next-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: 45%;
}

.prev-next-link span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.prev-next-link strong {
    font-size: 16px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.prev-next-link:hover strong {
    color: var(--accent);
}

.prev-next-link.next {
    text-align: right;
    align-items: flex-end;
}

.callout {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-left: 3px solid;
    font-size: 14px;
    line-height: 1.7;
}

.callout-info {
    background: rgba(78, 201, 176, 0.08);
    border-color: #4EC9B0;
    color: #7DD4C0;
}

.callout-warning {
    background: rgba(232, 93, 43, 0.08);
    border-color: var(--accent);
    color: #F0A080;
}

.callout-note {
    background: rgba(184, 181, 173, 0.08);
    border-color: var(--text-muted);
    color: var(--text-secondary);
}
