@font-face {
    font-family: 'Graphik';
    src: url('/static/fonts/Graphik-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Graphik';
    src: url('/static/fonts/Graphik-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Graphik';
    src: url('/static/fonts/Graphik-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Graphik';
    src: url('/static/fonts/Graphik-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Graphik';
    src: url('/static/fonts/Graphik-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Graphik';
    src: url('/static/fonts/Graphik-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-code: #1e1e2e;
    --border: #2a2a3a;
    --border-accent: #3a3a5a;
    --text: #e4e4ef;
    --text-muted: #8888a0;
    --text-dim: #5a5a70;
    --accent: #6c63ff;
    --accent-bright: #8b83ff;
    --accent-glow: rgba(108, 99, 255, 0.15);
    --green: #34d399;
    --green-dim: rgba(52, 211, 153, 0.12);
    --orange: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --font: 'Graphik', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html { font-size: 16px; }

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

strong, b { font-weight: 500; }

a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.brand-logo {
    height: 18px;
    width: auto;
}

.brand-version {
    font-size: 0.7rem;
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.nav-github {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem !important;
}

.nav-github:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 1px;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
.hero {
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--green-dim);
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--accent-bright);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: #fff;
}

.install-block {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--green);
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.install-block .prompt { color: var(--text-dim); }

.copy-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}
.copy-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.copy-btn .check-icon { display: none; }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

/* SECTIONS */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

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

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* FEATURE GRID */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

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

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* STATS */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 48px 0;
}

.stat {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--accent-bright);
    font-family: var(--mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* COMPARISON TABLE */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    white-space: normal;
    min-width: 180px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg);
}

.comparison-table td:nth-child(2),
.comparison-table th:nth-child(2) {
    position: sticky;
    left: 180px;
    z-index: 2;
    background: var(--bg);
    border-right: 2px solid var(--accent);
}

.comparison-table tr:hover td:first-child,
.comparison-table tr:hover td:nth-child(2) {
    background: var(--bg-card);
}

.comparison-table th:first-child,
.comparison-table th:nth-child(2) {
    z-index: 3;
    background: var(--bg-card);
}

.comparison-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.comparison-presets {
    display: flex;
    gap: 8px;
}

.preset-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.preset-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.preset-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.comparison-dropdown {
    position: relative;
    margin-left: auto;
}

.dropdown-toggle {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.dropdown-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
}

.dropdown-menu {
    display: none;
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 1000;
    min-width: 200px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dropdown-menu.open {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px 0;
    white-space: nowrap;
}

.dropdown-menu input[type=checkbox] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

.comparison-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

.table-wrapper {
    position: relative;
    overflow-x: auto;
}

.table-fade-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}

.table-wrapper.has-scroll .table-fade-right {
    opacity: 1;
}

.comparison-table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    background: var(--bg);
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-card); }

.check { color: var(--green); font-weight: 600; }
.cross { color: var(--red); }
.partial { color: var(--orange); }

.highlight-row td {
    background: var(--accent-glow) !important;
    font-weight: 600;
}

/* CODE BLOCKS */
pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 16px 0;
}

code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg-code);
    padding: 2px 6px;
    border-radius: 4px;
}

pre code {
    background: none;
    padding: 0;
}

