:root {
    --bg-base: #060911;
    --bg-surface: #0a0f1d;
    --bg-card: rgba(13, 20, 36, 0.75);
    --bg-card-hover: rgba(22, 33, 58, 0.85);
    --bg-input: #040711;
    --border-subtle: rgba(56, 189, 248, 0.12);
    --border-accent: rgba(56, 189, 248, 0.35);
    --border-glow: rgba(139, 92, 246, 0.4);
    --accent-blue: #38bdf8;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-cyan: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --glow-blue: 0 0 30px rgba(56, 189, 248, 0.22);
    --glow-purple: 0 0 30px rgba(139, 92, 246, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 55%);
    background-attachment: fixed;
}

/* ── Top Announcement & Navigation ── */
.top-banner {
    background: linear-gradient(90deg, #1e1b4b, #0f172a, #042f2e);
    border-bottom: 1px solid var(--border-subtle);
    padding: 6px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.top-banner span {
    color: var(--accent-blue);
    font-weight: 700;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(6, 9, 17, 0.88);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.btn-github {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ── Layout & Auto-Hiding Sidebar ── */
.docs-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 60px 48px;
    position: relative;
}

aside.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 330px;
    max-width: 88vw;
    height: calc(100vh - 95px);
    z-index: 995;
    background: rgba(6, 10, 24, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-accent);
    border-left: none;
    border-radius: 0 16px 16px 0;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.15);
    transform: translateX(calc(-100% + 38px));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: row;
}

aside.sidebar:hover,
aside.sidebar:focus-within,
aside.sidebar.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.35);
}

.sidebar-inner {
    flex: 1;
    min-width: 0;
    padding: 16px 14px 24px 18px;
    overflow-y: auto;
    height: 100%;
}

.sidebar-inner::-webkit-scrollbar {
    width: 4px;
}

.sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 4px;
}

/* Floating Tab Handle on the Edge */
.sidebar-tab-handle {
    width: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(13, 20, 36, 0.95), rgba(8, 14, 28, 0.95));
    border-left: 1px solid rgba(56, 189, 248, 0.2);
    cursor: pointer;
    user-select: none;
    padding: 12px 0;
    transition: background 0.2s;
}

.sidebar-tab-handle:hover {
    background: rgba(22, 33, 58, 0.98);
}

.sidebar-tab-handle .tab-icon {
    font-size: 16px;
    animation: pulse-icon 2.5s infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.sidebar-tab-handle .tab-text {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 1.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
}

.sidebar-header {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

/* Search inside top of sidebar */
.sidebar-search-box {
    position: relative;
    margin-bottom: 18px;
}

.sidebar-search-input {
    width: 100%;
    background: #030712;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 8px 28px 8px 32px;
    color: #f8fafc;
    font-family: var(--font-body);
    font-size: 12.5px;
    outline: none;
    transition: all 0.2s;
}

.sidebar-search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.sidebar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-dim);
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
}

.search-clear-btn:hover {
    color: #f8fafc;
}

.toc-group {
    margin-bottom: 22px;
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.toc-links {
    list-style: none;
}

.toc-links li {
    margin-bottom: 6px;
}

.toc-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.toc-links a:hover,
.toc-links a.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    font-weight: 600;
}

/* ── Main Content Area ── */
main.content {
    min-width: 0;
}

/* ── Hero Section ── */
.hero {
    padding: 40px 0 50px;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(56, 189, 248, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 20px;
    box-shadow: var(--glow-purple);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 860px;
    margin: 0 auto 30px;
    font-weight: 400;
}

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

/* ── Hero Pill Button Grid (Screenshot Exact Match) ── */
.hero-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 240px));
    gap: 12px 16px;
    justify-content: center;
    margin: 0 auto 36px;
}

@media (max-width: 600px) {
    .hero-pill-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

.hero-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-sizing: border-box;
}

.hero-pill-btn svg {
    flex-shrink: 0;
}

.hero-pill-white {
    background: #ffffff;
    color: #090e1a;
    font-weight: 700;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-pill-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #030712;
}

.hero-pill-dark {
    background: rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-pill-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #030712;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-accent);
    color: var(--text-main);
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ── Hero Side-by-Side Showcase Grid ── */
.hero-duo-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
    max-width: 1360px;
    margin: 32px auto 40px;
    text-align: left;
}

