/* ============================================================
   8iAVATAR · METAGRAF LLM
   Monochrome · Open Source · GitHub-inspired
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: -0.005em;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; width: 100%; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: #404040; }
* { scrollbar-width: thin; scrollbar-color: #2a2a2a #0a0a0a; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed; inset: 0;
    background: #0a0a0a;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { width: min(88vw, 440px); }
.preloader-mark {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900; letter-spacing: -0.05em;
    line-height: 1; margin-bottom: 48px;
    color: #fff; display: flex; align-items: baseline; gap: 2px;
}
.preloader-mark .dim { color: #404040; }
.preloader-bar { height: 1px; background: #1a1a1a; position: relative; overflow: hidden; margin-bottom: 20px; }
.preloader-bar-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: #ffffff; width: 0%;
    transition: width 0.25s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.preloader-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: #4b5563;
}
.preloader-counter { color: #fff; font-weight: 600; }
.preloader-counter span { color: #4b5563; margin-left: 2px; }
.preloader-status { color: #6b7280; }
.preloader-status::after {
    content: ''; display: inline-block; width: 6px; height: 6px;
    background: #fff; margin-left: 8px; vertical-align: middle;
    animation: blink 0.8s steps(2) infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============================================================
   NOISE
   ============================================================ */
.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 9996;
    opacity: 0.035; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: noiseShift 8s steps(6) infinite;
}
@keyframes noiseShift {
    0% { transform: translate(0,0); }
    20% { transform: translate(-4%, 3%); }
    40% { transform: translate(3%, -2%); }
    60% { transform: translate(-2%, -3%); }
    80% { transform: translate(4%, 2%); }
    100% { transform: translate(0,0); }
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
    display: none; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 99997;
    will-change: transform;
}
.cursor-dot {
    width: 5px; height: 5px; background: #ffffff; border-radius: 50%;
    margin-left: -2.5px; margin-top: -2.5px;
    transition: opacity 0.2s;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.35); border-radius: 50%;
    margin-left: -18px; margin-top: -18px;
    transition: width 0.28s cubic-bezier(0.16,1,0.3,1), height 0.28s cubic-bezier(0.16,1,0.3,1),
                margin 0.28s cubic-bezier(0.16,1,0.3,1), background 0.2s ease,
                border-color 0.2s ease, opacity 0.2s ease;
}
.cursor-ring.hover { width: 64px; height: 64px; margin-left: -32px; margin-top: -32px; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.7); }
.cursor-ring.click { width: 22px; height: 22px; margin-left: -11px; margin-top: -11px; background: #ffffff; border-color: #ffffff; }
.cursor-ring.hidden, .cursor-dot.hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor, body.custom-cursor a, body.custom-cursor button,
    body.custom-cursor input, body.custom-cursor textarea, body.custom-cursor select,
    body.custom-cursor label, body.custom-cursor [role="button"] { cursor: none; }
    body.custom-cursor .cursor-dot, body.custom-cursor .cursor-ring { display: block; }
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px;
    background: #ffffff; z-index: 10000; width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(255,255,255,0.35);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, .kicker, .btn, .nav-channel { font-weight: 700; letter-spacing: -0.03em; word-wrap: break-word; }
h1 { font-size: clamp(2.8rem, 7.5vw, 7rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.045em; margin-bottom: 2rem; }
h2 { font-size: clamp(2.2rem, 5.5vw, 5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #6b7280; }
p, li { font-size: 18px; line-height: 1.6; color: #d1d5db; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: #9ca3af; }

.kicker {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #6b7280; margin-bottom: 2rem;
}
.kicker::before { content: '[ '; color: #4b5563; }
.kicker::after { content: ' ]'; color: #4b5563; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 16px 28px;
    border: 1px solid #ffffff;
    background: transparent; color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
    min-height: 52px; white-space: nowrap;
    position: relative; overflow: hidden;
    will-change: transform;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.btn:hover { background: #ffffff; color: #0a0a0a; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: #ffffff; color: #0a0a0a; }
.btn-primary:hover { background: #d1d5db; border-color: #d1d5db; }
.btn-ghost { border-color: #2a2a2a; color: #d1d5db; }
.btn-ghost:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 0.75rem; }
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.15), transparent 60%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.btn:hover::after { opacity: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 32px; z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: nowrap; gap: 16px;
    transition: padding 0.3s, background 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.navbar.scrolled { padding: 14px 32px; background: rgba(10, 10, 10, 0.95); }
.navbar.hide { transform: translateY(-100%); }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px; transition: opacity 0.15s; cursor: pointer; }
.logo:hover { opacity: 0.75; }
.logo-text {
    font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 900;
    letter-spacing: -0.05em; color: #ffffff; line-height: 1;
    display: flex; align-items: baseline;
}
.logo-text .num8 { font-weight: 900; font-size: 1.6rem; }
.logo-text .letterI { font-weight: 900; font-size: 1.6rem; font-style: italic; margin-left: -2px; }
.logo-text .avatar { font-weight: 300; font-size: 1.6rem; letter-spacing: -0.04em; margin-left: 1px; color: #9ca3af; }
.logo:hover .logo-text .num8, .logo:hover .logo-text .letterI { animation: glitchShift 0.3s ease; }
@keyframes glitchShift {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #6b7280; padding: 8px 14px;
    transition: color 0.15s; white-space: nowrap;
}
.nav-link:hover { color: #ffffff; }
.nav-link.active { color: #ffffff; }
@media (max-width: 1100px) { .nav-links { display: none; } }

.nav-controls { display: flex; align-items: center; gap: 8px; }
.nav-cmdk {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    color: #6b7280; padding: 11px 14px;
    border: 1px solid #1a1a1a;
    transition: all 0.15s; cursor: pointer; background: transparent;
}
.nav-cmdk:hover { border-color: #ffffff; color: #ffffff; }
.nav-cmdk kbd { font-family: inherit; font-size: 0.68rem; padding: 2px 6px; border: 1px solid #2a2a2a; color: #9ca3af; }
@media (max-width: 900px) { .nav-cmdk { display: none; } }

.nav-channel {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; font-weight: 500;
    color: #d1d5db; padding: 11px 18px;
    border: 1px solid #1a1a1a;
    transition: all 0.15s; white-space: nowrap;
}
.nav-channel svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-channel:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.nav-channel.max { border-color: #ffffff; color: #ffffff; }
.nav-channel.max:hover { background: #ffffff; color: #0a0a0a; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh; min-height: 100svh;
    padding: 200px 0 100px;
    position: relative; display: flex; align-items: center;
    overflow: hidden; border-bottom: 1px solid #1a1a1a;
}
.hero-canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.5; pointer-events: none; }
.hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { margin-bottom: 2.5rem; max-width: 1200px; }
.hero h1 .dim { color: #404040; }
.hero h1 .word {
    display: inline-block; opacity: 0;
    transform: translateY(30px) rotateX(-30deg);
    filter: blur(8px); transform-origin: 50% 100%;
    animation: wordReveal 1.1s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes wordReveal { to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); } }

.hero .lead {
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    max-width: 780px; color: #9ca3af;
    margin-bottom: 3rem; line-height: 1.55;
}
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-status {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: #6b7280; margin-bottom: 2rem;
}
.hero-status .dot {
    width: 8px; height: 8px; background: #ffffff; border-radius: 50%;
    animation: blink 2s infinite; box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* Repo meta badges */
.hero-badges {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 40px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 8px 14px;
    border: 1px solid #1a1a1a;
    background: rgba(10,10,10,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s;
}
.hero-badge:hover { border-color: #ffffff; color: #ffffff; }
.hero-badge b { color: #ffffff; font-weight: 700; }
.hero-badge svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hero-meta {
    position: absolute; right: 32px; bottom: 60px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.05em; color: #6b7280;
    text-transform: uppercase; line-height: 2; z-index: 3;
}
.hero-meta strong { color: #ffffff; font-weight: 600; }
.hero-meta .live-time { color: #ffffff; }

.scroll-hint {
    position: absolute; left: 50%; bottom: 32px;
    transform: translateX(-50%);
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: #4b5563; z-index: 3; pointer-events: none; transition: opacity 0.3s;
}
.scroll-hint-line { width: 1px; height: 44px; background: linear-gradient(180deg, #4b5563, transparent); position: relative; overflow: hidden; }
.scroll-hint-line::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 1px; height: 12px; background: #ffffff;
    animation: scrollLine 2s cubic-bezier(0.65,0,0.35,1) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(440%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 130px 0; position: relative; border-bottom: 1px solid #1a1a1a; }
.section-head { max-width: 900px; margin-bottom: 5rem; }
.section-head h2 { margin-bottom: 1.5rem; }
.section-head p { font-size: 1.15rem; color: #9ca3af; line-height: 1.6; max-width: 720px; }

/* ============================================================
   ADVANTAGES (bento)
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.bento-item {
    padding: 52px 42px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    transition: background 0.25s;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 280px;
    position: relative; overflow: hidden;
    will-change: transform;
}
.bento-item::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.05), transparent 40%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.bento-item:hover { background: #111111; }
.bento-item:hover::before { opacity: 1; }
.bento-item .bento-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: #4b5563; margin-bottom: 32px;
}
.bento-item h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); margin-bottom: 14px; letter-spacing: -0.025em; }
.bento-item p { font-size: 1rem; color: #9ca3af; line-height: 1.55; }
.bento-item .bento-num {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900; letter-spacing: -0.05em;
    line-height: 1; margin-bottom: 16px; color: #ffffff;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    font-variant-numeric: tabular-nums;
}
.bento-item:hover .bento-num { transform: scale(1.04); }
.bento-item .bento-num small { font-size: 0.5em; color: #6b7280; font-weight: 500; margin-left: 4px; }
.bento-3 { grid-column: span 3; }
.bento-2 { grid-column: span 2; }
@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr; }
    .bento-3, .bento-2 { grid-column: span 1; }
}

/* ============================================================
   GITHUB-STYLE REPO
   ============================================================ */
.repo {
    border: 1px solid #1a1a1a;
    background: #0a0a0a;
    overflow: hidden;
    position: relative;
}
.repo::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0.5;
    z-index: 1;
}

/* Repo header */
.repo-header {
    padding: 28px 32px;
    border-bottom: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.repo-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.repo-title-wrap svg.repo-icon {
    width: 22px; height: 22px;
    stroke: #6b7280; stroke-width: 1.6;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.repo-title {
    display: flex; align-items: baseline; flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    min-width: 0;
}
.repo-title .owner { color: #9ca3af; }
.repo-title .sep { color: #4b5563; margin: 0 2px; }
.repo-title .name { color: #ffffff; font-weight: 700; }
.repo-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid #2a2a2a;
    color: #9ca3af;
    margin-left: 8px;
}

.repo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.repo-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid #2a2a2a;
    color: #d1d5db;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.repo-btn:hover { border-color: #ffffff; color: #ffffff; }
.repo-btn svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.repo-btn.star { border-color: #ffffff; color: #ffffff; }
.repo-btn.star:hover { background: #ffffff; color: #0a0a0a; }
.repo-btn.star.active svg { fill: #ffffff; stroke: #ffffff; }
.repo-btn.star.active:hover svg { fill: #0a0a0a; stroke: #0a0a0a; }
.repo-btn .count {
    font-weight: 700;
    padding: 1px 6px;
    background: #1a1a1a;
    color: #d1d5db;
    font-size: 0.68rem;
    margin-left: 2px;
}
.repo-btn.star:hover .count { background: rgba(0,0,0,0.15); color: #0a0a0a; }

/* Repo meta bar */
.repo-meta {
    padding: 14px 32px;
    border-bottom: 1px solid #1a1a1a;
    display: flex; gap: 24px; flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #080808;
}
.repo-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.repo-meta-item svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.repo-meta-item b { color: #ffffff; font-weight: 600; }

/* Repo body: file tree + code */
.repo-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 620px;
}
@media (max-width: 900px) {
    .repo-body { grid-template-columns: 1fr; min-height: auto; }
}

/* File tree */
.file-tree {
    border-right: 1px solid #1a1a1a;
    padding: 20px 0;
    background: #080808;
    overflow-y: auto;
    max-height: 720px;
}
@media (max-width: 900px) {
    .file-tree { border-right: none; border-bottom: 1px solid #1a1a1a; max-height: 300px; }
}
.tree-head {
    padding: 8px 20px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #4b5563;
    display: flex; align-items: center; justify-content: space-between;
}
.tree-head .branch {
    font-size: 0.68rem;
    color: #9ca3af;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px;
    border: 1px solid #1a1a1a;
    background: #0a0a0a;
}
.tree-head .branch svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.tree-group { padding: 0 12px; margin-bottom: 12px; }
.tree-group-title {
    padding: 8px 12px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #4b5563;
    display: flex; align-items: center; gap: 8px;
}
.tree-group-title svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.tree-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}
.tree-item:hover { background: #111111; color: #ffffff; }
.tree-item.active {
    background: #111111;
    color: #ffffff;
    border-left-color: #ffffff;
}
.tree-item svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.tree-item.file-py svg { stroke: #9ca3af; }
.tree-item.file-md svg { stroke: #6b7280; }
.tree-item.file-json svg { stroke: #6b7280; }
.tree-item.file-yml svg { stroke: #6b7280; }
.tree-item.file-txt svg { stroke: #4b5563; }
.tree-item.file-lock svg { stroke: #4b5563; }
.tree-item .file-size {
    margin-left: auto;
    font-size: 0.68rem;
    color: #4b5563;
    letter-spacing: 0.02em;
}

/* Code viewer */
.code-viewer {
    display: flex; flex-direction: column;
    background: #080808;
    min-width: 0;
    overflow: hidden;
}
.code-tabs {
    display: flex; align-items: stretch;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    overflow-x: auto;
    scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; font-weight: 500;
    color: #6b7280;
    border-right: 1px solid #1a1a1a;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    position: relative;
}
.code-tab:hover { color: #ffffff; background: #0d0d0d; }
.code-tab.active {
    color: #ffffff;
    background: #080808;
}
.code-tab.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: #ffffff;
}
.code-tab svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.code-tab .tab-close {
    width: 12px; height: 12px;
    margin-left: 4px;
    opacity: 0.4;
}

.code-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.08em;
    color: #6b7280;
    gap: 12px;
    flex-wrap: wrap;
}
.code-head .ch-path { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.code-head .ch-path svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.code-head .ch-path b { color: #ffffff; font-weight: 600; }
.code-head .ch-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.code-head .ch-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.code-head .ch-meta-item svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.code-body {
    flex: 1;
    overflow: auto;
    padding: 20px 0;
    min-height: 400px;
    max-height: 720px;
}
.code-body pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    line-height: 1.8;
    color: #d1d5db;
    display: flex;
    padding: 0 20px;
    white-space: pre;
    min-width: min-content;
}
.code-body code {
    display: block;
    font-family: inherit;
}
.code-line {
    display: grid;
    grid-template-columns: 48px 1fr;
    padding: 0 20px;
    min-width: max-content;
}
.code-line .line-num {
    color: #2a2a2a;
    text-align: right;
    padding-right: 20px;
    user-select: none;
    border-right: 1px solid #141414;
    margin-right: 20px;
    font-size: 0.78rem;
    padding-top: 1px;
}
.code-line .line-code { color: #d1d5db; white-space: pre; }

/* Syntax tokens */
.tok-kw { color: #ffffff; font-weight: 600; }
.tok-str { color: #9ca3af; }
.tok-num { color: #d1d5db; }
.tok-com { color: #4b5563; font-style: italic; }
.tok-fn { color: #e5e7eb; }
.tok-cls { color: #ffffff; font-weight: 600; }
.tok-dec { color: #9ca3af; }
.tok-op { color: #6b7280; }
.tok-self { color: #9ca3af; font-style: italic; }
.tok-key { color: #d1d5db; }
.tok-punc { color: #6b7280; }

/* ============================================================
   README PREVIEW (special tab)
   ============================================================ */
.readme-content {
    padding: 32px 40px;
    max-width: 900px;
}
.readme-content h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: -0.02em;
}
.readme-content h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: -0.02em;
}
.readme-content h3 {
    font-size: 1.05rem;
    margin-top: 24px;
    margin-bottom: 12px;
}
.readme-content p { margin-bottom: 16px; line-height: 1.7; }
.readme-content ul { margin: 16px 0; padding-left: 24px; }
.readme-content ul li { margin-bottom: 8px; line-height: 1.6; }
.readme-content ul li::marker { color: #6b7280; }
.readme-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: #ffffff;
    background: #111111;
    padding: 2px 7px;
    border: 1px solid #1a1a1a;
}
.readme-content pre {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 20px 22px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #d1d5db;
}
.readme-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}
.readme-content .rm-badges {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 20px;
}
.readme-content .rm-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid #2a2a2a;
    color: #9ca3af;
}
.readme-content .rm-badge.gold { border-color: #ffffff; color: #ffffff; }
.readme-content blockquote {
    border-left: 3px solid #ffffff;
    padding: 8px 20px;
    margin: 16px 0;
    color: #9ca3af;
    background: #0d0d0d;
}
.readme-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}
.readme-content th,
.readme-content td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #1a1a1a;
}
.readme-content th {
    background: #0d0d0d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
}
.readme-content td { color: #d1d5db; }

/* ============================================================
   ARCHITECTURE DIAGRAM
   ============================================================ */
.arch-wrap {
    border: 1px solid #1a1a1a;
    padding: 56px 40px;
    background: #080808;
    position: relative;
    overflow: hidden;
}
.arch-svg { width: 100%; height: auto; max-height: 480px; display: block; }

/* ============================================================
   BENCHMARK TABLE
   ============================================================ */
.bench {
    border: 1px solid #1a1a1a;
    overflow-x: auto;
}
.bench table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.bench th,
.bench td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
    border-right: 1px solid #1a1a1a;
    font-size: 0.92rem;
}
.bench th:last-child,
.bench td:last-child { border-right: none; }
.bench thead th {
    background: #0d0d0d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    white-space: nowrap;
}
.bench tbody tr:hover { background: #0f0f0f; }
.bench tbody td {
    font-family: 'JetBrains Mono', monospace;
    color: #d1d5db;
    font-variant-numeric: tabular-nums;
}
.bench tbody td:first-child {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}
.bench tbody td.best {
    color: #ffffff;
    font-weight: 700;
    position: relative;
}
.bench tbody td.best::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: #ffffff;
}
.bench tbody td.dim { color: #4b5563; }

/* ============================================================
   INSTALL SNIPPET
   ============================================================ */
.install {
    border: 1px solid #1a1a1a;
    background: #080808;
    position: relative;
    overflow: hidden;
}
.install-tabs {
    display: flex;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
    overflow-x: auto;
    scrollbar-width: none;
}
.install-tabs::-webkit-scrollbar { display: none; }
.install-tab {
    padding: 14px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; font-weight: 500;
    color: #6b7280;
    border-right: 1px solid #1a1a1a;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    background: transparent;
    position: relative;
}
.install-tab:hover { color: #ffffff; }
.install-tab.active { color: #ffffff; background: #080808; }
.install-tab.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: #ffffff;
}
.install-body {
    padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    color: #d1d5db;
    flex-wrap: wrap;
}
.install-body code {
    font-family: inherit;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0;
}
.install-copy {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border: 1px solid #1a1a1a;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.install-copy:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.install-copy svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   CONTRIBUTORS / STATS STRIP
   ============================================================ */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
}
.stat-item {
    padding: 36px 30px;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    display: flex; flex-direction: column; gap: 10px;
    transition: background 0.2s;
}
.stat-item:hover { background: #111111; }
.stat-item .si-value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900; letter-spacing: -0.04em;
    color: #ffffff; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-item .si-value small { font-size: 0.5em; color: #6b7280; font-weight: 500; margin-left: 4px; }
.stat-item .si-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #6b7280;
}
@media (max-width: 900px) { .stats-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats-strip { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid #1a1a1a; padding: 40px 0; cursor: pointer; }
.faq-item:first-child { border-top: 1px solid #1a1a1a; }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.faq-q h3 { font-size: clamp(1.2rem, 1.7vw, 1.6rem); color: #ffffff; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; transition: color 0.15s; }
.faq-item:hover .faq-q h3 { color: #9ca3af; }
.faq-q .icon {
    flex-shrink: 0; width: 32px; height: 32px;
    border: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; transition: all 0.2s;
}
.faq-q .icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.faq-item.open .faq-q .icon { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.faq-item.open .faq-q .icon svg { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), padding 0.45s cubic-bezier(0.16,1,0.3,1);
    color: #9ca3af; padding-top: 0;
    font-size: 1.05rem; line-height: 1.65; max-width: 1000px;
}
.faq-item.open .faq-a { max-height: 700px; padding-top: 24px; }
.faq-a code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: #ffffff;
    background: #111111;
    padding: 2px 7px;
    border: 1px solid #1a1a1a;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { text-align: center; padding: 130px 0; position: relative; overflow: hidden; }
.cta-final::before {
    content: ''; position: absolute;
    left: 50%; top: 50%;
    width: 900px; height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}
.cta-final h2 { margin-bottom: 24px; max-width: 900px; margin-left: auto; margin-right: auto; }
.cta-final p { font-size: 1.2rem; color: #9ca3af; margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-final .cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 100px 0 0; border-top: 1px solid #1a1a1a; background: #0a0a0a; }
.footer-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 80px; }
.footer-brand { max-width: 560px; }
.footer-brand .logo { margin-bottom: 28px; padding: 0; }
.footer-brand p { color: #9ca3af; font-size: 1rem; line-height: 1.65; margin-bottom: 36px; max-width: 500px; }
.footer-contacts { display: flex; flex-direction: column; margin-bottom: 40px; border-top: 1px solid #1a1a1a; }
.footer-contact-item {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 0; border-bottom: 1px solid #1a1a1a;
    transition: padding 0.25s cubic-bezier(0.16,1,0.3,1);
}
.footer-contact-item:hover { padding-left: 8px; }
.footer-contact-item .fc-icon {
    width: 40px; height: 40px;
    border: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.footer-contact-item:hover .fc-icon { background: #ffffff; border-color: #ffffff; }
.footer-contact-item:hover .fc-icon svg { stroke: #0a0a0a; }
.footer-contact-item .fc-icon svg { width: 18px; height: 18px; stroke: #ffffff; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.15s; }
.footer-contact-item .fc-text { display: flex; flex-direction: column; gap: 4px; }
.footer-contact-item .fc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: #6b7280;
}
.footer-contact-item .fc-value { font-size: 1.05rem; font-weight: 600; color: #ffffff; letter-spacing: -0.01em; }

.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-socials a {
    width: 44px; height: 44px;
    border: 1px solid #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; transition: all 0.2s; flex-shrink: 0;
}
.footer-socials a:hover { background: #ffffff; color: #0a0a0a; border-color: #ffffff; transform: translateY(-2px); }
.footer-socials a svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.footer-info-right { display: flex; flex-direction: column; gap: 48px; }
.footer-info-block h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #4b5563; margin-bottom: 24px;
}
.footer-info-block ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-info-block ul li {
    font-size: 1rem; color: #9ca3af; line-height: 1.55;
    display: flex; align-items: flex-start; gap: 12px;
    padding-bottom: 16px; border-bottom: 1px solid #1a1a1a;
}
.footer-info-block ul li:last-child { border-bottom: none; padding-bottom: 0; }
.footer-info-block ul li svg { width: 16px; height: 16px; stroke: #6b7280; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 5px; }
.footer-info-block ul li b { color: #ffffff; font-weight: 600; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
    padding: 32px 0;
    border-top: 1px solid #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.02em; color: #4b5563;
}
.footer-bottom .copyright { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom .copyright b { color: #9ca3af; font-weight: 600; }
.footer-bottom .patent-mark { color: #9ca3af; padding: 4px 12px; border: 1px solid #1a1a1a; font-size: 0.75rem; }
.footer-bottom .legal-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom .legal-links a { color: #4b5563; transition: color 0.15s; }
.footer-bottom .legal-links a:hover { color: #ffffff; }
.footer-bottom .made-with { display: flex; align-items: center; gap: 10px; color: #4b5563; }
.footer-bottom .made-with .dot { width: 6px; height: 6px; background: #ffffff; border-radius: 50%; animation: blink 2s infinite; box-shadow: 0 0 8px rgba(255,255,255,0.6); }

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top-btn {
    position: fixed; bottom: 32px; left: 32px;
    width: 52px; height: 52px;
    border: 1px solid #1a1a1a;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    z-index: 900; opacity: 0; pointer-events: none;
    transform: translateY(12px);
}
.scroll-top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { background: #ffffff; border-color: #ffffff; }
.scroll-top-btn:hover svg { stroke: #0a0a0a; }
.scroll-top-btn svg { width: 20px; height: 20px; stroke: #ffffff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.15s; }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
    position: fixed; bottom: 32px; right: 32px;
    z-index: 3000;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px;
    background: #0a0a0a; border: 1px solid #1a1a1a;
    font-size: 0.95rem; color: #ffffff;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    transform: translateX(120%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
    pointer-events: auto; max-width: 420px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast .toast-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.toast .toast-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.toast.toast-success { border-left: 3px solid #ffffff; }
.toast.toast-error { border-left: 3px solid #6b7280; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============================================================
   SECTION NAV
   ============================================================ */
.section-nav {
    position: fixed; right: 24px; top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex; flex-direction: column; gap: 14px;
    opacity: 0; transition: opacity 0.4s;
}
.section-nav.show { opacity: 1; }
.section-nav-dot {
    width: 10px; height: 10px;
    border: 1px solid #4b5563; border-radius: 50%;
    background: transparent; cursor: pointer; padding: 0;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.section-nav-dot:hover { border-color: #ffffff; transform: scale(1.3); }
.section-nav-dot.active { background: #ffffff; border-color: #ffffff; box-shadow: 0 0 12px rgba(255,255,255,0.6); }
.section-nav-dot .tip {
    position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%) translateX(6px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #ffffff; padding: 5px 10px;
    background: #0a0a0a; border: 1px solid #1a1a1a;
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.section-nav-dot:hover .tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 900px) { .section-nav { display: none; } }

/* ============================================================
   COMMAND PALETTE
   ============================================================ */
.cmdk-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 15vh;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.cmdk-overlay.open { opacity: 1; visibility: visible; }
.cmdk {
    width: min(92vw, 560px);
    background: #0a0a0a; border: 1px solid #1a1a1a;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    transform: translateY(-12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
}
.cmdk-overlay.open .cmdk { transform: translateY(0) scale(1); }
.cmdk-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #1a1a1a; }
.cmdk-input-wrap svg { width: 18px; height: 18px; stroke: #6b7280; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cmdk-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: #ffffff; font-family: 'Inter', sans-serif;
    font-size: 1.05rem; letter-spacing: -0.01em;
}
.cmdk-input::placeholder { color: #4b5563; }
.cmdk-kbd { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 4px 8px; border: 1px solid #2a2a2a; color: #6b7280; }
.cmdk-list { max-height: 380px; overflow-y: auto; padding: 8px; }
.cmdk-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    font-size: 0.95rem; color: #d1d5db;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-left: 2px solid transparent;
}
.cmdk-item:hover, .cmdk-item.active { background: #111111; color: #ffffff; border-left-color: #ffffff; }
.cmdk-item svg { width: 16px; height: 16px; stroke: #6b7280; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cmdk-item.active svg { stroke: #ffffff; }
.cmdk-item .cmdk-item-hint {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; color: #4b5563;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.cmdk-empty { padding: 32px 20px; text-align: center; color: #4b5563; font-size: 0.9rem; }
.cmdk-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; border-top: 1px solid #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; color: #4b5563;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.cmdk-footer kbd { font-family: inherit; padding: 2px 6px; border: 1px solid #2a2a2a; color: #9ca3af; margin-right: 4px; }

/* ============================================================
   KBD HINT
   ============================================================ */
.kbd-hint {
    position: fixed; bottom: 32px; right: 32px;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.08em;
    color: #6b7280; z-index: 850;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}
.kbd-hint.show { opacity: 1; transform: translateY(0); }
.kbd-hint kbd { font-family: inherit; padding: 3px 7px; border: 1px solid #2a2a2a; color: #d1d5db; }
@media (max-width: 900px) { .kbd-hint { display: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 26px; }
    .repo-body { grid-template-columns: 240px 1fr; }
    .footer-simple { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 900px) {
    .navbar { padding: 16px 22px; flex-wrap: wrap; gap: 12px; }
    .navbar.scrolled { padding: 12px 22px; }
    .nav-channel { font-size: 0.75rem; padding: 10px 14px; }
    .nav-channel span { display: none; }
    .nav-channel.max span { display: inline; }
    section { padding: 90px 0; }
    .section-head { margin-bottom: 3rem; }
    .hero { padding: 160px 0 90px; min-height: auto; }
    .hero-meta { display: none; }
    .scroll-hint { display: none; }
    .repo-header { padding: 22px; }
    .repo-meta { padding: 12px 22px; }
    .code-line { grid-template-columns: 36px 1fr; padding: 0 14px; }
    .code-line .line-num { padding-right: 14px; margin-right: 14px; }
    .readme-content { padding: 24px 22px; }
    .arch-wrap { padding: 32px 22px; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .navbar { padding: 14px 20px; }
    .logo-text { font-size: 1.35rem; }
    .logo-text .num8, .logo-text .letterI, .logo-text .avatar { font-size: 1.35rem; }
    .nav-controls { gap: 6px; }
    .nav-channel { font-size: 0.7rem; padding: 8px 12px; }
    .hero { padding: 130px 0 70px; }
    .hero .cta-group { flex-direction: column; width: 100%; }
    .hero .cta-group .btn { width: 100%; }
    section { padding: 72px 0; }
    .bento-item { padding: 40px 28px; }
    .repo-title-wrap { width: 100%; }
    .repo-actions { width: 100%; }
    .repo-btn { flex: 1; justify-content: center; }
    .repo-btn .count { display: none; }
    .footer-simple { gap: 40px; margin-bottom: 60px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 0; }
    .scroll-top-btn { width: 46px; height: 46px; bottom: 20px; left: 20px; }
    .toast-container { bottom: 90px; right: 16px; left: 16px; }
    .toast { max-width: 100%; }
    .preloader-mark { font-size: 2rem; }
    .code-body pre { font-size: 0.75rem; }
    .install-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .noise-overlay { animation: none; }
    .hero h1 .word { opacity: 1; transform: none; filter: none; animation: none; }
}
@media (min-width: 1600px) {
    .container { max-width: 1440px; }
    body { font-size: 19px; }
    p, li { font-size: 19px; }
}
@supports (padding: max(0px)) {
    .navbar { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
    .scroll-top-btn { left: max(32px, env(safe-area-inset-left)); }
    footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}