:root {
    --bg: #06070a;
    --bg-alt: #080910;
    --surface: rgba(12, 13, 20, 0.85);
    --surface-solid: #0c0d14;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.15);
    --text: #f0f0f5;
    --text-2: #9ca3af;
    --text-3: #6b7280;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --cyan: #06b6d4;
    --orange: #f59e0b;
    --green: #10b981;
    --pink: #ec4899;
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ====== Canvas Background ====== */
#graph-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    touch-action: none;
}

/* ====== Floating Pill Nav ====== */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 12px 8px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    padding-right: 12px;
    border-right: 1px solid var(--border);
    margin-right: 4px;
}

.nav-logo img { border-radius: 6px; }

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

.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    margin-left: 8px;
    transition: all var(--transition);
}

.nav-github:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-hover);
}

/* ====== Hero: Full-screen Graph ====== */
.hero-graph {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

#hero-edges-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

#hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.svg-edges line {
    animation: edge-flow 2.5s linear infinite;
}

@keyframes edge-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -26; }
}

.hub-node circle {
    animation: hub-pulse 3s ease-in-out infinite;
}

.hub-aura {
    animation: aura-pulse 4s ease-in-out infinite;
}

@keyframes hub-pulse {
    0%, 100% { stroke-width: 3; }
    50% { stroke-width: 4.5; }
}

@keyframes aura-pulse {
    0%, 100% { opacity: 0.4; r: 120; }
    50% { opacity: 0.7; r: 140; }
}

.node {
    cursor: pointer;
}

.cat-node circle, .leaf-node circle {
    transition: all 0.3s;
}

.cat-node:hover circle {
    stroke-width: 3.5;
}

.leaf-node:hover circle {
    stroke-width: 2.5;
    transform-origin: center;
}

.stat-badge {
    animation: badge-float 5s ease-in-out infinite;
}

.stat-badge:nth-of-type(2) { animation-delay: 1s; }
.stat-badge:nth-of-type(3) { animation-delay: 2s; }
.stat-badge:nth-of-type(4) { animation-delay: 3s; }

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Hero Glass Panel */
.hero-panel {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 420px;
    background: rgba(10, 11, 16, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-panel h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: grad-shift 6s ease infinite;
}

@keyframes grad-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-panel p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--transition);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ====== Section Labels ====== */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 80px 40px 32px;
    position: relative;
    z-index: 1;
}

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

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.section-label span:last-child {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-3);
}

/* ====== Cluster Cards ====== */
.clusters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0 40px 80px;
    position: relative;
    z-index: 1;
}

.cluster-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.cluster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: attr(data-color);
    opacity: 0.5;
}

.cluster-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.cluster-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cluster-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cluster-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    flex: 1;
}

.cluster-count {
    font-size: 0.68rem;
    color: var(--text-3);
    font-weight: 500;
}

.cluster-canvas {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    margin-bottom: 16px;
    display: block;
}

.cluster-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.cluster-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cluster-card:hover .cluster-image img {
    transform: scale(1.03);
}

.cluster-desc {
    font-size: 0.75rem;
    color: var(--text-3);
    line-height: 1.5;
    margin-bottom: 12px;
}

.cluster-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cluster-links a {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.cluster-links a:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-hover);
}

/* ====== Code Flow ====== */
.code-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0 40px 24px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.code-flow-2 {
    padding-bottom: 80px;
}

.code-node {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 240px;
    max-width: 320px;
    flex: 1;
    transition: all var(--transition);
}

.code-node:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.code-node-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

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

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

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-node-header > span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.code-node pre {
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--text-2);
    overflow-x: auto;
}

.code-node .k { color: var(--accent-light); }
.code-node .s { color: var(--green); }
.code-node .v { color: var(--orange); }
.code-node .n { color: var(--cyan); }
.code-node .c { color: var(--text-3); }

.code-edge {
    display: flex;
    align-items: center;
    width: 50px;
    padding: 0 4px;
    align-self: center;
}

.code-edge svg {
    width: 100%;
    height: 24px;
}

.code-edge svg line {
    animation: edge-flow 2s linear infinite;
}

