/* ============================================================
   Bastionchip — bstn.css
   Design: deep-navy #0B1929 + precision-cyan #00C4FF
   Typography: IBM Plex Mono (display) + Inter (body)
   ============================================================ */

/* === RESET & TOKENS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bstn-bg-dark:       #0B1929;
  --bstn-bg-dark-alt:   #0F2440;
  --bstn-bg-light:      #F4F7FA;
  --bstn-bg-white:      #FFFFFF;
  --bstn-bg-mid:        #EBF1F7;
  --bstn-accent:        #00C4FF;
  --bstn-accent-aa:     #006A8C;
  --bstn-fg-dark-1:     #F0F6FF;
  --bstn-fg-dark-2:     #8EB8D4;
  --bstn-fg-light-1:    #0B1929;
  --bstn-fg-light-2:    #374151;
  --bstn-border-dark:   #1E3A55;
  --bstn-border-light:  #D1DCE8;
  --bstn-success:       #10B981;
  --bstn-warning:       #F59E0B;
  --bstn-radius:        6px;
  --bstn-radius-lg:     12px;
  --bstn-shadow:        0 4px 24px rgba(0,0,0,0.10);
  --bstn-shadow-dark:   0 4px 24px rgba(0,0,0,0.35);
  --bstn-transition:    200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bstn-fg-light-1);
  background: var(--bstn-bg-dark);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === ANNOUNCEMENT STRIP === */
.bstn-strip {
  background: var(--bstn-accent);
  color: #001826;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 24px;
  line-height: 1.4;
  position: relative;
  z-index: 110;
}
.bstn-strip a {
  color: #001826;
  text-decoration: underline;
  margin-left: 8px;
  font-weight: 700;
}
.bstn-strip a:hover { opacity: 0.8; }

/* === NAV === */
.bstn-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bstn-bg-dark);
  border-bottom: 1px solid var(--bstn-border-dark);
  transition: box-shadow var(--bstn-transition);
}
.bstn-nav--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.bstn-nav__inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 64px;
}
.bstn-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}
.bstn-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 180px;
}
.bstn-nav__logo-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  letter-spacing: -0.02em;
}
.bstn-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.bstn-nav__item { position: relative; }
.bstn-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bstn-fg-dark-2);
  border-radius: var(--bstn-radius);
  transition: color var(--bstn-transition), background var(--bstn-transition);
  background: transparent;
  border: none;
  line-height: 1;
}
.bstn-nav__link:hover,
.bstn-nav__link:focus { color: var(--bstn-fg-dark-1); background: rgba(255,255,255,0.06); }
.bstn-nav__link i { font-size: 0.7rem; transition: transform var(--bstn-transition); }
.bstn-nav__item:hover .bstn-nav__link i,
.bstn-nav__item.is-open .bstn-nav__link i { transform: rotate(180deg); }

/* Dropdown */
.bstn-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bstn-bg-dark-alt);
  border: 1px solid var(--bstn-border-dark);
  border-radius: var(--bstn-radius-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--bstn-transition), transform var(--bstn-transition), visibility var(--bstn-transition);
  box-shadow: var(--bstn-shadow-dark);
  z-index: 200;
}
.bstn-nav__item:hover .bstn-nav__dropdown,
.bstn-nav__item.is-open .bstn-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bstn-nav__dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  border-radius: 4px;
  transition: color var(--bstn-transition), background var(--bstn-transition);
}
.bstn-nav__dropdown a:hover { color: var(--bstn-fg-dark-1); background: rgba(255,255,255,0.06); }

/* Nav CTAs */
.bstn-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

/* Hamburger */
.bstn-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  margin-left: 12px;
}
.bstn-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bstn-fg-dark-1);
  border-radius: 2px;
  transition: transform var(--bstn-transition), opacity var(--bstn-transition);
}
.bstn-nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bstn-nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bstn-nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.bstn-nav__mobile {
  display: none;
  background: var(--bstn-bg-dark-alt);
  border-top: 1px solid var(--bstn-border-dark);
  padding: 16px 0;
}
.bstn-nav__mobile.is-open { display: block; }
.bstn-nav__mobile-link {
  display: block;
  padding: 11px 24px;
  font-size: 0.9375rem;
  color: var(--bstn-fg-dark-2);
  transition: color var(--bstn-transition);
}
.bstn-nav__mobile-link:hover { color: var(--bstn-fg-dark-1); }
.bstn-nav__mobile-group { border-bottom: 1px solid var(--bstn-border-dark); margin-bottom: 8px; padding-bottom: 8px; }
.bstn-nav__mobile-sub {
  padding: 0 0 0 16px;
}
.bstn-nav__mobile-sub a {
  display: block;
  padding: 9px 24px;
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
}
.bstn-nav__mobile-sub a:hover { color: var(--bstn-accent); }
.bstn-nav__mobile-actions {
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === BUTTONS === */
.bstn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--bstn-radius);
  border: 2px solid transparent;
  transition: background var(--bstn-transition), color var(--bstn-transition), border-color var(--bstn-transition), box-shadow var(--bstn-transition);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.bstn-btn--primary {
  background: var(--bstn-accent);
  color: #001826;
  border-color: var(--bstn-accent);
}
.bstn-btn--primary:hover {
  background: #00AADD;
  border-color: #00AADD;
  box-shadow: 0 0 20px rgba(0,196,255,0.3);
}
.bstn-btn--ghost {
  background: transparent;
  color: var(--bstn-fg-dark-1);
  border-color: var(--bstn-border-dark);
}
.bstn-btn--ghost:hover {
  border-color: var(--bstn-accent);
  color: var(--bstn-accent);
}
.bstn-btn--outline {
  background: transparent;
  color: var(--bstn-fg-dark-1);
  border-color: rgba(255,255,255,0.35);
}
.bstn-btn--outline:hover {
  border-color: var(--bstn-accent);
  color: var(--bstn-accent);
}
.bstn-btn--outline-light {
  background: transparent;
  color: var(--bstn-fg-light-1);
  border-color: var(--bstn-border-light);
}
.bstn-btn--outline-light:hover {
  border-color: var(--bstn-accent-aa);
  color: var(--bstn-accent-aa);
}
.bstn-btn--sm {
  padding: 7px 16px;
  font-size: 0.8125rem;
}
.bstn-btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* === SECTION VARIANTS === */
.bstn-section--dark {
  background: var(--bstn-bg-dark);
  color: var(--bstn-fg-dark-1);
}
.bstn-section--dark-alt {
  background: var(--bstn-bg-dark-alt);
  color: var(--bstn-fg-dark-1);
}
.bstn-section--light {
  background: var(--bstn-bg-light);
  color: var(--bstn-fg-light-1);
}
.bstn-section--white {
  background: var(--bstn-bg-white);
  color: var(--bstn-fg-light-1);
}
.bstn-section--mid {
  background: var(--bstn-bg-mid);
  color: var(--bstn-fg-light-1);
}