.code-comment { color: var(--text-dim); }
.code-keyword { color: #c678dd; }
.code-string { color: var(--green); }
.code-func { color: #61afef; }
.code-num { color: #d19a66; }

/* DOCS */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

.docs-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.docs-sidebar h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 12px;
    margin-top: 24px;
    font-weight: 500;
}

.docs-sidebar h4:first-child { margin-top: 0; }

.docs-sidebar a {
    display: block;
    color: var(--text-muted);
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.docs-sidebar a:hover { color: #fff; }

.docs-content h1 {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.docs-content h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.docs-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content p { margin-bottom: 16px; }

.docs-content ul, .docs-content ol {
    margin: 12px 0 20px 24px;
}

.docs-content li {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.callout {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    border-left: 3px solid;
}

.callout-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--blue);
    color: var(--text);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--orange);
}

/* CHANGELOG */
.changelog-entry {
    border-left: 2px solid var(--border);
    padding-left: 28px;
    margin-bottom: 48px;
    position: relative;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.changelog-entry h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.changelog-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.changelog-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
}

.tag-new { background: var(--green-dim); color: var(--green); }
.tag-improved { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.tag-fixed { background: rgba(245, 158, 11, 0.1); color: var(--orange); }
.tag-breaking { background: rgba(239, 68, 68, 0.1); color: var(--red); }

/* BENCHMARK TABLE */
.bench-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.85rem;
    font-family: var(--mono);
}

.bench-table th {
    background: var(--bg-card);
    padding: 12px 14px;
    text-align: right;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bench-table th:first-child { text-align: left; }

.bench-table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.bench-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font);
}

.bench-table tr:last-child td { border-bottom: none; }
.bench-table tr:hover td { background: var(--bg-card); }

.best-score {
    color: var(--green);
    font-weight: 600;
}

/* API SECTION */
.api-method {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.api-method h3 {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--accent-bright);
    margin-bottom: 8px;
}

.api-method p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.api-params {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.api-params code {
    color: var(--text);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-grid p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-grid a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 4px 0;
}

.footer-grid a:hover { color: var(--accent-bright); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ANIMATIONS */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in.delay-1 { transition-delay: 0.15s; }
.animate-in.delay-2 { transition-delay: 0.3s; }
.animate-in.delay-3 { transition-delay: 0.45s; }
.animate-in.delay-4 { transition-delay: 0.6s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* HERO PARTICLES */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.4; }
    80% { opacity: 0.15; }
    100% { opacity: 0; transform: translateY(-200px) scale(1.2); }
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(108, 99, 255, 0.12) 0%, rgba(108, 99, 255, 0.04) 40%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero .subtitle strong {
    color: #fff;
    font-weight: 600;
}

/* SECTION BADGE */
.section-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--accent-glow);
    color: var(--accent-bright);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* STAT SUFFIX */
.stat { position: relative; }
.stat-suffix {
    position: absolute;
    top: 24px;
    right: calc(50% - 50px);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-bright);
    font-family: var(--mono);
}

/* HOW IT WORKS */
.how-it-works {
    max-width: 700px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.how-step:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.step-number {
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 60px;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.step-content em {
    color: var(--green);
    font-style: normal;
    font-weight: 600;
}

.how-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin: 0 auto;
}

/* ADVANTAGES GRID */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    opacity: 0;
    transition: opacity 0.3s;
}

.advantage-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.advantage-card:hover::after { opacity: 1; }

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

.advantage-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.advantage-card p strong {
    color: var(--text);
    font-weight: 600;
}

/* FEATURE ICON SVG */
.feature-icon-svg {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--accent-glow);
}

/* SOCIAL PROOF */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-source {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.testimonial-company {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* USE CASE TAGS */
.use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.use-case-tag {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}

.use-case-tag:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    background: var(--accent-glow);
}

/* CASE STUDY */
.case-study {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.case-study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.case-study-logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e23744;
    letter-spacing: -0.02em;
}

.case-study-link {
    font-size: 0.85rem;
    color: var(--accent-bright);
    font-weight: 500;
}

.case-study-problem {
    margin-bottom: 32px;
}

.case-study-problem h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-weight: 500;
}

.case-study-problem p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.case-study-problem strong {
    color: var(--red);
    font-weight: 600;
}

.case-study-flow {
    margin-bottom: 32px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.flow-step:hover {
    background: var(--bg-card-hover);
}

.flow-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent-bright);
}

