:root {
  color-scheme: dark;
  --bb-bg: #0b1720;
  --bb-surface: rgba(25, 45, 49, 0.96);
  --bb-surface-soft: rgba(32, 51, 56, 0.94);
  --bb-surface-deep: #203338;
  --bb-text: #e7eef5;
  --bb-muted: #a9bac8;
  --bb-border: rgba(154, 182, 179, 0.24);
  --bb-accent: #5fd1d8;
  --bb-accent-strong: #8bd3ff;
  --bb-accent-soft: rgba(95, 209, 216, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  color: var(--bb-text);
  background:
    linear-gradient(180deg, rgba(8, 18, 28, 0.88) 0%, rgba(10, 22, 32, 0.92) 42%, rgba(11, 23, 32, 0.96) 100%),
    radial-gradient(circle at top, rgba(95, 209, 216, 0.08), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(59, 130, 246, 0.08), transparent 24%),
    url("/images/background.jpg") center top / cover no-repeat fixed,
    var(--bb-bg);
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--bb-border);
  background: rgba(13, 24, 30, 0.92);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-link img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #c9d7e3;
}

.nav-links a:hover,
.brand-link:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--bb-border);
  background: rgba(25, 45, 49, 0.96);
  color: var(--bb-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle-lines span {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.back-link {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 14px;
  color: #c9d7e3;
  font-size: 14px;
}

.badge,
.eyebrow {
  display: inline-flex;
  border: 1px solid var(--bb-border);
  color: #d7e6f1;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.summary,
.content p,
.content li,
.expand-body,
.meta,
.empty,
.hero p {
  color: var(--bb-muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  border: 1px solid var(--bb-border);
  background: var(--bb-surface-soft);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(95, 209, 216, 0.08), rgba(16, 34, 49, 0.46) 56%, rgba(11, 23, 32, 0.42));
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: var(--bb-surface-deep);
}

.hero-body {
  padding: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--bb-border);
}

.btn-primary {
  color: #0f1b18;
  background: linear-gradient(120deg, #6fb7a3, #82c4b2);
  border-color: rgba(111, 183, 163, 0.46);
}

.btn-secondary {
  color: #0f1b18;
  background: #6fb7a3;
  border-color: rgba(111, 183, 163, 0.42);
}

.content,
.content-section,
.expand-card,
.panel,
.resource-card,
.video-card,
.product-card,
.card {
  border: 1px solid var(--bb-border);
  background: var(--bb-surface-soft);
  border-radius: 16px;
}

.content,
.content-section,
.panel {
  padding: 16px;
}

.expand-card {
  padding: 0;
  overflow: hidden;
}

.expand-card summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--bb-text);
  border-bottom: 1px solid rgba(95, 129, 154, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.expand-card summary::-webkit-details-marker {
  display: none;
}

.expand-card summary::after {
  content: "+";
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(139, 199, 227, 0.38);
  background: rgba(95, 209, 216, 0.08);
  color: #d7e6f1;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.expand-card[open] summary::after {
  content: "−";
}

.video-placeholder,
.fact-item,
.control-input,
.control-select,
.product-image,
.card img {
  border: 1px solid var(--bb-border);
  background: rgba(20, 50, 72, 0.78);
}

.video-placeholder {
  color: var(--bb-muted);
}

.card-link,
.resource-link,
.hero-link,
.product-link,
.content a,
.content-section a,
.facts-grid a,
.related-list a,
.expand-body a,
.panel a {
  color: var(--bb-accent);
  font-weight: 600;
}

.card-link:hover,
.resource-link:hover,
.hero-link:hover,
.product-link:hover,
.content a:hover,
.content-section a:hover,
.facts-grid a:hover,
.related-list a:hover,
.expand-body a:hover,
.panel a:hover {
  color: var(--bb-accent-strong);
}

.pillar-link {
  border: 1px solid rgba(111, 183, 163, 0.34);
  background: rgba(111, 183, 163, 0.14);
  color: var(--bb-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pillar-link:hover {
  border-color: rgba(130, 196, 178, 0.42);
  background: rgba(111, 183, 163, 0.2);
  color: var(--bb-accent-strong);
}

.site-footer {
  border-top: 1px solid var(--bb-border);
  background: rgba(10, 28, 43, 0.82);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 24px;
}

.footer-title {
  font-weight: 600;
}

.footer-links {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #d3e8f6;
}

.footer-copy,
.footer-note {
  font-size: 14px;
  color: var(--bb-muted);
}

.footer-note {
  font-size: 12px;
}

@media (max-width: 900px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
