/* ===== GITWIZARD PRO - YELLOW/RED FIRE THEME ===== */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --header-h: 64px;
    --sidebar-w: 280px;
    --container-max: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== DARK THEME (Default) ===== */
[data-theme="dark"] {
    --bg-primary: #08080c;
    --bg-secondary: #0f0f16;
    --bg-tertiary: #161622;
    --bg-card: #111119;
    --bg-card-hover: #1a1a28;
    --bg-code: #0c0c14;
    --bg-sidebar: #0b0b14;
    --bg-header: rgba(8, 8, 12, 0.88);

    --text-primary: #f5f5f0;
    --text-secondary: #a8a8b8;
    --text-tertiary: #6e6e82;
    --text-muted: #48485a;

    --border-primary: #1f1f30;
    --border-secondary: #191928;
    --border-hover: #32324a;

    --accent-primary: #FACC15;
    --accent-secondary: #EF4444;
    --accent-gradient: linear-gradient(135deg, #FACC15 0%, #F59E0B 40%, #EF4444 100%);
    --accent-gradient-h: linear-gradient(90deg, #FACC15, #EF4444);
    --accent-glow: rgba(250, 204, 21, 0.08);
    --accent-glow-strong: rgba(250, 204, 21, 0.18);
    --accent-glow-red: rgba(239, 68, 68, 0.1);

    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.08);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.08);
    --orange: #f59e0b;
    --orange-bg: rgba(245, 158, 11, 0.08);
    --red: #EF4444;
    --red-bg: rgba(239, 68, 68, 0.08);
    --cyan: #06b6d4;
    --cyan-bg: rgba(6, 182, 212, 0.08);
    --yellow: #FACC15;
    --yellow-bg: rgba(250, 204, 21, 0.08);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
    --shadow-xl: 0 20px 80px rgba(0,0,0,0.7);
    --shadow-glow-yellow: 0 0 30px rgba(250,204,21,0.12);
    --shadow-glow-red: 0 0 30px rgba(239,68,68,0.1);

    --scrollbar-track: #08080c;
    --scrollbar-thumb: #1f1f30;
}

