/* ==========================================================================
   Sellio Documentation — Design System
   Brand-aligned, mobile-first, sidebar + reading progress
   ========================================================================== */

:root {
    --primary: #695877;
    --primary-hover: #52455d;
    --primary-soft: rgba(105, 88, 119, 0.12);
    --primary-glow: rgba(105, 88, 119, 0.32);
    --secondary-color: #2e2438;
    --accent-color: #ec590b;
    --background-dark: #2e2438;
    --bg-main: #ffffff;
    --bg-sidebar: #f7f5fa;
    --bg-subtle: #f5f2f8;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --code-bg: #2e2438;
    --code-text: #f8fafc;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-info: #3848c8;
    --accent-danger: #ef4444;
    --radius-card: 20px;
    --radius-control: 12px;
    --shadow-card: 0 16px 40px -12px rgba(105, 88, 119, 0.22);
    --sidebar-width: 288px;
    --mobile-bar-height: 60px;
    --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--mobile-bar-height) + 24px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.65;
    background:
        radial-gradient(circle at 0% 0%, rgba(105, 88, 119, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(46, 36, 56, 0.04) 0%, transparent 38%),
        var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.65rem 1rem;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.skip-link:focus {
    top: 1rem;
}

/* Mobile top bar */
.doc-mobile-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-bar-height);
    z-index: 1100;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.doc-menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.doc-menu-btn:hover {
    border-color: var(--primary);
    color: var(--primary-hover);
}

.doc-mobile-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    flex: 1;
}

.doc-mobile-demo {
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-hover);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(105, 88, 119, 0.2);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Layout */
.doc-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.75rem 1.25rem 1.5rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.logo-container {
    margin-bottom: 1.75rem;
    padding: 0 0.35rem;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 10px 24px var(--primary-glow);
}

.logo-container img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
}

.logo-sub {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar nav {
    flex: 1;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    padding-left: 0.55rem;
}

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

.nav-item a {
    display: block;
    padding: 0.55rem 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-item a:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.nav-item.active a {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px var(--primary-glow);
}

.sidebar-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.sidebar-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-footer-links a:hover {
    color: var(--primary-hover);
    background: var(--primary-soft);
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 3rem clamp(1.5rem, 5vw, 5rem) 4rem;
    max-width: 920px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f89d6d 0%, var(--accent-color) 55%, #b94609 100%);
    transition: width 0.1s linear;
}

.doc-section {
    scroll-margin-top: calc(var(--mobile-bar-height) + 20px);
}

.doc-section + .doc-section {
    margin-top: 1rem;
}

/* Hero */
.doc-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .doc-hero {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
}

.version-badge {
    background: rgba(236, 89, 11, 0.12);
    color: #b14308;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid rgba(236, 89, 11, 0.28);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary);
    text-wrap: balance;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 3.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.75rem 0 0.85rem;
    color: var(--primary);
}

h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.15rem;
    color: #475569;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
}

.text-primary { color: var(--primary-hover) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--accent-success) !important; }
.text-info { color: var(--accent-info) !important; }
.text-warning { color: var(--accent-warning) !important; }

.small { font-size: 0.9rem; }
.smallest { font-size: 0.82rem; }
.fw-bold { font-weight: 700; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.85rem !important; }
.mb-4 { margin-bottom: 1.25rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mt-3 { margin-top: 0.85rem !important; }
.mt-5 { margin-top: 2.5rem !important; }

.feature-card h4 i,
.alert-box h3 i {
    margin-right: 0.4rem;
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.85rem; }
.h-100 { height: 100%; }

/* Panels */
.alert-box {
    padding: 1.5rem 1.65rem;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, rgba(105, 88, 119, 0.08), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(105, 88, 119, 0.22);
    margin-bottom: 2rem;
}

.alert-box h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-hover);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.demo-card {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
    border-color: rgba(105, 88, 119, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.demo-card strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.demo-card code {
    display: block;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.demo-card a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-hover);
    text-decoration: none;
}

.demo-card a:hover {
    text-decoration: underline;
}

.demo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.demo-links a {
    color: var(--primary-hover);
    font-weight: 600;
    text-decoration: none;
}

.demo-links a:hover {
    text-decoration: underline;
}

.callout {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-control);
    margin: 1.25rem 0;
    border-left: 4px solid;
}

.callout p {
    margin-bottom: 0;
}

.callout-info {
    background: var(--primary-soft);
    border-color: var(--primary);
}

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

