/* bib.css - BuiId on Bitcoin sitewide stylesheet */

/* 1. DESIGN TOKENS */
:root {
  --bib-bg: #09091A;
  --bib-surface: #111126;
  --bib-surface-alt: #0E0E20;
  --bib-border: #1D1D3A;
  --bib-accent: #F7931A;
  --bib-accent-secondary: #4F46E5;
  --bib-fg: #E8E9F0;
  --bib-fg-muted: #8A8DB8;
  --bib-fg-dark: #1A1A2E;
  --bib-fg-dark-muted: #5B5B8A;
  --bib-bg-light: #F4F5F9;
  --bib-bg-white: #FFFFFF;
  --bib-border-light: #E0E0EE;
  --bib-nav-h: 68px;
  --bib-radius: 8px;
  --bib-radius-lg: 16px;
  --bib-transition: 200ms ease;
  --bib-max-w: 1200px;
  --bib-narrow-w: 760px;
  --bib-syne: 'Manrope', sans-serif;
  --bib-mono: 'JetBrains Mono', monospace;
}

/* 2. RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bib-bg);
  color: var(--bib-fg);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.15;
}

code, pre, .bib-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* 4. LAYOUT CONTAINER */
.bib-container {
  width: 100%;
  max-width: var(--bib-max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bib-container--narrow {
  max-width: var(--bib-narrow-w);
}

/* 5. NAV - always dark, sticky */
.bib-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bib-nav-h);
  background-color: var(--bib-bg);
  border-bottom: 1px solid var(--bib-border);
  display: flex;
  align-items: center;
}

.bib-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--bib-max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  gap: 1rem;
}

.bib-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bib-nav__logo img {
  height: 28px;
  width: auto;
}

.bib-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bib-nav__link {
  color: var(--bib-fg-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color var(--bib-transition), background-color var(--bib-transition);
  white-space: nowrap;
}

.bib-nav__link:hover {
  color: var(--bib-fg);
  background-color: rgba(232, 233, 240, 0.06);
}

.bib-nav__link[aria-current="page"] {
  color: var(--bib-accent);
  background-color: rgba(247, 147, 26, 0.08);
}

.bib-nav__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.bib-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 1rem;
  border: 1.5px solid rgba(232, 233, 240, 0.4);
  border-radius: var(--bib-radius);
  color: var(--bib-fg);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color var(--bib-transition), background-color var(--bib-transition);
  white-space: nowrap;
}

.bib-nav__cta:hover {
  border-color: var(--bib-fg);
  background-color: rgba(232, 233, 240, 0.06);
}

.bib-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

.bib-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--bib-fg);
  border-radius: 2px;
  transition: transform var(--bib-transition), opacity var(--bib-transition);
}

.bib-nav--open .bib-nav__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bib-nav--open .bib-nav__hamburger span:nth-child(2) {
  opacity: 0;
}

.bib-nav--open .bib-nav__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 6. FOOTER */
.bib-footer {
  background-color: var(--bib-bg);
  border-top: 1px solid var(--bib-border);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.bib-footer__inner {
  max-width: var(--bib-max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bib-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--bib-border);
}

.bib-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bib-footer__logo img {
  height: 24px;
  width: auto;
}

.bib-footer__tagline {
  font-size: 0.875rem;
  color: var(--bib-fg-muted);
  line-height: 1.55;
  max-width: 240px;
}

.bib-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.bib-footer__contact a,
.bib-footer__contact address {
  font-size: 0.8125rem;
  color: var(--bib-fg-muted);
  font-style: normal;
  transition: color var(--bib-transition);
}

.bib-footer__contact a:hover {
  color: var(--bib-fg);
}

.bib-footer__col-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bib-fg-muted);
  margin-bottom: 1rem;
}

.bib-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.bib-footer__col-link {
  font-size: 0.9375rem;
  color: var(--bib-fg-muted);
  transition: color var(--bib-transition);
}

.bib-footer__col-link:hover {
  color: var(--bib-fg);
}

.bib-footer__legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
}

.bib-footer__copy {
  font-size: 0.8125rem;
  color: var(--bib-fg-muted);
}

.bib-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bib-footer__legal-link {
  font-size: 0.8125rem;
  color: var(--bib-fg-muted);
  transition: color var(--bib-transition);
}

.bib-footer__legal-link:hover {
  color: var(--bib-fg);
}

/* 7. COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 520px;
  z-index: 999;
  background-color: var(--bib-surface);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--bib-fg-muted);
  line-height: 1.55;
}

.cookie-banner__text a {
  color: var(--bib-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  padding: 0.5rem 1.25rem;
  border-radius: var(--bib-radius);
  cursor: pointer;
  transition: background-color var(--bib-transition), color var(--bib-transition), border-color var(--bib-transition);
}

.cookie-banner__btn--primary {
  background-color: var(--bib-accent);
  color: var(--bib-fg-dark);
  border: 1.5px solid var(--bib-accent);
}

.cookie-banner__btn--primary:hover {
  background-color: #e8841a;
  border-color: #e8841a;
}

.cookie-banner__btn--secondary {
  background-color: transparent;
  color: var(--bib-fg-muted);
  border: 1.5px solid var(--bib-border);
}

.cookie-banner__btn--secondary:hover {
  color: var(--bib-fg);
  border-color: rgba(232, 233, 240, 0.4);
}

/* 8. BUTTONS */
.bib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  border-radius: var(--bib-radius);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color var(--bib-transition), color var(--bib-transition), border-color var(--bib-transition), transform 80ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.bib-btn:active {
  transform: scale(0.98);
}

.bib-btn--primary {
  background-color: var(--bib-accent);
  color: var(--bib-fg-dark);
  border-color: var(--bib-accent);
}

.bib-btn--primary:hover {
  background-color: #e8841a;
  border-color: #e8841a;
}

.bib-btn--outline-on-dark {
  background-color: transparent;
  color: var(--bib-fg);
  border-color: rgba(232, 233, 240, 0.4);
}

