/* ============================================
   loctree Landing Page — Base Styles
   v0.5.2 | Developed with 💀 (c)2025
   ============================================ */

:root {
    /* CRT Monochromatic Palette - High Contrast */
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-mid: #141414;

    --text-bright: #e8e8e8;
    --text-dim: #b0b0b0;
    --text-muted: #707070;

    --border-subtle: rgba(200, 200, 200, 0.15);
    --border-visible: rgba(200, 200, 200, 0.3);

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --container-max: 1000px;
    --section-padding: clamp(40px, 8vw, 80px);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   CRT Scanlines + Flicker
   ============================================ */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.25) 50%),
        linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01), rgba(255,255,255,0.02));
    background-size: 100% 2px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(18,16,16,0.1);
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%   { opacity: 0.15; }
    50%  { opacity: 0.05; }
    100% { opacity: 0.15; }
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-bright);
}

.section-description {
    font-size: 14px;
    color: var(--text-dim);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-bright);
    color: var(--bg-black);
}

.btn-primary:hover {
    background: #fff;
}

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

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

.copy-btn {
    margin-top: 16px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Selection */
::selection {
    background: rgba(168, 168, 168, 0.3);
    color: var(--text-bright);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Focus states */
.btn:focus-visible,
.copy-btn:focus-visible,
.nav-link:focus-visible {
    outline: 1px solid var(--text-dim);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.blink {
    animation: blink-cursor 1.2s step-end infinite;
    color: var(--text-bright);
}
/* ============================================
   Navigation — Minimal
   Developed with 💀 (c)2025
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-bright);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-version {
    font-size: 10px;
    color: var(--text-dim);
    padding: 2px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 6px 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-bright);
}

.nav-cta {
    padding: 6px 16px;
    background: var(--text-bright);
    color: var(--bg-black);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: #fff;
}

.nav-cta.active {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--text-dim);
}

/* Theme Switcher */
.theme-switcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-switcher {
    background: transparent;
    border: 1px solid var(--border-visible);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.theme-switcher:hover {
    color: var(--text-bright);
    border-color: var(--text-dim);
}

.theme-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--bg-mid);
    border: 1px solid var(--border-visible);
    color: var(--text-dim);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
    pointer-events: none;
}

.theme-switcher-wrapper:hover .theme-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Light Mode - WCAG AA Compliant */
body.light-mode {
    --bg-black: #ffffff;
    --bg-dark: #f5f5f5;
    --bg-mid: #e8e8e8;
    --text-bright: #111111;
    --text-dim: #333333;
    --text-muted: #555555;
    --border-subtle: rgba(0, 0, 0, 0.12);
    --border-visible: rgba(0, 0, 0, 0.25);
}

body.light-mode::before {
    background:
        linear-gradient(rgba(255,255,255,0) 50%, rgba(0,0,0,0.02) 50%),
        linear-gradient(90deg, rgba(0,0,0,0.005), rgba(0,0,0,0.002), rgba(0,0,0,0.005));
}

body.light-mode::after {
    background: rgba(255,255,255,0.02);
}

body.light-mode .hero-title-accent {
    color: #000000;
    text-shadow: none;
}

body.light-mode .terminal,
body.light-mode .hero-terminal {
    background: #1a1a1a;
}

body.light-mode .terminal *,
body.light-mode .hero-terminal * {
    color: #e8e8e8 !important;
}

body.light-mode .terminal-dot.red { background: #ff5f56 !important; }
body.light-mode .terminal-dot.yellow { background: #ffbd2e !important; }
body.light-mode .terminal-dot.green { background: #27c93f !important; }

body.light-mode .nav-cta {
    background: #1a1a1a;
    color: #f5f5f5;
}

body.light-mode .nav-cta:hover {
    background: #000;
}

body.light-mode .btn-primary {
    background: #111111;
    color: #ffffff;
}

body.light-mode .btn-primary:hover {
    background: #000000;
}

body.light-mode .btn-secondary {
    color: #333333;
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-mode .btn-secondary:hover {
    color: #111111;
    border-color: #111111;
}

/* Nav Drawer Overlay */
.nav-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--border-visible);
    z-index: 99;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-drawer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px;
}

.drawer-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border-visible);
    background: var(--bg-dark);
    max-width: 400px;
}

.drawer-tab {
    flex: 1;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.drawer-tab:first-child {
    border-right: 1px solid var(--border-subtle);
}

.drawer-tab:hover {
    color: var(--text-bright);
}

.drawer-tab.active {
    color: var(--text-bright);
    background: var(--bg-mid);
}

.drawer-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-bright);
}

.drawer-content {
    max-width: 700px;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}
/* ============================================
   Hero Section
   Developed with 💀 (c)2025
   ============================================ */

/* Agent Hero */
.agent-hero {
    padding-top: 80px;
    padding-bottom: 40px;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border-subtle);
}