/* Code */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--bg-subtle);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.86em;
    color: var(--primary-hover);
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    overflow-x: auto;
    margin: 1.15rem 0;
    font-size: 0.86rem;
    line-height: 1.65;
    border: 1px solid #1e293b;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Grids & cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.doc-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

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

.feature-card {
    padding: 1.35rem 1.45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(105, 88, 119, 0.35);
    box-shadow: var(--shadow-card);
}

.feature-card-accent {
    position: relative;
    border-left: 4px solid transparent;
    overflow: hidden;
}

.feature-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent-color));
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Table */
.table-premium {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.table-premium th,
.table-premium td {
    text-align: left;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
}

.table-premium th {
    background: var(--bg-sidebar);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

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

.table-premium tbody tr:hover {
    background: rgba(105, 88, 119, 0.04);
}

/* Badges & buttons */
.badge-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.35rem;
}

.badge-success-light {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-success);
}

.badge-info-light {
    background: rgba(56, 72, 200, 0.12);
    color: var(--accent-info);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-hover);
    text-decoration: none;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Visual stack */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    animation: revealUp 0.7s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-stack {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 340px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

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

.card-mock {
    position: absolute;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-main { z-index: 3; width: 100%; height: 100%; top: 0; left: 0; }
.card-mid { z-index: 2; width: 94%; height: 94%; top: -20px; right: -20px; opacity: 0.75; }
.card-bottom { z-index: 1; width: 88%; height: 88%; top: -40px; right: -40px; opacity: 0.45; }

.mock-chrome {
    height: 34px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.mock-dot-red { background: #ff5f56; }
.mock-dot-amber { background: #ffbd2e; }
.mock-dot-green { background: #27c93f; }

.mock-body {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    height: calc(100% - 34px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mock-body h3 {
    color: #fff;
    margin-bottom: 0.45rem;
}

.mock-body p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Typewriter */
.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background-color: var(--primary);
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 0.7rem 1.15rem;
    border: none;
    background: none;
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab-btn:hover {
    color: var(--primary-hover);
    background: var(--primary-soft);
}

.tab-btn.active {
    color: var(--primary-hover);
    background: var(--primary-soft);
    border-bottom-color: var(--primary);
}

.tab-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    vertical-align: middle;
    opacity: 0.85;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Steps */
.step-item {
    display: flex;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.88rem;
    z-index: 2;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.step-item::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 34px;
    bottom: -28px;
    width: 2px;
    background: var(--border);
    z-index: 1;
}

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

.step-content {
    flex-grow: 1;
    padding-bottom: 0.5rem;
}

.step-content h4 {
    margin-bottom: 0.35rem;
}

/* Footer */
.doc-footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1030;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
    }

    .reading-progress {
        left: 0;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: calc(var(--mobile-bar-height) + 16px);
    }

    .doc-mobile-bar {
        display: flex;
    }

    .sidebar {
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: var(--shadow-card);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: calc(var(--mobile-bar-height) + 1.5rem) 1.25rem 3rem;
        max-width: none;
    }

    .reading-progress {
        top: var(--mobile-bar-height);
    }

    h1 {
        font-size: 2rem;
    }

    .image-stack {
        height: 280px;
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* Utilities */
.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.req-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.req-grid li {
    font-size: 0.88rem;
    color: #475569;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.section-heading > span {
    flex: 1 1 auto;
}

.section-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.section-heading:hover .section-anchor,
.section-anchor:focus-visible {
    opacity: 1;
}

.section-anchor:hover,
.section-anchor:focus-visible {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.demo-cred-row {
    margin-bottom: 0.35rem;
}

.demo-cred-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.demo-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(105, 88, 119, 0.2);
}

.code-wrap {
    position: relative;
    margin: 1.15rem 0;
}

.code-wrap pre {
    margin: 0;
}

.code-copy-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.code-copy-btn.is-copied {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.callout-danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: var(--accent-danger);
}

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

.checklist li {
    position: relative;
    padding-left: 1.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    color: #475569;
}

.checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-hover);
    font-size: 0.75rem;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.doc-menu-btn:focus-visible,
.tab-btn:focus-visible,
.back-to-top:focus-visible,
.code-copy-btn:focus-visible {
    outline-color: var(--primary-hover);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .image-stack,
    .seeding-success-panel,
    .tab-content.active,
    .feature-card,
    .back-to-top {
        animation: none !important;
        transition: none !important;
    }

    .cursor-blink {
        animation: none;
        opacity: 1;
    }
}