.bib-btn--outline-on-dark:hover {
  background-color: rgba(232, 233, 240, 0.08);
  border-color: var(--bib-fg);
}

.bib-btn--outline-on-light {
  background-color: transparent;
  color: var(--bib-fg-dark);
  border-color: rgba(26, 26, 46, 0.4);
}

.bib-btn--outline-on-light:hover {
  background-color: rgba(26, 26, 46, 0.06);
  border-color: var(--bib-fg-dark);
}

.bib-btn--ghost-on-dark {
  background-color: transparent;
  color: var(--bib-fg-muted);
  border-color: transparent;
  padding-inline: 0.75rem;
}

.bib-btn--ghost-on-dark:hover {
  color: var(--bib-fg);
  background-color: rgba(232, 233, 240, 0.06);
}

.bib-btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.bib-btn--lg {
  padding: 0.9375rem 2rem;
  font-size: 1.0625rem;
}

.bib-btn--full {
  width: 100%;
  justify-content: center;
}

/* 9. SECTION BACKGROUNDS */
.bib-section {
  padding-block: 5rem;
}

.bib-section--dark {
  background-color: var(--bib-bg);
  color: var(--bib-fg);
}

.bib-section--dark-alt {
  background-color: var(--bib-surface-alt);
  color: var(--bib-fg);
}

.bib-section--surface {
  background-color: var(--bib-surface);
  color: var(--bib-fg);
}

.bib-section--light {
  background-color: var(--bib-bg-light);
  color: var(--bib-fg-dark);
}

.bib-section--white {
  background-color: var(--bib-bg-white);
  color: var(--bib-fg-dark);
}

.bib-section__eyebrow {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bib-accent);
  margin-bottom: 0.75rem;
}

.bib-section--light .bib-section__eyebrow,
.bib-section--white .bib-section__eyebrow {
  color: var(--bib-accent-secondary);
}

.bib-section__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.bib-section--dark .bib-section__heading,
.bib-section--dark-alt .bib-section__heading,
.bib-section--surface .bib-section__heading {
  color: var(--bib-fg);
}

.bib-section--light .bib-section__heading,
.bib-section--white .bib-section__heading {
  color: var(--bib-fg-dark);
}

.bib-section__sub {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 580px;
}

.bib-section--dark .bib-section__sub,
.bib-section--dark-alt .bib-section__sub,
.bib-section--surface .bib-section__sub {
  color: var(--bib-fg-muted);
}

.bib-section--light .bib-section__sub,
.bib-section--white .bib-section__sub {
  color: var(--bib-fg-dark-muted);
}

.bib-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  min-width: 0;
}

.bib-section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

/* 10. HOME HERO */
.bib-hero {
  background:
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(247, 147, 26, 0.18) 0%, rgba(79, 70, 229, 0.08) 40%, transparent 70%),
    radial-gradient(ellipse 140% 100% at 50% 50%, #0A0B1E 0%, #050510 100%);
  min-height: calc(90vh - var(--bib-nav-h));
  display: flex;
  align-items: center;
  padding-block: 6rem;
  position: relative;
  overflow: hidden;
}

.bib-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(9, 9, 26, 0.6));
  pointer-events: none;
}

.bib-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bib-hero__eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bib-accent);
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: 100px;
  background-color: rgba(247, 147, 26, 0.08);
}

.bib-hero__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 5.5rem);
  line-height: 1.08;
  color: var(--bib-fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.bib-hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--bib-fg-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.bib-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 11. PAGE HEADERS */
.bib-page-header {
  position: relative;
  display: flex;
  align-items: center;
}

.bib-page-header--subpage {
  background: linear-gradient(135deg, var(--bib-surface-alt) 0%, var(--bib-bg) 100%);
  min-height: 28vh;
  padding-top: calc(var(--bib-nav-h) + 3rem);
  padding-bottom: 3.5rem;
}

.bib-page-header--pricing,
.bib-page-header--contact {
  background-color: var(--bib-bg-light);
  min-height: 22vh;
  padding-top: calc(var(--bib-nav-h) + 2rem);
  padding-bottom: 3rem;
  text-align: center;
}

.bib-page-header--pricing .bib-container,
.bib-page-header--contact .bib-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.bib-page-header--blog {
  background: linear-gradient(135deg, var(--bib-bg) 0%, var(--bib-surface-alt) 100%);
  min-height: 26vh;
  padding-top: calc(var(--bib-nav-h) + 2.5rem);
  padding-bottom: 3.5rem;
}

.bib-page-header--article {
  background-color: var(--bib-bg);
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  align-items: flex-end;
  padding-top: var(--bib-nav-h);
  padding-bottom: 3rem;
}

.bib-page-header--article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 26, 0.3) 0%, rgba(9, 9, 26, 0.75) 55%, rgba(9, 9, 26, 0.95) 100%);
  z-index: 0;
}

.bib-page-header--article .bib-container {
  position: relative;
  z-index: 1;
}

.bib-page-header--legal {
  background-color: var(--bib-bg-light);
  min-height: 18vh;
  padding-top: calc(var(--bib-nav-h) + 1.5rem);
  padding-bottom: 2.5rem;
}

.bib-page-header__eyebrow {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bib-accent);
  margin-bottom: 0.75rem;
}

.bib-page-header--pricing .bib-page-header__eyebrow,
.bib-page-header--contact .bib-page-header__eyebrow,
.bib-page-header--legal .bib-page-header__eyebrow {
  color: var(--bib-accent-secondary);
}

.bib-page-header__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 0.875rem;
}

.bib-page-header--subpage .bib-page-header__heading,
.bib-page-header--blog .bib-page-header__heading,
.bib-page-header--article .bib-page-header__heading {
  color: var(--bib-fg);
}

.bib-page-header--pricing .bib-page-header__heading,
.bib-page-header--contact .bib-page-header__heading,
.bib-page-header--legal .bib-page-header__heading {
  color: var(--bib-fg-dark);
}