/* ===== LIGHT THEME (Professional Warm) ===== */
[data-theme="light"] {
    --bg-primary: #FFFBF5;
    --bg-secondary: #FFF8EE;
    --bg-tertiary: #FEF3E0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFDF7;
    --bg-code: #1C1917;
    --bg-sidebar: #FFFAF2;
    --bg-header: rgba(255, 251, 245, 0.92);

    --text-primary: #1A1207;
    --text-secondary: #5C4A2E;
    --text-tertiary: #8A7460;
    --text-muted: #B8A898;

    --border-primary: #F0E6D6;
    --border-secondary: #F5EDE0;
    --border-hover: #E0D0B8;

    --accent-primary: #D97706;
    --accent-secondary: #DC2626;
    --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 40%, #DC2626 100%);
    --accent-gradient-h: linear-gradient(90deg, #F59E0B, #DC2626);
    --accent-glow: rgba(245, 158, 11, 0.1);
    --accent-glow-strong: rgba(245, 158, 11, 0.2);
    --accent-glow-red: rgba(220, 38, 38, 0.1);

    --green: #15803d;
    --green-bg: rgba(22, 163, 74, 0.1);
    --blue: #1d4ed8;
    --blue-bg: rgba(37, 99, 235, 0.1);
    --orange: #c2410c;
    --orange-bg: rgba(234, 88, 12, 0.1);
    --red: #DC2626;
    --red-bg: rgba(220, 38, 38, 0.1);
    --cyan: #0e7490;
    --cyan-bg: rgba(14, 116, 144, 0.1);
    --yellow: #B45309;
    --yellow-bg: rgba(245, 158, 11, 0.12);

    --shadow-sm: 0 1px 4px rgba(120, 80, 20, 0.06);
    --shadow-md: 0 4px 20px rgba(120, 80, 20, 0.1);
    --shadow-lg: 0 8px 40px rgba(120, 80, 20, 0.12);
    --shadow-xl: 0 20px 80px rgba(120, 80, 20, 0.14);
    --shadow-glow-yellow: 0 0 40px rgba(245,158,11,0.15);
    --shadow-glow-red: 0 0 40px rgba(220,38,38,0.1);

    --scrollbar-track: #FFFBF5;
    --scrollbar-thumb: #E0D0B8;
}

/* ===== LIGHT THEME SPECIFIC OVERRIDES ===== */
[data-theme="light"] ::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #1A1207;
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(217,119,6,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217,119,6,0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero-glow-1 {
    background: rgba(245, 158, 11, 0.18);
}
[data-theme="light"] .hero-glow-2 {
    background: rgba(220, 38, 38, 0.12);
}
[data-theme="light"] .hero-glow-3 {
    background: rgba(217, 119, 6, 0.1);
}

[data-theme="light"] .site-header.scrolled {
    box-shadow: 0 4px 30px rgba(120, 80, 20, 0.12), var(--shadow-glow-yellow);
}

[data-theme="light"] .badge-pypi { border-color: rgba(22,163,74,0.35); }
[data-theme="light"] .badge-version { border-color: rgba(245,158,11,0.35); }
[data-theme="light"] .badge-license { border-color: rgba(234,88,12,0.35); }
[data-theme="light"] .badge-python { border-color: rgba(14,116,144,0.35); }
[data-theme="light"] .badge-cli { border-color: rgba(220,38,38,0.35); }

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-glow {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.3), 0 2px 8px rgba(220, 38, 38, 0.2);
}
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-glow:hover {
    box-shadow: 0 8px 36px rgba(245, 158, 11, 0.4), 0 4px 16px rgba(220, 38, 38, 0.3);
    color: #fff;
}

[data-theme="light"] .highlight-box {
    border-color: rgba(245, 158, 11, 0.25);
}
[data-theme="light"] .highlight-box::before {
    background: var(--accent-gradient-h);
}
[data-theme="light"] .highlight-tag {
    border-color: rgba(220,38,38,0.25);
}

[data-theme="light"] .info-box {
    border-color: rgba(220, 38, 38, 0.18);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .code-block {
    border-color: #E8DDD0;
    box-shadow: 0 2px 12px rgba(120, 80, 20, 0.08);
}
[data-theme="light"] .code-block:hover {
    border-color: rgba(245,158,11,0.3);
}
[data-theme="light"] .code-header {
    background: #292524;
    border-bottom-color: #44403C;
}
[data-theme="light"] .code-lang {
    color: #A8A29E;
}
[data-theme="light"] .code-lang i { color: #F59E0B; }
[data-theme="light"] .code-copy {
    border-color: #57534E;
    color: #D6D3D1;
}
[data-theme="light"] .code-copy:hover {
    color: #F59E0B;
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}
[data-theme="light"] .code-copy.copied {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}
[data-theme="light"] .code-block pre { background: #1C1917; }
[data-theme="light"] .code-block code {
    color: #FBBF24;
}

[data-theme="light"] .install-box {
    border-color: #E8DDD0;
    background: #FFF8EE;
}
[data-theme="light"] .install-box:hover {
    border-color: #F59E0B;
    box-shadow: var(--shadow-glow-yellow);
}
[data-theme="light"] .install-icon {
    background: rgba(245, 158, 11, 0.1);
    border-right-color: #E8DDD0;
}
[data-theme="light"] .install-box code {
    color: #B45309;
}
[data-theme="light"] .copy-btn {
    border-left-color: #E8DDD0;
    color: #8A7460;
}

[data-theme="light"] .doc-table thead th {
    background: #FEF3E0;
    border-bottom-color: #E8DDD0;
}
[data-theme="light"] .doc-table tbody td {
    border-bottom-color: #F0E6D6;
}
[data-theme="light"] .doc-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.06);
}

[data-theme="light"] .cmd-code {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .section-icon::after { opacity: 0.15; }

[data-theme="light"] .fi-brain { background: rgba(168,85,247,0.1); color: #7c3aed; }
[data-theme="light"] .fi-lang { background: rgba(236,72,153,0.1); color: #db2777; }

[data-theme="light"] .security-item::before {
    background: linear-gradient(90deg, var(--green), #F59E0B);
}
[data-theme="light"] .security-item:hover {
    border-color: rgba(22,163,74,0.3);
}

[data-theme="light"] .platform-badge.supported {
    border-color: var(--green);
}

[data-theme="light"] .step-num,
[data-theme="light"] .pipeline-num {
    background: var(--accent-gradient);
    color: #fff;
}

[data-theme="light"] .qtab.active {
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .footer-glow {
    background: var(--accent-gradient-h);
}

[data-theme="light"] .back-to-top-btn {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .feature-card code,
[data-theme="light"] .security-item code,
[data-theme="light"] .step-content code,
[data-theme="light"] .doc-table code {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
}

[data-theme="light"] .info-box code {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
}

[data-theme="light"] .loader-overlay {
    background: #FFFBF5;
}

[data-theme="light"] #particles-canvas {
    opacity: 0.3;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-secondary); }
img { max-width: 100%; }
::selection { background: var(--accent-primary); color: #000; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

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

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LOADING SCREEN ===== */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-spinner {
    animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}
.loader-logo { width: 64px; height: 64px; }
.loader-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.06em;
    animation: loaderFade 1.5s ease-in-out infinite;
}
@keyframes loaderFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== PARTICLES ===== */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--bg-header);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    transition: all var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.2), var(--shadow-glow-yellow);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}
.logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
}
.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    color: #000;
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: super;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient-h);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover {
    color: var(--accent-primary);
    background: var(--accent-glow);
}
.nav-link:hover::after {
    width: 60%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.theme-toggle, .github-btn, .pypi-header-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}
.theme-toggle:hover, .github-btn:hover, .pypi-header-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    box-shadow: var(--shadow-glow-yellow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--accent-primary);
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--accent-primary);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(250,204,21,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250,204,21,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 100%);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: glowFloat 8s ease-in-out infinite;
}
.hero-glow-1 {
    width: 600px;
    height: 400px;
    background: rgba(250, 204, 21, 0.12);
    top: -80px;
    left: 15%;
}
.hero-glow-2 {
    width: 500px;
    height: 350px;
    background: rgba(239, 68, 68, 0.1);
    top: 0;
    right: 10%;
    animation-delay: -3s;
}
.hero-glow-3 {
    width: 400px;
    height: 300px;
    background: rgba(245, 158, 11, 0.08);
    bottom: 0;
    left: 40%;
    animation-delay: -5s;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}