/* Container */
.bstn-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.bstn-section { padding: 80px 0; }
.bstn-section--sm { padding: 48px 0; }
.bstn-section--lg { padding: 100px 0; }

/* === TYPOGRAPHY UTILS === */
.bstn-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bstn-accent);
  margin-bottom: 14px;
  display: block;
}
.bstn-section--light .bstn-eyebrow,
.bstn-section--white .bstn-eyebrow,
.bstn-section--mid .bstn-eyebrow {
  color: var(--bstn-accent-aa);
}
.bstn-section--dark .bstn-eyebrow,
.bstn-section--dark-alt .bstn-eyebrow {
  color: var(--bstn-accent);
}

.bstn-section-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.bstn-section--light .bstn-section-headline,
.bstn-section--white .bstn-section-headline,
.bstn-section--mid .bstn-section-headline {
  color: var(--bstn-fg-light-1);
}
.bstn-section--dark .bstn-section-headline,
.bstn-section--dark-alt .bstn-section-headline {
  color: var(--bstn-fg-dark-1);
}

.bstn-section-lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 32px;
}
.bstn-section--light .bstn-section-lede,
.bstn-section--white .bstn-section-lede,
.bstn-section--mid .bstn-section-lede {
  color: var(--bstn-fg-light-2);
}
.bstn-section--dark .bstn-section-lede,
.bstn-section--dark-alt .bstn-section-lede {
  color: var(--bstn-fg-dark-2);
}

/* === HERO === */
.bstn-hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bstn-bg-dark);
}
.bstn-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.bstn-hero__text {}
.bstn-hero__headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  line-height: 1.15;
  margin-bottom: 20px;
}
.bstn-hero__headline span { color: var(--bstn-accent); }
.bstn-hero__subhead {
  font-size: 1.0625rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.bstn-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.bstn-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === TRUST SIGNALS / STAT BAR === */
.bstn-stats {
  background: var(--bstn-bg-dark-alt);
  border-top: 1px solid var(--bstn-border-dark);
  border-bottom: 1px solid var(--bstn-border-dark);
}
.bstn-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bstn-stat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--bstn-border-dark);
}
.bstn-stat:last-child { border-right: none; }
.bstn-stat__icon {
  font-size: 1.5rem;
  color: var(--bstn-accent);
  margin-bottom: 12px;
}
.bstn-stat__value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}
.bstn-stat__label {
  font-size: 0.8125rem;
  color: var(--bstn-fg-dark-2);
  font-weight: 500;
}

/* === CARDS === */
.bstn-card-grid { display: grid; gap: 24px; }
.bstn-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bstn-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bstn-card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.bstn-card {
  background: var(--bstn-bg-white);
  border: 1px solid var(--bstn-border-light);
  border-radius: var(--bstn-radius-lg);
  padding: 28px;
  transition: box-shadow var(--bstn-transition), border-color var(--bstn-transition), transform var(--bstn-transition);
}
.bstn-card:hover {
  box-shadow: var(--bstn-shadow);
  border-color: var(--bstn-accent-aa);
  transform: translateY(-2px);
}
.bstn-card--dark {
  background: var(--bstn-bg-dark-alt);
  border-color: var(--bstn-border-dark);
}
.bstn-card--dark:hover {
  border-color: var(--bstn-accent);
  box-shadow: 0 4px 24px rgba(0,196,255,0.15);
}
.bstn-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,196,255,0.1);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: var(--bstn-accent-aa);
  flex-shrink: 0;
}
.bstn-section--dark .bstn-card__icon,
.bstn-section--dark-alt .bstn-card__icon,
.bstn-card--dark .bstn-card__icon {
  color: var(--bstn-accent);
}
.bstn-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bstn-fg-light-1);
  margin-bottom: 10px;
}
.bstn-card--dark .bstn-card__title { color: var(--bstn-fg-dark-1); }
.bstn-card__body {
  font-size: 0.9375rem;
  color: var(--bstn-fg-light-2);
  line-height: 1.65;
}
.bstn-card--dark .bstn-card__body { color: var(--bstn-fg-dark-2); }
.bstn-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bstn-accent-aa);
  transition: gap var(--bstn-transition), color var(--bstn-transition);
}
.bstn-card--dark .bstn-card__link { color: var(--bstn-accent); }
.bstn-card__link:hover { gap: 10px; }