.flow-icon.highlight-flow {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.flow-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.flow-time {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 600;
    background: var(--green-dim);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

.flow-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.flow-arrow {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.2rem;
    padding: 4px 0;
}

.case-study-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.result-metric {
    text-align: center;
    padding: 16px 8px;
}

.result-value {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 4px;
}

.result-label {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* BENCHMARK BARS */
.bench-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.bench-grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bench-highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.bench-highlight-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.bench-meta {
    font-weight: 400;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.bench-bar-row {
    display: grid;
    grid-template-columns: 72px 1fr 52px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bench-bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bench-bar-track {
    height: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bench-bar-track.bench-bar-track-overflow {
    overflow: visible;
}

.bench-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 0;
    transition: width 1s ease;
    position: relative;
    overflow: visible;
}

.bench-bar-fill.bench-bar-best {
    background: var(--green);
}

.bench-bar-fill.bench-bar-fail {
    background: var(--red);
    opacity: 0.5;
}

.bench-bar-value {
    font-size: 0.72rem;
    font-family: var(--mono);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.bench-bar-fill.bench-bar-short .bench-bar-value {
    position: absolute;
    left: calc(100% + 6px);
    color: var(--text);
}

.bench-bar-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--mono);
    text-align: right;
}

.bench-insight {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.bench-insight em {
    color: var(--green);
    font-style: normal;
    font-weight: 600;
}

/* SCALE STRIP */
.bench-scale-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.scale-item { text-align: center; }

.scale-nodes {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-bright);
}

.scale-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.scale-arrow {
    color: var(--text-dim);
    font-size: 1.2rem;
}

.scale-factor {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* MEMORY STRIP */
.bench-memory-strip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.bench-memory-strip h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-weight: 500;
}

.memory-strip-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.memory-strip-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.04);
}

.memory-strip-dataset {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.memory-strip-dataset span {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.75rem;
}

.memory-strip-compare {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
    margin-bottom: 4px;
}

.memory-strip-compare strong {
    color: var(--green);
    font-weight: 600;
}

.memory-strip-factor {
    font-size: 0.72rem;
    color: var(--accent-bright);
    font-weight: 600;
}

/* COMPARISON TABLE HIGHLIGHT COL */
.highlight-col {
    background: var(--accent-glow) !important;
}

/* CODE SHOWCASE */
.code-showcase {
    max-width: 720px;
    margin: 0 auto;
}

.code-showcase pre {
    border: 1px solid var(--border-accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* CTA */
.cta-section { padding-bottom: 120px; }

.cta-card {
    text-align: center;
    padding: 72px 48px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 99, 255, 0.06) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--green), transparent);
    border-radius: 21px;
    z-index: -1;
    opacity: 0.3;
}

.cta-card h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

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

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.cta-install {
    font-family: var(--mono);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.cta-install code {
    color: var(--green);
    background: var(--bg-code);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ARCHITECTURE PAGE */
.arch-flow {
    margin: 32px 0;
}

.arch-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.arch-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.arch-step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

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

.arch-code {
    display: block;
    margin-top: 10px;
    background: var(--bg-code);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--green);
}

.arch-arrow {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-dim);
    padding: 8px 0;
}

.arch-formula {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin: 24px 0;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--accent-bright);
    line-height: 2;
}

.arch-compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.arch-compare-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.arch-compare-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.arch-compare-item p,
.arch-compare-item li {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.arch-compare-item ul {
    padding-left: 18px;
    margin-top: 8px;
}

.arch-compare-item li {
    margin-bottom: 4px;
}

.arch-modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.arch-module {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.arch-module h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-bright);
    margin-bottom: 6px;
    font-family: var(--mono);
}

.arch-module p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.arch-table-wrapper {
    margin: 20px 0;
}

/* USE CASE PAGE */
.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.use-case-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.use-case-card p,
.use-case-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.use-case-card ul {
    padding-left: 18px;
    margin-top: 8px;
}

.use-case-card li {
    margin-bottom: 6px;
}

.section-divider {
    border-top: 1px solid var(--border);
    margin: 48px 0 32px;
    padding-top: 0;
}

/* BENCHMARK CHARTS */
.bench-section {
    margin-bottom: 16px;
}

.bench-toggle {
    display: inline-flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.bench-toggle-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bench-toggle-btn:hover {
    color: var(--text);
    background: var(--bg-card-hover);
}

.bench-toggle-btn.active {
    color: #fff;
    background: var(--accent);
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    height: 400px;
}

.chart-container-lg {
    height: 480px;
}

/* RESPONSIVE */
/* PIPELINE / HOW CLEORA WORKS */
.pipeline-section {
    overflow: hidden;
}

.pipeline-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.pipeline-track {
    position: relative;
    padding-left: 40px;
}

.pipeline-line {
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
    z-index: 0;
}

.pipeline-line-bg {
    stroke: var(--border);
    stroke-width: 2;
}

.pipeline-line-progress {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 0s;
}

.pipeline-section.pipeline-animating .pipeline-line-progress {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pipeline-step {
    position: relative;
    margin-bottom: 32px;
}

.pipeline-step:last-child {
    margin-bottom: 0;
}

.pipeline-dot {
    position: absolute;
    left: -40px;
    top: 24px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0.5px);
}

.pipeline-dot-accent {
    border-color: var(--green);
    background: rgba(52, 211, 153, 0.1);
}

.pipeline-dot-green {
    border-color: var(--green);
    background: var(--green);
}

.pipeline-dot-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
}

.pipeline-dot-ping-green {
    border-color: var(--green);
}

.pipeline-step.revealed .pipeline-dot-ping {
    animation: dotPing 1.5s ease-out 0.3s;
}

@keyframes dotPing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

.pipeline-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.pipeline-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateX(4px);
}