.bib-page-header__sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 540px;
}

.bib-page-header--subpage .bib-page-header__sub,
.bib-page-header--blog .bib-page-header__sub,
.bib-page-header--article .bib-page-header__sub {
  color: var(--bib-fg-muted);
}

.bib-page-header--pricing .bib-page-header__sub,
.bib-page-header--contact .bib-page-header__sub,
.bib-page-header--legal .bib-page-header__sub {
  color: var(--bib-fg-dark-muted);
}

/* Article hero back-link */
.bib-article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--bib-fg-muted);
  margin-bottom: 1.5rem;
  transition: color var(--bib-transition);
}

.bib-article-hero__back:hover {
  color: var(--bib-fg);
}

/* Article hero meta */
.bib-article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--bib-fg-muted);
  flex-wrap: wrap;
  margin-top: 1.25rem;
  min-width: 0;
}

.bib-article-hero__meta-sep {
  opacity: 0.4;
}

/* Breadcrumb */
.bib-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--bib-fg-dark-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.bib-breadcrumb a {
  color: var(--bib-fg-dark-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--bib-transition);
}

.bib-breadcrumb a:hover {
  color: var(--bib-fg-dark);
}

/* 12. METRICS BAND */
.bib-metrics {
  background-color: var(--bib-surface);
  border-top: 1px solid var(--bib-border);
  border-bottom: 1px solid var(--bib-border);
}

.bib-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background-color: var(--bib-border);
}

.bib-metrics__item {
  background-color: var(--bib-surface);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  min-width: 0;
}

.bib-metrics__value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--bib-fg);
  line-height: 1;
}

.bib-metrics__label {
  font-size: 0.875rem;
  color: var(--bib-fg-muted);
  line-height: 1.4;
}

.bib-metrics__source {
  font-size: 0.75rem;
  color: var(--bib-fg-muted);
  opacity: 0.6;
  font-style: italic;
  line-height: 1.4;
}

/* 13. HOW-PREVIEW (index) */
.bib-how-preview {
  padding-block: 5rem;
  background-color: var(--bib-bg-light);
}

.bib-how-preview__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-width: 0;
}

.bib-how-preview__steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.bib-how-preview__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.bib-how-preview__step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: var(--bib-accent);
  color: var(--bib-fg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1;
}

.bib-how-preview__step-text {
  min-width: 0;
  padding-top: 0.4rem;
}

.bib-how-preview__step-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bib-fg-dark);
  margin-bottom: 0.25rem;
}

.bib-how-preview__step-text p {
  font-size: 0.9375rem;
  color: var(--bib-fg-dark-muted);
}

.bib-flow-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.bib-flow-svg-wrap svg {
  max-width: 100%;
  height: auto;
}

/* 14. PROOF / TESTIMONIALS */
.bib-proof {
  padding-block: 5rem;
}

.bib-proof__header {
  text-align: center;
  margin-bottom: 3rem;
}

.bib-proof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.bib-testimonial {
  background-color: var(--bib-surface);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.bib-testimonial__icon {
  color: var(--bib-accent);
  font-size: 1.25rem;
  line-height: 1;
}

.bib-testimonial__quote {
  font-size: 1rem;
  color: var(--bib-fg);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

.bib-testimonial__attribution {
  font-size: 0.8125rem;
  color: var(--bib-fg-muted);
  line-height: 1.5;
}

.bib-proof-metric {
  background: linear-gradient(135deg, var(--bib-surface-alt) 0%, var(--bib-surface) 100%);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  min-width: 0;
}

.bib-proof-metric__value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--bib-accent);
}

.bib-proof-metric__label {
  font-size: 1rem;
  color: var(--bib-fg);
}

.bib-proof-metric__source {
  font-size: 0.8125rem;
  color: var(--bib-fg-muted);
  font-style: italic;
}

/* 15. DEV CTA */
.bib-dev-cta {
  background-color: var(--bib-surface-alt);
  border-top: 1px solid var(--bib-border);
  border-bottom: 1px solid var(--bib-border);
  padding-block: 5rem;
  text-align: center;
}

.bib-dev-cta__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--bib-fg);
  margin-bottom: 0.875rem;
}

.bib-dev-cta__sub {
  font-size: 1.0625rem;
  color: var(--bib-fg-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-inline: auto;
}

.bib-dev-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 16. PRE-FOOTER */
.bib-pre-footer {
  padding-block: 2.5rem;
  background-color: var(--bib-bg);
  border-top: 1px solid var(--bib-border);
  text-align: center;
}

.bib-pre-footer__text {
  font-size: 0.9375rem;
  color: var(--bib-fg-muted);
  line-height: 1.65;
}

.bib-pre-footer__email {
  color: var(--bib-fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  transition: color var(--bib-transition);
}

.bib-pre-footer__email:hover {
  color: var(--bib-accent);
}

/* 17. HOW IT WORKS PAGE */

.bib-swap-flow-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.bib-swap-flow-wrap svg {
  max-width: 640px;
  width: 100%;
  height: auto;
}

.bib-steps-numbered {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bib-steps-numbered__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  min-width: 0;
}

.bib-steps-numbered__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bib-accent) 0%, #e88010 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--bib-fg-dark);
}

.bib-steps-numbered__content {
  min-width: 0;
  padding-top: 0.5rem;
}

.bib-steps-numbered__title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.bib-section--dark .bib-steps-numbered__title,
.bib-section--dark-alt .bib-steps-numbered__title {
  color: var(--bib-fg);
}

.bib-section--dark .bib-steps-numbered__desc,
.bib-section--dark-alt .bib-steps-numbered__desc {
  color: var(--bib-fg-muted);
}

.bib-section--light .bib-steps-numbered__title,
.bib-section--white .bib-steps-numbered__title {
  color: var(--bib-fg-dark);
}