/* ── Live Terminal Console ── */
.terminal-container {
    background: #030712;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-blue);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.terminal-header {
    background: #0b1120;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    gap: 8px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.dot-yellow {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}

.dot-green {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.terminal-body {
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: #f1f5f9;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.35);
    flex: 1;
    min-height: 240px;
    max-height: 350px;
    overflow-y: auto;
}

.terminal-body div {
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.terminal-body div:hover {
    background: rgba(56, 189, 248, 0.08);
    border-radius: 4px;
    padding: 0 4px;
}

.terminal-body::-webkit-scrollbar {
    width: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 4px;
}

.t-leader {
    color: #38bdf8;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.9), 0 0 22px rgba(56, 189, 248, 0.5);
}

.t-deepseek {
    color: #60a5fa;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.9), 0 0 22px rgba(96, 165, 250, 0.5);
}

.t-claude {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.9), 0 0 22px rgba(245, 158, 11, 0.5);
}

.t-success {
    color: #34d399;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.9), 0 0 22px rgba(16, 185, 129, 0.5);
}

.t-meta {
    color: #38bdf8;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

.t-perplexity {
    color: #2dd4bf;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.9);
}

.t-nvidia {
    color: #a3e635;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.9);
}

.t-dim {
    color: #94a3b8;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(148, 163, 184, 0.4);
}

/* ── Live Demo Hero Showcase ── */
.hero-demo-frame {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-accent);
    background: #020617;
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.22), 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.hero-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #090e1f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-shrink: 0;
}

.hero-demo-img-box {
    position: relative;
    background: #02040a;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    cursor: pointer;
}

.hero-demo-img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
    object-position: top center;
    display: block;
    opacity: 0;
    filter: blur(12px) brightness(0.6);
    transform: scale(1.05);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.hero-demo-img.loaded {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1);
}

.hero-demo-img.loaded:hover {
    transform: scale(1.02);
}

.hero-demo-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: #38bdf8;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

/* ── Glowing Numbers & Metric Highlights ── */
.glow-num,
.glow-number {
    display: inline-block;
    font-weight: 800;
    color: #38bdf8;
    text-shadow:
        0 0 10px rgba(56, 189, 248, 0.8),
        0 0 22px rgba(56, 189, 248, 0.5),
        0 0 35px rgba(139, 92, 246, 0.35);
    animation: number-glow-pulse 3s ease-in-out infinite alternate;
}

.glow-purple {
    display: inline-block;
    font-weight: 800;
    color: #c084fc;
    text-shadow:
        0 0 10px rgba(192, 132, 252, 0.9),
        0 0 24px rgba(168, 85, 247, 0.65),
        0 0 38px rgba(139, 92, 246, 0.45);
    animation: purple-glow-pulse 3s ease-in-out infinite alternate;
}

.glow-emerald {
    display: inline-block;
    font-weight: 800;
    color: #34d399;
    text-shadow:
        0 0 10px rgba(52, 211, 153, 0.9),
        0 0 24px rgba(16, 185, 129, 0.6),
        0 0 36px rgba(5, 150, 105, 0.4);
    animation: emerald-glow-pulse 3s ease-in-out infinite alternate;
}

.glow-amber {
    display: inline-block;
    font-weight: 800;
    color: #fbbf24;
    text-shadow:
        0 0 10px rgba(251, 191, 36, 0.9),
        0 0 24px rgba(245, 158, 11, 0.6),
        0 0 36px rgba(217, 119, 6, 0.4);
    animation: amber-glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes number-glow-pulse {
    0% {
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.6), 0 0 18px rgba(56, 189, 248, 0.35);
        filter: brightness(1);
    }

    100% {
        text-shadow: 0 0 16px rgba(56, 189, 248, 1), 0 0 32px rgba(56, 189, 248, 0.8), 0 0 45px rgba(139, 92, 246, 0.6);
        filter: brightness(1.2);
    }
}

@keyframes purple-glow-pulse {
    0% {
        text-shadow: 0 0 8px rgba(192, 132, 252, 0.6), 0 0 18px rgba(168, 85, 247, 0.35);
    }

    100% {
        text-shadow: 0 0 16px rgba(192, 132, 252, 1), 0 0 32px rgba(168, 85, 247, 0.8), 0 0 45px rgba(139, 92, 246, 0.6);
    }
}

