/* ============================================================
   CobaltPDF — Global Design Tokens & Shared Utilities
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
    --c-bg:      #080b11;
    --c-surface: #0d1117;
    --c-raised:  #111827;
    --c-border:  rgba(255,255,255,.07);
    --c-cyan:    #38bdf8;
    --c-indigo:  #818cf8;
    --c-purple:  #c084fc;
    --c-green:   #4ade80;
    --c-text:    #f1f5f9;
    --c-muted:   #94a3b8;
    --c-dim:     #475569;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Cascadia Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Layout ───────────────────────────────────────────────── */
.page-container { flex: 1 0 auto; }
.segment  { padding: 40px; }
.segment1 { padding-top: 67px; }

.home-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Focus rings (dark bg) ────────────────────────────────── */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(56, 189, 248, 0.25),
                0 0 0 0.25rem rgba(56, 189, 248, 0.5);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Gradient text utility ────────────────────────────────── */
.grad-text {
    background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-indigo) 60%, var(--c-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}
.text-gradient {
    background-image: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* ── Section eyebrow pill ─────────────────────────────────── */
.section-eyebrow,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .85rem;
    background: rgba(56,189,248,.08);
    border: 1px solid rgba(56,189,248,.2);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--c-cyan);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.25rem;
}

/* ── Shared section headings ──────────────────────────────── */
.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--c-text);
    margin-bottom: 1rem;
}
.section-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--c-muted);
    max-width: 560px;
}

/* ── Code window (shared) ─────────────────────────────────── */
.code-window {
    position: relative;
    z-index: 1;
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}
.code-window-titlebar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.25rem;
    background: rgba(255,255,255,.025);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.titlebar-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.titlebar-label {
    margin-left: .75rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: color-mix(in srgb, var(--c-dim), white 80%);
}
.code-window pre {
    margin: 0;
    padding: 1.75rem 2rem;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.75;
    overflow-x: auto;
    text-align: left;
}