/* ====== Benchmark Graph ====== */
.bench-graph {
    padding: 0 40px 80px;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.bench-header {
    text-align: center;
    margin-bottom: 32px;
}

.bench-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.bench-subtitle {
    font-size: 0.75rem;
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}

.bench-scatter {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 40px 60px 60px;
    margin-bottom: 24px;
}

.scatter-y-axis {
    position: absolute;
    left: 12px;
    top: 40px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
}

.scatter-x-axis {
    position: absolute;
    left: 60px;
    right: 40px;
    bottom: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
}

.scatter-x-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scatter-area {
    position: relative;
    width: 100%;
    height: 280px;
}

.scatter-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20% 25%;
}

.scatter-point {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scatter-point:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 10;
}

.scatter-dot {
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--c);
    opacity: 0.25;
    box-shadow: 0 0 20px var(--c);
    position: relative;
}

.scatter-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
}

.scatter-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

.scatter-point:hover .scatter-tag {
    border-color: var(--c);
}

.scatter-point::before {
    content: attr(data-label);
    position: absolute;
    top: calc(var(--size) / 2 + 30px);
    font-size: 0.6rem;
    color: var(--text-2);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.scatter-point:hover::before {
    opacity: 1;
}

.bench-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.bench-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color var(--transition), transform var(--transition);
}

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

.bench-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bc);
    box-shadow: 0 0 8px var(--bc);
    flex-shrink: 0;
}

.bench-card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.bench-card-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bench-card-meta {
    font-size: 0.62rem;
    color: var(--text-3);
}

.bench-card-fps {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bc);
    white-space: nowrap;
}

.bench-card-fps small {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--text-3);
    margin-left: 2px;
}

/* ====== Pipeline Graph ====== */
.pipeline-graph {
    padding: 0 40px 100px;
    position: relative;
    z-index: 1;
}

#pipeline-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.pipeline-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.pipeline-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2.5px solid var(--nc);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-solid);
    color: var(--nc);
    transition: all var(--transition);
    box-shadow: 0 0 20px color-mix(in srgb, var(--nc) 20%, transparent);
    animation: node-glow 3s ease-in-out infinite;
}

@keyframes node-glow {
    0%, 100% { box-shadow: 0 0 20px color-mix(in srgb, var(--nc) 20%, transparent); }
    50% { box-shadow: 0 0 35px color-mix(in srgb, var(--nc) 40%, transparent); }
}

.pipeline-node:hover .pipeline-circle {
    transform: scale(1.12);
    box-shadow: 0 0 40px color-mix(in srgb, var(--nc) 50%, transparent);
}

.pipeline-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.pipeline-sub {
    font-size: 0.7rem;
    color: var(--text-3);
}

.pipeline-arrow {
    width: 70px;
    display: flex;
    align-items: center;
}

.pipeline-arrow svg {
    width: 100%;
    height: 24px;
}

.pipeline-arrow svg line {
    animation: edge-flow 2s linear infinite;
}

/* ====== Footer ====== */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.footer-left img { border-radius: 5px; }

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

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-3);
    transition: color var(--transition);
}

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

.footer-right {
    font-size: 0.72rem;
    color: var(--text-3);
}

.footer-right a {
    color: var(--text-2);
    transition: color var(--transition);
}

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

/* ====== Highlights Bar ====== */
#highlights {
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color var(--transition), transform var(--transition);
}

.highlight-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.highlight-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--hc, #6366f1);
    flex-shrink: 0;
}