.bib-steps-numbered__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.bib-section--light .bib-steps-numbered__desc,
.bib-section--white .bib-steps-numbered__desc {
  color: var(--bib-fg-dark-muted);
}

/* FAQ ACCORDION */
.bib-faq {
  display: flex;
  flex-direction: column;
}

.bib-faq__item {
  border-bottom: 1px solid var(--bib-border);
}

.bib-faq__item:first-child {
  border-top: 1px solid var(--bib-border);
}

.bib-section--light .bib-faq__item,
.bib-section--white .bib-faq__item {
  border-color: var(--bib-border-light);
}

.bib-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--bib-transition);
  min-width: 0;
}

.bib-section--dark .bib-faq__question,
.bib-section--dark-alt .bib-faq__question {
  color: var(--bib-fg);
}

.bib-section--light .bib-faq__question,
.bib-section--white .bib-faq__question {
  color: var(--bib-fg-dark);
}

.bib-faq__question:hover {
  color: var(--bib-accent);
}

.bib-faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--bib-fg-muted);
  transition: transform var(--bib-transition), color var(--bib-transition);
}

.bib-faq__item.is-open .bib-faq__icon {
  transform: rotate(45deg);
  color: var(--bib-accent);
}

.bib-faq__answer {
  display: none;
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-bottom: 1.25rem;
}

.bib-faq__item.is-open .bib-faq__answer {
  display: block;
}

.bib-section--dark .bib-faq__answer,
.bib-section--dark-alt .bib-faq__answer {
  color: var(--bib-fg-muted);
}

.bib-section--light .bib-faq__answer,
.bib-section--white .bib-faq__answer {
  color: var(--bib-fg-dark-muted);
}

/* 18. PROTOCOL PAGE */

.bib-arch-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-block: 1rem;
  min-width: 0;
}

.bib-arch-svg-wrap svg {
  max-width: 640px;
  width: 100%;
  height: auto;
}

.bib-components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bib-component-card {
  background-color: var(--bib-surface);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius-lg);
  padding: 1.75rem;
  min-width: 0;
  transition: border-color var(--bib-transition);
}

.bib-component-card:hover {
  border-color: rgba(247, 147, 26, 0.3);
}

.bib-component-card__icon {
  font-size: 1.5rem;
  color: var(--bib-accent);
  margin-bottom: 1rem;
}

.bib-component-card__title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--bib-fg);
  margin-bottom: 0.5rem;
}

.bib-component-card__desc {
  font-size: 0.9375rem;
  color: var(--bib-fg-muted);
  line-height: 1.6;
}

/* 19. TABLES */
.bib-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--bib-radius);
  border: 1px solid var(--bib-border);
}

.bib-section--light .bib-table-wrap,
.bib-section--white .bib-table-wrap {
  border-color: var(--bib-border-light);
}

.bib-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 480px;
}

.bib-table th {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--bib-border);
}

.bib-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--bib-border);
  vertical-align: middle;
  min-width: 0;
}

.bib-table tr:last-child td {
  border-bottom: none;
}

.bib-section--dark .bib-table th,
.bib-section--dark-alt .bib-table th {
  background-color: var(--bib-surface);
  color: var(--bib-fg-muted);
  border-color: var(--bib-border);
}

.bib-section--dark .bib-table td,
.bib-section--dark-alt .bib-table td {
  background-color: var(--bib-bg);
  color: var(--bib-fg);
  border-color: var(--bib-border);
}

.bib-section--light .bib-table th {
  background-color: var(--bib-bg-light);
  color: var(--bib-fg-dark-muted);
  border-color: var(--bib-border-light);
}

.bib-section--light .bib-table td {
  background-color: var(--bib-bg-white);
  color: var(--bib-fg-dark);
  border-color: var(--bib-border-light);
}

.bib-section--white .bib-table th {
  background-color: var(--bib-bg-light);
  color: var(--bib-fg-dark-muted);
  border-color: var(--bib-border-light);
}

.bib-section--white .bib-table td {
  color: var(--bib-fg-dark);
  border-color: var(--bib-border-light);
}

/* 20. SECURITY PAGE */

.bib-security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bib-security-card {
  border-radius: var(--bib-radius-lg);
  padding: 1.75rem;
  min-width: 0;
}

.bib-security-card--dark {
  background-color: var(--bib-surface);
  border: 1px solid var(--bib-border);
}

.bib-security-card--light {
  background-color: var(--bib-bg-white);
  border: 1px solid var(--bib-border-light);
}

.bib-security-card__icon {
  font-size: 1.5rem;
  color: var(--bib-accent);
  margin-bottom: 0.875rem;
}

.bib-security-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.bib-security-card--dark .bib-security-card__title {
  color: var(--bib-fg);
}

.bib-security-card--light .bib-security-card__title {
  color: var(--bib-fg-dark);
}

.bib-security-card__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bib-security-card--dark .bib-security-card__desc {
  color: var(--bib-fg-muted);
}

.bib-security-card--light .bib-security-card__desc {
  color: var(--bib-fg-dark-muted);
}

/* 21. DEVELOPERS PAGE */

.bib-dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.bib-dev-grid > * {
  min-width: 0;
}

/* API Mock panel */
.bib-api-mock {
  background-color: var(--bib-surface);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius-lg);
  overflow: hidden;
  min-width: 0;
}

.bib-api-mock__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--bib-border);
  background-color: rgba(255, 255, 255, 0.025);
  min-width: 0;
}

.bib-api-mock__title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bib-fg-muted);
}

.bib-api-mock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--bib-accent);
  margin-left: auto;
  flex-shrink: 0;
  animation: bib-pulse 2s ease-in-out infinite;
}

@keyframes bib-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.bib-api-mock__endpoint {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.9375rem 1.25rem;
  border-bottom: 1px solid var(--bib-border);
  min-width: 0;
  transition: background-color var(--bib-transition);
}

.bib-api-mock__endpoint:last-child {
  border-bottom: none;
}