/* === SECTION HEADER UTIL === */
.bstn-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.bstn-section-header .bstn-section-lede {
  margin: 0 auto 32px;
}

/* === SPLIT LAYOUT === */
.bstn-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bstn-split--60-40 { grid-template-columns: 3fr 2fr; }
.bstn-split__text {}
.bstn-split__visual {}

/* === SUB-PAGE HERO === */
.bstn-subhero {
  padding: 72px 0 56px;
  background: var(--bstn-bg-dark);
  position: relative;
  overflow: hidden;
}
.bstn-subhero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,196,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.bstn-subhero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.bstn-subhero__text { max-width: 640px; }
.bstn-subhero__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bstn-accent);
  margin-bottom: 12px;
  display: block;
}
.bstn-subhero__headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  line-height: 1.18;
  margin-bottom: 16px;
}
.bstn-subhero__subhead {
  font-size: 1rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.65;
  max-width: 560px;
}
.bstn-subhero__badge {
  background: rgba(0,196,255,0.1);
  border: 1px solid var(--bstn-border-dark);
  border-radius: var(--bstn-radius-lg);
  padding: 20px 28px;
  text-align: center;
  flex-shrink: 0;
}
.bstn-subhero__badge-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--bstn-fg-dark-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}
.bstn-subhero__badge-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bstn-accent);
  display: block;
}

/* === SUBHERO VISUAL / STAT PAIR === */
.bstn-subhero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bstn-subhero__stat-pair {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.bstn-subhero__stat {
  background: rgba(0,196,255,0.08);
  border: 1px solid var(--bstn-border-dark);
  border-radius: var(--bstn-radius);
  padding: 20px 24px;
  text-align: center;
  min-width: 120px;
}
.bstn-subhero__stat-value {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bstn-accent);
  line-height: 1.15;
  margin-bottom: 6px;
}
.bstn-subhero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.35;
}

/* === STEP ITEMS (attestation chain-of-trust) === */
.bstn-step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--bstn-border-light);
}
.bstn-section--mid .bstn-step-item,
.bstn-section--dark-alt .bstn-step-item,
.bstn-section--dark .bstn-step-item {
  border-bottom-color: var(--bstn-border-dark);
}
.bstn-step-item__number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bstn-accent);
  flex-shrink: 0;
  width: 48px;
  line-height: 1;
  padding-top: 2px;
}
.bstn-section--light .bstn-step-item__number,
.bstn-section--white .bstn-step-item__number {
  color: var(--bstn-accent-aa);
}
.bstn-step-item__content { flex: 1; }
.bstn-step-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bstn-fg-light-1);
  margin-bottom: 8px;
  line-height: 1.35;
}
.bstn-section--dark .bstn-step-item__title,
.bstn-section--dark-alt .bstn-step-item__title,
.bstn-section--mid .bstn-step-item__title {
  color: var(--bstn-fg-dark-1);
}
.bstn-step-item__body {
  font-size: 0.9375rem;
  color: var(--bstn-fg-light-2);
  line-height: 1.65;
}
.bstn-section--dark .bstn-step-item__body,
.bstn-section--dark-alt .bstn-step-item__body,
.bstn-section--mid .bstn-step-item__body {
  color: var(--bstn-fg-dark-2);
}

/* === SPLIT REVERSE === */
.bstn-split--reverse { direction: rtl; }
.bstn-split--reverse > * { direction: ltr; }

/* === CONTACT FORM (base wrapper) === */
.bstn-contact-form { width: 100%; }

/* === LOGIN FORM (base wrapper) === */
.bstn-login-form { width: 100%; }

/* === TEAM MEMBER INFO === */
.bstn-team-member__info {
  padding: 20px 24px 24px;
  flex: 1;
}

/* === TEAM PREVIEW (company/index) === */
.bstn-team-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .bstn-team-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .bstn-team-preview { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* === SPEC TABLE === */
.bstn-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.bstn-spec-table th {
  text-align: left;
  padding: 12px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bstn-bg-mid);
  color: var(--bstn-fg-light-1);
  border-bottom: 2px solid var(--bstn-border-light);
}
.bstn-spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--bstn-border-light);
  color: var(--bstn-fg-light-2);
  vertical-align: top;
}
.bstn-spec-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bstn-fg-light-1);
  white-space: nowrap;
  width: 40%;
}
.bstn-spec-table td:last-child { font-weight: 500; }
.bstn-spec-table tr:hover td { background: rgba(0,0,0,0.02); }

/* Dense spec table variant */
.bstn-spec-table--dense th,
.bstn-spec-table--dense td { padding: 10px 16px; }
.bstn-spec-table--dense { font-size: 0.875rem; }