/* code-card variant (Features page) */
.code-card {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.code-card-header {
    background: rgba(255,255,255,.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-card-filename {
    color: color-mix(in srgb, var(--c-dim), white 80%);
    font-size: 0.78rem;
    margin-left: 8px;
}
.traffic-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-card pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: .85rem;
    line-height: 1.7;
    color: #e2e8f0;
    text-align: left;
}
.code-card code { background: none; padding: 0; color: inherit; }

/* ── Syntax highlight colours (shared) ────────────────────── */
.hl-cm  { color: #475569; font-style: italic; }
.hl-kw  { color: #818cf8; }
.hl-cls { color: #38bdf8; }
.hl-mth { color: #c4b5fd; }
.hl-str { color: #86efac; }
.hl-num { color: #fb923c; }
.hl-pln { color: #cbd5e1; }

/* ── Shared button styles ─────────────────────────────────── */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #080b11 !important;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: .95rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 0 30px rgba(56,189,248,.3);
    animation: ctaGlow 3s ease-in-out infinite;
}
.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(56,189,248,.5);
}
.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    pointer-events: none;
}
.btn-hero-primary:hover::before {
    animation: shineSlide .55s ease forwards;
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    background: transparent;
    color: var(--c-muted) !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.btn-hero-ghost:hover {
    border-color: rgba(56,189,248,.4);
    color: var(--c-text) !important;
    background: rgba(56,189,248,.04);
}

.btn-primary-grad {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    color: #fff !important;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 20px rgba(56,189,248,.3);
}
.btn-primary-grad:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(56,189,248,.45);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: transparent;
    color: #94a3b8 !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
    transition: all .25s ease;
}
.btn-ghost:hover {
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.04);
}

/* ── Feature card (shared) ────────────────────────────────── */
.feat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.feat-icon.cyan   { background: rgba(56,189,248,.12);  border: 1px solid rgba(56,189,248,.25);  color: #38bdf8; }
.feat-icon.indigo { background: rgba(129,140,248,.12); border: 1px solid rgba(129,140,248,.25); color: #818cf8; }
.feat-icon.purple { background: rgba(192,132,252,.12); border: 1px solid rgba(192,132,252,.25); color: #c084fc; }
.feat-icon.green  { background: rgba(74,222,128,.1);   border: 1px solid rgba(74,222,128,.2);   color: #4ade80; }

/* ── Feature card (shared) ───────────────────────────────── */
.feat-card {
    background: rgba(17,24,39,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}

.feat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(56,189,248,.05), transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.feat-card:hover {
    border-color: rgba(56,189,248,.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}

.feat-card:hover::after { opacity: 1; }

/* ── Check list (shared) ──────────────────────────────────── */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .97rem;
    color: var(--c-muted);
    line-height: 1.5;
}
.check-list li svg { margin-top: .15rem; flex-shrink: 0; }

/* ── Shared animations ────────────────────────────────────── */
@keyframes borderSpin {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}
@keyframes glowPulse {
    0%, 100% { opacity: .55; }
    50%       { opacity: 1;   }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shineSlide {
    from { left: -80%; }
    to   { left: 160%; }
}
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(56,189,248,.25); }
    50%      { box-shadow: 0 0 40px rgba(56,189,248,.45), 0 0 80px rgba(129,140,248,.15); }
}

/* ── Scroll-reveal ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

/* ── Selection colour ─────────────────────────────────────── */
::selection {
    background: rgba(56,189,248,.25);
    color: var(--c-text);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: rgba(56,189,248,.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,.4); }

/* ── Code window copy button ─────────────────────────── */
.code-copy-btn {
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: .25rem .55rem;
    color: var(--c-dim);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-family: var(--font-sans);
    transition: color .2s, border-color .2s;
}
.code-copy-btn:hover {
    color: var(--c-text);
    border-color: rgba(255,255,255,.25);
}

/* ── Legal page styles (shared by Privacy & Terms) ───── */
.legal-hero {
    background: linear-gradient(135deg, #0B0E14 0%, #0f1520 100%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(56,189,248,.12);
}
.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: .5rem;
}
.legal-hero .last-updated {
    color: #64748b;
    font-size: .9rem;
}
.legal-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    color: #94a3b8;
    line-height: 1.8;
}
.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 2.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(56,189,248,.1);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p  { margin-bottom: 1rem; }
.legal-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ul li { margin-bottom: .4rem; }
.legal-body a  { color: #38bdf8; text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-callout {
    background: rgba(56,189,248,.07);
    border: 1px solid rgba(56,189,248,.18);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: #cbd5e1;
    font-size: .93rem;
}
.legal-callout strong { color: #38bdf8; }

/* ── Navbar (frosted glass navigation) ────────────────── */
.glass-nav {
    background: rgba(15, 23, 42, .6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1030;
    padding: .75rem 0;
    transition: all .3s ease;
}

/* brand */
.glass-nav .navbar-brand {
    font-size: 1.35rem;
    color: #fff !important;
    letter-spacing: -.5px;
}
.glass-nav .brand-accent {
    color: #22d3ee;
    font-weight: 800;
}

/* nav links — all */
.glass-nav .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: .95rem;
    margin: 0 .5rem;
    position: relative;
    transition: color .2s ease;
}
.glass-nav .nav-link:hover {
    color: #22d3ee !important;
}
.glass-nav .nav-link.active {
    color: #22d3ee !important;
}

/* hover underline — main nav links only (exclude dropdown toggle & right-side) */
.glass-nav .navbar-nav.flex-grow-1 .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transition: width .3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}
.glass-nav .navbar-nav.flex-grow-1 .nav-link:not(.dropdown-toggle):hover::after,
.glass-nav .navbar-nav.flex-grow-1 .nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
}

/* mobile toggler */
.glass-nav .navbar-toggler {
    border: 1px solid rgba(255,255,255,.1);
}
.glass-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* NuGet link — subtle styling */
.glass-nav .navbar-nav.ms-auto .nav-link {
    font-size: .88rem;
    color: #94a3b8 !important;
}
.glass-nav .navbar-nav.ms-auto .nav-link:hover {
    color: #22d3ee !important;
}

/* licence button in nav */
.nav-licence-btn {
    background: linear-gradient(90deg, #38bdf8, #818cf8) !important;
    color: #fff !important;
    border-radius: 50px !important;
    border: none !important;
    font-size: .85rem;
    transition: all .25s ease;
    box-shadow: 0 2px 10px rgba(56,189,248,.2);
    text-decoration: none;
}
.nav-licence-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(56,189,248,.35);
    color: #fff !important;
}

/* ── Docs dropdown menu ─────────────────────────────── */
.glass-nav .dropdown-menu {
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .5rem 0;
    margin-top: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    min-width: 200px;
}

.glass-nav .dropdown-item {
    color: #cbd5e1;
    font-size: .9rem;
    font-weight: 500;
    padding: .55rem 1.25rem;
    transition: all .2s ease;
}
.glass-nav .dropdown-item:hover,
.glass-nav .dropdown-item:focus {
    color: #22d3ee;
    background: rgba(56,189,248,.08);
}
.glass-nav .dropdown-item.active,
.glass-nav .dropdown-item:active {
    color: #22d3ee;
    background: rgba(56,189,248,.12);
}

/* dropdown toggle caret */
.glass-nav .dropdown-toggle::after {
    border-top-color: currentColor;
    vertical-align: .255em;
    margin-left: .4rem;
    transition: transform .2s ease;
}

/* desktop: open dropdown on hover */
@media (min-width: 576px) {
    .glass-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .glass-nav .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* mobile: collapsed navbar fixes */
@media (max-width: 575px) {
    /* dropdown expands inline */
    .glass-nav .dropdown-menu {
        background: rgba(15, 23, 42, .8);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding-left: 1rem;
    }

    /* hide hover underlines in stacked mobile nav */
    .glass-nav .navbar-nav.flex-grow-1 .nav-link:not(.dropdown-toggle)::after {
        display: none;
    }

    /* separate right-side items from main nav */
    .glass-nav .navbar-nav.ms-auto {
        margin-top: .75rem;
        padding-top: .75rem;
        border-top: 1px solid rgba(255,255,255,.06);
        align-items: flex-start !important;
    }

    /* hide NuGet link on mobile */
    .glass-nav .navbar-nav.ms-auto .nav-item:not(.ms-2) {
        display: none;
    }

    /* remove left margin on Get Licence in mobile */
    .glass-nav .navbar-nav.ms-auto .nav-item.ms-2 {
        margin-left: 0 !important;
        margin-top: 0;
    }

    /* full-width licence button on mobile */
    .glass-nav .nav-licence-btn {
        display: inline-block;
        padding: .45rem 1.25rem !important;
    }
}

/* ── Contact form ────────────────────────────────────── */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    background: var(--c-surface);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .72rem 1rem;
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: .9rem;
    line-height: 1.5;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: inset 0 1px 4px rgba(0,0,0,.35);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--c-dim);
    opacity: 1;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: rgba(255,255,255,.2);
    background: var(--c-raised);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(56,189,248,.5);
    box-shadow: inset 0 1px 4px rgba(0,0,0,.35), 0 0 0 3px rgba(56,189,248,.12);
    background: var(--c-raised);
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form select option {
    background: var(--c-raised);
    color: var(--c-text);
    padding: .5rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* ── Guide pages — shared layout & components ────────── */

.guides-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

.guides-nav {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 8px;
}

.guides-nav-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-dim);
    margin-bottom: 12px;
    padding-left: 14px;
}

.guides-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guides-nav-link {
    display: block;
    padding: 8px 14px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--c-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all .2s ease;
    line-height: 1.35;
}

.guides-nav-link:hover {
    color: var(--c-text);
    background: rgba(255,255,255,.03);
}

.guides-nav-link.active {
    color: var(--c-cyan);
    border-left-color: var(--c-cyan);
    background: rgba(56,189,248,.06);
}

.guides-nav::-webkit-scrollbar       { width: 3px; }
.guides-nav::-webkit-scrollbar-track  { background: transparent; }
.guides-nav::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.08); border-radius: 2px; }

.guides-content { min-width: 0; }

.guide-section {
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    scroll-margin-top: 100px;
}

.guide-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guide-title {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-text);
    margin: .5rem 0 .6rem;
}

.guide-subtitle {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--c-text);
    margin: 2rem 0 .75rem;
}

.guide-desc {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--c-muted);
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.guide-desc code,
.guide-note code,
.guide-list code {
    font-family: var(--font-mono);
    font-size: .82em;
    background: rgba(56,189,248,.1);
    color: #38bdf8;
    padding: .1rem .3rem;
    border-radius: 3px;
}

.guide-desc strong { color: var(--c-text); font-weight: 600; }

.guide-list {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--c-muted);
    margin-bottom: 1.5rem;
    max-width: 680px;
    padding-left: 1.5rem;
}

.guide-list li { margin-bottom: .4rem; }
.guide-list a  { color: var(--c-cyan); text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }

.guide-note {
    margin-top: 1rem;
    padding: 14px 18px;
    background: rgba(56,189,248,.05);
    border: 1px solid rgba(56,189,248,.12);
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.55;
    color: #94a3b8;
}

.guide-note strong { color: var(--c-cyan); }

.guide-warning {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 14px 18px;
    background: rgba(251,146,60,.05);
    border: 1px solid rgba(251,146,60,.2);
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.55;
    color: #94a3b8;
}

.guide-warning strong { color: #fb923c; }

.guide-warning code {
    font-family: var(--font-mono);
    font-size: .82em;
    background: rgba(251,146,60,.1);
    color: #fb923c;
    padding: .1rem .3rem;
    border-radius: 3px;
}

.guide-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--c-dim);
    text-decoration: none;
    transition: color .2s;
    margin-bottom: .25rem;
}