.agent-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.agent-hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Tabs */
.hero-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border-visible);
    background: var(--bg-dark);
}

.hero-tab {
    flex: 1;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.hero-tab:first-child {
    border-right: 1px solid var(--border-subtle);
}

.hero-tab:hover {
    color: var(--text-bright);
    background: rgba(168, 168, 168, 0.05);
}

.hero-tab.active {
    color: var(--text-bright);
    background: var(--bg-mid);
    text-shadow: 0 0 4px rgba(168, 168, 168, 0.3);
}

.hero-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-bright);
}

/* Install Hero Box (FOR HUMANS) */
.install-hero-box {
    text-align: center;
}

.code-block-with-copy {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-visible);
    margin-bottom: 16px;
}

.code-block-content {
    flex: 1;
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-bright);
    text-align: left;
    overflow-x: auto;
}

.code-copy-btn {
    padding: 16px 20px;
    background: var(--bg-mid);
    border: none;
    border-left: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.code-copy-btn:hover {
    color: var(--text-bright);
    background: rgba(168, 168, 168, 0.1);
}

.prompt-cta {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

.prompt-cta-dim {
    color: var(--text-muted);
}

.prompt-link {
    background: none;
    border: none;
    color: var(--text-bright);
    font-family: var(--font-mono);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.prompt-link:hover {
    color: #fff;
}

/* Prompt Box (FOR AI AGENTS) */
.prompt-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-box-inner {
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--border-visible);
}

.prompt-content {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-bright);
    padding: 20px;
    padding-right: 70px;
    white-space: pre-wrap;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.prompt-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-copy-btn:hover {
    color: var(--text-bright);
    border-color: var(--text-dim);
}

.prompt-expand-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.prompt-expand-btn:hover {
    color: var(--text-dim);
}

.agent-hero-prompt {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-bright);
    background: var(--bg-dark);
    border: 1px solid var(--border-visible);
    padding: 24px;
    white-space: pre-wrap;
    overflow-x: auto;
    text-shadow: 0 0 2px rgba(168, 168, 168, 0.3);
}

/* Main Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 500px;
    animation: fadeIn 0.6s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid var(--border-visible);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--text-dim);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-bright);
    text-shadow: 0 0 4px rgba(168, 168, 168, 0.2);
}

.hero-title-accent {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Terminal */
.hero-terminal {
    background: var(--bg-dark);
    border: 1px solid var(--border-visible);
    animation: fadeIn 0.8s ease;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.terminal-dot.red { background: #504040; }
.terminal-dot.yellow { background: #505040; }
.terminal-dot.green { background: #405040; }

.terminal-title {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-size: 12px;
    line-height: 1.8;
    min-height: 280px;
}

.terminal-line {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.terminal-prompt {
    color: var(--text-dim);
    user-select: none;
}

.terminal-command {
    color: var(--text-bright);
}

.terminal-output {
    color: var(--text-dim);
    margin-left: 16px;
}

.terminal-output.highlight {
    color: var(--text-bright);
}

.terminal-output.success {
    color: #808080;
}

.terminal-output.muted {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================
   Features Section
   Developed with 💀 (c)2025
   ============================================ */

.features {
    padding: var(--section-padding) 0;
    border-top: 1px solid var(--border-subtle);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border-subtle);
}

.feature-card {
    background: var(--bg-black);
    padding: 24px;
    transition: background 0.2s;
}

.feature-card:hover {
    background: var(--bg-dark);
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    filter: grayscale(1) brightness(0.7);
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-description {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

.feature-code-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
}

.feature-code-text {
    flex: 1;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    overflow-x: auto;
    white-space: nowrap;
}

.feature-copy-btn {
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.feature-copy-btn:hover {
    color: var(--text-dim);
    background: rgba(168, 168, 168, 0.05);
}
/* ============================================
   Slice Demo Section
   Developed with 💀 (c)2025
   ============================================ */

.slice-demo {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.slice-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.slice-content {
    max-width: 400px;
}

.slice-visual {
    background: var(--bg-black);
    border: 1px solid var(--border-visible);
    padding: 20px;
}

.slice-layers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slice-layer {
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-dark);
}

.slice-layer.core {
    border-color: rgba(168, 168, 168, 0.3);
}

.slice-layer.deps {
    border-color: rgba(168, 168, 168, 0.2);
    margin-left: 16px;
}

.slice-layer.consumers {
    border-color: rgba(168, 168, 168, 0.15);
    margin-left: 32px;
}

.slice-layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slice-layer-title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-bright);
}

.slice-layer-stats {
    font-size: 10px;
    color: var(--text-muted);
}

.slice-layer-files {
    font-size: 12px;
    color: var(--text-dim);
}

.slice-layer-files div {
    padding: 2px 0;
}

.indent-1 { margin-left: 16px; }
.indent-2 { margin-left: 32px; }

@media (max-width: 900px) {
    .slice-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   Stack Detection Section
   Developed with 💀 (c)2025
   ============================================ */

.stack-detection {
    padding: var(--section-padding) 0;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border-subtle);
    margin-top: 32px;
}

.stack-card {
    background: var(--bg-black);
    padding: 20px;
    text-align: center;
    transition: background 0.2s;
}

.stack-card:hover {
    background: var(--bg-dark);
}

.stack-icon {
    font-size: 24px;
    margin-bottom: 12px;
    filter: grayscale(1) brightness(0.6);
}

.stack-name {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    color: var(--text-bright);
}

.stack-marker {
    font-size: 10px;
    color: var(--text-muted);
}

.stack-ignores {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 8px;
}
/* ============================================
   Real World Results Section
   Developed with 💀 (c)2025
   ============================================ */

.real-world {
    padding: var(--section-padding) 0;
    background: var(--bg-black);
    border-top: 1px solid var(--border-subtle);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.result-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    padding: 24px 16px;
    text-align: center;
}

.result-card.highlight {
    border-color: var(--text-dim);
    background: var(--bg-mid);
}

.result-number {
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-bright);
    line-height: 1;
}

.result-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-bright);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-detail {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

.results-breakdown {
    margin-top: 48px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    padding: 32px;
}

.breakdown-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 24px;
    text-align: center;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
}

.breakdown-count {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.breakdown-label {
    font-size: 12px;
    color: var(--text-bright);
    margin-top: 4px;
}

.breakdown-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    padding: 2px 8px;
    border: 1px solid currentColor;
}

.breakdown-item.keep .breakdown-status { color: #4ade80; }
.breakdown-item.wip .breakdown-status { color: #facc15; }
.breakdown-item.backend .breakdown-status { color: #60a5fa; }
.breakdown-item.dead .breakdown-status { color: #f87171; }

.breakdown-note {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-dim);
    font-style: italic;
}

@media (max-width: 800px) {
    .results-grid,
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============================================
   CLI Reference Section
   Developed with 💀 (c)2025
   ============================================ */

.cli-reference {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

.cli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.cli-group {
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    padding: 20px;
}

.cli-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-bright);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.cli-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.cli-item:last-child {
    margin-bottom: 0;
}

.cli-cmd {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-bright);
    background: var(--bg-dark);
    padding: 4px 8px;
    display: inline-block;
    border: 1px solid var(--border-subtle);
}

.cli-desc {
    font-size: 11px;
    color: var(--text-dim);
}
/* ============================================
   Install Section
   Developed with 💀 (c)2025
   ============================================ */

.install-section {
    padding: var(--section-padding) 0;
    border-top: 1px solid var(--border-subtle);
}

.install-box-simple {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.install-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.install-command-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-visible);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.install-cmd {
    flex: 1;
    font-size: 12px;
    color: var(--text-bright);
    text-align: left;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.copy-btn-small {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-visible);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn-small:hover {
    border-color: var(--text-bright);
    color: var(--text-bright);
}

.install-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.install-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.install-links a:hover {
    color: var(--text-bright);
}

.install-links .sep {
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .install-command-box {
        flex-direction: column;
        text-align: center;
    }

    .install-cmd {
        text-align: center;
    }
}
/* ============================================
   For AI Agents Section
   Developed with 💀 (c)2025
   ============================================ */

.for-agents {
    padding: var(--section-padding) 0;
    background: var(--bg-black);
    border-top: 1px solid var(--border-subtle);
}

.agents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
    align-items: stretch;
}

.mistakes-panel,
.prompt-panel {
    background: var(--bg-dark);
    border: 1px solid var(--border-visible);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-bright);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.mistake-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mistake-row {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.mistake-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.mistake-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mistake-wrong,
.mistake-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.mistake-wrong code,
.mistake-right code {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}

.mistake-icon {
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.mistake-wrong .mistake-icon {
    color: #f87171;
}

.mistake-right .mistake-icon {
    color: #4ade80;
}

.mistake-wrong code {
    color: var(--text-muted);
    text-decoration: line-through;
}

.mistake-right code {
    color: var(--text-bright);
}

.prompt-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prompt-text {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
    color: var(--text-bright);
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    padding-right: 80px;
    white-space: pre-wrap;
    flex: 1;
    min-height: 300px;
    overflow-y: auto;
    margin: 0;
}

.prompt-panel .prompt-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-panel .prompt-copy-btn:hover {
    color: var(--text-bright);
    border-color: var(--text-dim);
}

/* Quick Examples */
.quick-examples {
    margin-top: 48px;
}

.examples-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.example-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    padding: 16px;
}

.example-task {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.example-cmd-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-cmd {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-bright);
    padding: 8px 12px;
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    white-space: nowrap;
}

.example-copy {
    padding: 8px 10px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.example-copy:hover {
    color: var(--text-dim);
    border-color: var(--text-dim);
}

@media (max-width: 900px) {
    .agents-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   Footer
   Developed with 💀 (c)2025
   ============================================ */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 24px;
    height: 24px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
}

.footer-title {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

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

.footer-copyright {
    font-size: 10px;
    color: var(--text-muted);
}

/* ============================================
   Blog Section
   Developed with 💀 (c)2025
   ============================================ */

.blog {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

/* Blog Carousel for homepage */
.blog-carousel-wrapper {
    position: relative;
    margin-top: 32px;
}

.blog-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.blog-carousel::-webkit-scrollbar {
    display: none;
}

.blog-carousel .blog-card {
    flex: 0 0 320px;
    min-width: 320px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--text-dim);
    color: var(--text-bright);
}

.carousel-arrow-left {
    left: -20px;
}

.carousel-arrow-right {
    right: -20px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }

    .blog-carousel .blog-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

.blog-card {
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.blog-card:hover {
    border-color: var(--text-dim);
    transform: translateY(-2px);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.blog-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border: 1px solid currentColor;
}

.tag-meta { color: #c084fc; }
.tag-tauri { color: #60a5fa; }
.tag-cycles { color: #f87171; }
.tag-contracts { color: #4ade80; }

.blog-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.blog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.blog-cta {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.blog-card:hover .blog-cta {
    color: var(--text-bright);
}

.blog-cta .arrow {
    transition: transform 0.2s;
}

.blog-card:hover .blog-cta .arrow {
    transform: translateX(4px);
}

.blog-footer {
    margin-top: 32px;
    text-align: center;
}

.blog-note {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-note a {
    color: var(--text-dim);
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-note a:hover {
    color: var(--text-bright);
}

/* ============================================
   Page-level styles for subpages
   Developed with 💀 (c)2025
   ============================================ */

/* Page header (used on Features, Docs, Blog) */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-bright);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
}

/* 404 Not Found */
.not-found {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.not-found h1 {
    font-size: 8rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1rem;
    line-height: 1;
}

.not-found p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* Active link styling for router */
.nav-link[aria-current="page"],
.nav-link.active {
    color: var(--text-bright);
}

/* Ensure main content has proper spacing */
main {
    padding-top: 60px;
    min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .not-found h1 {
        font-size: 5rem;
    }
}

/* ============================================
   Manual / Documentation Styles
   ============================================ */

.manual {
    padding: var(--section-padding) 0;
}

.manual-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

.manual-section:last-child {
    border-bottom: none;
}

.manual-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.manual-description {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.manual-description code {
    background: var(--bg-mid);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Install box */
.install-box {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.install-cmd {
    font-size: 1.25rem;
    color: var(--text-bright);
    display: block;
    margin-bottom: 0.75rem;
}

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

.install-note code {
    color: var(--text-dim);
}

/* Quick steps */
.quick-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-mid);
    border-radius: 8px;
    border-left: 3px solid var(--text-dim);
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--text-dim);
    color: var(--bg-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-content code {
    display: block;
    color: var(--text-bright);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Concepts grid */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.concept-card {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.concept-card:hover {
    border-color: var(--border-visible);
}

.concept-icon {
    width: 32px;
    height: 32px;
    background: var(--text-muted);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.concept-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.concept-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.concept-cmd {
    display: block;
    background: var(--bg-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Dashboard tabs */
.dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dashboard-tab {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.tab-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.35rem;
}

.tab-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* MCP setup */
.mcp-setup h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 1.5rem 0 0.75rem;
}

.code-block {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.code-block pre {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    overflow-x: auto;
    line-height: 1.6;
}

.mcp-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.mcp-tool {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-mid);
    border-radius: 6px;
}

.mcp-tool code {
    color: var(--text-bright);
    font-size: 0.9rem;
    white-space: nowrap;
}

.mcp-tool span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* CI examples */
.ci-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ci-example h3,
.ci-flags h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

.flag-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flag-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.5rem 0;
}

.flag-item code {
    color: var(--text-bright);
    font-size: 0.9rem;
    min-width: 100px;
}

.flag-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Languages grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.lang-card {
    padding: 1rem 1.25rem;
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-bright);
}

.lang-card span {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.lang-card.full {
    border-left: 3px solid #4ade80;
}

.lang-card.partial {
    border-left: 3px solid #fbbf24;
}

@media (max-width: 768px) {
    .ci-examples {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   BLOG POST PAGE STYLES
   ============================================ */

/* Blog Section (on /blog page) */
.blog-section {
    padding: 4rem 0;
}

.blog-section-alt {
    background: var(--surface);
}

.blog-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-section-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.blog-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-card-compact {
    padding: 1.25rem;
}

.blog-card-compact .blog-title {
    font-size: 1rem;
}

.blog-card-compact .blog-subtitle {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
}

.blog-cta-section {
    padding: 3rem 0;
    text-align: center;
}

/* Blog Post Page */
.blog-post-page {
    min-height: calc(100vh - 200px);
}

.blog-post-header {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-date,
.post-read-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Blog Post Content */
.blog-post-content {
    padding: 3rem 0;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Markdown Body Styles */
.markdown-body {
    line-height: 1.75;
    color: var(--text);
}

.markdown-body h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.markdown-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
}

.markdown-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.5rem 0 0.75rem;
}

.markdown-body p {
    margin: 1rem 0;
}

.markdown-body ul,
.markdown-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin: 0.5rem 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--surface);
    border-radius: 0 8px 8px 0;
}

.markdown-body blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--text-muted);
}

.markdown-body pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.markdown-body p code,
.markdown-body li code {
    background: var(--surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
}

.markdown-body th {
    background: var(--surface);
    font-weight: 600;
}

.markdown-body tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

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

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Prev/Next Navigation */
.post-navigation {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-black);
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.post-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
    grid-column: 2;
}

.post-nav-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dim);
    line-height: 1.4;
}

.post-nav-link:hover .post-nav-title {
    color: var(--text-bright);
}

@media (max-width: 640px) {
    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        grid-column: 1;
        text-align: left;
    }
}

/* Related Posts */
.related-posts {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-subtle);
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.related-card:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.related-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
}

/* Related tag colors */
.related-tag.tag-cycles { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.related-tag.tag-dead { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.related-tag.tag-meta { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.related-tag.tag-events { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.related-tag.tag-rust { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.related-tag.tag-tauri { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.related-tag.tag-contracts { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.related-tag.tag-workflow { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.related-tag.tag-jsts { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.related-tag.tag-python { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.related-tag.tag-go { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.related-tag.tag-mixed { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dim);
    line-height: 1.4;
}

.related-card:hover .related-card-title {
    color: var(--text-bright);
}

.related-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Post Footer */
.blog-post-footer {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

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

.post-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100;
    opacity: 0.7;
}

.back-to-top:hover {
    opacity: 1;
    background: var(--bg-black);
    border-color: var(--text-dim);
    color: var(--text-bright);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Tag Colors */
.tag-cycles { background: #3b82f6; }
.tag-dead { background: #ef4444; }
.tag-meta { background: #8b5cf6; }
.tag-events { background: #06b6d4; }
.tag-rust { background: #f97316; }
.tag-tauri { background: #14b8a6; }
.tag-contracts { background: #eab308; color: #000; }
.tag-workflow { background: #6366f1; }
.tag-jsts { background: #3b82f6; }
.tag-python { background: #22c55e; }
.tag-go { background: #06b6d4; }
.tag-mixed { background: #a855f7; }

/* Responsive */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.75rem;
    }

    .post-subtitle {
        font-size: 1rem;
    }

    .blog-post-header {
        padding: 2rem 0;
    }

    .post-actions {
        flex-direction: column;
    }
}

/* ============================================
   Blog Page - Vercel-inspired Layout
   ============================================ */

.blog-page {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--bg-black);
}

.blog-page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

.blog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.blog-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Featured Article */
.featured-article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

.featured-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-label::before {
    content: '★';
    color: #facc15;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.featured-card:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.featured-content {
    display: flex;
    flex-direction: column;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.featured-category {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.featured-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.featured-card:hover .featured-title {
    color: #fff;
}

.featured-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    flex: 1;
}

.featured-cta {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-card:hover .featured-cta {
    color: var(--text-bright);
}

.featured-card:hover .featured-cta .arrow {
    transform: translateX(4px);
}

.featured-cta .arrow {
    transition: transform 0.2s ease;
}

.featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 2rem;
}

.featured-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-visual {
        display: none;
    }
}

/* Start Here - Recommended reads */
.start-here {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.start-here-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.start-here-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}

.start-here-link {
    font-size: 0.95rem;
    color: var(--text-dim);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s ease;
}

.start-here-link:hover {
    color: var(--text-bright);
}

.start-here-arrow {
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.start-here-link:hover .start-here-arrow {
    transform: translateX(3px);
    color: var(--text-bright);
}

/* Blog Controls - Tabs + Search */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tab Navigation - Vercel Style */
.blog-tabs {
    display: flex;
    gap: 0.5rem;
}

.blog-tab {
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-tab:hover {
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
}

.blog-tab.active {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.1);
}

.tab-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

/* Search Input */
.blog-search-wrapper {
    position: relative;
}

.blog-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text-bright);
    width: 200px;
    transition: all 0.15s ease;
}

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

.blog-search:focus {
    outline: none;
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    width: 280px;
}

/* Featured read time */
.featured-readtime {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tag Chips Filter */
.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag-chip {
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.15s ease;
}

.tag-chip:hover {
    border-color: var(--text-muted);
    color: var(--text-dim);
}

.tag-chip.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-dim);
    color: var(--text-bright);
}

/* Tag chip colors when active */
.tag-chip.tag-cycles.active { background: rgba(59, 130, 246, 0.2); border-color: #60a5fa; color: #60a5fa; }
.tag-chip.tag-dead.active { background: rgba(239, 68, 68, 0.2); border-color: #f87171; color: #f87171; }
.tag-chip.tag-meta.active { background: rgba(139, 92, 246, 0.2); border-color: #a78bfa; color: #a78bfa; }
.tag-chip.tag-events.active { background: rgba(6, 182, 212, 0.2); border-color: #22d3ee; color: #22d3ee; }
.tag-chip.tag-rust.active { background: rgba(249, 115, 22, 0.2); border-color: #fb923c; color: #fb923c; }
.tag-chip.tag-tauri.active { background: rgba(20, 184, 166, 0.2); border-color: #2dd4bf; color: #2dd4bf; }
.tag-chip.tag-contracts.active { background: rgba(234, 179, 8, 0.2); border-color: #facc15; color: #facc15; }
.tag-chip.tag-workflow.active { background: rgba(99, 102, 241, 0.2); border-color: #818cf8; color: #818cf8; }
.tag-chip.tag-jsts.active { background: rgba(59, 130, 246, 0.2); border-color: #60a5fa; color: #60a5fa; }
.tag-chip.tag-python.active { background: rgba(34, 197, 94, 0.2); border-color: #4ade80; color: #4ade80; }
.tag-chip.tag-go.active { background: rgba(6, 182, 212, 0.2); border-color: #22d3ee; color: #22d3ee; }
.tag-chip.tag-mixed.active { background: rgba(168, 85, 247, 0.2); border-color: #c084fc; color: #c084fc; }

/* Blog Grid - 3 columns like Vercel */
.blog-grid-vercel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: transparent;
}

/* Blog Card - Vercel Style */
.blog-card-vercel {
    background: var(--bg-black);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: all 0.15s ease;
}

.blog-card-vercel:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--text-muted);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-card-vercel:hover .card-title {
    color: #fff;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    flex: 1;
    /* Gradient fade effect */
    max-height: 4.8em; /* ~3 lines */
    overflow: hidden;
    position: relative;
}

.card-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(transparent, var(--bg-black));
    pointer-events: none;
}

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Read article CTA - appears on hover */
.card-cta {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.card-cta .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.blog-card-vercel:hover .card-cta {
    opacity: 1;
    transform: translateX(0);
}

.blog-card-vercel:hover .card-cta .arrow {
    transform: translateX(4px);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
}

/* Tag colors for card-tag */
.card-tag.tag-cycles { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.card-tag.tag-dead { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.card-tag.tag-meta { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.card-tag.tag-events { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.card-tag.tag-rust { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.card-tag.tag-tauri { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }
.card-tag.tag-contracts { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.card-tag.tag-workflow { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.card-tag.tag-jsts { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.card-tag.tag-python { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.card-tag.tag-go { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.card-tag.tag-mixed { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

/* Blog Page Footer */
.blog-page-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

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

.blog-contribute a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
}

.blog-contribute a:hover {
    color: var(--text-bright);
}

/* Responsive - Blog Page */
@media (max-width: 1024px) {
    .blog-grid-vercel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid-vercel {
        grid-template-columns: 1fr;
    }

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

    .blog-page-title {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .blog-card-vercel {
        min-height: auto;
        padding: 1.5rem;
    }
}