/* === COMPARISON TABLE === */
.bstn-compare-table {
  width: 100%;
  border-collapse: collapse;
}
.bstn-compare-table th {
  padding: 14px 20px;
  background: var(--bstn-bg-dark);
  color: var(--bstn-fg-dark-1);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--bstn-border-dark);
}
.bstn-compare-table th:first-child { text-align: left; background: var(--bstn-bg-mid); color: var(--bstn-fg-light-1); }
.bstn-compare-table td {
  padding: 13px 20px;
  border: 1px solid var(--bstn-border-light);
  color: var(--bstn-fg-light-2);
  text-align: center;
  font-size: 0.9rem;
}
.bstn-compare-table td:first-child { text-align: left; font-weight: 600; color: var(--bstn-fg-light-1); }
.bstn-compare-table tr:nth-child(even) td { background: rgba(0,0,0,0.015); }
.bstn-compare-table .bstn-yes { color: var(--bstn-success); font-weight: 700; }
.bstn-compare-table .bstn-no { color: #9CA3AF; }
.bstn-compare-table .bstn-highlight td { background: rgba(0,196,255,0.04); }

/* === STEP FLOW === */
.bstn-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}
.bstn-flow__step {
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.bstn-flow__step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1px;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: var(--bstn-accent);
  opacity: 0.4;
}
.bstn-flow__step:last-child::after { display: none; }
.bstn-flow__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,196,255,0.15);
  border: 2px solid var(--bstn-accent);
  color: var(--bstn-accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.bstn-flow__step-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.bstn-flow__step-body { font-size: 0.8125rem; line-height: 1.5; }
.bstn-section--light .bstn-flow__step-body,
.bstn-section--white .bstn-flow__step-body,
.bstn-section--mid .bstn-flow__step-body { color: var(--bstn-fg-light-2); }
.bstn-section--dark .bstn-flow__step-body,
.bstn-section--dark-alt .bstn-flow__step-body { color: var(--bstn-fg-dark-2); }

/* === CTA BAND === */
.bstn-cta-band {
  padding: 80px 0;
  background: var(--bstn-bg-dark-alt);
  text-align: center;
}
.bstn-cta-band__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.bstn-cta-band__headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  margin-bottom: 16px;
}
.bstn-cta-band__body {
  font-size: 1rem;
  color: var(--bstn-fg-dark-2);
  margin-bottom: 32px;
  line-height: 1.7;
}
.bstn-cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* === BLOG CARDS === */
.bstn-blog-card {
  background: var(--bstn-bg-white);
  border: 1px solid var(--bstn-border-light);
  border-radius: var(--bstn-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--bstn-transition), transform var(--bstn-transition);
}
.bstn-blog-card:hover {
  box-shadow: var(--bstn-shadow);
  transform: translateY(-2px);
}
.bstn-blog-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bstn-bg-mid);
}
.bstn-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.bstn-blog-card:hover .bstn-blog-card__img img { transform: scale(1.04); }
.bstn-blog-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bstn-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bstn-blog-card__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--bstn-fg-light-2);
}
.bstn-blog-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bstn-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(0,106,140,0.1);
  color: var(--bstn-accent-aa);
  letter-spacing: 0.03em;
}
.bstn-blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bstn-fg-light-1);
  margin-bottom: 8px;
  line-height: 1.4;
}
.bstn-blog-card__abstract {
  font-size: 0.875rem;
  color: var(--bstn-fg-light-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.bstn-blog-card__read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bstn-accent-aa);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--bstn-transition);
}
.bstn-blog-card__read-more:hover { gap: 9px; }

/* === TEAM CARDS === */
.bstn-team-card {
  text-align: center;
}
.bstn-team-card__portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--bstn-border-light);
  background: var(--bstn-bg-mid);
}
.bstn-team-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bstn-team-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--bstn-fg-light-1);
  margin-bottom: 4px;
}
.bstn-team-card__title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bstn-accent-aa);
  margin-bottom: 10px;
  font-family: 'IBM Plex Mono', monospace;
}
.bstn-team-card__bio {
  font-size: 0.875rem;
  color: var(--bstn-fg-light-2);
  line-height: 1.6;
}
.bstn-team-card--large .bstn-team-card__portrait {
  width: 160px;
  height: 160px;
}