.guide-breadcrumb:hover { color: var(--c-cyan); }

.guide-breadcrumb svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ── Guide index list ─────────────────────────────────── */

.guides-index {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 100px;
    list-style: none;
}

.guides-index-item {
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.guides-index-item:last-child { border-bottom: none; }

.guides-index-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    text-decoration: none;
    color: inherit;
    transition: color .15s;
}

.guides-index-link:hover { color: var(--c-cyan); }

.guides-index-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
}

.guides-index-link:hover .guides-index-title { color: var(--c-cyan); }

.guides-index-desc {
    font-size: .84rem;
    color: var(--c-dim);
    white-space: nowrap;
}

/* ── Guide step numbers ──────────────────────────────── */

.guide-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(56,189,248,.1);
    border: 1px solid rgba(56,189,248,.2);
    color: var(--c-cyan);
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 10px;
    vertical-align: middle;
}

/* ── Guide responsive ────────────────────────────────── */

@media (max-width: 991px) {
    .guides-layout {
        display: block;
        padding: 0 0 80px;
    }

    .guides-nav {
        position: sticky;
        top: 58px;
        z-index: 100;
        max-height: none;
        overflow-y: visible;
        overflow-x: auto;
        padding: 12px 16px;
        background: rgba(8,11,17,.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .guides-nav-title { display: none; }

    .guides-nav-list {
        flex-direction: row;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .guides-nav-link {
        white-space: nowrap;
        padding: 6px 14px;
        border-left: none;
        border-radius: 20px;
        font-size: .78rem;
        border: 1px solid rgba(255,255,255,.08);
    }

    .guides-nav-link.active {
        border-color: rgba(56,189,248,.3);
        background: rgba(56,189,248,.1);
        border-left-color: rgba(56,189,248,.3);
    }

    .guides-content { padding: 32px 20px 0; }

    .guide-section {
        scroll-margin-top: 130px;
        padding-bottom: 36px;
        margin-bottom: 36px;
    }
}

@media (max-width: 575px) {
    .guides-content { padding: 24px 16px 0; }
    .guide-title    { font-size: 1.15rem; }
    .guide-subtitle { font-size: .95rem; }
    .guides-index   { padding: 32px 16px 80px; }
}

/* ── Footer sticky ───────────────────────────────────── */
.cobalt-footer {
    flex-shrink: 0;
}

/* ── Mobile responsiveness ───────────────────────────── */
@media (max-width: 767px) {
    .code-window pre,
    .code-card pre {
        white-space: pre-wrap;
        word-break: break-word;
        padding: 1.25rem 1rem;
        font-size: .8rem;
    }
}
