/* ============================================================
 * Bee Agents — Shared Design System
 * style.css  (referenced by all pages)
 *
 * MODULE INDEX (Ctrl/Cmd+F the section header to jump)
 * ──────────────────────────────────────────────────────────
 *  §01  Design Tokens          :root variables
 *  §02  Reset / Base           *, body, body::before
 *  §03  Background Elements    .bg-grid, .glow-*
 *  §04  Modal                  .modal-overlay, .modal-box
 *  §05  Navigation             .navbar, .nav-links, .logo, .btn
 *  §06  Badge                  .badge
 *  §07  Buttons (global)       .btn-primary, .btn-text
 *  §08  Section Layout         .section, .section-header
 *  §09  Cards                  .cards-grid, .card, .features-grid
 *  §10  Token Cards            .token-grid, .token-card
 *  §11  Pricing Table          .pricing-table-container
 *  §12  Indicator / Status     .indicator, .dot-green
 *  §13  Footer                 .footer, .footer-title
 *  §14  Page Hero              .page-hero (sub-pages)
 *  §15  Prose / Article        .prose, .prose h2/h3/p/a/code
 *  §16  Animations             @keyframes slideUp/float/glow
 *  §17  Docs Layout            .docs-layout, .docs-sidebar
 *  §18  Docs Content           .docs-content, .step-*, .code-block
 *  §19  Stats / Trust Bar      .stats-bar, .stat-item, .stat-num
 *  §20  Reviews / Testimonials .reviews-section, .reviews-track
 *  §21  Pricing Plans          .pricing-section, .pricing-cards
 *  §22  OS Tab Switcher        .os-tabs, .os-tab, .os-panel
 *  §23  FAQ Categories         .faq-categories, .faq-cat-btn
 *  §24  Callout Blocks         .callout, .callout-warn
 *  §25  Tables (standalone)    table, th, td
 *  §26  Section Divider        .section-divider
 *  §27  About Page             .about-grid, .team-stat-grid
 *  §28  Contact Cards          .contact-grid, .contact-card
 *  §29  Support Quick Links    .support-links-grid, .support-link-card
 *  §30  FAQ Item               .faq-item, .faq-q, .faq-a
 *  §31  Responsive             @media (max-width: 768px)
 *  §32  Hero Section           .hero, .main-title, .sub-title (home)
 *  §33  Terminal Card          .terminal-card, .term-*, .cursor-blink
 *  §34  Endpoint Strip         .endpoint-strip
 *  §35  Error Pages            .error-page, .error-code, .error-link (403/404/500)
 *  §36  Maintenance Page       .maint-*, .progress-bar, .notify-form
 * ============================================================ */

/* ========== Design Tokens ========== */
:root {
    --bg-color: #0b0f19;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --accent-gold: #f59e0b;
    --card-bg: #111827;
    --card-border: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(11, 15, 25, 0.8);
    --nav-height: 64px;
    --font-ui: system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, monospace;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* ========== Grain noise overlay ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* ========== Background Elements ========== */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -2;
    height: 100%;
    min-height: 100vh;
}

.glow-blue {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.2);
    filter: blur(140px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: slowFloat1 18s ease-in-out infinite;
}