.highlight-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.highlight-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.highlight-desc {
    font-size: 0.72rem;
    color: var(--text-3);
    line-height: 1.3;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
    .hero-graph { min-height: 500px; }

    .hero-panel {
        position: relative;
        left: auto; right: auto;
        top: auto; bottom: auto;
        transform: none;
        max-width: none;
        margin: 20px;
        padding: 28px;
        background: rgba(10, 11, 16, 0.9);
    }

    .hero-panel h1 { font-size: 1.6rem; }

    #hero-svg { opacity: 0.4; }
    #hero-edges-canvas { opacity: 0.3; }

    .hero-graph {
        flex-direction: column;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
        gap: 12px;
    }

    .clusters-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
    }

    .section-label { padding: 60px 20px 24px; }

    .code-flow {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px 24px;
    }

    .code-edge {
        transform: rotate(90deg);
        width: 40px;
        padding: 8px 0;
        align-self: center;
    }

    .code-node {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .pipeline-arrow { display: none; }
    .pipeline-nodes {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .bench-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .scatter-area { height: 200px; }
    .bench-scatter { padding: 30px 30px 50px 50px; }
    .scatter-y-axis { left: 8px; font-size: 0.55rem; }
    .scatter-x-axis { left: 50px; right: 30px; font-size: 0.55rem; }

    .bench-graph, .pipeline-graph { padding: 0 20px 60px; }

    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
    nav {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 6px 10px;
        border-radius: 12px;
    }

    .nav-links a {
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    .nav-logo span { display: none; }
    .nav-logo { padding-right: 8px; margin-right: 2px; border: none; }

    #graph-bg { display: none; }

    .hero-graph {
        min-height: auto !important;
        height: auto !important;
        padding-top: 70px;
        overflow: visible;
        flex-direction: column;
        align-items: center;
    }

    #hero-svg {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 250px !important;
        opacity: 1 !important;
        display: block !important;
        margin-bottom: 10px;
    }

    #hero-edges-canvas { display: none; }

    .hero-panel {
        position: relative;
        margin: 0 12px 20px;
        padding: 20px;
        border-radius: 14px;
        background: rgba(10, 11, 16, 0.95) !important;
    }

    .hero-panel h1 { font-size: 1.3rem; }
    .hero-panel p { font-size: 0.82rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns a { width: 100%; justify-content: center; }

    .stat-badges { display: none; }

    #highlights { padding-top: 20px; }
    .highlights-grid { grid-template-columns: 1fr; gap: 10px; padding: 0 12px; }
    .highlight-item { padding: 12px 14px; }
    .highlight-val { font-size: 0.8rem; }
    .highlight-desc { font-size: 0.68rem; }

    .clusters-grid { padding: 0 12px 40px; }
    .cluster-card { padding: 16px; }
    .cluster-image img { height: 140px; }
    .cluster-desc { font-size: 0.72rem; }
    .cluster-links { gap: 4px; }
    .cluster-links a { font-size: 0.75rem; padding: 6px 10px; }

    .section-label { padding: 40px 12px 20px; font-size: 0.9rem; }

    .code-flow { padding: 0 12px 24px; }
    .code-node pre { font-size: 0.68rem; padding: 14px; }

    .bench-graph { padding: 0 12px 40px; }
    .bench-header h3 { font-size: 1.1rem; }
    .bench-subtitle { font-size: 0.65rem; }

    .bench-scatter {
        display: block;
        padding: 20px 16px 45px 36px;
        margin-bottom: 16px;
    }
    .scatter-area { height: 200px; }
    .scatter-y-axis {
        left: 4px;
        top: 20px;
        bottom: 45px;
        font-size: 0.5rem;
        gap: 0;
    }
    .scatter-x-axis {
        left: 36px;
        right: 16px;
        bottom: 22px;
        font-size: 0.5rem;
    }
    .scatter-x-label { font-size: 0.5rem; bottom: 6px; }
    .scatter-tag { font-size: 0.55rem; padding: 2px 5px; }
    .scatter-point { --size: 28px !important; }
    .scatter-dot { width: 28px !important; height: 28px !important; }

    .bench-cards { grid-template-columns: 1fr; gap: 8px; }
    .bench-card { padding: 12px 14px; }
    .bench-card-fps { font-size: 1rem; }
    .bench-card-name { font-size: 0.72rem; }

    .pipeline-graph { padding: 0 12px 40px; }
    .pipeline-nodes {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .pipeline-arrow { display: none; }
    .pipeline-node { padding: 16px; width: 100%; }
    .pipeline-circle { width: 56px; height: 56px; }
    .pipeline-circle svg { width: 22px; height: 22px; }
    .pipeline-label { font-size: 0.82rem; }
    .pipeline-sub { font-size: 0.65rem; }

    footer { padding: 24px 12px 16px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .footer-links a { font-size: 0.72rem; }
}
