/* ============================================================
   BrainDeer docs — "Liquid Glass" brand theme
   Frosted, translucent surfaces · soft specular edges ·
   lots of air. Palette: ink, cyan, violet, magenta.
   ============================================================ */

:root {
  --bd-cyan: #22d3ee;
  --bd-violet: #6366f1;
  --bd-magenta: #f43f5e;
  --bd-ink: #06080e;
  --bd-panel: #0d1119;
  --bd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bd-glass-border: linear-gradient(165deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 40%, rgba(34, 211, 238, 0.15));
}

/* ---------- Surfaces ---------- */

:root:not([data-md-color-scheme="slate"]) {
  --md-default-bg-color: #f5f5f7;
  --md-accent-fg-color: #0e7490;
  --md-typeset-a-color: #0e7490;
  --bd-glass-bg: rgba(255, 255, 255, 0.55);
  --bd-glass-border-color: rgba(20, 25, 40, 0.08);
  --bd-header-bg: rgba(245, 245, 247, 0.65);
  --bd-header-fg: #1d1d1f;
  --bd-shadow: 0 12px 40px rgba(20, 25, 60, 0.10);
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--bd-ink);
  --md-accent-fg-color: var(--bd-cyan);
  --md-typeset-a-color: var(--bd-cyan);
  --bd-glass-bg: rgba(16, 20, 30, 0.5);
  --bd-glass-border-color: rgba(255, 255, 255, 0.08);
  --bd-header-bg: rgba(6, 8, 14, 0.55);
  --bd-header-fg: #e8ecf4;
  --bd-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

::selection {
  background: rgba(34, 211, 238, 0.35);
}

/* ---------- Liquid glass header + tabs ---------- */

.md-header {
  background: var(--bd-header-bg);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  color: var(--bd-header-fg);
  box-shadow: none;
}

.md-header[data-md-state="shadow"] {
  box-shadow: inset 0 -1px 0 rgba(128, 128, 128, 0.18);
}

.md-header .md-header__title,
.md-header .md-header__button,
.md-header .md-header__topic,
.md-header a,
.md-header label {
  color: var(--bd-header-fg);
}

.md-header .md-logo {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Drawer/sidebar title — same liquid glass as the header, no indigo bar.
   The [for="__drawer"] selector matches Material's own specificity. */
.md-nav--primary .md-nav__title,
.md-nav--primary .md-nav__title[for="__drawer"] {
  background: var(--bd-header-bg);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  color: var(--bd-header-fg);
  box-shadow: inset 0 -1px 0 rgba(128, 128, 128, 0.18);
}

.md-nav--primary .md-nav__title .md-nav__button,
.md-nav--primary .md-nav__title .md-logo {
  color: var(--bd-header-fg);
}

/* Search field as glass pill */
.md-search__form {
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 2rem;
  transition: border-color 0.25s var(--bd-ease), background 0.25s var(--bd-ease);
}

.md-search__form:hover,
.md-search__form:focus-within {
  background: rgba(128, 128, 128, 0.16);
  border-color: var(--bd-cyan);
}

.md-search__input {
  color: var(--bd-header-fg);
  background: transparent;
}

.md-search__input::placeholder {
  color: rgba(128, 128, 128, 0.9);
}

/* Tabs: float on the same glass, pill-style active state */
.md-tabs {
  background: transparent;
  color: var(--bd-header-fg);
  border-bottom: 1px solid rgba(128, 128, 128, 0.14);
}

.md-tabs__link {
  border-radius: 2rem;
  margin: 0.25rem 0.15rem;
  padding: 0.35rem 0.9rem;
  transition: background 0.25s var(--bd-ease), color 0.25s var(--bd-ease);
}

.md-tabs__link:hover {
  background: rgba(34, 211, 238, 0.10);
}

.md-tabs__link--active {
  color: var(--bd-cyan);
  background: rgba(34, 211, 238, 0.14);
}

/* ---------- Sidebar nav: soft pills ---------- */

.md-nav__link {
  border-radius: 0.6rem;
  transition: background 0.2s var(--bd-ease);
}

.md-nav__link:hover {
  background: rgba(128, 128, 128, 0.10);
}

.md-nav__link--active,
.md-nav__link:active {
  color: var(--bd-cyan);
}

/* ---------- Footer: calm, minimal ---------- */

.md-footer,
.md-footer-meta {
  background: transparent;
}

.md-footer-meta {
  border-top: 1px solid rgba(128, 128, 128, 0.14);
}

/* ---------- Content polish ---------- */

.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.8rem;
  overflow: hidden;
}