.glow-gold {
    position: absolute;
    top: 30%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: rgba(245, 158, 11, 0.15);
    filter: blur(140px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: slowFloat2 22s ease-in-out infinite;
}

.glow-purple {
    position: absolute;
    bottom: 10%;
    left: 25%;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.08);
    filter: blur(160px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: slowFloat3 26s ease-in-out infinite;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: #fff; }

.modal-body-text {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 15px;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.modal-btn:hover { background: var(--primary-blue-hover); }

/* ========== Navigation ========== */
.navbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(24, 24, 27, 0.75) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    .nav-links a {
        color: #a1a1aa;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: #fff;
    }
    
    .logo-text {
        color: #fff;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #18181b;
    letter-spacing: -0.5px;
}

.logo-gold { color: #f59e0b; }
.logo-gray { color: #71717a; }

.nav-links {
    display: flex;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    justify-content: center;
    margin: 0 16px;
}

.nav-links a {
    text-decoration: none;
    color: #52525b;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #18181b;
    background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

@media (prefers-color-scheme: dark) {
    .nav-links a {
        color: #a1a1aa;
    }
    
    .nav-links a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .nav-links a.active {
        color: #60a5fa;
        background: rgba(96, 165, 250, 0.15);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #18181b;
}

@media (prefers-color-scheme: dark) {
    .icon-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background: transparent;
    color: #52525b;
}

.btn-login:hover { 
    color: #18181b;
    background: rgba(0, 0, 0, 0.04);
}

.btn-register {
    background: #2563eb;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
}

.btn-register:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
    .btn-login {
        color: #a1a1aa;
    }
    
    .btn-login:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ========== Badge ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 2px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== Buttons ========== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

.btn-text {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-text:hover { color: #fff; }

/* ========== Global Section Layout ========== */
.section {
    padding: 80px 5%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(140deg, #f9fafb 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 16px;
    color: #9ca3af;
    max-width: 440px;
    line-height: 1.6;
}

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

.section-center-header .section-title { margin-bottom: 16px; }
.section-center-header .section-desc { margin: 0 auto; }

/* ========== Cards ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.card:hover::after { left: 130%; }

.card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.03);
    transform: translateY(-8px) scale(1.02);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.tag-anthropic { color: #f59e0b; }
.tag-openai    { color: #60a5fa; }
.tag-google    { color: #c084fc; }

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.card-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
}

/* features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 100px;
}

/* ========== Token Cards ========== */
.token-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) { .token-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .token-grid { grid-template-columns: 1fr; } }

.token-card {
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 36px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: visible; /* keep badges above edge */
}

.token-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.token-card:hover::after { left: 130%; }

.token-card:hover,
.card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.token-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-highlight {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.card-highlight:hover {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.5), 0 20px 60px rgba(245, 158, 11, 0.15) !important;
}

.t-badge {
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.t-recommend { background: linear-gradient(90deg, #f59e0b, #ea580c); color: #fff; border: none; }
.t-codex     { background: #1e3a8a; color: #fff; }
.t-cheap     { background: #334155; color: #e2e8f0; }
.t-gemini    { background: #4c1d95; color: #fff; }
.t-search    { background: #0f172a; color: #cbd5e1; }

.t-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 32px;
    flex: 1;
}

.t-link {
    color: #f59e0b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.t-link:hover { color: #fcd34d; }

/* ========== Pricing Table ========== */
.pricing-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent !important;
    min-width: 800px;
}

.pricing-table th {
    text-align: left;
    padding: 24px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table td {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table tr { transition: background 0.2s; }
.pricing-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

.rate-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

a.rate-badge {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

a.rate-badge:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15) !important;
    color: #fcd34d;
}

.pricing-note {
    text-align: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.4) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 16px;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========== Indicator / Status ========== */
.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #10b981;
    margin-bottom: 12px;
    font-weight: 500;
}

.dot-green {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 40px 5% 0;
    position: relative;
    z-index: 10;
}

/* Decorative glow - only for full footer (with title) */
.footer.footer-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.footer-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.footer-subtitle {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    padding-bottom: 32px;
    color: #6b7280;
    font-size: 14px;
}

.footer-bottom a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: #9ca3af; }

/* ========== Page Hero (for sub-pages) ========== */
.page-hero {
    padding: calc(64px + 48px) 5% 64px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.page-hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f59e0b;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(140deg, #f9fafb 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 560px;
}

/* ========== Prose / Article Content ========== */
.prose {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5% 120px;
    position: relative;
    z-index: 10;
    color: #d1d5db;
    line-height: 1.8;
    font-size: 16px;
}

.prose h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    letter-spacing: -0.5px;
}

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 36px 0 12px;
}

.prose p {
    margin-bottom: 16px;
    color: #9ca3af;
}

.prose ul, .prose ol {
    margin: 12px 0 20px 24px;
    color: #9ca3af;
}

.prose li { margin-bottom: 8px; }

.prose a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96,165,250,0.3);
    transition: border-color 0.2s, color 0.2s;
}

.prose a:hover {
    color: #93c5fd;
    border-color: rgba(147,197,253,0.5);
}

.prose strong { color: #f3f4f6; font-weight: 600; }

.prose code {
    font-family: var(--font-mono);
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 2px 8px;
    color: #f59e0b;
}

.prose pre {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
}

.prose pre .keyword  { color: #f59e0b; }
.prose pre .variable { color: #60a5fa; }
.prose pre .string   { color: #10b981; }
.prose pre .comment  { color: #4b5563; }

.prose blockquote {
    border-left: 3px solid #f59e0b;
    margin: 24px 0;
    padding: 12px 20px;
    background: rgba(245,158,11,0.05);
    border-radius: 0 8px 8px 0;
    color: #9ca3af;
    font-style: italic;
}

.prose .callout {
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    color: #93c5fd;
    font-size: 14px;
}

.prose .callout-warn {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.2);
    color: #fcd34d;
}

.prose .callout-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.prose table th {
    text-align: left;
    padding: 12px 16px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.prose table td {
    padding: 12px 16px;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.prose table tr:last-child td { border-bottom: none; }

/* ========== Animations ========== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatWidget {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes slowFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-50px, 40px) scale(1.1); }
}

@keyframes slowFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(40px, -50px) scale(1.05); }
}

@keyframes slowFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, -60px) scale(1.08); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50%       { box-shadow: 0 0 14px 2px rgba(255,255,255,0.05); }
}

/* ========== Docs Layout ========== */
.docs-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.docs-sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 40px 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(11,15,25,0.6);
    backdrop-filter: blur(20px);
    z-index: 20;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #4b5563;
    text-transform: uppercase;
    padding: 0 24px;
    margin: 28px 0 10px;
}

.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-link {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: #d1d5db;
    background: rgba(255,255,255,0.03);
    border-left-color: rgba(255,255,255,0.15);
}

.sidebar-link.active {
    color: #f59e0b;
    border-left-color: #f59e0b;
    background: rgba(245,158,11,0.05);
}

.docs-content {
    flex: 1;
    max-width: 860px;
    padding: 60px 5% 120px;
    position: relative;
    z-index: 10;
}

.docs-content h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(140deg, #f9fafb 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.docs-content .lead {
    font-size: 17px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Step circles for docs */
.step-list { display: flex; flex-direction: column; gap: 40px; }

.step-item {
    display: flex;
    gap: 24px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.step-body { flex: 1; }

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.7;
}

.step-desc a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96,165,250,0.3);
}

.step-desc a:hover { color: #93c5fd; }

.code-block {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
    position: relative;
}

.code-block .comment  { color: #4b5563; }
.code-block .keyword  { color: #f59e0b; }
.code-block .variable { color: #60a5fa; }
.code-block .string   { color: #10b981; }
.code-block .cmd      { color: #f9fafb; }

.docs-section {
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.docs-section-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 10px;
}

.docs-section-desc {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ========== Stats / Trust Bar ========== */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 5%;
    margin: 0 auto 0;
    max-width: 1440px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 36px 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-num.gold {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-num.green {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-num.blue {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ========== Reviews / Testimonials ========== */
.reviews-section {
    padding: 100px 5%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 20px;
    animation: reviewsScroll 40s linear infinite;
    width: max-content;
}

.reviews-track:hover { animation-play-state: paused; }

@keyframes reviewsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    width: 320px;
    flex-shrink: 0;
    background: rgba(17,24,39,0.4) !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 20px;
    padding: 28px;
    transition: border-color 0.2s;
}

.review-card:hover {
    border-color: rgba(255,255,255,0.14) !important;
}

.review-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review-text {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
    color: #f3f4f6;
    line-height: 1.3;
}

.review-role {
    font-size: 12px;
    color: #6b7280;
}

/* ========== Pricing Plans ========== */
.pricing-section {
    padding: 100px 5%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 900px) { .pricing-cards { grid-template-columns: 1fr; } }

.pricing-card {
    background: rgba(17,24,39,0.4) !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 24px;
    padding: 36px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.16) !important;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.pricing-card.featured {
    border-color: rgba(37,99,235,0.4) !important;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.2), 0 8px 32px rgba(37,99,235,0.15);
}

.pricing-card.featured:hover {
    border-color: rgba(37,99,235,0.6) !important;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.4), 0 24px 48px rgba(37,99,235,0.25);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 20px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.pricing-tier {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pricing-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.pricing-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.5;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pricing-currency {
    font-size: 20px;
    font-weight: 700;
    color: #9ca3af;
}

.pricing-amount {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: #fff;
}

.pricing-period {
    font-size: 14px;
    color: #6b7280;
    align-self: flex-end;
    padding-bottom: 6px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 13px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.12);
    color: #d1d5db;
    background: rgba(255,255,255,0.06);
}

.pricing-cta:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-1px);
}

.pricing-cta.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.pricing-cta.primary:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 10px 28px rgba(37,99,235,0.55);
}

.pricing-recharge {
    background: rgba(17,24,39,0.4) !important;
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pricing-recharge-left { flex: 1; min-width: 200px; }

.pricing-recharge-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.pricing-recharge-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.pricing-tiers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tier-chip {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #9ca3af;
}

.tier-chip.active {
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.3);
    color: #f59e0b;
}

/* ========== OS Tab Switcher ========== */
.os-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.os-tab {
    padding: 6px 16px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    font-family: var(--font-ui);
    transition: all 0.15s;
}

.os-tab.active {
    background: rgba(255,255,255,0.08);
    color: #f3f4f6;
}

.os-panel { display: none; }
.os-panel.active { display: block; }

/* ========== FAQ Categories ========== */
.faq-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.faq-cat-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.15s;
}

.faq-cat-btn:hover {
    border-color: rgba(255,255,255,0.15);
    color: #d1d5db;
}

.faq-cat-btn.active {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.3);
    color: #f59e0b;
}

.faq-group { display: none; }
.faq-group.active { display: block; }

/* ========== callout blocks (docs standalone) ========== */
.callout {
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #93c5fd;
    font-size: 14px;
    line-height: 1.7;
}

.callout-warn {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.25);
    color: #fcd34d;
}

.callout-green {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.25);
    color: #6ee7b7;
}

.callout-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* table (docs standalone) */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px 0;
}

table th {
    text-align: left;
    padding: 12px 16px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

table td {
    padding: 14px 16px;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    line-height: 1.6;
}

table tr:last-child td { border-bottom: none; }
table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ========== Section divider ========== */
.section-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0;
}

/* ========== About page ========== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

.about-principle {
    background: rgba(17,24,39,0.4) !important;
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.25s;
}

.about-principle:hover {
    border-color: rgba(255,255,255,0.14) !important;
    transform: translateY(-3px);
}

.about-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.about-principle-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.about-principle-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
    margin: 0;
}

.team-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 48px 0;
}

@media (max-width: 768px) { .team-stat-grid { grid-template-columns: repeat(2, 1fr); } }

.team-stat {
    background: rgba(17,24,39,0.4) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.team-stat:hover {
    border-color: rgba(255,255,255,0.14) !important;
    transform: translateY(-2px);
}

.team-stat-num {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}

.team-stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
    background: rgba(17,24,39,0.4) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 18px;
    padding: 28px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    border-color: rgba(255,255,255,0.16) !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.contact-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.contact-detail {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* ========== Support quick links ========== */
.support-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

@media (max-width: 768px) { .support-links-grid { grid-template-columns: 1fr; } }

.support-link-card {
    background: rgba(17,24,39,0.4) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.25s;
}

.support-link-card:hover {
    border-color: rgba(255,255,255,0.16) !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.support-link-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.support-link-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.support-link-desc {
    font-size: 13px;
    color: #6b7280;
}

/* ========== FAQ item ========== */
.faq-item {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(255,255,255,0.12); }

.faq-q {
    width: 100%;
    background: rgba(17,24,39,0.4);
    backdrop-filter: blur(20px);
    border: none;
    color: #f3f4f6;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-ui);
    transition: background 0.2s;
}

.faq-q:hover { background: rgba(255,255,255,0.04); }

.faq-arrow {
    font-size: 18px;
    color: #6b7280;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: #f59e0b;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s;
    padding: 0 24px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.8;
    background: rgba(0,0,0,0.15);
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding: 16px 24px 22px;
}

.faq-a code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #f59e0b;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.faq-a a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96,165,250,0.3);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .docs-sidebar { display: none; }
    .page-hero h1 { font-size: 38px; }
    .prose h2 { font-size: 22px; }
    .section-title { font-size: 36px; }
    .footer-title { font-size: 44px; }
    .stats-bar { gap: 0; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .stat-item:last-child { border-bottom: none; }
    .team-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .support-links-grid { grid-template-columns: 1fr; }
}

svg { fill: currentColor; }

/* ========== §32 Hero Section (home page) ========== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--nav-height) + 48px) 5% 40px;
    max-width: 1440px;
    margin: 0 auto;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.hero-content { flex: 1; max-width: 600px; animation: slideUp 0.6s ease forwards; }

.main-title {
    font-size: clamp(64px, 7vw, 96px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -3px;
}

h1.main-title span:first-child {
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(245,158,11,0.3);
}

.main-title span:last-child {
    background: linear-gradient(135deg, #f3f4f6, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub-title {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 400;
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.sub-title .highlight {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.desc {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 500px;
}

.action-group {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
}

/* ========== §33 Terminal Card (hero graphic) ========== */
.hero-graphic {
    flex: 0 0 auto;
    width: 420px;
    animation: floatWidget 6s ease-in-out infinite;
}

@media (max-width: 1024px) { .hero-graphic { display: none; } }

.terminal-card {
    background: rgba(17,24,39,0.6);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.term-header {
    background: rgba(255,255,255,0.04);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dots { display: flex; gap: 6px; }

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dots .dot:nth-child(1) { background: #ef4444; }
.dots .dot:nth-child(2) { background: #f59e0b; }
.dots .dot:nth-child(3) { background: #10b981; }

.term-title { font-size: 13px; color: #6b7280; font-family: var(--font-mono); }

.term-code {
    padding: 28px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
}

.term-code .comment  { color: #4b5563; }
.term-code .keyword  { color: #f59e0b; }
.term-code .variable { color: #60a5fa; }
.term-code .string   { color: #10b981; }
.term-code .prompt   { color: #6b7280; }
.term-code .command  { color: #f9fafb; }

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #f9fafb;
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s ease-in-out infinite;
}

/* ========== §34 Endpoint Strip ========== */
.endpoint-strip {
    padding: 24px 5%;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.1);
}

/* ========== §35 Error Pages (403 / 404 / 500) ========== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 5%;
    position: relative;
    z-index: 10;
}

.error-code {
    font-size: 160px;
    font-weight: 900;
    letter-spacing: -8px;
    line-height: 1;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    animation: slideUp 0.6s ease forwards;
}

/* Per-page accent colors — override via inline style on the element */
.error-code.e404 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #4b5563 100%); }
.error-code.e403 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #4b5563 100%); }
.error-code.e500 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #4b5563 100%); }

.error-title {
    font-size: 28px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 12px;
}

.error-desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto 40px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.error-link-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

.error-link-primary:hover {
    box-shadow: 0 12px 28px rgba(37,99,235,0.55);
    transform: translateY(-2px);
}

.error-link-secondary {
    background: rgba(255,255,255,0.05);
    color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.08);
}

.error-link-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.mono-path {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 48px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    display: inline-block;
}

.error-icon { font-size: 56px; margin-bottom: 12px; }

/* 500 status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
    animation: blink 1.2s ease-in-out infinite;
}

/* ========== §36 Maintenance Page ========== */
.maint-icon {
    font-size: 80px;
    margin-bottom: 12px;
    animation: floatWidget 4s ease-in-out infinite;
    display: block;
}

.maint-title {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.maint-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 16px;
}

.maint-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto 40px;
}

.maint-time {
    display: inline-block;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    color: #f59e0b;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.progress-bar {
    width: 320px;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin: 0 auto 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    border-radius: 2px;
    animation: maintProgress 3s ease-in-out infinite;
    width: 60%;
}

@keyframes maintProgress {
    0%   { width: 20%; }
    50%  { width: 75%; }
    100% { width: 20%; }
}

.notify-form {
    display: flex;
    gap: 8px;
    max-width: 360px;
    margin: 0 auto;
}

.notify-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 16px;
    color: #f3f4f6;
    font-size: 14px;
    font-family: var(--font-ui);
    outline: none;
    transition: border-color 0.2s;
}

.notify-input:focus { border-color: rgba(245,158,11,0.4); }
.notify-input::placeholder { color: #4b5563; }

.notify-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font-ui);
}

.notify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245,158,11,0.35);
}

.contact-row {
    margin-top: 32px;
    color: #4b5563;
    font-size: 13px;
}

.contact-row a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-row a:hover { color: #9ca3af; }

/* ========== §37 Docs Hero + Tool Cards + Tips Cards ========== */

/* Docs Hero Section */
.docs-hero {
    padding: 80px 5% 48px;
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.docs-hero-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
    background: linear-gradient(140deg, #f9fafb 0%, #d1d5db 50%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 0.6s ease forwards;
}

.docs-hero-title .gold {
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-hero-desc {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
    animation: slideUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

/* Tool Cards Grid */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 5%;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    background: rgba(17,24,39,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.02) 100%);
    opacity: 0;
    transition: opacity 0.25s;
}

.tool-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tool-card:hover::before { opacity: 1; }

.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.tool-icon.claude {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(217,119,6,0.1));
    color: #f59e0b;
}

.tool-icon.codex {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.1));
    color: #10b981;
}

.tool-icon.gemini {
    background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(59,130,246,0.1));
    color: #60a5fa;
}

.tool-icon.antigravity {
    background: linear-gradient(135deg, rgba(192,132,252,0.15), rgba(168,85,247,0.1));
    color: #c084fc;
}

.tool-icon.openclaw {
    background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(236,72,153,0.1));
    color: #f472b6;
}

.tool-name {
    font-size: 15px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.tool-desc {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Section Divider */
.docs-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    margin: 60px auto;
    max-width: 900px;
}

/* Tips Cards (Advanced Section) */
.tips-section {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 5%;
}

.tips-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #f3f4f6;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tips-section-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.tips-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.tips-card {
    display: block;
    padding: 24px;
    background: rgba(17,24,39,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.tips-card:hover {
    border-color: rgba(255,255,255,0.1);
    background: rgba(17,24,39,0.6);
    transform: translateY(-2px);
}

.tips-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-card-title .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(96,165,250,0.15);
    color: #60a5fa;
}

.tips-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tips-card-link {
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tips-card-link::after {
    content: '→';
    transition: transform 0.2s;
}

.tips-card:hover .tips-card-link::after {
    transform: translateX(4px);
}

/* Code Copy Button */
.code-block {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #6b7280;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    z-index: 5;
}

.code-block:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #f3f4f6;
    border-color: rgba(255,255,255,0.15);
}

.code-copy-btn.copied {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border-color: rgba(16,185,129,0.3);
}

/* Prerequisite Callout */
.callout-prereq {
    background: rgba(96,165,250,0.06);
    border-color: rgba(96,165,250,0.15);
}

.callout-prereq .callout-title {
    color: #60a5fa;
}

/* Responsive for new components */
@media (max-width: 768px) {
    .docs-hero { padding: 60px 5% 32px; }
    .docs-hero-title { font-size: 32px; letter-spacing: -1px; }
    .docs-hero-desc { font-size: 15px; }
    .tool-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tool-card { padding: 20px 16px; }
    .tips-cards { grid-template-columns: 1fr; }
}

/* ========== §38 Docs Polish - Code Headers, Steps, Search ========== */

/* Code Block with Header */
.code-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(17,24,39,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-lang {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 3px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.code-filename {
    font-size: 12px;
    font-family: var(--font-mono);
    color: #9ca3af;
}

.code-wrapper .code-block {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.code-wrapper .code-copy-btn {
    top: auto;
    bottom: auto;
    position: static;
    opacity: 1;
}

/* Terminal Dots in Code Header */
.code-dots {
    display: flex;
    gap: 6px;
}

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

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

/* Step Flow with Connection Lines */
.step-list {
    position: relative;
}

.step-item {
    position: relative;
    padding-left: 0;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 56px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(180deg, rgba(245,158,11,0.4) 0%, rgba(245,158,11,0.1) 100%);
}

.step-item:last-child::before {
    display: none;
}

.step-num {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(17,24,39,1), 0 0 20px rgba(245,158,11,0.3);
}

/* Sidebar Search */

/* Step Number Badge (for section titles) */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 14px;
    font-weight: 800;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Sidebar Search */
.sidebar-search {
    position: relative;
    margin-bottom: 24px;
    padding: 0 20px;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #f3f4f6;
    font-size: 13px;
    font-family: var(--font-ui);
    outline: none;
    transition: all 0.2s;
}

.sidebar-search-input:focus {
    border-color: rgba(245,158,11,0.4);
    background: rgba(255,255,255,0.06);
}

.sidebar-search-input::placeholder {
    color: #4b5563;
}

.sidebar-search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    pointer-events: none;
}

/* Docs Background Decoration */
.docs-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.docs-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.docs-bg-glow.gold {
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.docs-bg-glow.blue {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    bottom: 20%;
    left: -200px;
}

/* Enhanced Table Styles */
.docs-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    background: rgba(17,24,39,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
}

.docs-content table thead {
    background: rgba(255,255,255,0.03);
}

.docs-content table th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.docs-content table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.docs-content table tr:last-child td {
    border-bottom: none;
}

.docs-content table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Version Badge */
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    margin-left: 12px;
}

.version-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

/* Enhanced Tool Icons with Brand Colors */
.tool-icon svg {
    width: 28px;
    height: 28px;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Keyboard Shortcut Styling */
kbd {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: #d1d5db;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

/* ========== §39 Docs Multi-Page System ========== */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
    padding: 0 5%;
    max-width: 900px;
}

.breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #f59e0b;
}

.breadcrumb-sep {
    color: #4b5563;
}

.breadcrumb-current {
    color: #f3f4f6;
}

/* Docs Entry Cards */
.docs-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.docs-entry-card {
    display: block;
    padding: 28px;
    background: rgba(17,24,39,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.docs-entry-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.docs-entry-card.featured {
    border-color: rgba(245,158,11,0.3);
    background: linear-gradient(135deg, rgba(245,158,11,0.05) 0%, rgba(17,24,39,0.5) 100%);
}

.docs-entry-card.featured::before {
    content: '★ 重点';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245,158,11,0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.docs-entry-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 24px;
}

.docs-entry-icon.blue { background: rgba(96,165,250,0.12); color: #60a5fa; }
.docs-entry-icon.gold { background: rgba(245,158,11,0.12); color: #f59e0b; }
.docs-entry-icon.green { background: rgba(16,185,129,0.12); color: #10b981; }
.docs-entry-icon.purple { background: rgba(192,132,252,0.12); color: #c084fc; }
.docs-entry-icon.pink { background: rgba(244,114,182,0.12); color: #f472b6; }

.docs-entry-title {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.docs-entry-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 12px;
}

.docs-entry-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-entry-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    padding: 0 20px;
}

.step-progress-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    color: #6b7280;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.step-progress-item.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #000;
    box-shadow: 0 0 20px rgba(245,158,11,0.4);
}

.step-progress-item.completed {
    background: rgba(16,185,129,0.2);
    border-color: #10b981;
    color: #10b981;
}

.step-progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.step-progress-line.active {
    background: linear-gradient(90deg, #10b981, rgba(255,255,255,0.1));
}

/* Expected Result Box */
.expected-result {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 12px;
    margin: 20px 0;
}

.expected-result-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16,185,129,0.2);
    border-radius: 50%;
    color: #10b981;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.expected-result-text {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.expected-result-text strong {
    color: #10b981;
}

/* Step FAQ (Collapsible) */
details.step-faq {
    margin-top: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

details.step-faq summary {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

details.step-faq summary:hover {
    color: #f3f4f6;
    background: rgba(255,255,255,0.02);
}

details.step-faq summary::before {
    content: '❓';
}

details.step-faq[open] summary {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.step-faq-content {
    padding: 16px 18px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
}

.step-faq-content p {
    margin-bottom: 12px;
}

.step-faq-content p:last-child {
    margin-bottom: 0;
}

.step-faq-content strong {
    color: #f3f4f6;
}

/* Next Step Navigation */
.next-step-nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-next-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

/* Page Bottom Navigation */
.docs-page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.docs-page-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    max-width: 45%;
}

.docs-page-nav a:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

.docs-page-nav .nav-label {
    font-size: 12px;
    color: #6b7280;
}

.docs-page-nav .nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #f3f4f6;
}

.docs-page-nav .prev-page .nav-title::before {
    content: '← ';
}

.docs-page-nav .next-page {
    text-align: right;
    margin-left: auto;
}

.docs-page-nav .next-page .nav-title::after {
    content: ' →';
}

/* Docs Sub-page Sidebar TOC */
.docs-toc {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.docs-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 16px;
}

.docs-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-toc-list li {
    margin-bottom: 8px;
}

.docs-toc-list a {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    display: block;
    padding: 6px 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.docs-toc-list a:hover {
    color: #f3f4f6;
    border-left-color: rgba(245,158,11,0.5);
}

.docs-toc-list a.active {
    color: #f59e0b;
    border-left-color: #f59e0b;
    background: rgba(245,158,11,0.05);
}

/* Quick Links Bar */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    padding: 24px 5%;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.quick-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    transition: all 0.2s;
}

.quick-link:hover {
    color: #f3f4f6;
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

/* Responsive for docs multi-page */
@media (max-width: 768px) {
    .docs-entry-grid { grid-template-columns: 1fr; }
    .step-progress { flex-wrap: wrap; gap: 8px; }
    .step-progress-line { width: 30px; }
    .docs-page-nav { flex-direction: column; gap: 12px; }
    .docs-page-nav a { max-width: 100%; }
}

/* ========== §40 Navigation Dropdown Menu ========== */

/* Dropdown Container */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-dropdown:hover > a::after {
    opacity: 0.8;
    transform: rotate(180deg);
}

/* Dropdown Panel */
.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    background: rgba(24, 24, 27, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-dropdown-icon.gold { background: rgba(245,158,11,0.12); color: #f59e0b; }
.nav-dropdown-icon.blue { background: rgba(96,165,250,0.12); color: #60a5fa; }
.nav-dropdown-icon.green { background: rgba(16,185,129,0.12); color: #10b981; }
.nav-dropdown-icon.pink { background: rgba(244,114,182,0.12); color: #f472b6; }
.nav-dropdown-icon.purple { background: rgba(192,132,252,0.12); color: #c084fc; }

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

.nav-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-title .badge-hot {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-dropdown-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Dropdown Divider */
.nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

/* Dropdown Footer */
.nav-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-dropdown-footer-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.nav-dropdown-footer-link:hover {
    color: #f59e0b;
}

/* Light mode support */
@media (prefers-color-scheme: light) {
    .nav-dropdown-panel {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    
    .nav-dropdown-item:hover {
        background: rgba(0, 0, 0, 0.04);
    }
    
    .nav-dropdown-title {
        color: #18181b;
    }
    
    .nav-dropdown-desc {
        color: #71717a;
    }
    
    .nav-dropdown-divider,
    .nav-dropdown-footer {
        border-color: rgba(0, 0, 0, 0.06);
    }
}

/* Mobile: hide dropdown on small screens */
@media (max-width: 768px) {
    .nav-dropdown-panel {
        display: none;
    }
}

/* ========== §41 OpenClaw Standalone Nav Link ========== */

/* Special highlighted nav link for OpenClaw */
.nav-link-openclaw {
    position: relative;
    background: linear-gradient(135deg, rgba(244,114,182,0.12) 0%, rgba(245,158,11,0.08) 100%);
    border: 1px solid rgba(244,114,182,0.25);
    border-radius: 20px !important;
    padding: 6px 14px !important;
    color: #f472b6 !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.nav-link-openclaw::before {
    content: '🔥';
    margin-right: 4px;
    font-size: 12px;
}

.nav-link-openclaw:hover {
    background: linear-gradient(135deg, rgba(244,114,182,0.2) 0%, rgba(245,158,11,0.15) 100%) !important;
    border-color: rgba(244,114,182,0.4) !important;
    color: #f9a8d4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244,114,182,0.25);
}

.nav-link-openclaw.active {
    background: linear-gradient(135deg, rgba(244,114,182,0.25) 0%, rgba(245,158,11,0.2) 100%) !important;
    border-color: rgba(244,114,182,0.5) !important;
    color: #fce7f3 !important;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .nav-link-openclaw {
        background: linear-gradient(135deg, rgba(244,114,182,0.1) 0%, rgba(245,158,11,0.06) 100%);
        border-color: rgba(244,114,182,0.3);
        color: #db2777 !important;
    }
    
    .nav-link-openclaw:hover {
        background: linear-gradient(135deg, rgba(244,114,182,0.18) 0%, rgba(245,158,11,0.12) 100%) !important;
        color: #be185d !important;
    }
}