/* === CERTIFICATION / BADGE === */
.bstn-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.bstn-cert-badge {
  border: 1px solid var(--bstn-border-dark);
  border-radius: var(--bstn-radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bstn-cert-badge__icon {
  font-size: 1.4rem;
  color: var(--bstn-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.bstn-cert-badge__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  display: block;
  margin-bottom: 4px;
}
.bstn-cert-badge__note {
  font-size: 0.8rem;
  color: var(--bstn-fg-dark-2);
}

/* Light bg cert */
.bstn-cert-badge--light {
  border-color: var(--bstn-border-light);
  background: var(--bstn-bg-white);
}
.bstn-cert-badge--light .bstn-cert-badge__icon { color: var(--bstn-accent-aa); }
.bstn-cert-badge--light .bstn-cert-badge__label { color: var(--bstn-fg-light-1); }
.bstn-cert-badge--light .bstn-cert-badge__note { color: var(--bstn-fg-light-2); }

/* === FEATURE GRID === */
.bstn-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.bstn-feature-item {
  display: flex;
  gap: 16px;
}
.bstn-feature-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0,196,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--bstn-accent-aa);
  margin-top: 2px;
}
.bstn-section--dark .bstn-feature-item__icon,
.bstn-section--dark-alt .bstn-feature-item__icon {
  color: var(--bstn-accent);
}
.bstn-feature-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.bstn-section--light .bstn-feature-item__title,
.bstn-section--white .bstn-feature-item__title,
.bstn-section--mid .bstn-feature-item__title { color: var(--bstn-fg-light-1); }
.bstn-section--dark .bstn-feature-item__title,
.bstn-section--dark-alt .bstn-feature-item__title { color: var(--bstn-fg-dark-1); }
.bstn-feature-item__body {
  font-size: 0.875rem;
  line-height: 1.6;
}
.bstn-section--light .bstn-feature-item__body,
.bstn-section--white .bstn-feature-item__body,
.bstn-section--mid .bstn-feature-item__body { color: var(--bstn-fg-light-2); }
.bstn-section--dark .bstn-feature-item__body,
.bstn-section--dark-alt .bstn-feature-item__body { color: var(--bstn-fg-dark-2); }

/* === JOB LISTING CARDS === */
.bstn-job-card {
  background: var(--bstn-bg-white);
  border: 1px solid var(--bstn-border-light);
  border-radius: var(--bstn-radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  transition: box-shadow var(--bstn-transition), border-color var(--bstn-transition);
}
.bstn-job-card:hover {
  box-shadow: var(--bstn-shadow);
  border-color: var(--bstn-accent-aa);
}
.bstn-job-card__dept {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bstn-accent-aa);
  margin-bottom: 6px;
  display: block;
}
.bstn-job-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bstn-fg-light-1);
  margin-bottom: 8px;
}
.bstn-job-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--bstn-fg-light-2);
}
.bstn-job-card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === CONTACT FORM === */
.bstn-form-group {
  margin-bottom: 20px;
}
.bstn-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bstn-fg-light-1);
  margin-bottom: 6px;
}
.bstn-form-input,
.bstn-form-select,
.bstn-form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--bstn-fg-light-1);
  background: var(--bstn-bg-white);
  border: 1.5px solid var(--bstn-border-light);
  border-radius: var(--bstn-radius);
  transition: border-color var(--bstn-transition), box-shadow var(--bstn-transition);
  outline: none;
  -webkit-appearance: none;
}
.bstn-form-input:focus,
.bstn-form-select:focus,
.bstn-form-textarea:focus {
  border-color: var(--bstn-accent-aa);
  box-shadow: 0 0 0 3px rgba(0,106,140,0.12);
}
.bstn-form-textarea { resize: vertical; min-height: 120px; }

/* Dark variant form */
.bstn-form-input--dark,
.bstn-form-select--dark,
.bstn-form-textarea--dark {
  background: rgba(255,255,255,0.05);
  border-color: var(--bstn-border-dark);
  color: var(--bstn-fg-dark-1);
}
.bstn-form-input--dark::placeholder,
.bstn-form-textarea--dark::placeholder { color: var(--bstn-fg-dark-2); }
.bstn-form-input--dark:focus,
.bstn-form-select--dark:focus,
.bstn-form-textarea--dark:focus {
  border-color: var(--bstn-accent);
  box-shadow: 0 0 0 3px rgba(0,196,255,0.15);
}
.bstn-form-label--dark { color: var(--bstn-fg-dark-2); }
.bstn-form-select--dark option { background: var(--bstn-bg-dark-alt); color: var(--bstn-fg-dark-1); }

/* === CONTACT INFO BLOCK === */
.bstn-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bstn-contact-info__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bstn-contact-info__icon {
  width: 40px;
  height: 40px;
  background: rgba(0,106,140,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bstn-accent-aa);
  flex-shrink: 0;
}
.bstn-contact-info__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bstn-fg-light-2);
  margin-bottom: 3px;
  display: block;
}
.bstn-contact-info__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bstn-fg-light-1);
}
.bstn-contact-info__value a { color: var(--bstn-accent-aa); }
.bstn-contact-info__value a:hover { text-decoration: underline; }

/* === FOOTER === */
.bstn-footer {
  background: var(--bstn-bg-dark);
  border-top: 1px solid var(--bstn-border-dark);
  padding: 64px 0 0;
}
.bstn-footer__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
}
.bstn-footer__brand {}
.bstn-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.bstn-footer__logo img {
  height: 28px;
  width: auto;
}
.bstn-footer__logo-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
}
.bstn-footer__tagline {
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 16px;
}
.bstn-footer__col-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bstn-fg-dark-2);
  margin-bottom: 14px;
  display: block;
}
.bstn-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bstn-footer__links a {
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  transition: color var(--bstn-transition);
}
.bstn-footer__links a:hover { color: var(--bstn-fg-dark-1); }
.bstn-footer__bottom {
  border-top: 1px solid var(--bstn-border-dark);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.bstn-footer__copy {
  font-size: 0.8125rem;
  color: var(--bstn-fg-dark-2);
}
.bstn-footer__copy a { color: var(--bstn-fg-dark-2); }
.bstn-footer__copy a:hover { color: var(--bstn-fg-dark-1); }
.bstn-footer__bottom-links {
  display: flex;
  gap: 20px;
}
.bstn-footer__bottom-links a {
  font-size: 0.8125rem;
  color: var(--bstn-fg-dark-2);
  transition: color var(--bstn-transition);
}
.bstn-footer__bottom-links a:hover { color: var(--bstn-fg-dark-1); }

/* === COOKIE BANNER === */
.bstn-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bstn-bg-dark-alt);
  border-top: 1px solid var(--bstn-border-dark);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.bstn-cookie.is-hidden { display: none; }
