/* dbabrain.dev landing page: Bootstrap 5, Bootstrap Icons, Be Vietnam Pro (all served from
   assets/vendor/), a deep blue with a teal accent; light and dark through data-bs-theme. */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(vendor/be-vietnam-pro/be-vietnam-pro-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(vendor/be-vietnam-pro/be-vietnam-pro-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(vendor/be-vietnam-pro/be-vietnam-pro-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(vendor/be-vietnam-pro/be-vietnam-pro-latin-700-normal.woff2) format('woff2'); }

:root, [data-bs-theme=light] {
    --brand: #2453d6;
    --brand-dark: #1a3fa8;
    --brand-soft: #eaf0ff;
    --accent: #0d9488;
    --ink: #172033;
    --muted: #64708a;
    --line: #e3e7ef;
    --bg: #f5f7fb;
    --card: #fff;
    --code-bg: #0f172a;
    --code-ink: #e2e8f0;
    --bs-body-font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-link-color-rgb: 36, 83, 214;
    --bs-link-hover-color-rgb: 26, 63, 168;
    --bs-border-color: var(--line);
}
[data-bs-theme=dark] {
    --brand: #6b8cff;
    --brand-dark: #93abff;
    --brand-soft: #1b2440;
    --accent: #2dd4bf;
    --ink: #e5e9f2;
    --muted: #9aa4b8;
    --line: #2a3347;
    --bg: #0c111d;
    --card: #141b2b;
    --code-bg: #070b14;
    --code-ink: #dbe3f0;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-link-color-rgb: 147, 171, 255;
    --bs-link-hover-color-rgb: 190, 205, 255;
    --bs-border-color: var(--line);
}
html { scroll-padding-top: 4.5rem; }
body { background: var(--bg); font-size: 16px; overflow-x: hidden; }
a { text-decoration: none; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }
code { color: var(--accent); font-size: .88em; }
.text-muted-2 { color: var(--muted) !important; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
[data-bs-theme=dark] .btn-brand, [data-bs-theme=dark] .btn-brand:hover { color: #0c111d; }

/* The bar on top. */
.site-nav { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 1.05rem; }
.site-nav .nav-link { color: var(--muted); font-weight: 500; font-size: .93rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.theme-toggle { color: var(--muted); font-size: 1.15rem; }

/* The first screen. */
.hero { border-radius: 1.25rem; background: linear-gradient(125deg, #0f1b3d 0%, #1d3fb0 55%, #0e7c86 100%); color: #fff; padding: 3rem 2rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .14), transparent 45%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
@media (max-width: 575.98px) { .hero { padding: 2rem 1.25rem; border-radius: 1rem; } .contact { padding: 2rem 1.25rem; } }
.hero h1 { font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); opacity: .95; }
.hero p { max-width: 40rem; }
.hero .pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 2rem; padding: .25rem .8rem; font-size: .85rem; }
.hero .btn-light { color: #1a3fa8; font-weight: 600; }
.hero .btn-outline-light { font-weight: 500; }
.hero .watermark { position: absolute; right: -2rem; bottom: -3rem; font-size: 15rem; opacity: .07; transform: rotate(-12deg); z-index: 0; }
.install { display: flex; align-items: center; gap: .5rem; background: rgba(5, 10, 25, .45); border: 1px solid rgba(255, 255, 255, .2); border-radius: .75rem; padding: .55rem .6rem .55rem 1rem; max-width: 24rem; }
.install code { color: #fff; font-size: 1rem; flex-grow: 1; white-space: nowrap; overflow-x: auto; }
.install code::before { content: '$ '; color: #7dd3c8; }
.btn-copy { color: inherit; border: 0; background: transparent; padding: .2rem .45rem; border-radius: .4rem; }
.btn-copy:hover { background: rgba(255, 255, 255, .14); }
.terminal { background: rgba(5, 10, 25, .6); border: 1px solid rgba(255, 255, 255, .16); border-radius: .9rem; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.terminal .bar { display: flex; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: #cbd5e1; align-items: center; }
.terminal .dot { width: .7rem; height: .7rem; border-radius: 50%; background: #475569; }
.terminal .dot:nth-child(1) { background: #f87171; }
.terminal .dot:nth-child(2) { background: #fbbf24; }
.terminal .dot:nth-child(3) { background: #34d399; }
.terminal pre { margin: 0; padding: 1rem 1.1rem; color: #e2e8f0; font-size: .82rem; line-height: 1.55; white-space: pre; overflow-x: auto; }
.terminal .k { color: #93c5fd; }
.terminal .s { color: #86efac; }
.terminal .n { color: #fcd34d; }

/* Short facts under the first screen. */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 992px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: .85rem 1rem; display: flex; gap: .75rem; align-items: center; font-size: .9rem; line-height: 1.3; }
.perk i { font-size: 1.7rem; color: var(--brand); flex: none; }
.perk b { display: block; }
.perk span { color: var(--muted); }
@media (max-width: 575.98px) { .perk { flex-direction: column; align-items: flex-start; gap: .4rem; font-size: .84rem; } }

/* Sections. */
.section { padding: 3.5rem 0 1rem; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.section h2 { font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.01em; margin: .3rem 0 .8rem; }
.section h3 { font-weight: 700; font-size: 1.25rem; margin: 2rem 0 .9rem; }
.section .intro { color: var(--muted); max-width: 46rem; font-size: 1.05rem; }

/* Cards. */
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; height: 100%; transition: transform .15s, box-shadow .15s, border-color .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 23, 42, .08); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.feature .icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--brand-soft); color: var(--brand); font-size: 1.25rem; margin-bottom: .8rem; }
.feature h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.feature .tag { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--muted); margin-bottom: .45rem; }
.feature .ord { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: .4rem; padding: .1rem .4rem; margin-right: .35rem; }
.not-card { border-left: 4px solid #e5484d; }
.not-card .icon { background: color-mix(in srgb, #e5484d 14%, transparent); color: #e5484d; }

/* Screenshots. */
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.shot a { display: block; background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.shot .zoom { position: absolute; right: .75rem; top: .75rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 23, 42, .7); color: #fff; opacity: 0; transition: opacity .15s; }
.shot a:hover .zoom, .shot a:focus .zoom { opacity: 1; }
.shot figcaption { padding: .85rem 1rem; color: var(--muted); font-size: .92rem; }
.shot figcaption b { color: var(--ink); }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { width: 100%; height: auto; border-radius: .75rem; background: #fff; }

/* Code. */
.code { position: relative; background: var(--code-bg); color: var(--code-ink); border-radius: .9rem; margin: 1rem 0 1.25rem; }
.code pre { margin: 0; padding: 1rem 1.15rem; font-size: .84rem; line-height: 1.55; overflow-x: auto; color: inherit; }
.code .btn-copy { position: absolute; top: .5rem; right: .5rem; color: #cbd5e1; }
.code .label { position: absolute; top: .55rem; right: 2.9rem; font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }

/* Steps. */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; margin: .5rem 0 1.5rem; }
.flow .step { flex: 1 1 9rem; background: var(--card); border: 1px solid var(--line); border-radius: .8rem; padding: .7rem .85rem; font-size: .88rem; color: var(--muted); }
.flow .step b { display: flex; align-items: center; gap: .4rem; color: var(--ink); font-size: .95rem; margin-bottom: .15rem; }
.flow .step b .num { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; }
[data-bs-theme=dark] .flow .step b .num { color: #0c111d; }
.flow .arrow { display: grid; place-items: center; color: var(--muted); }
@media (max-width: 767.98px) { .flow .arrow { display: none; } .flow .step { flex-basis: 45%; } }

/* Diagrams: drawn with the page's own colours, so they follow light and dark. */
.diagram-card { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; margin: 1rem 0 1.5rem; }
.dwrap { overflow-x: auto; }
.dwrap .diagram { max-width: 980px; margin: 0 auto; }
.diagram { width: 100%; min-width: 720px; height: auto; display: block; }
.diagram .box { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.diagram .hl { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2; }
.diagram text { fill: var(--ink); font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 15px; }
.diagram .t { font-weight: 700; }
.diagram .s { fill: var(--muted); font-size: 12.5px; }
.diagram .m { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; fill: var(--muted); }
.diagram .ln { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.diagram .dash { stroke-dasharray: 6 4; }
.diagram .ah { fill: var(--muted); }
.scroll-hint { font-size: .8rem; color: var(--muted); }
@media (min-width: 768px) { .scroll-hint { display: none; } }
.rules li { display: flex; gap: .6rem; margin-bottom: .5rem; }
.status-note { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; color: var(--muted); font-size: .92rem; }
.feature .states { margin-top: .75rem; font-size: .85rem; color: var(--muted); line-height: 1.9; }
.rules i { color: var(--accent); }

/* Install and links. */
.extras { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.extras .table { margin: 0; --bs-table-bg: transparent; }
.extras td { padding: .7rem 1rem; vertical-align: middle; }
.extras td:first-child { white-space: nowrap; width: 1%; }
.link-card { display: flex; gap: .85rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: .9rem 1rem; color: var(--ink); height: 100%; transition: border-color .15s; }
.link-card:hover { border-color: var(--brand); color: var(--ink); }
.link-card i { font-size: 1.5rem; color: var(--brand); flex: none; }
.link-card small { display: block; color: var(--muted); }

/* Contact. */
.contact { border-radius: 1.25rem; background: linear-gradient(125deg, #0f1b3d 0%, #1d3fb0 60%, #0e7c86 100%); color: #fff; padding: 2.5rem 2rem; }
.contact p { opacity: .92; max-width: 40rem; }
.contact-item { display: flex; gap: .75rem; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: .8rem; padding: .75rem 1rem; color: #fff; overflow-wrap: anywhere; }
.contact-item:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.contact-item i { font-size: 1.35rem; flex: none; }
.contact-item small { display: block; opacity: .75; }

/* Footer. */
.site-footer { background: var(--card); border-top: 3px solid var(--brand); margin-top: 3.5rem; }
.site-footer h6 { font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer .copyright { background: #0f172a; color: #94a3b8; font-size: .85rem; }
.site-footer .copyright a { color: #cbd5e1; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1030; border: 0; }
.to-top.show { opacity: 1; pointer-events: auto; }
[data-bs-theme=dark] .to-top { color: #0c111d; }
