/* bidemo.2nth.app — Apache Superset + PostgreSQL, by 2nth. Type and colour follow 2nth.ai. */
:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F1F3F6;
  --ink: #0A0A0A;
  --ink-2: #3F3F46;
  --muted: #71717A;
  --line: #E4E4E7;
  --brand: #0891B2;
  --brand-ink: #FFFFFF;
  --brand-soft: #E0F7FB;
  --good: #059669;
  --warn: #D97706;
  --bad: #DC2626;
  --bar: #06B6D4;
  --bar-2: #A5E8F3;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0A; --surface: #121214; --surface-2: #18181B; --ink: #F4F4F5; --ink-2: #D4D4D8;
    --muted: #A1A1AA; --line: #27272A; --brand: #06B6D4; --brand-ink: #0A0A0A; --brand-soft: #0B2A30;
    --good: #10B981; --warn: #F59E0B; --bad: #EF4444; --bar: #06B6D4; --bar-2: #155E6B;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0A; --surface: #121214; --surface-2: #18181B; --ink: #F4F4F5; --ink-2: #D4D4D8;
  --muted: #A1A1AA; --line: #27272A; --brand: #06B6D4; --brand-ink: #0A0A0A; --brand-soft: #0B2A30;
  --good: #10B981; --warn: #F59E0B; --bad: #EF4444; --bar: #06B6D4; --bar-2: #155E6B;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* type */
.display, h1, h2 { font-family: "Bebas Neue", "Barlow", sans-serif; font-weight: 400; letter-spacing: .04em; line-height: .95; margin: 0; }
h1 { font-size: clamp(44px, 9vw, 88px); }
h2 { font-size: clamp(32px, 5.5vw, 52px); margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2); max-width: 680px; }
.mono, .kicker, .num { font-family: "JetBrains Mono", ui-monospace, monospace; }
.kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.muted { color: var(--muted); }
.brand { color: var(--brand); }
.small { font-size: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { font-family: "Bebas Neue", sans-serif; font-size: 24px; letter-spacing: .08em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo b { color: var(--brand); font-weight: 400; }
.logo span { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin-left: 8px; vertical-align: 3px; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--brand); }
.nav-links .hide-sm { display: none; }
@media (min-width: 760px) { .nav-links .hide-sm { display: inline; } }
.theme { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 6px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-weight: 600;
  font-size: 16px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { filter: brightness(1.08); }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding: 56px 0 48px; }
@media (min-width: 900px) { section { padding: 88px 0; } section.hero { padding: 80px 0 64px; } }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 38px; height: 38px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.tag { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* hero */
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 em { font-style: normal; color: var(--brand); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.trust span::before { content: "✓ "; color: var(--brand); }

/* dashboard preview */
.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dash-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.dash-bar .url { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tabs { display: flex; gap: 16px; padding: 10px 16px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.dash-tabs b { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.dash-body { padding: 14px; display: grid; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kpi .v { font-family: "Bebas Neue", sans-serif; font-size: 30px; letter-spacing: .03em; line-height: 1; }
.kpi .l { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.panel .t { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.panels { display: grid; gap: 10px; }
@media (min-width: 520px) { .panels { grid-template-columns: 1.3fr 1fr; } }
.chart text { font-family: "JetBrains Mono", monospace; font-size: 9px; fill: var(--muted); }
.hbar { display: grid; grid-template-columns: 92px 1fr 38px; align-items: center; gap: 8px; font-size: 11.5px; margin: 5px 0; }
.hbar .track { height: 9px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--bar); border-radius: 3px; }
.hbar .fill.lo { background: var(--warn); }
.hbar .n { font-family: "JetBrains Mono", monospace; font-size: 11px; text-align: right; color: var(--ink-2); }

/* flow diagram */
.flow { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr 34px 1.25fr 34px 1fr 34px 0.9fr; } }
.flow .col { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.flow .col h3 { font-size: 16px; }
.flow .arrow { display: grid; place-items: center; color: var(--brand); font-size: 22px; }
.flow .arrow::before { content: "↓"; }
@media (min-width: 900px) { .flow .arrow::before { content: "→"; } }
.chip { display: block; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; background: var(--surface-2); }
.chip small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.layer { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; margin-top: 10px; font-size: 14px; }
.layer code { font-family: "JetBrains Mono", monospace; font-size: 12px; background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 3px 0; text-align: center; font-weight: 600; }
.layer span { color: var(--ink-2); line-height: 1.4; }

/* comparison table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
td.yes { color: var(--ink); }
td.yes::before { content: "● "; color: var(--brand); }
td.meh::before { content: "○ "; color: var(--muted); }
.tbl-wrap table { min-width: 620px; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 18px; left: 22px; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: 1px; }

/* tabs walkthrough (demo page) */
.tabcard { display: grid; gap: 18px; }
@media (min-width: 900px) { .tabcard { grid-template-columns: 240px 1fr; gap: 28px; } }
.tabcard .side .big { font-family: "Bebas Neue", sans-serif; font-size: 54px; line-height: .95; color: var(--brand); letter-spacing: .02em; }
.tabcard .side .big small { display: block; font-family: "Barlow", sans-serif; font-size: 14px; color: var(--muted); letter-spacing: 0; line-height: 1.4; margin-top: 6px; }
.tabcard ul { margin: 0 0 14px; padding-left: 20px; }
.tabcard li { margin: 4px 0; }
.say { border-left: 3px solid var(--brand); padding: 10px 14px; background: var(--brand-soft); border-radius: 0 6px 6px 0; color: var(--ink); font-style: italic; margin: 0 0 14px; }
.try { font-size: 15px; color: var(--ink-2); }
.try b { font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); margin-right: 6px; font-style: normal; }

/* access steps */
.access { display: grid; gap: 16px; }
@media (min-width: 900px) { .access { grid-template-columns: repeat(3, 1fr); } }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* cta band */
.cta { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 36px 24px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr 1fr; padding: 48px; } }
.cta h2 { color: var(--bg); }
.cta p { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.cta .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, var(--ink)); }
.cta .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--brand); }

/* grid children may shrink below their content (stops nowrap rows widening the page) */
.hero-grid > *, .grid > *, .flow > *, .steps > *, .access > *, .tabcard > *, .panels > *, .kpis > *, .cta > * { min-width: 0; }
.kicker { overflow-wrap: anywhere; }
