:root {
    --bg: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --primary: #8b5cf6;
    /* Violet */
    --secondary: #06b6d4;
    /* Cyan */
    --accent: #f472b6;
    /* Pink */
    --text-main: #f3f4f6;
    --text-dim: #cbd5e1;
    --text-muted: #6b7280;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

a, a:link, a:visited {
    color: inherit;
    text-decoration: none;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Navigation */
body > nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a,
.nav-links a:link,
.nav-links a:visited {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-links a.btn {
    color: #fff;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
    z-index: -1;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

/* Hero-specific gradient treatment — only on index.html hero h1 */
.hero h1 {
    background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(139, 92, 246, 0.6);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 6rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-dim);
}

/* Micro-animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

html {
    scroll-behavior: smooth;
}

/* Pricing Section */
#pricing {
    padding: 10rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    transform: scale(1.05);
}

.pricing-card .tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-dim);
}

.pricing-card .price {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: #fff;
}

.pricing-card .price span {
    font-size: 1.25rem;
    color: var(--text-dim);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 900;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: white;
}

.btn-secondary:hover {
    background: var(--border);
}

/* ── Trust Bar ──────────────────────────────────────────────────────────── */
.trust-bar {
    position: fixed;
    top: 65px;
    width: 100%;
    z-index: 99;
    background: #0b0b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.45rem 0;
    text-align: center;
    font-size: 0.78rem;
    color: #6b7280;
    letter-spacing: 0.01em;
}
.trust-bar .trust-sep { margin: 0 0.75rem; opacity: 0.4; }
.trust-bar .trust-hl { color: var(--secondary); }