.hero-orb {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-1 {
    background: var(--accent-primary);
    top: 30%;
    left: 10%;
    box-shadow: 0 0 12px var(--accent-primary);
}
.hero-orb-2 {
    background: var(--accent-secondary);
    top: 50%;
    right: 15%;
    box-shadow: 0 0 12px var(--accent-secondary);
    animation-delay: -4s;
}
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    25% { transform: translateY(-40px) translateX(20px); opacity: 1; }
    50% { transform: translateY(-20px) translateX(-15px); opacity: 0.4; }
    75% { transform: translateY(-50px) translateX(10px); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.badge:hover { transform: translateY(-1px); }
.badge-pypi { color: var(--green); border-color: rgba(34,197,94,0.3); background: var(--green-bg); }
.badge-version { color: var(--yellow); border-color: rgba(250,204,21,0.3); background: var(--yellow-bg); }
.badge-license { color: var(--orange); border-color: rgba(245,158,11,0.3); background: var(--orange-bg); }
.badge-python { color: var(--cyan); border-color: rgba(6,182,212,0.3); background: var(--cyan-bg); }
.badge-cli { color: var(--red); border-color: rgba(239,68,68,0.3); background: var(--red-bg); }

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.title-line {
    display: block;
    animation: titleSlideUp 0.8s ease both;
}
.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.35s; }
.title-line:nth-child(3) { animation-delay: 0.5s; }
@keyframes titleSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.highlight-word {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 40px;
    line-height: 1.75;
    animation: titleSlideUp 0.8s ease 0.6s both;
}
.hero-subtitle strong { color: var(--accent-primary); }

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
    animation: titleSlideUp 0.8s ease 0.7s both;
}

.install-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    transition: all var(--transition);
}
.install-box:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-yellow);
}
.install-icon {
    padding: 14px 16px;
    color: var(--accent-primary);
    font-size: 0.9rem;
    background: var(--accent-glow);
    border-right: 1px solid var(--border-primary);
}
.install-box code {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 500;
    overflow-x: auto;
    white-space: nowrap;
}
.copy-btn {
    padding: 14px 18px;
    background: var(--accent-glow);
    border: none;
    border-left: 1px solid var(--border-primary);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
}
.copy-btn:hover {
    color: var(--accent-primary);
    background: var(--accent-glow-strong);
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    font-family: var(--font-sans);
}
.btn-primary, .btn-glow {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 24px rgba(250, 204, 21, 0.25), 0 2px 8px rgba(239, 68, 68, 0.15);
}
.btn-primary:hover, .btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 36px rgba(250, 204, 21, 0.35), 0 4px 16px rgba(239, 68, 68, 0.25);
    color: #000;
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}
.btn-outline:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-primary);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 18px;
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--accent-glow);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    animation: titleSlideUp 0.8s ease 0.9s both;
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-primary);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}
.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDotMove 2s ease-in-out infinite;
}
@keyframes scrollDotMove {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 22px; opacity: 0.3; }
}
.hero-scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== DOCS LAYOUT ===== */
.docs-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    height: fit-content;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding-right: 24px;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar-inner { padding-bottom: 24px; }

