@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/golos-text-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/golos-text-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/golos-text-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/golos-text-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/golos-text-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/golos-text-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/golos-text-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/golos-text-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg-canvas: #0B0C10;
  --bg-topbar: #0F1117;
  --bg-surface: #141720;
  --bg-elevated: #1B1F2C;
  --bg-input: #0F1219;
  --border-subtle: #232838;
  --border-strong: #333A4F;
  --hairline: rgba(255, 255, 255, 0.08);
  --text-primary: #F3F4F8;
  --text-secondary: #A1A9BC;
  --text-muted: #8B95AC;
  --accent-primary: #5B53F7;
  --accent-hover: #6C65FF;
  --accent-text: #9B8AFB;
  --status-ok: #4ADE80;
  --status-warn: #F5B942;
  --status-danger: #F87171;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: var(--bg-canvas);
  scroll-behavior: smooth;
  overflow-x: clip;
}
img, video, svg {
  max-width: 100%;
}
video {
  display: block;
  width: 100%;
  height: auto;
}
.article-grid > *,
.legal-grid > *,
.split-hero > *,
.contact-split > *,
.db-footer-grid > *,
.compare-grid > *,
.boundaries-grid > *,
.editorial-two-col > * {
  min-width: 0;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(64% 34% at 50% -4%, rgba(91, 83, 247, 0.19) 0%, rgba(91, 83, 247, 0.04) 44%, rgba(11, 12, 16, 0) 76%),
    radial-gradient(36% 28% at 12% 48%, rgba(56, 102, 240, 0.06) 0%, rgba(11, 12, 16, 0) 70%),
    var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection {
  background: rgba(91, 83, 247, 0.42);
  color: #FFFFFF;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
code, pre, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* === Shared Studio Topbar (matches Homepage 1440px / 80px) === */
header.db-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hairline);
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.db-topbar-inner {
  max-width: 1440px;
  height: 80px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.db-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.db-brand:hover { text-decoration: none; }
.db-brand img { width: 30px; height: 30px; display: block; }
.db-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}
.db-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 2px;
  color: var(--text-secondary);
  transition: color 0.16s ease;
}
.db-nav a:hover,
.db-nav a[aria-current="page"] {
  color: var(--text-primary);
  text-decoration: none;
}
.db-nav a[aria-current="page"] { font-weight: 500; }
.db-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.db-lang-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  padding: 6px 13px;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.db-lang-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

/* Primary Studio Pill Button */
.db-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #6B64FF 0%, #5B53F7 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 12px 32px rgba(91, 83, 247, 0.34);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.db-btn-primary:hover {
  text-decoration: none;
  color: #FFFFFF;
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 16px 40px rgba(91, 83, 247, 0.44);
}
.db-btn-sm {
  font-size: 14px;
  padding: 9px 19px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 8px 22px rgba(91, 83, 247, 0.28);
}
.db-btn-lg {
  font-size: 16px;
  padding: 15px 32px;
}
.db-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.db-btn-secondary:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.26);
  background: #222737;
}

/* Main grows so footer ALWAYS sits at the bottom of the viewport */
main.db-main {
  flex: 1 0 auto;
  width: 100%;
}
.db-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 88px;
}
.db-container-narrow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 40px 84px;
}

/* === Typography === */
h1.db-h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.036em;
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
}
h1.db-h1 span.accent { color: var(--accent-text); }
p.db-lead {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 58ch;
}
.db-meta-line {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* === Split Studio Layouts (About & Contact) === */
.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-subtle);
}
.facts-list {
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14.5px;
}
.fact-k { color: var(--text-muted); }
.fact-v { color: var(--text-primary); font-weight: 500; text-align: right; }

.studio-frame {
  position: relative;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.studio-frame img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}
.studio-frame-cap {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.editorial-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.editorial-col h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.editorial-col p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.editorial-col p:last-child { margin-bottom: 0; }

.boundaries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 52px;
}
.boundary-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px 28px;
}
.boundary-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.boundary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.boundary-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.b-ico { flex: none; margin-top: 3px; }