@keyframes emerald-glow-pulse {
    0% {
        text-shadow: 0 0 8px rgba(52, 211, 153, 0.6), 0 0 18px rgba(16, 185, 129, 0.35);
    }

    100% {
        text-shadow: 0 0 16px rgba(52, 211, 153, 1), 0 0 32px rgba(16, 185, 129, 0.75);
    }
}

@keyframes amber-glow-pulse {
    0% {
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.6), 0 0 18px rgba(245, 158, 11, 0.35);
    }

    100% {
        text-shadow: 0 0 16px rgba(251, 191, 36, 1), 0 0 32px rgba(245, 158, 11, 0.75);
    }
}

/* ── KPI Stats Bar ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.6;
}

.kpi-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.3);
}

.kpi-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: #38bdf8;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.kpi-card:hover .kpi-num {
    transform: scale(1.05);
}

.kpi-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Detailed Content Sections ── */
.doc-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 0 22px rgba(56, 189, 248, 0.4);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #f8fafc;
    text-shadow: 0 0 24px rgba(56, 189, 248, 0.3), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.section-lead {
    color: #cbd5e1;
    font-size: 15px;
    margin-bottom: 26px;
    line-height: 1.6;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

/* ── Architectural 5-Tier Layer Box ── */
.arch-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
    transition: all 0.25s;
}

.tier-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.tier-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.tier-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #f8fafc;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.tier-content p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ── Multi-Agent Interactive Cards ── */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.agent-card {
    background: rgba(13, 20, 36, 0.7);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: all 0.25s;
    cursor: pointer;
}