.nav-section { margin-bottom: 8px; }
.nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    padding: 18px 12px 8px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    border-left: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: width 0.3s ease;
}
.sidebar-link:hover::before { width: 2px; opacity: 1; }
.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.5;
    transition: all var(--transition);
}
.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--accent-glow);
}
.sidebar-link:hover i { opacity: 0.8; color: var(--accent-primary); }
.sidebar-link.active {
    color: var(--accent-primary);
    background: var(--accent-glow);
    border-left-color: var(--accent-primary);
    font-weight: 600;
}
.sidebar-link.active i { opacity: 1; color: var(--accent-primary); }

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    min-width: 0;
    padding-left: 32px;
    border-left: 1px solid var(--border-primary);
}

.section {
    padding-top: 56px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-header { margin-bottom: 24px; }
.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-glow);
    color: var(--accent-primary);
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
}
.section-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-md) + 2px);
    background: var(--accent-gradient);
    z-index: -1;
    opacity: 0.2;
}

.section-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--text-primary);
}
.section-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-primary);
}
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), var(--accent-glow-strong), var(--border-primary), transparent);
    margin: 40px 0;
}

/* ===== HIGHLIGHT/INFO BOXES ===== */
.highlight-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: var(--accent-glow);
    border: 1px solid rgba(250, 204, 21, 0.15);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}
.highlight-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient-h);
}
.highlight-icon { font-size: 1.2rem; color: var(--accent-primary); flex-shrink: 0; margin-top: 2px; }
.highlight-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.highlight-content strong { color: var(--accent-primary); }
.highlight-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.2);
    margin-left: 6px;
    vertical-align: middle;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--accent-glow-red);
    border: 1px solid rgba(239, 68, 68, 0.12);
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.info-box i { color: var(--red); flex-shrink: 0; margin-top: 3px; }
.info-box code {
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.feature-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient-h);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(250, 204, 21, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow-yellow);
}
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); }
.fi-github { background: var(--green-bg); color: var(--green); }
.fi-wand { background: var(--yellow-bg); color: var(--yellow); }
.fi-brain { background: rgba(168,85,247,0.08); color: #a855f7; }
.fi-swap { background: var(--cyan-bg); color: var(--cyan); }
.fi-atom { background: var(--orange-bg); color: var(--orange); }
.fi-layer { background: var(--red-bg); color: var(--red); }
.fi-sliders { background: var(--blue-bg); color: var(--blue); }
.fi-lang { background: rgba(236,72,153,0.08); color: #ec4899; }
.fi-eye { background: var(--yellow-bg); color: var(--yellow); }
.fi-progress { background: var(--green-bg); color: var(--green); }
.fi-hand { background: var(--orange-bg); color: var(--orange); }
.fi-shield { background: var(--red-bg); color: var(--red); }
.fi-desktop { background: var(--blue-bg); color: var(--blue); }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--text-primary); }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.feature-card code {
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* ===== CODE BLOCKS ===== */
.code-block {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    background: var(--bg-code);
    margin: 16px 0;
    transition: border-color 0.3s ease;
}
.code-block:hover { border-color: rgba(250,204,21,0.15); }
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}
.code-lang {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.code-lang i { color: var(--accent-primary); font-size: 0.65rem; }
.code-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-tertiary);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
}
.code-copy:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}
.code-copy.copied {
    color: var(--green);
    border-color: var(--green);
    background: var(--green-bg);
}
.code-block pre { padding: 18px 20px; overflow-x: auto; }
.code-block code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--text-primary);
}

/* ===== REQUIREMENTS ===== */
.req-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.req-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    transition: all var(--transition);
}
.req-item:hover {
    border-color: rgba(250,204,21,0.15);
    transform: translateX(4px);
}
.req-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.req-item strong { display: block; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 2px; }
.req-item p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* ===== QUICK START TABS ===== */
.quickstart-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-primary);
    overflow-x: auto;
}
.qtab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
    position: relative;
}
.qtab:hover { color: var(--text-primary); }
.qtab.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(250,204,21,0.1);
}
.qtab.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent-gradient-h);
    border-radius: 2px;
}