/* Contact Split Layout */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: start;
}
.contact-direct {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 26px 28px;
}
.contact-email {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.contact-email:hover { color: var(--accent-text); text-decoration: none; }
.contact-direct p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.contact-sections {
  border-top: 1px solid var(--border-subtle);
}
.contact-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.contact-section:first-child { padding-top: 6px; border-top: none; }
.contact-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.contact-section p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}
.contact-section p:last-child { margin-bottom: 0; }
.safety-callout {
  margin-top: 28px;
  background: var(--bg-topbar);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.safety-callout strong { color: var(--text-primary); }

/* Editorial Legal Layout (Privacy & Terms) */
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) 260px;
  gap: 64px;
  align-items: start;
}
.legal-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.legal-sec {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-sec:last-child { border-bottom: none; }
.legal-sec h2 {
  margin: 0 0 12px;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.legal-sec p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}
.legal-sec p:last-child { margin-bottom: 0; }

/* Sticky TOC (Legal & Guide) */
.toc-col { position: sticky; top: 108px; }
.toc-box {
  border-left: 1px solid var(--border-subtle);
  padding-left: 20px;
}
.toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.toc-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.db-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.guide-sec[id],
.legal-sec[id],
article section[id] {
  scroll-margin-top: 108px;
}
.toc-box a {
  position: relative;
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  transition: color 0.16s ease;
}
.toc-box a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.toc-box a.is-active {
  color: var(--text-primary);
  font-weight: 500;
}
.toc-box a.is-active::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 1px;
  bottom: 1px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent-text);
}
.toc-aside-card {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}
.toc-aside-card strong { color: var(--text-primary); display: block; margin-bottom: 6px; }

/* === Guide Article Components === */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) 260px;
  gap: 60px;
  align-items: start;
}
.tldr-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 34px 0 48px;
}
.tldr-box h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.tldr-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tldr-item { display: flex; gap: 12px; align-items: flex-start; }
.tldr-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tldr-item h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
.tldr-item p { margin: 0; font-size: 13.5px; line-height: 1.52; color: var(--text-secondary); }
section.block { margin-bottom: 52px; }
section.block > h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.8vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-primary);
}
section.block > p { margin: 0 0 22px; font-size: 16px; color: var(--text-secondary); max-width: 66ch; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.case-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-primary); }
.badge-fix {
  font-size: 12px; font-weight: 600; color: #FCA5A5;
  background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 9999px; padding: 3px 10px;
}
.badge-keep {
  font-size: 12px; font-weight: 600; color: #86EFAC;
  background: rgba(74, 222, 128, 0.10); border: 1px solid rgba(74, 222, 128, 0.30);
  border-radius: 9999px; padding: 3px 10px;
}
.case-desc { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.strip-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.strip-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.frame-cell img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--border-subtle);
}
.dim-wrap { background: #050608; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-subtle); }
.dim-wrap img { border: none; border-radius: 0; }
.black-box {
  width: 100%; aspect-ratio: 16 / 10; background: #020203;
  border: 1px solid rgba(248, 113, 113, 0.55); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px;
}
.fc-cap { display: block; margin-top: 6px; font-size: 10.5px; color: var(--text-muted); }
.luma-box {
  margin-top: auto; background: var(--bg-input); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 12px 14px;
}
.luma-box svg { display: block; width: 100%; height: 52px; }
.luma-cap { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.report-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.media-box { padding: 16px; background: #0D0F15; border-bottom: 1px solid var(--border-subtle); }
.media-box video, .media-box img {
  display: block; width: 100%; border-radius: 8px; border: 1px solid var(--border-subtle); background: #050608;
}
.media-cap { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.run-box { padding: 18px 20px; background: var(--bg-surface); }
.run-head { font-size: 14.5px; font-weight: 600; color: var(--status-ok); margin-bottom: 6px; }
.run-box p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-secondary); }
.run-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.run-kv { background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 10px 12px; }
.run-k { font-size: 11.5px; color: var(--text-muted); margin-bottom: 3px; }
.run-v { font-size: 13px; color: var(--text-primary); }
.fix-list { border-top: 1px solid var(--border-subtle); }
.fix-row { padding: 18px 0; border-bottom: 1px solid var(--border-subtle); }
.fix-row h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--text-primary); }
.fix-row p { margin: 0; font-size: 15px; color: var(--text-secondary); max-width: 66ch; }
.limits-box { margin-top: 22px; background: var(--bg-topbar); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 18px 20px; }
.limits-box h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; color: var(--text-primary); }
.limits-box p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.code-block {
  max-width: 100%;
  background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 14px 16px; font-family: var(--font-mono); font-size: 13px; color: #E4E7F0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px;
}
.manual-note { margin: 0; font-size: 14px; color: var(--text-muted); }
.final-cta {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(91, 83, 247, 0.22) 0%, rgba(20, 23, 32, 0) 70%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.final-cta h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.025em; color: var(--text-primary); }
.final-cta p { margin: 0 auto 24px; font-size: 15.5px; color: var(--text-secondary); max-width: 48ch; }

/* === Frame.io-Style Full-Width Studio Footer (always anchored at bottom) === */
footer.db-footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  background: rgba(15, 17, 23, 0.72);
}
.db-footer-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--hairline);
}
.db-footer-cta h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 700;
  color: var(--text-primary);
}
.db-footer-cta h2 span { color: var(--accent-text); }
.db-footer-cta p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}
.db-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.db-footer-brand p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 30ch;
}
.db-footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.db-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.db-footer-col a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.db-footer-col a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.db-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.db-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.db-footer-bottom-inner a { color: var(--text-muted); }
.db-footer-bottom-inner a:hover { color: var(--text-primary); text-decoration: none; }