.bib-api-mock__endpoint:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

.bib-endpoint-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  min-width: 44px;
  justify-content: center;
}

.bib-endpoint-badge--post {
  background-color: rgba(247, 147, 26, 0.15);
  color: var(--bib-accent);
}

.bib-endpoint-badge--get {
  background-color: rgba(79, 70, 229, 0.15);
  color: #818cf8;
}

.bib-api-mock__path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--bib-fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.bib-api-mock__desc {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--bib-fg-muted);
  flex-shrink: 0;
  max-width: 160px;
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}

/* SDK / feature list */
.bib-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.bib-feature-list__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
}

.bib-feature-list__icon {
  flex-shrink: 0;
  color: var(--bib-accent);
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

.bib-feature-list__text {
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bib-section--dark .bib-feature-list__text,
.bib-section--dark-alt .bib-feature-list__text {
  color: var(--bib-fg-muted);
}

.bib-section--light .bib-feature-list__text,
.bib-section--white .bib-feature-list__text {
  color: var(--bib-fg-dark-muted);
}

/* Support tiers */
.bib-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bib-support-card {
  background-color: var(--bib-surface);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius-lg);
  padding: 1.75rem;
  min-width: 0;
}

.bib-support-card__tier {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bib-accent);
  margin-bottom: 0.5rem;
}

.bib-support-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--bib-fg);
  margin-bottom: 0.5rem;
}

.bib-support-card__desc {
  font-size: 0.9375rem;
  color: var(--bib-fg-muted);
  line-height: 1.6;
}

/* 22. INTEGRATIONS PAGE */

.bib-chains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bib-chain-card {
  background-color: var(--bib-bg-white);
  border: 1px solid var(--bib-border-light);
  border-radius: var(--bib-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  transition: border-color var(--bib-transition), box-shadow var(--bib-transition);
}

.bib-chain-card:hover {
  border-color: rgba(247, 147, 26, 0.3);
  box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.08);
}

.bib-chain-card__icon {
  font-size: 2rem;
  color: var(--bib-accent);
}

.bib-chain-card__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--bib-fg-dark);
}

.bib-chain-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.bib-chain-card__status--active {
  color: #166534;
}

.bib-chain-card__status--active::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  flex-shrink: 0;
}

.bib-chain-card__status--planned {
  color: var(--bib-fg-dark-muted);
}

.bib-chain-card__status--planned::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--bib-fg-dark-muted);
  flex-shrink: 0;
}

.bib-chain-card__desc {
  font-size: 0.875rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.55;
}

/* Timeline / roadmap */
.bib-timeline {
  position: relative;
}

.bib-timeline::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: 1rem;
  width: 2px;
  height: calc(100% - 2rem);
  background-color: var(--bib-border-light);
  z-index: 0;
}

.bib-timeline__items {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 3rem;
}

.bib-timeline__item {
  position: relative;
  padding-bottom: 2rem;
  min-width: 0;
}

.bib-timeline__item:last-child {
  padding-bottom: 0;
}

.bib-timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-3rem + 0.65rem);
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bib-bg-light);
  border: 2.5px solid var(--bib-border-light);
  z-index: 1;
}

.bib-timeline__item--done::before {
  background-color: var(--bib-accent);
  border-color: var(--bib-accent);
}

.bib-timeline__item--active::before {
  background-color: var(--bib-bg-light);
  border-color: var(--bib-accent);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.bib-timeline__period {
  font-size: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bib-fg-dark-muted);
  margin-bottom: 0.25rem;
}

.bib-timeline__title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--bib-fg-dark);
  margin-bottom: 0.375rem;
}

.bib-timeline__desc {
  font-size: 0.9375rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.55;
}

.bib-timeline__indicative {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--bib-fg-dark-muted);
  font-style: italic;
}

/* 23. PRICING PAGE */

.bib-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.bib-pricing-card {
  background-color: var(--bib-bg-white);
  border: 1.5px solid var(--bib-border-light);
  border-radius: var(--bib-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  transition: border-color var(--bib-transition), box-shadow var(--bib-transition);
}

.bib-pricing-card:hover {
  border-color: var(--bib-accent);
  box-shadow: 0 4px 24px rgba(247, 147, 26, 0.08);
}

.bib-pricing-card--featured {
  border-color: var(--bib-accent);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1), 0 8px 32px rgba(247, 147, 26, 0.08);
}

.bib-pricing-card__badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background-color: var(--bib-accent);
  color: var(--bib-fg-dark);
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 6px 6px;
}

.bib-pricing-card__tier {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bib-fg-dark-muted);
  margin-bottom: 0.5rem;
}

.bib-pricing-card__price {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--bib-fg-dark);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.bib-pricing-card__price-note {
  font-size: 0.875rem;
  color: var(--bib-fg-dark-muted);
  margin-bottom: 0.75rem;
  min-height: 1.25rem;
}

.bib-pricing-card__fee {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background-color: rgba(247, 147, 26, 0.09);
  color: #8B4000;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.bib-pricing-card__divider {
  height: 1px;
  background-color: var(--bib-border-light);
  margin-bottom: 1.25rem;
}

.bib-pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.bib-pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--bib-fg-dark);
  min-width: 0;
  line-height: 1.5;
}

.bib-pricing-card__feature-icon {
  flex-shrink: 0;
  color: var(--bib-accent);
  margin-top: 0.1rem;
  font-size: 0.875rem;
}

.bib-pricing-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--bib-radius);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color var(--bib-transition), color var(--bib-transition), border-color var(--bib-transition);
  margin-top: auto;
  cursor: pointer;
}

.bib-pricing-card--featured .bib-pricing-card__cta {
  background-color: var(--bib-accent);
  color: var(--bib-fg-dark);
  border: 1.5px solid var(--bib-accent);
}

.bib-pricing-card--featured .bib-pricing-card__cta:hover {
  background-color: #e8841a;
  border-color: #e8841a;
}