.bstn-cookie__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.5;
  min-width: 200px;
}
.bstn-cookie__text a { color: var(--bstn-accent); text-decoration: underline; }
.bstn-cookie__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* === LOGIN PAGES === */
.bstn-login-page {
  min-height: 100vh;
  background: var(--bstn-bg-dark);
  display: flex;
  flex-direction: column;
}
.bstn-login-header {
  padding: 20px clamp(24px, 8vw, 80px);
  border-bottom: 1px solid var(--bstn-border-dark);
}
.bstn-login-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
}
.bstn-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.bstn-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bstn-bg-dark-alt);
  border: 1px solid var(--bstn-border-dark);
  border-radius: var(--bstn-radius-lg);
  padding: 40px 36px;
}
.bstn-login-card__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  margin-bottom: 6px;
}
.bstn-login-card__subtitle {
  font-size: 0.9rem;
  color: var(--bstn-fg-dark-2);
  margin-bottom: 28px;
}
.bstn-login-card__footer {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--bstn-fg-dark-2);
  text-align: center;
}
.bstn-login-card__footer a { color: var(--bstn-accent); }
.bstn-login-card__footer a:hover { text-decoration: underline; }

/* === 404 PAGE === */
.bstn-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bstn-bg-dark);
}
.bstn-404__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.bstn-404__code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  color: var(--bstn-accent);
  line-height: 1;
  margin-bottom: 16px;
}
.bstn-404__headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--bstn-fg-dark-1);
  margin-bottom: 16px;
}
.bstn-404__body {
  color: var(--bstn-fg-dark-2);
  margin-bottom: 36px;
  font-size: 1rem;
}
.bstn-404__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === ARTICLE PAGE === */
.bstn-article {
  padding-bottom: 80px;
}
.bstn-article__hero {
  background: var(--bstn-bg-dark);
  padding: 60px 0 48px;
}
.bstn-article__hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.bstn-article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  margin-bottom: 24px;
  transition: color var(--bstn-transition);
}
.bstn-article__back:hover { color: var(--bstn-fg-dark-1); }
.bstn-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.bstn-article__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--bstn-fg-dark-2);
}
.bstn-article__headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  line-height: 1.2;
  margin-bottom: 16px;
}
.bstn-article__abstract {
  font-size: 1.0625rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.7;
}
.bstn-article__cover {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.bstn-article__cover img {
  width: 100%;
  border-radius: var(--bstn-radius-lg);
  margin-top: 32px;
}
.bstn-article__body {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0 24px;
  background: var(--bstn-bg-white);
}
.bstn-article__body-inner {
  padding: 40px 0 60px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bstn-fg-light-1);
}

/* === CODE BLOCKS (tight per HARD RULE) === */
code, kbd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875em;
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 3px;
}
pre {
  background: var(--bstn-bg-dark);
  border: 1px solid var(--bstn-border-dark);
  border-radius: var(--bstn-radius);
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 0.875rem;
}
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: var(--bstn-fg-dark-1);
}

/* === UTILITY === */
.bstn-text-center { text-align: center; }
.bstn-text-mono { font-family: 'IBM Plex Mono', monospace; }
.bstn-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.bstn-divider {
  border: none;
  border-top: 1px solid var(--bstn-border-light);
  margin: 40px 0;
}
.bstn-divider--dark { border-top-color: var(--bstn-border-dark); }

/* Fade-in animations with failsafe */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* === LEGAL PAGES === */
.bstn-legal {
  padding: 60px 0 80px;
}
.bstn-legal__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.bstn-legal__meta {
  font-size: 0.875rem;
  color: var(--bstn-fg-light-2);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bstn-border-light);
}
.bstn-legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--bstn-fg-light-1);
  border-left: 4px solid var(--bstn-accent-aa);
  padding-left: 14px;
}
.bstn-legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--bstn-fg-light-1);
}
.bstn-legal p { margin-bottom: 16px; color: var(--bstn-fg-light-2); }
.bstn-legal ul, .bstn-legal ol { list-style: disc; margin: 0 0 16px; padding-left: 28px; }
.bstn-legal li { margin-bottom: 6px; color: var(--bstn-fg-light-2); }
.bstn-legal a { color: var(--bstn-accent-aa); }
.bstn-legal a:hover { text-decoration: underline; }
.bstn-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.bstn-legal th {
  background: var(--bstn-bg-mid);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid var(--bstn-border-light);
  color: var(--bstn-fg-light-1);
}
.bstn-legal td {
  padding: 9px 14px;
  border: 1px solid var(--bstn-border-light);
  vertical-align: top;
  color: var(--bstn-fg-light-2);
}
.bstn-legal tr:nth-child(even) td { background: var(--bstn-bg-light); }

/* Light-top pages force nav solid */
body.bstn-page--light-top .bstn-nav {
  background: var(--bstn-bg-dark);
}