/* ── Section spacing ────────────────────────────────────────────────────── */
.section { padding: 8rem 0; }
.section-sm { padding: 4rem 0; }
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-title { font-size: 3rem; font-weight: 900; color: #fff; margin-bottom: 1.25rem; line-height: 1.15; }
.section-sub { font-size: 1.15rem; color: var(--text-dim); max-width: 580px; line-height: 1.7; }

/* ── Chat Mockup ────────────────────────────────────────────────────────── */
.hero-demo {
    background: #0d0d18;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(139, 92, 246, 0.3);
    text-align: left;
}
.demo-topbar {
    background: #13131f;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.demo-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
}
.demo-line { display: flex; flex-direction: column; gap: 0.4rem; }
.demo-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    width: fit-content;
}
.user-tag { color: var(--secondary); background: rgba(6, 182, 212, 0.12); }
.ai-tag   { color: var(--primary);   background: rgba(139, 92, 246, 0.12); }
.demo-bubble {
    padding: 0.7rem 1rem;
    border-radius: 0 10px 10px 10px;
    font-size: 0.83rem;
    line-height: 1.65;
    display: block;
}
.demo-line.user .demo-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}
.demo-line.ai .demo-bubble {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.18);
    color: #e2e8f0;
}
.demo-cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: var(--primary);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── How It Works ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; padding: 2.5rem 2rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; position: relative; transition: all 0.3s; }
.step:hover { border-color: rgba(139, 92, 246, 0.3); transform: translateY(-4px); }
.step-number { font-size: 4.5rem; font-weight: 900; color: var(--primary); opacity: 0.18; line-height: 1; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; color: #fff; margin-bottom: 0.75rem; }
.step p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.step-connector { display: none; }

/* ── Feature Deep-Dives ─────────────────────────────────────────────────── */
.feature-section {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.feature-section.reverse { flex-direction: row-reverse; }
.feature-section-text { flex: 1; }
.feature-section-text h2 { font-size: 2.25rem; font-weight: 800; color: #fff; margin-bottom: 1.25rem; line-height: 1.2; }
.feature-section-text p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.feature-section-visual {
    flex: 1;
    background: #0e0e1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    min-height: 260px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #6b7280;
}
.feature-section-visual .code-line { color: #a5f3fc; }
.feature-section-visual .code-comment { color: #4b5563; }
.feature-section-visual .code-keyword { color: #c4b5fd; }
.feature-section-visual .code-string { color: #86efac; }

/* ── Editor Strip ───────────────────────────────────────────────────────── */
.editor-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; padding: 2rem 0; }
.editor-badge {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 99px; padding: 0.55rem 1.25rem;
    font-size: 0.85rem; color: var(--text-dim);
    transition: all 0.2s;
}
.editor-badge.live { border-color: rgba(6, 182, 212, 0.35); color: #e5e7eb; }
.editor-badge.live:hover { border-color: var(--secondary); }
.editor-badge.soon { opacity: 0.45; font-style: italic; }
.editor-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }
.editor-badge.soon .badge-dot { background: #6b7280; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; background: none; border: none;
    color: var(--text-main); font-family: var(--font-sans);
    font-size: 1.05rem; font-weight: 600; text-align: left;
    padding: 1.5rem 0; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--secondary); }
.faq-arrow { font-size: 1rem; color: var(--text-dim); transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; color: var(--text-dim); line-height: 1.75; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.5rem; }

/* ── Security Banner ────────────────────────────────────────────────────── */
.security-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin: 2rem 0;
}
.security-banner h3 { font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
.security-banner p { color: var(--text-dim); font-size: 0.9rem; }
.security-points { display: flex; flex-direction: column; gap: 0.6rem; }
.security-point { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--text-dim); }
.security-point .sp-icon { color: var(--secondary); font-size: 0.9rem; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.cta-section { text-align: center; padding: 8rem 0; }
.cta-section h2 { font-size: 3.5rem; font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.cta-section p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 3rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding: 5rem 0 3rem;
}
.footer-brand .logo-area { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6b7280; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a,
.footer-col a,
.footer-col a:link,
.footer-col a:visited { color: var(--text-dim); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; display: block; margin-bottom: 0.7rem; }
.footer-col ul li a:hover,
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ── Docs Layout ────────────────────────────────────────────────────────── */
.docs-layout { display: flex; padding-top: 110px; min-height: 100vh; }
.docs-sidebar {
    width: 260px; flex-shrink: 0; align-self: flex-start;
    position: sticky; top: 110px;
    height: calc(100vh - 140px); overflow-y: auto;
    padding: 1rem 1.5rem 2rem 1.5rem;
    border-right: 1px solid var(--border);
    background: #0b0b14;
}
.docs-sidebar > nav::after {
    content: '';
    display: block;
    height: 3rem;
}
.docs-content { flex: 1; padding: 3rem 4rem; max-width: 820px; }
.docs-onthispage { width: 220px; flex-shrink: 0; align-self: flex-start; position: sticky; top: 110px; height: calc(100vh - 110px); overflow-y: auto; padding: 2rem 1.5rem; }
.docs-onthispage h4 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6b7280; margin-bottom: 0.75rem; }
.docs-content h1 { font-size: 2.5rem; color: #fff; margin-bottom: 0.5rem; font-weight: 800; }
.docs-content h1[id], .docs-content h2[id] { scroll-margin-top: 130px; }
.docs-content .docs-lead { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 2.5rem; line-height: 1.7; }
.docs-content h2 { font-size: 1.6rem; color: #fff; margin: 3.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-weight: 700; }
.docs-content h3 { font-size: 1.15rem; color: #e5e7eb; margin: 2rem 0 0.75rem; font-weight: 600; }
.docs-content p { color: #d1d5db; margin-bottom: 1rem; line-height: 1.8; }
.docs-content ul, .docs-content ol { color: #d1d5db; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.docs-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.docs-content a { color: var(--secondary); text-decoration: none; }
.docs-content a:hover { text-decoration: underline; }
.docs-content code { background: rgba(255,255,255,0.08); padding: 0.15em 0.4em; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.875em; color: #a5f3fc; }
.docs-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.callout { border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 3px solid; }
.callout-tip { background: rgba(6, 182, 212, 0.07); border-color: var(--secondary); }
.callout-warning { background: rgba(251, 191, 36, 0.07); border-color: #fbbf24; }
.callout-note { background: rgba(139, 92, 246, 0.07); border-color: var(--primary); }
.callout-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 0.4rem; }
.callout-tip .callout-label { color: var(--secondary); }
.callout-warning .callout-label { color: #fbbf24; }
.callout-note .callout-label { color: var(--primary); }
.callout p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.code-block { background: #0d0d1a; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
.code-block code { font-family: 'Courier New', monospace; font-size: 0.85rem; color: #a5f3fc; line-height: 1.8; white-space: pre; }

/* ── Changelog Timeline ─────────────────────────────────────────────────── */
.timeline { position: relative; padding: 4rem 0; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-entry { display: flex; gap: 0; margin-bottom: 5rem; align-items: flex-start; position: relative; }
.timeline-entry:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { flex: 1; padding: 0 3rem; }
.timeline-entry:nth-child(even) .timeline-content { text-align: right; }
.timeline-dot-wrap { flex-shrink: 0; display: flex; justify-content: center; width: 24px; position: relative; z-index: 1; margin-top: 0.3rem; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3); }
.timeline-version { display: inline-block; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--primary); font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 99px; margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.timeline-date { font-size: 0.78rem; color: #6b7280; margin-bottom: 0.75rem; }
.timeline-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.timeline-content ul { list-style: none; padding: 0; }
.timeline-content ul li { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 0.4rem; padding-left: 1.25rem; position: relative; }
.timeline-content ul li::before { content: '—'; position: absolute; left: 0; color: #4b5563; }
.timeline-entry:nth-child(even) .timeline-content ul li { padding-left: 0; padding-right: 1.25rem; text-align: right; }
.timeline-entry:nth-child(even) .timeline-content ul li::before { left: auto; right: 0; }

/* ── Security Page ──────────────────────────────────────────────────────── */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; }
.security-commitment { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.3s; }
.security-commitment:hover { border-color: rgba(139, 92, 246, 0.3); transform: translateY(-3px); }
.security-commitment .sc-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.security-commitment h3 { font-size: 1rem; color: #fff; margin-bottom: 0.5rem; font-weight: 600; }
.security-commitment p { color: var(--text-dim); font-size: 0.875rem; line-height: 1.65; }
.data-flow-table { width: 100%; border-collapse: collapse; margin: 2rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.data-flow-table th { background: rgba(255, 255, 255, 0.04); padding: 0.875rem 1.25rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; border-bottom: 1px solid var(--border); }
.data-flow-table td { padding: 0.875rem 1.25rem; color: var(--text-dim); font-size: 0.875rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.data-flow-table tr:last-child td { border-bottom: none; }
.data-flow-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .docs-onthispage { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .trust-bar { display: none; }
    .docs-sidebar { display: none; }
    .docs-content { padding: 2rem 1rem; }
    .steps { grid-template-columns: 1fr; }
    .feature-section { flex-direction: column !important; gap: 3rem; }
    .security-grid { grid-template-columns: 1fr; }
    .security-banner { flex-direction: column; }
    .timeline::before { left: 0; }
    .timeline-entry { flex-direction: column !important; gap: 1rem; }
    .timeline-entry:nth-child(even) .timeline-content { text-align: left; }
    .timeline-entry:nth-child(even) .timeline-content ul li { padding-left: 1.25rem; padding-right: 0; text-align: left; }
    .timeline-entry:nth-child(even) .timeline-content ul li::before { left: 0; right: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    h1 { font-size: 3rem; }
    .section-title { font-size: 2.25rem; }
    .cta-section h2 { font-size: 2.5rem; }
}

/* ── Docs: sidebar nav (used in docs.html) ──────────────────────────────── */
.docs-nav-group { margin-bottom: 1.25rem; }
.docs-nav-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6b7280; margin-bottom: 0.75rem; padding: 0 0.5rem; font-weight: 700; display: block; }
.docs-nav-link { display: block; padding: 0.38rem 0.75rem; border-radius: 6px; color: var(--text-dim); text-decoration: none; font-size: 0.875rem; transition: all 0.15s; margin-bottom: 1px; }
.docs-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.docs-nav-link.active { color: var(--primary); background: rgba(139, 92, 246, 0.1); }

/* ── Docs: "on this page" nav ───────────────────────────────────────────── */
.docs-otp-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6b7280; margin-bottom: 0.75rem; font-weight: 700; display: block; }
.otp-link { display: block; font-size: 0.8rem; color: var(--text-dim); text-decoration: none; padding: 0.3rem 0.75rem; transition: color 0.15s; border-left: 2px solid transparent; margin-bottom: 2px; }
.otp-link:hover { color: #fff; }
.otp-link.active { color: var(--primary); border-left-color: var(--primary); }
.otp-link.otp-sub { font-size: 0.75rem; padding-left: 1.5rem; }

/* ── Docs: numbered steps list ──────────────────────────────────────────── */
.docs-steps { color: #d1d5db; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.docs-steps li { margin-bottom: 0.75rem; line-height: 1.7; }

/* ── Changelog: meta row ────────────────────────────────────────────────── */
.timeline-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.timeline-content h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; margin-top: 0; }

/* ── Security page: icon ────────────────────────────────────────────────── */
.security-icon { font-size: 1.75rem; margin-bottom: 1rem; }

/* ── Data flow table (when class applied to wrapper div) ────────────────── */
.data-flow-table table { width: 100%; border-collapse: collapse; }
.data-flow-table { overflow: hidden; border-radius: 12px; border: 1px solid var(--border); margin: 2rem 0; }
.data-flow-table th { background: rgba(255, 255, 255, 0.04); padding: 0.875rem 1.25rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; border-bottom: 1px solid var(--border); }
.data-flow-table td { padding: 0.875rem 1.25rem; color: var(--text-dim); font-size: 0.875rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.data-flow-table tr:last-child td { border-bottom: none; }
.data-flow-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ── Custom Webkit Scrollbars for Sidebars ──────────────────────────────── */
.docs-sidebar::-webkit-scrollbar,
.docs-onthispage::-webkit-scrollbar {
    width: 10px;
}
.docs-sidebar::-webkit-scrollbar-track,
.docs-onthispage::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}
.docs-sidebar::-webkit-scrollbar-thumb,
.docs-onthispage::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 10px;
    border: 2px solid #0b0b14;
}
.docs-sidebar::-webkit-scrollbar-thumb:hover,
.docs-onthispage::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}