.bib-pricing-card:not(.bib-pricing-card--featured) .bib-pricing-card__cta {
  background-color: transparent;
  color: var(--bib-fg-dark);
  border: 1.5px solid rgba(26, 26, 46, 0.3);
}

.bib-pricing-card:not(.bib-pricing-card--featured) .bib-pricing-card__cta:hover {
  border-color: var(--bib-fg-dark);
  background-color: rgba(26, 26, 46, 0.04);
}

/* Fee Calculator */
.bib-calculator {
  background-color: var(--bib-bg-light);
  border: 1px solid var(--bib-border-light);
  border-radius: var(--bib-radius-lg);
  padding: 2rem;
  max-width: 580px;
  margin-inline: auto;
}

.bib-calculator__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bib-fg-dark);
  margin-bottom: 1.5rem;
}

.bib-calculator__inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bib-calculator__row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bib-calculator__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bib-fg-dark);
}

.bib-calculator__input,
.bib-calculator__select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: var(--bib-bg-white);
  border: 1px solid var(--bib-border-light);
  border-radius: var(--bib-radius);
  color: var(--bib-fg-dark);
  font-size: 0.9375rem;
  transition: border-color var(--bib-transition);
}

.bib-calculator__input:focus,
.bib-calculator__select:focus {
  outline: none;
  border-color: var(--bib-accent);
}

.bib-calculator__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235B5B8A' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.bib-calculator__divider {
  height: 1px;
  background-color: var(--bib-border-light);
  margin-bottom: 1.25rem;
}

.bib-calculator__output {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bib-calculator__output-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.bib-calculator__output-label {
  font-size: 0.875rem;
  color: var(--bib-fg-dark-muted);
  flex-shrink: 0;
}

.bib-calculator__output-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--bib-fg-dark);
  text-align: right;
  min-width: 0;
  word-break: break-all;
}

.bib-calculator__output-row--total .bib-calculator__output-value {
  color: #8B4000;
  font-weight: 700;
  font-size: 1rem;
}

.bib-calculator__disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--bib-fg-dark-muted);
  font-style: italic;
  line-height: 1.55;
}

/* 24. ABOUT PAGE */

.bib-about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  min-width: 0;
}

.bib-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.bib-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  min-width: 0;
  background-color: var(--bib-surface);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius-lg);
  padding: 2rem 1.5rem;
}

.bib-portrait-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(247, 147, 26, 0.25);
}

.bib-team-card__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bib-fg);
}

.bib-team-card__role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bib-fg-muted);
  margin-top: -0.375rem;
}

.bib-team-card__bio {
  font-size: 0.9375rem;
  color: var(--bib-fg-muted);
  line-height: 1.65;
}

.bib-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bib-value-card {
  background-color: var(--bib-bg-white);
  border: 1px solid var(--bib-border-light);
  border-radius: var(--bib-radius-lg);
  padding: 2rem;
  min-width: 0;
}

.bib-value-card__icon {
  font-size: 1.75rem;
  color: var(--bib-accent);
  margin-bottom: 0.875rem;
}

.bib-value-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--bib-fg-dark);
  margin-bottom: 0.5rem;
}

.bib-value-card__desc {
  font-size: 0.9375rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.6;
}

/* 25. BLOG INDEX */

.bib-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bib-blog-card {
  background-color: var(--bib-bg-white);
  border: 1px solid var(--bib-border-light);
  border-radius: var(--bib-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow var(--bib-transition), border-color var(--bib-transition);
}

.bib-blog-card:hover {
  border-color: rgba(247, 147, 26, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.bib-blog-card__img-wrap {
  aspect-ratio: 3/2;
  overflow: hidden;
  background-color: var(--bib-surface-alt);
  flex-shrink: 0;
}

.bib-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  display: block;
}

.bib-blog-card:hover .bib-blog-card__img {
  transform: scale(1.03);
}

.bib-blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.bib-blog-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bib-fg-dark);
  line-height: 1.35;
  transition: color var(--bib-transition);
}

.bib-blog-card:hover .bib-blog-card__title {
  color: #b8560a;
}

.bib-blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

.bib-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--bib-fg-dark-muted);
  margin-top: auto;
  flex-wrap: wrap;
  min-width: 0;
}

.bib-blog-card__date,
.bib-blog-card__read {
  font-size: 0.8125rem;
  color: var(--bib-fg-dark-muted);
  white-space: nowrap;
}

/* 26. ARTICLE PAGES */

.bib-article-hero__author,
.bib-article-hero__date,
.bib-article-hero__read {
  font-size: 0.875rem;
  color: rgba(232, 233, 240, 0.75);
  font-weight: 400;
}

.bib-article-hero {
  position: relative;
  min-height: clamp(240px, 36vh, 400px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--bib-bg);
  background-size: cover;
  background-position: center;
}

.bib-article-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 26, 0.3) 0%, rgba(9, 9, 26, 0.72) 50%, rgba(9, 9, 26, 0.96) 100%);
  z-index: 1;
}

.bib-article-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-inline: 1.5rem;
  padding-bottom: 3rem;
  padding-top: calc(var(--bib-nav-h) + 2rem);
  max-width: var(--bib-max-w);
  margin-inline: auto;
}

.bib-article-hero__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--bib-fg);
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 0;
}

/* Article body */
.bib-article-body {
  background-color: var(--bib-bg-white);
  color: var(--bib-fg-dark);
  padding-block: 3.5rem;
}

.bib-article-body__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bib-article-body h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3125rem, 2.5vw, 1.875rem);
  color: var(--bib-fg-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  line-height: 1.25;
}

.bib-article-body h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--bib-fg-dark);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.bib-article-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--bib-fg-dark);
  margin-bottom: 1.25rem;
}

.bib-article-body ul,
.bib-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: initial;
}

.bib-article-body ol {
  list-style: decimal;
}

.bib-article-body li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--bib-fg-dark);
  margin-bottom: 0.5rem;
}