/* === INTEGRATION MATRIX === */
.bstn-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.bstn-matrix-table th {
  background: var(--bstn-bg-dark);
  color: var(--bstn-fg-dark-1);
  padding: 12px 18px;
  border: 1px solid var(--bstn-border-dark);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-align: center;
}
.bstn-matrix-table th:first-child { text-align: left; }
.bstn-matrix-table td {
  padding: 12px 18px;
  border: 1px solid var(--bstn-border-light);
  text-align: center;
  color: var(--bstn-fg-light-2);
}
.bstn-matrix-table td:first-child { text-align: left; font-weight: 600; color: var(--bstn-fg-light-1); }
.bstn-matrix-yes { color: var(--bstn-success); font-weight: 700; }
.bstn-matrix-partial { color: var(--bstn-warning); font-weight: 600; }
.bstn-matrix-no { color: #CBD5E1; }

/* === LOGIN LAYOUT (two-panel) === */
.bstn-login-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 100vh;
}
.bstn-login-layout--narrow {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}
.bstn-login-panel {
  display: flex;
  flex-direction: column;
  background: var(--bstn-bg-dark-alt);
  border-right: 1px solid var(--bstn-border-dark);
  min-height: 100vh;
}
.bstn-login-panel--center {
  align-items: center;
  background: var(--bstn-bg-dark);
  border-right: none;
}
.bstn-login-panel__top {
  padding: 24px clamp(24px, 5vw, 48px);
  border-bottom: 1px solid var(--bstn-border-dark);
}
.bstn-login-panel__logo {
  display: inline-flex;
  align-items: center;
}
.bstn-login-panel__logo img {
  height: 28px;
  width: auto;
}
.bstn-login-panel__body {
  flex: 1;
  padding: 48px clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
}
.bstn-login-panel--center .bstn-login-panel__body {
  width: 100%;
  max-width: 440px;
}
.bstn-login-panel__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bstn-accent);
  margin-bottom: 12px;
  display: block;
}
.bstn-login-panel__headline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  margin-bottom: 10px;
}
.bstn-login-panel__sub {
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.6;
  margin-bottom: 28px;
}
.bstn-login-panel__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,196,255,0.1);
  border: 2px solid var(--bstn-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--bstn-accent);
  margin: 0 auto 20px;
}
.bstn-login-panel__alt {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  text-align: center;
}
.bstn-login-panel__alt a { color: var(--bstn-accent); }
.bstn-login-panel__alt a:hover { text-decoration: underline; }
.bstn-login-panel__divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}
.bstn-login-panel__divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bstn-border-dark);
}
.bstn-login-panel__divider span {
  position: relative;
  background: var(--bstn-bg-dark-alt);
  padding: 0 12px;
  font-size: 0.8125rem;
  color: var(--bstn-fg-dark-2);
}
.bstn-login-panel__help {
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.6;
}
.bstn-login-panel__help a { color: var(--bstn-accent-aa); text-decoration: underline; }
.bstn-login-panel__footer {
  padding: 20px clamp(24px, 5vw, 48px);
  border-top: 1px solid var(--bstn-border-dark);
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--bstn-fg-dark-2);
}
.bstn-login-panel__footer a { color: var(--bstn-fg-dark-2); }
.bstn-login-panel__footer a:hover { color: var(--bstn-fg-dark-1); }

/* Login form */
.bstn-login-form__group {
  margin-bottom: 20px;
}
.bstn-login-form__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-2);
  margin-bottom: 6px;
}
.bstn-login-form__forgot {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--bstn-accent-aa);
}
.bstn-login-form__forgot:hover { text-decoration: underline; }
.bstn-login-form__input,
.bstn-login-form__select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--bstn-fg-dark-1);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--bstn-border-dark);
  border-radius: var(--bstn-radius);
  transition: border-color var(--bstn-transition), box-shadow var(--bstn-transition);
  outline: none;
  -webkit-appearance: none;
}
.bstn-login-form__input::placeholder { color: var(--bstn-fg-dark-2); }
.bstn-login-form__input:focus,
.bstn-login-form__select:focus {
  border-color: var(--bstn-accent);
  box-shadow: 0 0 0 3px rgba(0,196,255,0.12);
}
.bstn-login-form__select option {
  background: var(--bstn-bg-dark-alt);
  color: var(--bstn-fg-dark-1);
}
.bstn-login-form__notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--bstn-radius);
  font-size: 0.875rem;
  line-height: 1.5;
}
.bstn-login-form__notice--success {
  background: rgba(16,185,129,0.12);
  color: #34D399;
  border: 1px solid rgba(16,185,129,0.25);
}
.bstn-login-form__notice--error {
  background: rgba(239,68,68,0.12);
  color: #F87171;
  border: 1px solid rgba(239,68,68,0.25);
}

/* Login aside (dark panel) */
.bstn-login-aside {
  background: var(--bstn-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.bstn-login-aside__inner {
  text-align: center;
  max-width: 420px;
}
.bstn-login-aside__chip {
  width: 200px;
  height: 220px;
  margin: 0 auto 32px;
}
.bstn-login-aside__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  margin-bottom: 6px;
}
.bstn-login-aside__desc {
  font-size: 0.8125rem;
  color: var(--bstn-fg-dark-2);
}
.bstn-login-aside__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}
.bstn-login-aside__feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.bstn-login-aside__feature .fa-solid {
  color: var(--bstn-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.bstn-login-aside__feature-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bstn-fg-dark-1);
  margin-bottom: 4px;
}
.bstn-login-aside__feature-desc {
  font-size: 0.8375rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.6;
}