.md-typeset .highlight {
  border-radius: 0.8rem;
}

.md-button {
  border-radius: 2rem;
}

/* ============================================================
   Landing page
   ============================================================ */

.bd-landing {
  margin: -1.4rem -0.8rem 0;
}

/* Hero with soft animated aurora */
.bd-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  background: var(--bd-panel);
  color: #eef2fa;
  padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  isolation: isolate;
  box-shadow: var(--bd-shadow);
}

[data-md-color-scheme="default"] .bd-hero {
  background: #eceff7;
  color: #0f1524;
}

.bd-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(80px) saturate(1.25);
  opacity: 0.75;
}

[data-md-color-scheme="default"] .bd-aurora {
  opacity: 0.5;
}

.bd-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.bd-blob-1 {
  width: 55%;
  height: 70%;
  left: -10%;
  top: -20%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.50), transparent 65%);
  animation: bd-drift-1 26s ease-in-out infinite alternate;
}

.bd-blob-2 {
  width: 50%;
  height: 65%;
  right: -12%;
  bottom: -25%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.40), transparent 65%);
  animation: bd-drift-2 32s ease-in-out infinite alternate;
}

.bd-blob-3 {
  width: 40%;
  height: 55%;
  right: 15%;
  top: -25%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28), transparent 65%);
  animation: bd-drift-3 24s ease-in-out infinite alternate;
}

@keyframes bd-drift-1 {
  to { transform: translate(12%, 18%) scale(1.15); }
}

@keyframes bd-drift-2 {
  to { transform: translate(-14%, -12%) scale(1.2); }
}

@keyframes bd-drift-3 {
  to { transform: translate(-10%, 20%) scale(0.9); }
}

.bd-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 1220px;
  margin: 0 auto;
}

.bd-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
}

.bd-hero-title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 1.1rem 0 0.7rem;
}

.bd-gradient-text,
.md-typeset h1 {
  background: linear-gradient(92deg, var(--bd-cyan) 10%, var(--bd-violet) 55%, var(--bd-magenta) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.md-typeset h1 .headerlink {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--bd-cyan);
}

.bd-tagline {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 34rem;
}

.bd-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.bd-cta .md-button {
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  transition: transform 0.22s var(--bd-ease), box-shadow 0.22s var(--bd-ease);
}

.bd-btn-primary {
  background: linear-gradient(120deg, #0ea5c4, var(--bd-violet));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0.5rem 1.8rem rgba(34, 211, 238, 0.30);
}

.bd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0.8rem 2.4rem rgba(34, 211, 238, 0.45);
}

.bd-btn-ghost {
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.22);
  color: inherit;
  backdrop-filter: blur(8px);
}

.bd-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--bd-cyan);
}

/* 3D stage — free-floating model, no box; big centrepiece on top */
.bd-hero-stage {
  position: relative;
  width: min(100%, 940px);
  aspect-ratio: 5 / 4;
  margin: -1rem auto 0;
}

@media screen and (max-width: 640px) {
  .bd-hero-stage { aspect-ratio: 1 / 1; }
}

.bd-hero-stage model-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  outline: none;
}

/* Colour glow behind the model */
.bd-stage-glow {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 50% 42%, rgba(34, 211, 238, 0.28), transparent 70%),
    radial-gradient(40% 36% at 62% 66%, rgba(167, 139, 250, 0.20), transparent 70%);
}

/* ---------- Content sections ---------- */

.bd-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}

.bd-section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  margin: 0 0 0.4rem;
}

.bd-section-sub {
  text-align: center;
  opacity: 0.7;
  margin: 0;
}

/* Highlight rows — alternating text / media */
.bd-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.8rem) 0;
}

.bd-highlight:nth-child(even) .bd-highlight-text { order: 2; }
.bd-highlight:nth-child(even) .bd-media,
.bd-highlight:nth-child(even) .bd-code { order: 1; }