.bib-article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background-color: var(--bib-bg-light);
  color: var(--bib-fg-dark);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  word-break: break-word;
}

.bib-article-body pre {
  background-color: var(--bib-bg);
  border: 1px solid var(--bib-border);
  border-radius: var(--bib-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bib-article-body pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--bib-fg);
  word-break: normal;
  white-space: pre;
  overflow-wrap: normal;
}

.bib-article-body blockquote {
  border-left: 3px solid var(--bib-accent);
  padding-left: 1.25rem;
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.bib-article-body blockquote p {
  color: var(--bib-fg-dark-muted);
  font-style: italic;
}

.bib-article-body a {
  color: #b8560a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--bib-transition);
}

.bib-article-body a:hover {
  color: var(--bib-fg-dark);
}

/* Related articles */
.bib-related {
  background-color: var(--bib-bg-light);
  padding-block: 4rem;
}

.bib-related__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bib-fg-dark);
  margin-bottom: 2rem;
}

.bib-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* 27. CONTACT PAGE */

.bib-contact-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
  min-width: 0;
}

.bib-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bib-contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bib-contact-info__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bib-fg-dark-muted);
}

.bib-contact-info__value {
  font-size: 0.9375rem;
  color: var(--bib-fg-dark);
  font-style: normal;
  line-height: 1.55;
}

.bib-contact-info__value a {
  color: var(--bib-fg-dark);
  transition: color var(--bib-transition);
}

.bib-contact-info__value a:hover {
  color: #b8560a;
}

/* 28. FORMS */
.bib-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bib-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bib-form__error {
  font-size: 0.8125rem;
  color: #c0392b;
  min-height: 1.1em;
  line-height: 1.35;
}

.bib-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bib-form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bib-form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bib-fg-dark);
}

.bib-form-input,
.bib-form-select,
.bib-form-textarea {
  width: 100%;
  padding: 0.6875rem 0.9375rem;
  background-color: var(--bib-bg-white);
  border: 1px solid var(--bib-border-light);
  border-radius: var(--bib-radius);
  color: var(--bib-fg-dark);
  font-size: 0.9375rem;
  font-family: 'Manrope', sans-serif;
  transition: border-color var(--bib-transition), box-shadow var(--bib-transition);
}

.bib-form-input::placeholder,
.bib-form-textarea::placeholder {
  color: var(--bib-fg-dark-muted);
  opacity: 0.6;
}

.bib-form-input:focus,
.bib-form-select:focus,
.bib-form-textarea:focus {
  outline: none;
  border-color: var(--bib-accent);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.bib-form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.bib-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235B5B8A' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.9375rem center;
  background-size: 20px;
  padding-right: 2.75rem;
  cursor: pointer;
}

/* 28b. FORM CONFIRMATION STATE */
.bib-form-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 0.75rem;
}

.bib-form-confirm__icon {
  font-size: 2.5rem;
  color: var(--bib-accent);
  line-height: 1;
}

.bib-form-confirm__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--bib-fg-dark);
  margin: 0;
}

.bib-form-confirm__text {
  font-size: 0.9375rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
}

/* 29. AUTH PAGE */
.bib-auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bib-bg-light) 0%, var(--bib-bg-white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.bib-auth-card {
  background-color: var(--bib-bg-white);
  border: 1px solid var(--bib-border-light);
  border-radius: var(--bib-radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 32px rgba(26, 26, 46, 0.1);
}

.bib-auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.bib-auth-card__logo img {
  height: 24px;
  width: auto;
}

.bib-auth-card__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bib-fg-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.bib-auth-card__sub {
  font-size: 0.9375rem;
  color: var(--bib-fg-dark-muted);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.bib-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bib-auth-submit {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bib-accent);
  color: var(--bib-fg-dark);
  border: none;
  border-radius: var(--bib-radius);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color var(--bib-transition);
}

.bib-auth-submit:hover {
  background-color: #e8841a;
}

.bib-auth-card__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bib-auth-card__error {
  padding: 0.75rem 1rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--bib-radius);
  color: #991b1b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.bib-auth-card__footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.55;
}

.bib-auth-card__footer a {
  color: var(--bib-fg-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--bib-transition);
}

.bib-auth-card__footer a:hover {
  color: #b8560a;
}

.bib-auth-card__legal {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.55;
}

.bib-auth-card__legal a {
  color: var(--bib-fg-dark-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 30. LEGAL PAGES */

.bib-legal-header {
  background-color: var(--bib-bg-light);
  padding-top: calc(var(--bib-nav-h) + 1.5rem);
  padding-bottom: 2.5rem;
}

.bib-legal-header__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--bib-fg-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.bib-legal-header__meta {
  font-size: 0.9375rem;
  color: var(--bib-fg-dark-muted);
  line-height: 1.55;
}

.bib-legal-content {
  background-color: var(--bib-bg-white);
  padding-block: 3.5rem;
  --bib-accent: #8C3E0A; /* dark amber — 6.8:1 on white, satisfies WCAG AA for inline style="color:var(--bib-accent)" links */
}

.bib-legal-content__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bib-legal-content h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--bib-fg-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
}

.bib-legal-content h2:first-child {
  margin-top: 0;
}

.bib-legal-content h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--bib-fg-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.bib-legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--bib-fg-dark);
  margin-bottom: 1rem;
}

.bib-legal-content ul,
.bib-legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: initial;
}

.bib-legal-content ol {
  list-style: decimal;
}

.bib-legal-content li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--bib-fg-dark);
  margin-bottom: 0.375rem;
}