.db-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.db-menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.db-mobile-menu {
  display: none;
  border-top: 1px solid var(--hairline);
  background: rgba(11, 12, 16, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 20px 18px;
}
.db-mobile-menu.is-open {
  display: block;
}
.db-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.db-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15.5px;
  color: var(--text-secondary);
  text-decoration: none;
}
.db-mobile-menu a:hover,
.db-mobile-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
}
.db-mobile-menu a[aria-current="page"] {
  font-weight: 500;
}

@media (max-width: 1024px) {
  .db-topbar-inner { padding: 0 24px; }
  .db-container, .db-container-narrow { padding: 48px 24px 68px; }
  .split-hero, .contact-split, .legal-grid, .article-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .toc-col { display: none; }
  .db-footer-cta, .db-footer-cta-centered { padding: 48px 24px; }
  .db-footer-cta { flex-direction: column; align-items: flex-start; }
  .db-footer-grid { padding: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .db-footer-bottom-inner { padding: 18px 24px 24px; }
}
@media (max-width: 900px) {
  .db-nav { display: none; }
  .db-menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .editorial-two-col, .boundaries-grid, .tldr-list, .compare-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .run-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .final-cta { padding: 28px 20px; }
  .demo-card { padding: 14px; }
}
@media (max-width: 520px) {
  .db-topbar-inner { padding: 0 14px; gap: 8px; height: 72px; }
  .db-brand { font-size: 15.5px; gap: 8px; }
  .db-brand img { width: 26px; height: 26px; }
  .db-top-actions { gap: 8px; }
  .db-lang-pill { padding: 5px 10px; font-size: 12px; }
  .db-btn-sm { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
  .db-container, .db-container-narrow { padding: 36px 16px 56px; }
  .db-footer-cta, .db-footer-cta-centered, .db-footer-grid, .db-footer-bottom-inner { padding-left: 16px; padding-right: 16px; }
}

/* === Unified Studio Surfaces & Controls (1:1 parity with main landing) === */
::selection {
  background-color: rgba(91, 83, 247, 0.42);
  color: #FFFFFF;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0B0C10; }
::-webkit-scrollbar-thumb { background: #232838; border-radius: 9999px; border: 2px solid #0B0C10; }
::-webkit-scrollbar-thumb:hover { background: #333A4F; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid #9B8AFB;
  outline-offset: 2px;
}
.studio-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  background:
    radial-gradient(64% 42% at 50% -6%, rgba(91, 83, 247, 0.22) 0%, rgba(91, 83, 247, 0.05) 46%, rgba(11, 12, 16, 0) 78%),
    radial-gradient(38% 34% at 14% 48%, rgba(56, 102, 240, 0.08) 0%, rgba(11, 12, 16, 0) 72%),
    radial-gradient(42% 36% at 86% 74%, rgba(91, 83, 247, 0.10) 0%, rgba(11, 12, 16, 0) 74%);
}
header.db-topbar,
main.db-main,
footer.db-footer {
  position: relative;
  z-index: 1;
}
header.db-topbar {
  position: sticky;
  z-index: 50;
}
.db-nav a[aria-current="page"] {
  position: relative;
  color: var(--text-primary);
  font-weight: 500;
}
.db-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6B64FF 0%, #9B8AFB 100%);
}
.db-footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}
.db-footer-link-btn:hover {
  color: var(--text-primary);
}
.db-back-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #D7DBE8 !important;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.db-back-top-pill:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF !important;
  text-decoration: none;
}
.db-footer-cta-centered {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 40px 68px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.db-footer-cta-centered h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.036em;
  font-weight: 700;
  color: var(--text-primary);
}
.db-footer-cta-centered h2 span { color: var(--accent-text); }
.db-footer-cta-centered p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.db-footer-cta-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#db-analytics-consent-banner {
  animation: db-banner-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#db-analytics-consent-banner a:hover { color: #F3F4F8 !important; }
#db-analytics-consent-banner button[data-db-consent-action="basic"]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: #FFFFFF !important;
}
#db-analytics-consent-banner button[data-db-consent-action="accept"]:hover {
  filter: brightness(1.08);
  transform: translateY(-0.5px);
}
@keyframes db-banner-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}
.guide-quick-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.guide-quick-pill:hover {
  border-color: var(--accent-text);
  background: rgba(91, 83, 247, 0.12);
  text-decoration: none;
}
.media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.db-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.db-mini-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}
.tech-details {
  margin-top: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.tech-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  list-style: none;
}
.tech-details summary:hover { color: var(--text-primary); }
.tech-details p { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.code-label { font-size: 12px; color: var(--text-muted); }
.cta-account-note { margin: 14px auto 0 !important; font-size: 13px !important; color: var(--text-muted) !important; }
.contact-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  #db-analytics-consent-banner { animation: none; }
}