@media screen and (max-width: 820px) {
  .bd-highlight { grid-template-columns: 1fr; }
  .bd-highlight:nth-child(even) .bd-highlight-text { order: 1; }
  .bd-highlight:nth-child(even) .bd-media,
  .bd-highlight:nth-child(even) .bd-code { order: 2; }
}

.bd-kicker {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bd-cyan);
  margin-bottom: 0.5rem;
}

.bd-highlight h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.bd-highlight p {
  opacity: 0.78;
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.bd-textlink {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Media slot (drop screenshots/clips here) */
.bd-media {
  aspect-ratio: 16 / 10;
  border-radius: 1.2rem;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(34, 211, 238, 0.10), transparent 75%),
    var(--bd-glass-bg);
  border: 1px solid var(--bd-glass-border-color);
  box-shadow: var(--bd-shadow);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.bd-media--video {
  aspect-ratio: auto;
  background: #0a0d14;
}

.bd-media img,
.bd-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.bd-media video {
  object-fit: contain;
  background: #0a0d14;
}

.bd-media-label {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.7;
}

.bd-media-label code {
  font-size: 0.68rem;
  background: rgba(34, 211, 238, 0.10);
  padding: 0.12rem 0.45rem;
  border-radius: 0.4rem;
}

/* Zone list on the landing highlight */
.bd-zone-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.bd-zone-list li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.92rem;
  opacity: 0.85;
}

.bd-zone-list li span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bd-cyan);
}

/* ---------- Interface tour page ---------- */

/* Zone strip — no boxes, just labeled columns with hairline separators */
.bd-zones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 1.2rem 0 1.8rem;
  padding: 0.2rem 0 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

@media screen and (max-width: 820px) {
  .bd-zones { grid-template-columns: 1fr 1fr; row-gap: 1.1rem; }
}

@media screen and (max-width: 520px) {
  .bd-zones { grid-template-columns: 1fr; }
}

.bd-zone {
  padding: 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.82;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.bd-zone:first-child { border-left: none; padding-left: 0; }

@media screen and (max-width: 820px) {
  .bd-zone:nth-child(odd) { border-left: none; padding-left: 0; }
  .bd-zone:nth-child(even) { border-left: 1px solid rgba(148, 163, 184, 0.22); }
}

@media screen and (max-width: 520px) {
  .bd-zone { border-left: none !important; padding-left: 0; padding-right: 0; }
}

.bd-zone-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bd-cyan);
  opacity: 1;
}

.bd-zone p { margin: 0; }