.pipeline-card-highlight {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 99, 255, 0.05) 100%);
}

.pipeline-card-highlight:hover {
    border-color: var(--green);
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.1);
}

.pipeline-card-final {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(52, 211, 153, 0.05) 100%);
}

.pipeline-card-final:hover {
    border-color: var(--green);
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.15);
}

.pipeline-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-card-highlight .pipeline-icon {
    background: rgba(52, 211, 153, 0.1);
}

.pipeline-card-final .pipeline-icon {
    background: rgba(52, 211, 153, 0.1);
}

.pipeline-text {
    flex: 1;
    min-width: 0;
}

.pipeline-step-num {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.pipeline-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pipeline-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.pipeline-text em {
    color: var(--green);
    font-style: normal;
    font-weight: 600;
}

.pipeline-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.8rem;
}

.pipeline-metric-label {
    color: var(--text-dim);
    font-family: var(--mono);
    font-weight: 500;
    min-width: 60px;
}

.pipeline-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    max-width: 120px;
}

.pipeline-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.pipeline-step.revealed .pipeline-progress-fill {
    width: var(--fill-width, 0%);
}

.pipeline-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--green);
    font-family: var(--mono);
}

.pipeline-iterations {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pipeline-iter {
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--bg-code);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-family: var(--mono);
    color: var(--text-dim);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s, color 0.3s;
}

.pipeline-step.revealed .pipeline-iter {
    opacity: 1;
    transform: scale(1);
}

.pipeline-step.revealed .pipeline-iter:nth-child(1) { transition-delay: 0.3s; }
.pipeline-step.revealed .pipeline-iter:nth-child(2) { transition-delay: 0.5s; }
.pipeline-step.revealed .pipeline-iter:nth-child(3) { transition-delay: 0.7s; }
.pipeline-step.revealed .pipeline-iter:nth-child(4) { transition-delay: 0.9s; }

.pipeline-iter-active {
    border-color: var(--green) !important;
    color: var(--green) !important;
}

.pipeline-output-tags {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pipeline-output-tags span {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
    font-size: 0.75rem;
    font-family: var(--mono);
    color: var(--green);
}

.pipeline-particles {
    position: absolute;
    left: 10px;
    top: 0;
    width: 4px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.pipeline-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-bright);
    opacity: 0;
    left: 0;
    animation: particleFlow 3s ease-in-out infinite;
}

.pipeline-particle:nth-child(2n) {
    background: var(--green);
    animation-delay: 1s;
}

.pipeline-particle:nth-child(3n) {
    animation-delay: 2s;
    width: 3px;
    height: 3px;
}