.bib-legal-content a {
  color: var(--bib-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bib-legal-content address {
  color: var(--bib-fg-dark);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.bib-legal-content th,
.bib-legal-content td {
  color: var(--bib-fg-dark);
}

.bib-legal-updated {
  font-size: 0.8125rem;
  color: var(--bib-fg-dark-muted);
  margin-bottom: 2rem;
}

/* 31. BADGE / PILL */
.bib-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.bib-badge--accent {
  background-color: rgba(247, 147, 26, 0.12);
  color: #b8560a;
}

.bib-section--dark .bib-badge--accent,
.bib-section--dark-alt .bib-badge--accent,
.bib-section--surface .bib-badge--accent {
  color: var(--bib-accent);
}

.bib-badge--secondary {
  background-color: rgba(79, 70, 229, 0.12);
  color: var(--bib-accent-secondary);
}

.bib-badge--muted {
  background-color: rgba(138, 141, 184, 0.1);
  color: var(--bib-fg-muted);
}

/* Code inline */
.bib-code-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--bib-fg);
}

.bib-section--light .bib-code-inline,
.bib-section--white .bib-code-inline,
.bib-chain-card .bib-code-inline {
  background-color: var(--bib-bg-light);
  color: var(--bib-fg-dark);
}

.bib-code-inline {
  overflow-wrap: break-word;
}

/* 32. UTILITIES */
.bib-text-center { text-align: center; }
.bib-text-left { text-align: left; }
.bib-text-accent { color: var(--bib-accent); }

.bib-mb-sm { margin-bottom: 0.75rem; }
.bib-mb-md { margin-bottom: 1.5rem; }
.bib-mb-lg { margin-bottom: 2.5rem; }
.bib-mb-xl { margin-bottom: 4rem; }

.bib-mt-sm { margin-top: 0.75rem; }
.bib-mt-md { margin-top: 1.5rem; }
.bib-mt-lg { margin-top: 2.5rem; }

.bib-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bib-gap-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.bib-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.bib-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background-color: var(--bib-accent);
  color: var(--bib-fg-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--bib-radius);
  font-weight: 700;
  transition: top 0.1s;
}

.bib-skip-link:focus {
  top: 1rem;
}

/* 33. INLINE SVG (bib-flow-preview-svg, bib-swap-flow-svg, bib-arch-svg) */
.bib-inline-svg-dark {
  background-color: transparent;
}

/* 34. MOBILE TABLE COLLAPSE - 6-layer display:block */
@media (max-width: 600px) {
  .bib-table-wrap {
    overflow-x: unset;
    border: none;
  }

  .bib-table,
  .bib-table thead,
  .bib-table tbody,
  .bib-table th,
  .bib-table td,
  .bib-table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .bib-table thead {
    display: none;
  }

  .bib-table td {
    text-align: left;
    padding: 0.5rem 1rem;
    border-bottom: none;
  }

  .bib-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bib-fg-dark-muted);
    margin-bottom: 0.2rem;
  }

  .bib-section--dark .bib-table td::before,
  .bib-section--dark-alt .bib-table td::before {
    color: var(--bib-fg-muted);
  }

  .bib-table tr {
    border-bottom: 1px solid var(--bib-border);
    padding-block: 0.5rem;
    margin-bottom: 0;
  }

  .bib-section--light .bib-table tr,
  .bib-section--white .bib-table tr {
    border-color: var(--bib-border-light);
  }

  .bib-table tr:last-child {
    border-bottom: none;
  }
}

/* 35. RESPONSIVE BREAKPOINTS */

@media (max-width: 1200px) {
  .bib-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .bib-section {
    padding-block: 4rem;
  }

  .bib-components-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bib-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .bib-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bib-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bib-chains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bib-nav__links {
    display: none;
    position: absolute;
    top: var(--bib-nav-h);
    left: 0;
    right: 0;
    background-color: var(--bib-bg);
    border-bottom: 1px solid var(--bib-border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0;
    z-index: 99;
  }

  .bib-nav--open .bib-nav__links {
    display: flex;
  }

  .bib-nav__link {
    padding: 0.75rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--bib-border);
  }

  .bib-nav__link:last-child {
    border-bottom: none;
  }

  .bib-nav__right {
    display: none;
  }

  .bib-nav--open .bib-nav__right {
    display: flex;
    position: absolute;
    top: calc(var(--bib-nav-h) + 240px);
    left: 1.5rem;
    right: 1.5rem;
    z-index: 99;
  }

  .bib-nav__cta {
    width: 100%;
    justify-content: center;
  }

  .bib-nav__hamburger {
    display: flex;
  }

  .bib-nav {
    overflow: visible;
  }

  .bib-section {
    padding-block: 3rem;
  }

  .bib-hero {
    min-height: 75vh;
    padding-block: 4rem;
  }

  .bib-how-preview__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bib-proof__grid {
    grid-template-columns: 1fr;
  }

  .bib-dev-cta {
    padding-block: 3.5rem;
  }

  .bib-team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .bib-values-grid {
    grid-template-columns: 1fr;
  }

  .bib-about-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bib-dev-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bib-contact-cols {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bib-security-grid {
    grid-template-columns: 1fr;
  }

  .bib-support-grid {
    grid-template-columns: 1fr;
  }

  .bib-chains-grid {
    grid-template-columns: 1fr;
  }

  .bib-components-grid {
    grid-template-columns: 1fr;
  }

  .bib-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .bib-blog-grid {
    grid-template-columns: 1fr;
  }

  .bib-related__grid {
    grid-template-columns: 1fr;
  }

  .bib-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bib-form-row--half {
    grid-template-columns: 1fr;
  }

  .bib-footer__top {
    grid-template-columns: 1fr;
  }

  .bib-footer__legal-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .bib-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bib-hero__actions .bib-btn {
    justify-content: center;
  }

  .bib-dev-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .bib-cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .bib-article-hero .bib-article-hero__content {
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --bib-nav-h: 60px;
  }

  .bib-container {
    padding-inline: 1rem;
  }

  .bib-auth-card {
    padding: 2rem 1.25rem;
  }

  .bib-metrics__grid {
    grid-template-columns: 1fr;
  }

  .bib-dev-cta__heading {
    font-size: 1.5rem;
  }
}