.qtab-content { display: none; animation: tabFadeIn 0.35s ease; }
.qtab-content.active { display: block; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== STEPS ===== */
.steps-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}
.step:hover {
    border-color: rgba(250,204,21,0.15);
    transform: translateX(4px);
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #000;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}
.step-content strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.step-content p { font-size: 0.85rem; margin: 0; }
.step-content code {
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* ===== PIPELINE ===== */
.pipeline-steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.pipeline-step {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
}
.pipeline-step:hover {
    border-color: rgba(250,204,21,0.15);
    box-shadow: var(--shadow-glow-yellow);
}
.pipeline-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: #000;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}
.pipeline-step h4 { margin: 0 0 6px; font-size: 0.95rem; }
.pipeline-step p { margin: 0; font-size: 0.85rem; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; margin: 16px 0; }
.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.doc-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
}
.doc-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    vertical-align: top;
}
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table tbody tr { transition: background 0.2s ease; }
.doc-table tbody tr:hover { background: var(--accent-glow); }
.doc-table code {
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}
.commit-table code { display: inline-block; white-space: normal; }

/* ===== COMMANDS ===== */
.command-section { margin-bottom: 8px; }
.cmd-code {
    font-family: var(--font-mono);
    background: var(--accent-glow);
    padding: 4px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    color: var(--accent-primary);
    border: 1px solid rgba(250,204,21,0.12);
}

/* ===== SECURITY ===== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.security-item {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.security-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--accent-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.security-item:hover::before { transform: scaleX(1); }
.security-item:hover {
    border-color: rgba(34,197,94,0.2);
    box-shadow: 0 0 20px var(--green-bg);
    transform: translateY(-2px);
}
.security-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--green-bg);
    color: var(--green);
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.security-item h4 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.security-item p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.security-item code {
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* ===== PLATFORMS ===== */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.platform-card {
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    text-align: center;
    transition: all 0.4s ease;
}
.platform-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow-yellow);
}
.platform-icon { font-size: 2.6rem; margin-bottom: 14px; color: var(--accent-primary); }
.platform-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.platform-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.platform-badge.supported {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green);
}
.platform-card p { font-size: 0.8rem; color: var(--text-tertiary); margin: 0; }

/* ===== LINKS ===== */
.links-grid { display: flex; flex-direction: column; gap: 10px; }
.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.link-card:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    transform: translateX(6px);
    box-shadow: var(--shadow-glow-yellow);
}
.link-card > i:first-child { font-size: 1.3rem; color: var(--accent-primary); width: 24px; text-align: center; }
.link-card div { flex: 1; }
.link-card strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.link-card span { font-size: 0.78rem; color: var(--text-tertiary); }
.link-card > i:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.link-card:hover > i:last-child { color: var(--accent-primary); transform: translate(2px, -2px); }

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    padding: 56px 0 32px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.footer-glow {
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--accent-gradient-h);
    filter: blur(1px);
}
.footer-inner { display: flex; flex-direction: column; gap: 32px; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-brand .logo { justify-content: flex-start; margin-bottom: 10px; }
.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}
.footer-links-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.footer-links-col a, .footer-links-col span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 4px 0;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-links-col a:hover { color: var(--accent-primary); }

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.author-credit {
    color: var(--accent-primary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(250,204,21,0.25), 0 2px 8px rgba(239,68,68,0.15);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition);
    z-index: 500;
    font-weight: 700;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 36px rgba(250,204,21,0.4), 0 4px 16px rgba(239,68,68,0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar { display: none; }
    .main-content { padding-left: 0; border-left: none; }
    .docs-layout { max-width: 900px; }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; }
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-primary);
        flex-direction: column;
        padding: 16px;
        gap: 2px;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 12px 16px; font-size: 1rem; }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 110px 0 70px; min-height: auto; }
    .hero-title { font-size: 1.9rem; }
    .hero-scroll-indicator { display: none; }
    .hero-badges { gap: 6px; }
    .badge { font-size: 0.68rem; padding: 4px 10px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.3rem; }

    .section { padding-top: 40px; }
    .section-title { font-size: 1.35rem; }

    .features-grid, .security-grid, .platform-cards { grid-template-columns: 1fr; }
    .quickstart-tabs { flex-direction: column; }
    .install-box { max-width: 100%; }
    .install-box code { font-size: 0.82rem; }

    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .docs-layout { padding: 0 16px 60px; }
    .hero { padding: 96px 0 50px; }
    .hero-title { font-size: 1.55rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .code-block pre { padding: 14px; }
    .code-block code { font-size: 0.78rem; }
    .doc-table { font-size: 0.78rem; }
    .doc-table thead th, .doc-table tbody td { padding: 10px 12px; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { justify-content: center; width: 100%; }
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: var(--sidebar-w);
        max-height: calc(100vh - var(--header-h));
        background: var(--bg-sidebar);
        border-right: 1px solid var(--border-primary);
        z-index: 900;
        padding: 16px;
        box-shadow: var(--shadow-xl);
    }
    .sidebar.mobile-open { display: block; }
}