@keyframes particleFlow {
    0% { top: -4px; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pipeline-particle { animation: none; display: none; }
    .pipeline-dot-ping { animation: none !important; }
    .pipeline-section.pipeline-animating .pipeline-line-progress {
        transition: stroke-dashoffset 0s;
    }
    .pipeline-iter { transition: none; opacity: 1; transform: scale(1); }
    .pipeline-progress-fill { transition: none; }
}

@media (max-width: 900px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 28px 28px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 105;
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        width: 100%;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links .nav-github {
        margin-top: 16px;
        text-align: center;
        display: block;
        width: 100%;
    }

    .feature-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .bench-highlights { grid-template-columns: 1fr; }
    .bench-grid-3x2 { grid-template-columns: repeat(2, 1fr); }
    .memory-strip-items { grid-template-columns: repeat(3, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.4rem; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr; }
    .comparison-table { font-size: 0.8rem; }
    .how-step { flex-direction: column; gap: 12px; }
    .cta-card { padding: 48px 24px; }
    .case-study { padding: 24px; }
    .case-study-results { grid-template-columns: repeat(2, 1fr); }
    body { line-height: 1.5; }
    .section { padding: 48px 18px; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 1.8rem; line-height: 1.25; }
    .section-header p { font-size: 0.95rem; }
    .section-badge { margin-bottom: 10px; }
    .how-step { padding: 20px; gap: 16px; }
    .case-study-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .arch-compare { grid-template-columns: 1fr; }
    .arch-modules { grid-template-columns: 1fr 1fr; }
    .chart-container { height: 350px; padding: 16px; }
    .chart-container-lg { height: 400px; }
    .pipeline-track { padding-left: 32px; }
    .pipeline-dot { left: -32px; width: 18px; height: 18px; }
    .pipeline-line { left: 8px; }
    .pipeline-particles { left: 7px; }
    .pipeline-card { padding: 20px; gap: 16px; }
    .pipeline-icon { width: 40px; height: 40px; min-width: 40px; }
    .pipeline-step { margin-bottom: 24px; }
}

@media (max-width: 600px) {
    body { line-height: 1.45; }
    .section { padding: 36px 16px; }
    .section-header { margin-bottom: 24px; }
    .section-header h2 { font-size: 1.5rem; line-height: 1.2; }
    .hero { padding: 120px 16px 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-card { padding: 36px 18px; }
    .cta-card h2 { font-size: 1.6rem; }
    .how-step { padding: 16px; gap: 12px; }
    .step-number { font-size: 1.4rem; min-width: 36px; }
    .arch-modules { grid-template-columns: 1fr; }
    .bench-grid-3x2 { grid-template-columns: 1fr; }
    .memory-strip-items { grid-template-columns: repeat(2, 1fr); }
    .chart-container, .chart-container-lg { height: 300px; }
    .features-category-header { flex-direction: column; gap: 12px; }
    .features-tag-grid { gap: 8px; }
    .features-highlights-row { flex-direction: column; }
    .pipeline-track { padding-left: 28px; }
    .pipeline-dot { left: -28px; width: 16px; height: 16px; }
    .pipeline-line { left: 6px; }
    .pipeline-particles { left: 5px; width: 3px; }
    .pipeline-card { padding: 16px; gap: 12px; flex-direction: column; }
    .pipeline-icon { width: 36px; height: 36px; min-width: 36px; }
    .pipeline-text h3 { font-size: 1rem; }
    .pipeline-text p { font-size: 0.85rem; }
    .pipeline-step { margin-bottom: 20px; }
    .pipeline-highlight-badge { font-size: 0.7rem; padding: 4px 10px; }
    .pipeline-output-tags { gap: 6px; }
    .pipeline-output-tags span { font-size: 0.7rem; padding: 3px 8px; }
}

/* FEATURES PAGE */
.features-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 20px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.features-category:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.08);
}

.features-category-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.features-category-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
}

.features-category-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.features-category-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.features-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.features-tag {
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--bg-code);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--mono);
    transition: border-color 0.2s, background 0.2s;
}

.features-tag:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.features-variants {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.features-variants span {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.features-highlights-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.features-highlight-chip {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-code);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.features-highlight-chip strong {
    color: var(--green);
    font-weight: 600;
    font-family: var(--mono);
}

.cost-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 32px;
}

.cost-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}

.cost-card-cpu {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(99,102,241,0.08);
}

.cost-card-gpu {
    border-color: var(--border);
    opacity: 0.85;
}

.cost-card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent-bright);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cost-card-badge-gpu {
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
    color: var(--text-muted);
}

.cost-instance {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.cost-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.cost-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 8px;
}

.cost-spec-label {
    color: var(--text-muted);
    white-space: nowrap;
}

.cost-spec-value {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

.cost-spec-value.highlight {
    color: var(--green);
    font-weight: 600;
}

.cost-spec-bad {
    color: #f87171;
}

.cost-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    margin-bottom: 12px;
}

.cost-price-gpu {
    color: var(--text-muted);
}

.cost-per {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.cost-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cost-vs {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dim);
    text-align: center;
    padding: 12px;
}

.cost-takeaway {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px 28px;
}

.cost-takeaway-stat {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--green);
    white-space: nowrap;
    flex-shrink: 0;
}

.cost-takeaway-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
}

.cost-takeaway-text em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 700px) {
    .cost-comparison {
        grid-template-columns: 1fr;
    }
    .cost-vs {
        text-align: center;
    }
    .cost-takeaway {
        flex-direction: column;
        text-align: center;
    }
    .cost-takeaway-text {
        text-align: center;
    }
}