/* Video — edge-to-edge, caption as quiet footnote */
.bd-videocard {
  margin: 1.2rem 0 1.6rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0a0d14;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.bd-videocard video {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0d14;
}

.bd-videocard-cap {
  display: block;
  padding: 0.65rem 0.15rem 0;
  font-size: 0.8rem;
  opacity: 0.55;
  background: transparent;
  border: none;
}

/* Panel rows — no filled cards, just image + text */
.bd-panelcard {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.6rem;
  align-items: center;
  margin: 1.4rem 0 2rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

@media screen and (max-width: 720px) {
  .bd-panelcard { grid-template-columns: 1fr; }
}

/* Wide / landscape panels (e.g. bottom bar): image on top, text below */
.bd-panelcard--stack {
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

.bd-panelcard--stack .bd-panelshot {
  max-width: 100%;
}

.bd-panelshot {
  width: 100%;
  border-radius: 0.85rem;
  border: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  background: #0a0d14;
}

.bd-panelcard-body {
  font-size: 0.95rem;
}

.bd-panelcard-body p,
.bd-panelcard-body ul {
  margin-top: 0.35rem;
}

/* Tips — accent marker only, no filled box */
.bd-tour-tips {
  margin: 0.2rem 0 1.6rem;
  padding: 0 0 0 0.9rem;
  border: none;
  border-left: 2px solid rgba(34, 211, 238, 0.45);
  background: none;
  border-radius: 0;
}

.bd-tour-tips ul {
  margin: 0;
  padding-left: 1rem;
}

/* Code card */
.bd-code {
  border-radius: 1.2rem;
  background: #0b101c;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--bd-shadow);
  overflow: hidden;
}

.bd-code pre {
  margin: 0;
  padding: 1.2rem 1.3rem;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #d7e0ee;
}

.bd-code .k { color: #c792ea; }
.bd-code .t { color: #7fdbca; }
.bd-code .f { color: #82aaff; }
.bd-code .s { color: #c3e88d; }
.bd-code .c { color: #5b6b85; font-style: italic; }

/* Steps */
.bd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
}

@media screen and (max-width: 820px) {
  .bd-steps { grid-template-columns: 1fr; }
}

.bd-step {
  position: relative;
  padding: 1.6rem 1.4rem 1.3rem;
  border-radius: 1.2rem;
  background: var(--bd-glass-bg);
  border: 1px solid var(--bd-glass-border-color);
  box-shadow: var(--bd-shadow);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.bd-step-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: linear-gradient(92deg, var(--bd-cyan), var(--bd-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bd-step h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.bd-step p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.72;
  line-height: 1.6;
}

/* Pipeline strip (Compose → Bridge → Render) — content pages */
.bd-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.35rem;
  align-items: stretch;
  margin: 1.6rem 0 2rem;
  padding: 0;
}

@media screen and (max-width: 820px) {
  .bd-pipeline {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

.bd-pipe {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.05rem;
  background: var(--bd-glass-bg);
  border: 1px solid var(--bd-glass-border-color);
  box-shadow: var(--bd-shadow);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  min-width: 0;
}

.bd-pipe p,
.bd-pipe > p {
  margin: 0;
}

.bd-pipe-index {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: linear-gradient(92deg, var(--bd-cyan), var(--bd-violet), var(--bd-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bd-pipe-title {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bd-pipe-where {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bd-cyan);
  opacity: 0.95;
}

.bd-pipe-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.5;
  opacity: 0.68;
}

.bd-pipe-arrow {
  align-self: center;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 0.15rem;
  opacity: 0.55;
  background: linear-gradient(92deg, var(--bd-cyan), var(--bd-violet));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.6 4.6 14.9 11l-6.3 6.4 1.4 1.4L17.8 11 10 3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.6 4.6 14.9 11l-6.3 6.4 1.4 1.4L17.8 11 10 3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media screen and (max-width: 820px) {
  .bd-pipe-arrow {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.1rem auto;
    transform: rotate(90deg);
  }
}

/* Final CTA */
.bd-final {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0 0;
  text-align: center;
}

.bd-final h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.bd-final p {
  opacity: 0.7;
  margin: 0;
}

.bd-final .bd-cta { margin-top: 1.4rem; }

/* Feature cards — liquid glass */
.bd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1150px;
  margin: 2.6rem auto 0;
}

@media screen and (max-width: 900px) {
  .bd-features { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 600px) {
  .bd-features { grid-template-columns: 1fr; }
}

.bd-card {
  position: relative;
  display: block;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 1.3rem;
  text-decoration: none !important;
  background: var(--bd-glass-bg);
  border: 1px solid var(--bd-glass-border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition: transform 0.28s var(--bd-ease), box-shadow 0.28s var(--bd-ease);
}

.bd-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--bd-shadow);
}

.bd-card-index {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--bd-cyan);
  opacity: 0.9;
}

.bd-card h3 {
  margin: 0.45rem 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.bd-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.55;
  opacity: 0.70;
}

.bd-note {
  max-width: 1150px;
  margin: 2.4rem auto 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Scroll reveal */
.bd-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--bd-ease), transform 0.8s var(--bd-ease);
}

.bd-reveal.bd-visible {
  opacity: 1;
  transform: none;
}

.bd-features .bd-card:nth-child(2) { transition-delay: 0.06s; }
.bd-features .bd-card:nth-child(3) { transition-delay: 0.12s; }
.bd-features .bd-card:nth-child(4) { transition-delay: 0.18s; }
.bd-features .bd-card:nth-child(5) { transition-delay: 0.24s; }
.bd-features .bd-card:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .bd-blob-1, .bd-blob-2, .bd-blob-3 { animation: none; }
  .bd-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive video embed (16:9) ----------
   <div class="video-container"><iframe ...></iframe></div> */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.8rem;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