.agent-card:hover {
    background: rgba(22, 33, 58, 0.85);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.agent-name {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f8fafc;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.agent-status {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
}

.agent-role {
    font-size: 11.5px;
    color: #38bdf8;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.agent-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ── Token Table & Badges ── */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

th {
    background: rgba(22, 33, 58, 0.6);
    color: #38bdf8;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

tr:hover td {
    background: rgba(56, 189, 248, 0.04);
}

.token-badge-img {
    vertical-align: middle;
    height: 20px;
    margin-bottom: 4px;

    /* ── Live Web App Navigation Button ── */
    .btn-live-web {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(139, 92, 246, 0.35));
        border: 1px solid rgba(56, 189, 248, 0.5);
        color: #f8fafc;
        padding: 6px 14px;
        border-radius: var(--radius-sm);
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.25s ease;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
        white-space: nowrap;
    }

    .btn-live-web:hover {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(139, 92, 246, 0.5));
        border-color: #38bdf8;
        box-shadow: 0 0 22px rgba(56, 189, 248, 0.6);
        transform: translateY(-1px);
        color: #ffffff;
    }

    /* ── Skills & Personas Vault (382 Skills & 287+ Agency Personas) ── */
    .skills-controls-wrapper {
        background: rgba(13, 20, 36, 0.7);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 16px 20px;
        margin: 20px 0 24px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .skills-search-row {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    .skills-search-input-box {
        position: relative;
        flex: 1;
        min-width: 260px;
    }

    .skills-search-input-box input {
        width: 100%;
        background: rgba(6, 10, 24, 0.9);
        border: 1px solid var(--border-accent);
        border-radius: var(--radius-sm);
        padding: 10px 14px 10px 38px;
        color: #f8fafc;
        font-size: 13.5px;
        font-family: var(--font-body);
        transition: all 0.2s;
    }

    .skills-search-input-box input:focus {
        outline: none;
        border-color: var(--accent-blue);
        box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
    }

    .skills-search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: var(--text-muted);
        pointer-events: none;
    }

    .skills-count-badge {
        font-size: 12px;
        font-family: var(--font-mono);
        font-weight: 700;
        color: #38bdf8;
        background: rgba(56, 189, 248, 0.12);
        border: 1px solid rgba(56, 189, 248, 0.3);
        padding: 6px 12px;
        border-radius: var(--radius-sm);
        white-space: nowrap;
    }

    .skills-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .skills-filter-btn {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #94a3b8;
        font-size: 12px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .skills-filter-btn:hover {
        background: rgba(255, 255, 255, 0.09);
        color: #f8fafc;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .skills-filter-btn.active {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(139, 92, 246, 0.3));
        border-color: #38bdf8;
        color: #f8fafc;
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
        font-weight: 700;
    }

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

    .skill-card {
        background: rgba(13, 20, 36, 0.7);
        border: 1px solid var(--border-subtle);
        border-top: 3px solid #38bdf8;
        border-radius: var(--radius-sm);
        padding: 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        overflow: hidden;
    }

    .skill-card:hover {
        border-color: var(--accent-purple);
        background: rgba(22, 33, 58, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(139, 92, 246, 0.25);
    }

    .skill-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
    }

    .skill-name {
        font-size: 13.5px;
        font-weight: 700;
        color: #f8fafc;
        line-height: 1.35;
    }

    .skill-division-badge {
        font-size: 9.5px;
        font-weight: 800;
        font-family: var(--font-mono);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 2px 7px;
        border-radius: 6px;
        white-space: nowrap;
        background: rgba(56, 189, 248, 0.15);
        color: #38bdf8;
        border: 1px solid rgba(56, 189, 248, 0.3);
    }

    .skill-vibe {
        font-size: 11px;
        font-style: italic;
        color: #c084fc;
        background: rgba(139, 92, 246, 0.08);
        border-left: 2px solid #a855f7;
        padding: 4px 8px;
        border-radius: 0 4px 4px 0;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .skill-desc {
        font-size: 12px;
        color: #cbd5e1;
        line-height: 1.5;
        margin-bottom: 12px;
        flex-grow: 1;
    }

    .skill-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 8px;
        margin-top: auto;
        font-size: 11px;
        color: var(--text-muted);
    }

    .skill-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .skill-tag {
        font-size: 10px;
        font-family: var(--font-mono);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #94a3b8;
        padding: 1px 6px;
        border-radius: 4px;
    }

    /* ── Protruding Tabbed Code Block (Screenshot Exact Aesthetic) ── */
    .protruding-code-widget {
        max-width: 720px;
        margin: 28px auto 0;
        position: relative;
        font-family: var(--font-body);
        text-align: left;
    }

    .protruding-tab-bar {
        display: flex;
        align-items: flex-end;
        gap: 6px;
        padding-left: 20px;
        margin-bottom: -1px;
        position: relative;
        z-index: 5;
    }

    .protruding-tab-btn {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: none;
        color: #94a3b8;
        font-size: 13.5px;
        font-weight: 600;
        padding: 9px 20px 11px;
        cursor: pointer;
        border-radius: 12px 12px 0 0;
        transition: all 0.2s ease;
        font-family: var(--font-body);
        user-select: none;
    }

    .protruding-tab-btn:hover {
        color: #f8fafc;
        background: rgba(22, 33, 58, 0.8);
    }

    .protruding-tab-btn.active {
        background: #192438;
        color: #ffffff;
        font-weight: 700;
        border: 1px solid rgba(56, 189, 248, 0.35);
        border-bottom: 1px solid #192438;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
    }

    .protruding-terminal-box {
        background: #192438;
        border: 1px solid rgba(56, 189, 248, 0.35);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.15);
        position: relative;
        z-index: 4;
    }

    .protruding-terminal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px 8px;
        background: transparent;
    }

    .mac-window-dots {
        display: flex;
        gap: 8px;
    }

    .mac-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .mac-dot.mac-red {
        background: #ff5f56;
    }

    .mac-dot.mac-yellow {
        background: #ffbd2e;
    }

    .mac-dot.mac-green {
        background: #27c93f;
    }

    .protruding-copy-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        font-size: 13px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        cursor: pointer;
        padding: 5px 12px;
        border-radius: 6px;
        transition: all 0.2s ease;
        font-family: var(--font-body);
    }

    .protruding-copy-btn svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

    .protruding-copy-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    .protruding-copy-btn.copied {
        color: #34d399;
    }

    .protruding-terminal-body {
        padding: 12px 24px 24px;
        font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
        font-size: 14px;
        line-height: 1.8;
        color: #f8fafc;
    }

    .cmd-line {
        display: flex;
        align-items: baseline;
        gap: 12px;
        word-break: break-all;
        margin-bottom: 4px;
    }

    .cmd-prompt {
        color: #38bdf8;
        font-weight: 800;
        user-select: none;
        flex-shrink: 0;
    }

    .cmd-text {
        color: #ffffff;
    }

    /* ── Interactive Code Tabs ── */
    .code-tabs-wrapper {
        background: #030712;
        border: 1px solid var(--border-accent);
        border-radius: var(--radius-md);
        overflow: hidden;
        margin: 20px 0;
    }

    .code-tab-header {
        display: flex;
        background: #0b1120;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        overflow-x: auto;
    }

    .code-tab-btn {
        padding: 11px 18px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .code-tab-btn.active {
        color: #38bdf8;
        border-bottom-color: #38bdf8;
        background: rgba(56, 189, 248, 0.08);
    }

    .code-content {
        padding: 18px;
        font-family: var(--font-mono);
        font-size: 12.5px;
        line-height: 1.6;
        color: #f8fafc;
        position: relative;
    }

    .btn-copy {
        position: absolute;
        top: 14px;
        right: 14px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--text-main);
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-copy:hover {
        background: #38bdf8;
        color: #030712;
    }

    /* ── Protruding Tabbed Code Block (Exact Match with Reference Image) ── */
    .protruding-code-widget {
        position: relative;
        max-width: 860px;
        margin: 28px 0 36px;
    }

    .protruding-tab-bar {
        display: flex;
        align-items: flex-end;
        gap: 8px;
        padding-left: 20px;
        position: relative;
        z-index: 2;
        margin-bottom: -1px;
    }

    .protruding-tab-btn {
        background: transparent;
        border: 1px solid transparent;
        border-bottom: none;
        color: rgba(203, 213, 225, 0.7);
        padding: 10px 22px;
        font-family: var(--font-body);
        font-size: 14.5px;
        font-weight: 600;
        border-radius: 12px 12px 0 0;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        user-select: none;
    }

    .protruding-tab-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.04);
    }

    .protruding-tab-btn.active {
        background: #192438;
        background: linear-gradient(180deg, #202d45 0%, #172236 100%);
        color: #ffffff;
        font-weight: 700;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 1px solid #172236;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
        position: relative;
        z-index: 3;
    }

    .protruding-terminal-box {
        background: #172236;
        background: linear-gradient(180deg, #172236 0%, #10192a 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(56, 189, 248, 0.08);
        overflow: hidden;
        position: relative;
        z-index: 1;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .protruding-terminal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px 10px 22px;
    }

    .mac-window-dots {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mac-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .mac-red {
        background: #ff5f56;
    }

    .mac-yellow {
        background: #ffbd2e;
    }

    .mac-green {
        background: #27c93f;
    }

    .protruding-copy-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        font-family: var(--font-body);
        font-size: 13.5px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .protruding-copy-btn svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .protruding-copy-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    .protruding-copy-btn.copied {
        color: #34d399;
    }

    .protruding-terminal-body {
        padding: 16px 28px 28px 28px;
        font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, monospace;
        font-size: 15px;
        line-height: 1.85;
        letter-spacing: -0.1px;
    }

    .cmd-line {
        display: flex;
        align-items: baseline;
        gap: 12px;
        margin-bottom: 4px;
        word-break: break-all;
    }

    .cmd-prompt {
        color: #38bdf8;
        font-weight: 700;
        user-select: none;
        flex-shrink: 0;
    }

    .cmd-text {
        color: #f8fafc;
        font-weight: 500;
    }

    /* ── Single-Line Left-to-Right Animated Badges Ticker Below Top Bar ── */
    .badge-marquee-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin: 0;
        padding: 8px 0;
        background: rgba(8, 13, 26, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-subtle);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        display: flex;
        z-index: 990;
    }

    .badge-marquee-track {
        display: flex;
        align-items: center;
        gap: 12px;
        width: max-content;
        animation: marquee-left-to-right 95s linear infinite;
    }

    .badge-marquee-wrapper:hover .badge-marquee-track {
        animation-play-state: paused;
    }

    .badge-marquee-group {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .badge-marquee-group a {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        transition: transform 0.2s ease, filter 0.2s ease;
    }

    .badge-marquee-group a img {
        height: 23px;
        vertical-align: middle;
        border-radius: 4px;
        display: block;
    }

    .badge-marquee-group a:hover {
        transform: translateY(-2px) scale(1.05);
        filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
    }

    @keyframes marquee-left-to-right {
        0% {
            transform: translateX(-50%);
        }

        100% {
            transform: translateX(0%);
        }
    }

    /* ── Interactive Schema Live Tester ── */
    .schema-tester {
        background: var(--bg-card);
        border: 1px solid var(--border-accent);
        border-radius: var(--radius-md);
        padding: 20px;
        margin-top: 20px;
    }

    .schema-editor {
        width: 100%;
        height: 160px;
        background: #030712;
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        color: #38bdf8;
        font-family: var(--font-mono);
        font-size: 12px;
        padding: 12px;
        outline: none;
        resize: vertical;
    }

    .schema-feedback {
        margin-top: 10px;
        font-size: 12px;
        font-family: var(--font-mono);
        color: #34d399;
    }

    /* ── Screen Views & Interactive Gallery ── */
    .gallery-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 18px 0 24px;
    }

    .gallery-filter-btn {
        background: rgba(13, 20, 36, 0.7);
        border: 1px solid var(--border-subtle);
        color: var(--text-muted);
        padding: 6px 14px;
        border-radius: var(--radius-sm);
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .gallery-filter-btn.active,
    .gallery-filter-btn:hover {
        background: rgba(56, 189, 248, 0.15);
        border-color: var(--accent-blue);
        color: var(--accent-blue);
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 18px;
        margin-top: 14px;
    }

    .gallery-card {
        background: rgba(13, 20, 36, 0.75);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        opacity: 0;
        transform: translateY(28px) scale(0.97);
        transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
        position: relative;
        will-change: opacity, transform;
    }

    .gallery-card.in-view {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .gallery-card.in-view:hover {
        transform: translateY(-4px) scale(1.01);
        border-color: var(--accent-blue);
        box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
    }

    .gallery-img-box {
        position: relative;
        width: 100%;
        height: 195px;
        background: #040714;
        overflow: hidden;
    }

    .gallery-img-box::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #090e1f 0%, #1e293b 50%, #090e1f 100%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.5s infinite;
        z-index: 1;
    }

    @keyframes skeleton-shimmer {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
        opacity: 0;
        filter: blur(14px) brightness(0.6);
        transform: scale(1.08);
        transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        z-index: 2;
        will-change: opacity, filter, transform;
    }

    .gallery-img.loaded {
        opacity: 1;
        filter: blur(0px) brightness(1);
        transform: scale(1);
    }

    .gallery-card:hover .gallery-img.loaded {
        transform: scale(1.04);
    }

    .gallery-overlay-badge {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(3, 7, 18, 0.88);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(56, 189, 248, 0.35);
        color: #38bdf8;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-family: var(--font-mono);
        font-weight: 700;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .gallery-info {
        padding: 14px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: space-between;
    }

    .gallery-card-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .gallery-card-desc {
        font-size: 12px;
        color: var(--text-muted);
        line-height: 1.45;
    }

    /* ── Fullscreen Lightbox Screen Viewer Modal ── */
    .lightbox-modal {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .lightbox-modal.active {
        display: flex;
        opacity: 1;
    }

    .lightbox-content-box {
        max-width: 1240px;
        width: 100%;
        background: #090e1f;
        border: 1px solid var(--border-accent);
        border-radius: var(--radius-md);
        box-shadow: 0 0 50px rgba(56, 189, 248, 0.3);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: 94vh;
        animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
    }

    @keyframes modal-pop {
        0% {
            transform: scale(0.95);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .lightbox-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        background: #050914;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .lightbox-title {
        font-family: var(--font-heading);
        font-size: 15px;
        font-weight: 700;
        color: #38bdf8;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .lightbox-close-btn {
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #f87171;
        width: 30px;
        height: 30px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 700;
        transition: all 0.2s;
    }

    .lightbox-close-btn:hover {
        background: #ef4444;
        color: #fff;
    }

    .lightbox-body {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #02040a;
        overflow: hidden;
        padding: 12px;
        min-height: 320px;
        max-height: calc(94vh - 120px);
    }

    .lightbox-image {
        max-width: 100%;
        max-height: calc(94vh - 140px);
        object-fit: contain;
        border-radius: 4px;
        transition: opacity 0.3s;
    }

    .lightbox-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(8, 14, 29, 0.85);
        border: 1px solid var(--border-accent);
        color: #f8fafc;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.2s;
        z-index: 10;
    }

    .lightbox-nav-btn:hover {
        background: #38bdf8;
        color: #030712;
        box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
    }

    .lightbox-prev-btn {
        left: 16px;
    }

    .lightbox-next-btn {
        right: 16px;
    }

    .lightbox-footer {
        padding: 10px 20px;
        background: #050914;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12.5px;
        color: var(--text-muted);
    }

    /* ── Footer ── */
    footer {
        background: #040711;
        border-top: 1px solid var(--border-subtle);
        padding: 36px 0 20px;
        margin-top: 60px;
        text-align: center;
        color: var(--text-dim);
        font-size: 13px;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 14px;
        flex-wrap: wrap;
    }

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

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

    /* ── Autonomous Multi-Agent Moving Cursor Overlay ── */
    #agentCursorsContainer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1800;
        overflow: hidden;
    }

    .agent-live-cursor {
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
        user-select: none;
        will-change: transform;
        font-family: var(--font-body);
        filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.75));
        opacity: 0;
        animation: cursor-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes cursor-enter {
        to {
            opacity: 1;
        }
    }

    .agent-cursor-pointer {
        width: 24px;
        height: 24px;
        transform-origin: 0 0;
        filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.85));
        animation: cursor-hover-bob 2.8s ease-in-out infinite alternate;
    }

    @keyframes cursor-hover-bob {
        0% {
            transform: translate(0, 0) rotate(0deg);
        }

        100% {
            transform: translate(2px, 2.5px) rotate(-1.5deg);
        }
    }

    .agent-cursor-badge {
        position: absolute;
        left: 16px;
        top: 14px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 5px 12px;
        border-radius: 9px;
        font-size: 11.5px;
        font-family: var(--font-heading);
        font-weight: 700;
        letter-spacing: 0.3px;
        color: #ffffff;
        white-space: nowrap;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        pointer-events: none;
    }

    .agent-cursor-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex-shrink: 0;
        animation: cursor-dot-pulse 1.3s infinite alternate;
    }

    @keyframes cursor-dot-pulse {
        0% {
            transform: scale(0.8);
            opacity: 0.7;
        }

        100% {
            transform: scale(1.35);
            opacity: 1;
        }
    }

    .agent-cursor-action {
        font-size: 10px;
        font-weight: 600;
        padding: 2.5px 7px;
        border-radius: 5px;
        background: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #f8fafc;
        margin-left: 2px;
        font-family: var(--font-mono);
        letter-spacing: 0px;
    }

    .agent-click-ripple {
        position: absolute;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid;
        transform: translate(-50%, -50%) scale(0.2);
        pointer-events: none;
        z-index: 1799;
        animation: agent-ripple-expand 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    }

    @keyframes agent-ripple-expand {
        0% {
            transform: translate(-50%, -50%) scale(0.2);
            opacity: 1;
        }

        100% {
            transform: translate(-50%, -50%) scale(2.6);
            opacity: 0;
        }
    }

    .cursor-toggle-float {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1200;
        background: rgba(8, 14, 28, 0.92);
        border: 1px solid var(--border-accent);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 7px 16px;
        border-radius: 24px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 11.5px;
        font-family: var(--font-mono);
        font-weight: 700;
        color: #38bdf8;
        cursor: pointer;
        box-shadow: 0 4px 22px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.25);
        transition: all 0.25s ease;
        user-select: none;
    }

    .cursor-toggle-float:hover {
        background: rgba(22, 33, 58, 0.98);
        border-color: #38bdf8;
        transform: translateY(-2px);
        box-shadow: 0 6px 28px rgba(56, 189, 248, 0.45);
    }

    /* ── Responsive Queries ── */
    @media (max-width: 1024px) {
        .docs-layout {
            padding-left: 20px;
            padding-right: 20px;
        }

        aside.sidebar {
            width: 300px;
        }

        .tier-card {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 34px;
        }

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