/* === BLOG GRID === */
.bstn-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.bstn-blog-card__img-link {
  display: block;
  overflow: hidden;
  background: var(--bstn-bg-mid);
}
.bstn-blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.bstn-blog-card:hover .bstn-blog-card__img { transform: scale(1.04); }
.bstn-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--bstn-fg-light-2);
}
.bstn-blog-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0,106,140,0.1);
  color: var(--bstn-accent-aa);
  letter-spacing: 0.02em;
  font-family: 'IBM Plex Mono', monospace;
}
.bstn-blog-card__title a {
  color: var(--bstn-fg-light-1);
  transition: color var(--bstn-transition);
}
.bstn-blog-card__title a:hover { color: var(--bstn-accent-aa); }
.bstn-blog-card__abstract {
  font-size: 0.875rem;
  color: var(--bstn-fg-light-2);
  line-height: 1.6;
}

/* === ARTICLE PAGE === */
.bstn-article__header {
  padding: 56px 0 48px;
}
.bstn-article__header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.bstn-article__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bstn-article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--bstn-fg-dark-2);
  transition: color var(--bstn-transition);
}
.bstn-article__back:hover { color: var(--bstn-fg-dark-1); }
.bstn-article__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bstn-article__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--bstn-fg-dark-1);
  line-height: 1.25;
  margin-bottom: 16px;
}
.bstn-article__abstract {
  font-size: 1.0625rem;
  color: var(--bstn-fg-dark-2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.bstn-article__byline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--bstn-fg-dark-2);
}
.bstn-article__cover {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.bstn-article__cover img {
  width: 100%;
  border-radius: var(--bstn-radius-lg);
  display: block;
}
.bstn-article__body {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 0 24px 80px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bstn-fg-light-1);
}

/* === TEAM GRID (full team page) === */
.bstn-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.bstn-team-member {
  display: flex;
  flex-direction: column;
}
.bstn-team-member__portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bstn-border-light);
  background: var(--bstn-bg-mid);
  margin-bottom: 20px;
}
.bstn-team-member__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bstn-team-member__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bstn-fg-light-1);
  margin-bottom: 4px;
}
.bstn-team-member__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bstn-accent-aa);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.bstn-team-member__bio {
  font-size: 0.9rem;
  color: var(--bstn-fg-light-2);
  line-height: 1.65;
}

/* === CONTACT SPLIT === */
.bstn-contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.bstn-contact-split__form {}
.bstn-contact-split__info {}
.bstn-contact-form__group {
  margin-bottom: 20px;
}
.bstn-contact-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bstn-fg-light-1);
  margin-bottom: 6px;
}
.bstn-contact-form__input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--bstn-fg-light-1);
  background: var(--bstn-bg-white);
  border: 1.5px solid var(--bstn-border-light);
  border-radius: var(--bstn-radius);
  transition: border-color var(--bstn-transition), box-shadow var(--bstn-transition);
  outline: none;
  -webkit-appearance: none;
}
.bstn-contact-form__input:focus {
  border-color: var(--bstn-accent-aa);
  box-shadow: 0 0 0 3px rgba(0,106,140,0.12);
}
.bstn-contact-form__input::placeholder { color: #9CA3AF; }
.bstn-contact-form__select { cursor: pointer; }
.bstn-contact-form__textarea { resize: vertical; min-height: 120px; }
.bstn-contact-form__notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--bstn-radius);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .bstn-footer__main {
    grid-template-columns: repeat(3, 1fr);
  }
  .bstn-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .bstn-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bstn-hero__subhead { margin: 0 auto 36px; }
  .bstn-hero__actions { justify-content: center; }
  .bstn-hero__visual { margin-top: 20px; }
  .bstn-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .bstn-stat:nth-child(2) { border-right: none; }
  .bstn-stat { border-bottom: 1px solid var(--bstn-border-dark); }
  .bstn-stat:nth-child(3),
  .bstn-stat:nth-child(4) { border-bottom: none; }
  .bstn-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bstn-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bstn-split { grid-template-columns: 1fr; gap: 32px; }
  .bstn-subhero__inner { grid-template-columns: 1fr; }
  .bstn-subhero__badge { display: none; }
}
@media (max-width: 768px) {
  .bstn-nav__links,
  .bstn-nav__actions { display: none; }
  .bstn-nav__hamburger { display: flex; }
  .bstn-footer__main { grid-template-columns: repeat(2, 1fr); }
  .bstn-footer__brand { grid-column: 1 / -1; }
  .bstn-card-grid--3,
  .bstn-card-grid--4,
  .bstn-card-grid--2 { grid-template-columns: 1fr; }
  .bstn-feature-grid { grid-template-columns: 1fr; }
  .bstn-flow { grid-template-columns: 1fr; }
  .bstn-flow__step::after { display: none; }
}
@media (max-width: 600px) {
  .bstn-section { padding: 56px 0; }
  .bstn-cta-band { padding: 56px 0; }
  .bstn-hero { padding: 72px 0 56px; }
  .bstn-footer__main { grid-template-columns: 1fr; }
  .bstn-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bstn-cookie { flex-direction: column; }
  .bstn-stats__inner { grid-template-columns: 1fr; }
  .bstn-stat { border-right: none; }
}
