/* =====================================================================
   BioPulse Global Stylesheet (CLEAN) — v2.3 + Intro Curtain
   Black + White core, Grey + Blue accents (glow only)
   Wave hero only. Orb + human + legacy panels removed.
   ===================================================================== */
/* ---------------------------------------------------------------------
   0. Font (Orbitron) — REQUIRED
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Orbitron";
  src: url("Components/assets/fonts/Orbitron-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------
   1. Reset / Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body { margin: 0; padding: 0; }

body {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #ffffff;
  background: #000000;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------------
   2. Tokens
   ------------------------------------------------------------------ */
:root {
  --bp-bg: #000000;
  --bp-bg-elevated: #0c0c0f;
  --bp-bg-card: #141416;

  --bp-text-main: #ffffff;
  --bp-text-muted: #d1d5db;
  --bp-text-subtle: #9ca3af;

  --bp-border: rgba(148, 163, 184, 0.35);

  --bp-blue: #3ac7ff;
  --bp-blue-soft: rgba(58, 199, 255, 0.45);

  --bp-danger: #ff4b81;

  --bp-radius-sm: 8px;
  --bp-radius-md: 14px;
  --bp-radius-lg: 18px;
  --bp-radius-pill: 999px;

  --bp-space-24: 24px;
  --bp-space-32: 32px;
  --bp-space-40: 40px;
  --bp-space-64: 64px;
  --bp-space-80: 80px;

  --bp-fast: 160ms ease-out;
  --bp-normal: 220ms ease-out;

  /* ✅ Added tokens needed by the newer animated sections */
  --bp-accent: var(--bp-blue); /* alias */
  --bp-blur-glass: 16px;       /* for subtle glass blur */
}

/* ---------------------------------------------------------------------
   3. Shell / Container
   ------------------------------------------------------------------ */
.bp-page {
  min-height: 100vh;
  background: var(--bp-bg);
  display: flex;
  flex-direction: column;
}

.bp-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------------
   4. Type
   ------------------------------------------------------------------ */
.bp-heading-xl {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.05;
}

.bp-heading-lg {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
}

.bp-heading-md {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.25;
}

.bp-body {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--bp-text-muted);
}

.bp-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bp-text-subtle);
}

.bp-text-center { text-align: center; }
.bp-text-right { text-align: right; }
.bp-max-600 { max-width: 600px; }

/* ---------------------------------------------------------------------
   5. Layout
   ------------------------------------------------------------------ */
.bp-section { padding: var(--bp-space-80) 0; }

.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.bp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.bp-split-content { max-width: 520px; }
.bp-split-visual { display: flex; justify-content: center; align-items: center; }

@media (max-width: 900px) {
  .bp-split { grid-template-columns: 1fr; text-align: center; }
  .bp-split-content { margin: 0 auto; }
}

/* ---------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------ */
.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--bp-radius-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--bp-border);
  background: transparent;
  color: var(--bp-text-main);
  transition: transform var(--bp-fast), box-shadow var(--bp-normal), border-color var(--bp-normal), color var(--bp-normal), background var(--bp-normal);
}

.bp-btn:hover { transform: translateY(-1px); }
.bp-btn:active { transform: translateY(0); }

.bp-btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255,255,255,0.35);
}

.bp-btn-primary:hover { box-shadow: 0 0 18px var(--bp-blue-soft); }

.bp-btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--bp-text-muted);
}

.bp-btn-secondary:hover {
  border-color: var(--bp-blue);
  color: var(--bp-blue);
}

.bp-btn-tertiary {
  border-color: transparent;
  background: transparent;
  color: var(--bp-text-muted);
  padding-inline: 0;
}

.bp-btn-tertiary:hover { color: var(--bp-blue); }

/* ---------------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------------ */
.bp-card {
  background: var(--bp-bg-card);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  padding: 20px;
  transition: border-color var(--bp-normal), box-shadow var(--bp-normal);
}

.bp-card:hover {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 22px rgba(0,0,0,0.7), 0 0 18px rgba(58,199,255,0.08);
}

/* ---------------------------------------------------------------------
   8. Forms
   ------------------------------------------------------------------ */
.bp-field { display: flex; flex-direction: column; gap: 6px; }

.bp-field-label { font-size: 13px; color: var(--bp-text-muted); }

.bp-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--bp-radius-md);
  border: 1px solid var(--bp-border);
  background: rgba(255,255,255,0.02);
  color: var(--bp-text-main);
  outline: none;
  transition: border-color var(--bp-normal), box-shadow var(--bp-normal), background var(--bp-normal);
}

.bp-input::placeholder { color: var(--bp-text-subtle); }

.bp-input:focus {
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 2px rgba(58,199,255,0.18);
  background: rgba(255,255,255,0.03);
}

.bp-input-error { border-color: var(--bp-danger); }

.bp-error {
  color: var(--bp-danger);
  font-size: 11px;
  margin-top: 4px;
  min-height: 14px;
}

/* ---------------------------------------------------------------------
   9. Pills
   ------------------------------------------------------------------ */
.bp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--bp-radius-pill);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--bp-border);
  color: var(--bp-text-muted);
  background: rgba(255,255,255,0.03);
  transition: border-color var(--bp-normal), color var(--bp-normal);
}

.bp-pill:hover { border-color: var(--bp-blue); color: var(--bp-blue); }

/* ---------------------------------------------------------------------
   10. HERO — WAVE ONLY (Bigger + Truly Centered)
   ------------------------------------------------------------------ */
.bp-hero-typeband {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-bottom: 1px solid var(--bp-border);
}

.bp-hero-wave-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

/* Center by transform (NO margin-left hacks) */
#bp-hero-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170%;
  height: 380px;
  max-width: none;
}

.bp-hero-typeband-inner {
  position: relative;
  z-index: 2;
  text-align: center;

  max-width: 1360px;   /* match .bp-container */
  margin: 0 auto;

  padding: 84px 20px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}


@media (max-width: 900px) {
  #bp-hero-wave { width: 200%; height: 300px; }
  .bp-hero-typeband-inner { padding: 72px 20px 64px; }
}

/* ---------------------------------------------------------------------
   11. Header & Nav
   ------------------------------------------------------------------ */
.bp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.85);
}

.bp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.bp-header-wordmark {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-text-main);
}

.bp-nav { display: flex; align-items: center; gap: 18px; }

.bp-nav-link {
  font-size: 13px;
  color: var(--bp-text-muted);
  padding: 4px 0;
  position: relative;
  transition: color var(--bp-fast), opacity var(--bp-fast);
}

.bp-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58,199,255,0.0), rgba(58,199,255,0.9), rgba(58,199,255,0.0));
  transition: width var(--bp-normal);
}

.bp-nav-link:hover { color: var(--bp-blue); }
.bp-nav-link:hover::after { width: 100%; }

.bp-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--bp-radius-sm);
}

.bp-nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--bp-text-main);
  margin: 3px 0;
}

.bp-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px 18px;
  border-top: 1px solid rgba(40, 50, 64, 0.7);
  background: rgba(0,0,0,0.92);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.bp-nav-mobile .bp-nav-link { padding: 4px 0; }
.bp-nav-mobile.open { max-height: 420px; }

@media (max-width: 900px) {
  .bp-nav { display: none; }
  .bp-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .bp-nav-mobile { display: flex; }
  .bp-header-inner { padding-inline: 16px; }
}

/* ---------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------ */
.bp-footer {
  margin-top: auto;
  border-top: 1px solid rgba(31, 41, 55, 0.85);
  background: #000000;
}

.bp-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 20px 24px;
  flex-wrap: wrap;
}

.bp-footer-link {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--bp-text-muted);
  transition: color var(--bp-fast), opacity var(--bp-fast);
}

.bp-footer-link:hover { color: var(--bp-blue); }

.bp-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 12px;
  font-size: 11px;
  color: var(--bp-text-subtle);
  border-top: 1px solid rgba(31, 41, 55, 0.75);
}

/* ---------------------------------------------------------------------
   13. Accordion + Tabs + Toast (kept)
   ------------------------------------------------------------------ */
.bp-accordion { display: flex; flex-direction: column; gap: 12px; }

.bp-accordion-item {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);
  background: rgba(255,255,255,0.03);
}

.bp-accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--bp-text-main);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bp-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 20px;
}

.bp-accordion-item.active .bp-accordion-body {
  padding: 16px 20px 20px;
  max-height: 320px;
  opacity: 1;
}

.bp-tab-list { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

.bp-tab {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: var(--bp-radius-pill);
  border: 1px solid var(--bp-border);
  background: rgba(255,255,255,0.03);
  color: var(--bp-text-muted);
  cursor: pointer;
}

.bp-tab.active {
  border-color: rgba(58,199,255,0.8);
  color: var(--bp-blue);
  box-shadow: 0 0 16px rgba(58,199,255,0.18);
}

.bp-tab-panel { display: none; opacity: 0; transition: opacity 0.3s ease; }
.bp-tab-panel.active { display: block; opacity: 1; }

.bp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(0,0,0,0.88);
  color: var(--bp-text-main);
  padding: 14px 20px;
  border-radius: var(--bp-radius-md);
  border: 1px solid var(--bp-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
  z-index: 70;
}
.bp-toast.visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   INTRO CURTAIN — KEEP (Neural mesh + DNA + curtain panels)
   ===================================================================== */
.bp-intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: radial-gradient(circle at top, #020308 0, #000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  opacity: 1;
  animation: bp-intro-fadeout 1.8s ease-out forwards;
}

.bp-intro-mesh {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle at 0 0, rgba(90,217,255,0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0,175,255,0.22) 0, transparent 55%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 80px 80px, 80px 80px;
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: bp-intro-mesh-orbit 18s linear infinite;
}

.bp-intro-core {
  position: relative;
  width: 220px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 2;
}

/* Simple DNA */
.bp-dna {
  position: relative;
  width: 110px;
  height: 240px;
}

.bp-dna-strand {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  opacity: 0.9;
}

.bp-dna-strand-left {
  clip-path: path("M0,0 C30,40 30,80 0,120 C-30,160 -30,200 0,240");
  filter: blur(0.5px);
  animation: bp-dna-wobble-left 3.4s ease-in-out infinite;
}

.bp-dna-strand-right {
  clip-path: path("M110,0 C80,40 80,80 110,120 C140,160 140,200 110,240");
  filter: blur(0.5px);
  animation: bp-dna-wobble-right 3.4s ease-in-out infinite;
}

.bp-dna-rungs {
  position: absolute;
  inset: 10% 20%;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(90,217,255,0.18) 0,
      rgba(90,217,255,0.75) 1px,
      rgba(0,175,255,0.9) 2px,
      rgba(0,175,255,0) 12px
    );
  mix-blend-mode: screen;
  animation: bp-dna-rungs-glow 2.8s ease-in-out infinite;
}

.bp-intro-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    radial-gradient(circle at 0 0, rgba(90,217,255,0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0,175,255,0.25), transparent 55%),
    #020308;
  box-shadow: 0 0 40px rgba(0,0,0,0.9), inset 0 0 30px rgba(0,0,0,0.9);
  z-index: 3;
}

.bp-intro-panel-left {
  left: 0;
  animation: bp-intro-curtain-left 1.4s ease-in-out forwards;
}

.bp-intro-panel-right {
  right: 0;
  animation: bp-intro-curtain-right 1.4s ease-in-out forwards;
}

/* Keyframes */
@keyframes bp-intro-fadeout {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes bp-intro-mesh-orbit {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes bp-dna-wobble-left {
  0%,100% { transform: translateX(0); opacity: 0.9; }
  50% { transform: translateX(-3px); opacity: 0.75; }
}

@keyframes bp-dna-wobble-right {
  0%,100% { transform: translateX(0); opacity: 0.9; }
  50% { transform: translateX(3px); opacity: 0.75; }
}

@keyframes bp-dna-rungs-glow {
  0%,100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

@keyframes bp-intro-curtain-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-102%); }
}

@keyframes bp-intro-curtain-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(102%); }
}

/* =====================================================================
   OVERVIEW METRICS — constellation + float panels (FIXED)
   ===================================================================== */

.bp-constellation-wrap {
  position: relative;
  overflow: hidden;
}

.bp-constellation {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.95;
  filter: blur(0.2px);
}

/* Nebula wash */
.bp-constellation::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(58,199,255,0.12), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(0,175,255,0.10), transparent 60%),
    radial-gradient(circle at 35% 80%, rgba(90,217,255,0.08), transparent 55%);
  animation: bp-nebula-drift 18s ease-in-out infinite;
  transform: translate3d(0,0,0);
}

/* Starfield */
.bp-constellation::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(245,248,255,0.55) 1px, transparent 2px),
    radial-gradient(circle, rgba(90,217,255,0.35) 1px, transparent 2px),
    radial-gradient(circle, rgba(58,199,255,0.28) 1px, transparent 2px);
  background-size: 140px 140px, 220px 220px, 320px 320px;
  background-position: 0 0, 40px 80px, 120px 160px;
  opacity: 0.25;
  animation: bp-star-drift 22s linear infinite;
}

@keyframes bp-nebula-drift {
  0%   { transform: translate(-1%, -1%) scale(1); }
  50%  { transform: translate( 1.2%, 0.8%) scale(1.02); }
  100% { transform: translate(-1%, -1%) scale(1); }
}
@keyframes bp-star-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-140px, -140px); }
}

/* Optional injected stars */
.bp-constellation .bp-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(245,248,255,0.85);
  box-shadow: 0 0 10px rgba(58,199,255,0.35);
  opacity: 0;
  animation: bp-twinkle var(--tw, 4.8s) ease-in-out infinite;
  animation-delay: var(--td, 0s);
}
.bp-constellation .bp-star.is-blue {
  background: rgba(90,217,255,0.9);
  box-shadow: 0 0 14px rgba(58,199,255,0.55);
}
@keyframes bp-twinkle {
  0%   { opacity: 0; transform: scale(0.9); }
  40%  { opacity: 0.75; transform: scale(1); }
  60%  { opacity: 0.35; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(0.9); }
}

.bp-metrics-grid {
  position: relative;
  z-index: 2;
}

/* Float panels */
.bp-float-panel {
  position: relative;
  transform: translate3d(0,0,0);
  will-change: transform, box-shadow, border-color;
  transition:
    transform var(--bp-fast),
    box-shadow var(--bp-normal),
    border-color var(--bp-normal);
  overflow: hidden;
}

.bp-float-panel::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(58,199,255,0.10) 45%,
    transparent 55%
  );
  transform: translateX(-40%) rotate(6deg);
  opacity: 0;
  transition: opacity var(--bp-normal);
  pointer-events: none;
}

.bp-float-panel:hover::before {
  opacity: 1;
  animation: bp-shimmer-sweep 1.4s ease-out both;
}

@keyframes bp-shimmer-sweep {
  0%   { transform: translateX(-55%) rotate(6deg); }
  100% { transform: translateX(55%) rotate(6deg); }
}

.bp-float-panel.bp-float-on {
  animation: bp-float 6.8s ease-in-out infinite;
}

@keyframes bp-float {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.bp-float-panel:hover {
  transform: translate3d(0, -4px, 0) scale(1.01);
  border-color: rgba(58,199,255,0.9);
  box-shadow:
    0 0 0 1px rgba(58,199,255,0.25),
    0 18px 45px rgba(0,0,0,0.7),
    0 0 40px rgba(58,199,255,0.20);
}

@media (prefers-reduced-motion: reduce) {
  .bp-constellation::before,
  .bp-constellation::after,
  .bp-float-panel.bp-float-on,
  .bp-constellation .bp-star {
    animation: none !important;
  }
  .bp-float-panel:hover { transform: none; }
}

/* =====================================================================
   HOW IT WORKS — pipeline strip + muscle-map “alive” feel
   (Works with your token set)
   ===================================================================== */

.bp-how { position: relative; }

/* Pipeline strip */
.bp-pipeline {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--bp-radius-lg);
  background:
    radial-gradient(circle at 10% 20%, rgba(58,199,255,0.08), transparent 55%),
    rgba(255,255,255,0.02);
  backdrop-filter: blur(var(--bp-blur-glass));
  -webkit-backdrop-filter: blur(var(--bp-blur-glass));
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.bp-pipeline-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bp-pipeline-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-text-subtle);
}

.bp-pipeline-arrow {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58,199,255,0.10), rgba(58,199,255,0.55));
  position: relative;
  overflow: hidden;
}

.bp-pipeline-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(58,199,255,0.85), transparent);
  transform: translateX(-120%);
  animation: bp-flow 2.6s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes bp-flow {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.bp-pipeline-node-strong .bp-pipeline-label {
  color: var(--bp-text-muted);
}

/* Muscle map ambient polish */
.bp-muscle-map-anim {
  position: relative;
  overflow: hidden;
}

.bp-muscle-map-anim::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 30% 20%, rgba(58,199,255,0.09), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(58,199,255,0.06), transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(58,199,255,0.05) 50%, transparent 60%);
  transform: rotate(6deg);
  animation: bp-sheen 10s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.9;
}

@keyframes bp-sheen {
  0%   { transform: translate3d(-1%, -1%, 0) rotate(6deg); opacity: 0.60; }
  50%  { transform: translate3d( 1.2%, 0.8%, 0) rotate(6deg); opacity: 0.95; }
  100% { transform: translate3d(-1%, -1%, 0) rotate(6deg); opacity: 0.60; }
}

/* Bars */
.bp-muscle-bar {
  position: relative;
  overflow: hidden;
}

.bp-muscle-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58,199,255,0.35), rgba(58,199,255,0.95));
  box-shadow: 0 0 18px rgba(58,199,255,0.20);
  transition: width 520ms ease-out;
}

/* Scanline + halo (only shows if you added those divs) */
.bp-muscle-scanline {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  top: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(58,199,255,0.85), transparent);
  box-shadow: 0 0 18px rgba(58,199,255,0.30);
  animation: bp-scan 2.8s ease-in-out infinite;
  opacity: 0.65;
}

@keyframes bp-scan {
  0%   { transform: translateY(0); opacity: 0.10; }
  35%  { opacity: 0.75; }
  60%  { opacity: 0.45; }
  100% { transform: translateY(220px); opacity: 0.10; }
}

.bp-muscle-halo {
  position: absolute;
  inset: 18% 8%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(58,199,255,0.14), transparent 62%);
  filter: blur(6px);
  animation: bp-halo 6s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes bp-halo {
  0%   { transform: scale(0.98); opacity: 0.45; }
  50%  { transform: scale(1.03); opacity: 0.85; }
  100% { transform: scale(0.98); opacity: 0.45; }
}

.bp-muscle-map-anim:hover {
  box-shadow:
    0 0 0 1px rgba(58,199,255,0.14),
    0 18px 55px rgba(0,0,0,0.75),
    0 0 45px rgba(58,199,255,0.14);
}

@media (prefers-reduced-motion: reduce) {
  .bp-pipeline-arrow::after,
  .bp-muscle-map-anim::before,
  .bp-muscle-scanline,
  .bp-muscle-halo {
    animation: none !important;
  }
}
/* ======================================================
   HOW IT WORKS — polish pass (typography + layout + card)
   ====================================================== */

#how-it-works .bp-split {
  gap: 56px;                 /* more breathing room */
  align-items: start;        /* prevents awkward vertical centering */
}

@media (max-width: 900px) {
  #how-it-works .bp-split { gap: 34px; }
}

/* Label spacing */
#how-it-works .bp-label {
  margin-bottom: 10px;
  opacity: 0.95;
}

/* Headline: slightly tighter tracking + better line-height */
#how-it-works .bp-heading-lg {
  letter-spacing: 0.14em;   /* was 0.18em; too wide for large H2 */
  line-height: 1.08;
  max-width: 22ch;          /* keeps the block feeling intentional */
}

/* Body: slightly larger & more readable while keeping Orbitron */
#how-it-works .bp-body {
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 60ch;
}

/* Paragraph separation */
#how-it-works .bp-body + .bp-body {
  margin-top: 14px !important;
}

/* Pipeline strip: cleaner, more “panel” and less cramped */
#how-it-works .bp-pipeline {
  margin-top: 20px;
  padding: 14px 16px;
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 20% 20%, rgba(58,199,255,0.08), transparent 60%),
    rgba(255,255,255,0.02);
}

#how-it-works .bp-pipeline-label {
  letter-spacing: 0.16em;
  color: rgba(209,213,219,0.75);
}

/* --- Live capture card: make it feel like “hardware UI” --- */
#how-it-works .bp-muscle-map {
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(58,199,255,0.45);
  background:
    radial-gradient(circle at 20% 25%, rgba(58,199,255,0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(58,199,255,0.10), transparent 60%),
    linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow:
    0 18px 55px rgba(0,0,0,0.75),
    0 0 0 1px rgba(58,199,255,0.12);
  padding: 18px;
}

/* header row alignment */
#how-it-works .bp-muscle-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

#how-it-works .bp-muscle-map-timestamp {
  color: rgba(209,213,219,0.85);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Metrics list becomes a tidy grid */
#how-it-works .bp-muscle-map-body {
  display: block; /* if your current markup is simple text, this won't break */
}

/* If you are using the “rows + bars” markup, this will make it pop */
#how-it-works .bp-muscle-map-metrics {
  display: grid;
  gap: 10px;
}

#how-it-works .bp-muscle-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 12px;
  align-items: center;
}

/* Names */
#how-it-works .bp-muscle-name {
  color: rgba(245,248,255,0.92);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Bars */
#how-it-works .bp-muscle-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.18);
  overflow: hidden;
}

#how-it-works .bp-muscle-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* Values align + “tabular numbers” */
#how-it-works .bp-muscle-value {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(245,248,255,0.85);
  min-width: 52px;
  text-align: right;
}

/* footer tags: prevent the “crowded” look */
#how-it-works .bp-muscle-map-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148,163,184,0.18);
}

#how-it-works .bp-muscle-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(209,213,219,0.78);
}

/* Slightly calmer button placement */
#how-it-works .bp-btn-primary {
  margin-top: 22px !important;
}

/* Reduced motion friendly */
@media (prefers-reduced-motion: reduce) {
  #how-it-works .bp-muscle-map { transition: none !important; }
}
/* ======================================================
   APPLICATIONS — polish pass (cards + spacing + hierarchy)
   ====================================================== */

#applications .bp-label {
  margin-bottom: 10px;
  opacity: 0.9;
}

#applications .bp-heading-lg {
  letter-spacing: 0.14em;
  line-height: 1.08;
  max-width: 26ch;
}

#applications .bp-app-grid {
  position: relative;
  z-index: 2;
}

/* Application cards */
#applications .bp-app-card {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 55%),
    rgba(0,0,0,0.65);
  border-color: rgba(148,163,184,0.35);
  padding: 24px 22px;
}

#applications .bp-app-card-accent {
  border-color: rgba(58,199,255,0.85);
  background:
    radial-gradient(circle at 30% 20%, rgba(58,199,255,0.18), transparent 55%),
    rgba(0,0,0,0.75);
}

/* Card headings */
#applications .bp-heading-md {
  margin-bottom: 10px;
  letter-spacing: 0.12em;
}

/* Card copy */
#applications .bp-body {
  font-size: 14.8px;
  line-height: 1.7;
  color: rgba(209,213,219,0.88);
}

/* Hover refinement */
#applications .bp-app-card:hover {
  border-color: rgba(255,255,255,0.45);
}

#applications .bp-app-card-accent:hover {
  border-color: rgba(58,199,255,1);
  box-shadow:
    0 0 0 1px rgba(58,199,255,0.35),
    0 18px 48px rgba(0,0,0,0.75),
    0 0 42px rgba(58,199,255,0.25);
}

/* Mobile tightening */
@media (max-width: 900px) {
  #applications .bp-heading-lg {
    max-width: none;
  }
}
/* ======================================================
   INSIGHT QUOTE — premium pull-quote card
   ====================================================== */

#insight .bp-quote-card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px;
  background:
    radial-gradient(circle at 18% 30%, rgba(58,199,255,0.14), transparent 58%),
    linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-color: rgba(148,163,184,0.28);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.75),
    0 0 0 1px rgba(58,199,255,0.08);
}

/* Soft edge accent */
#insight .bp-quote-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(58,199,255,0.0),
    rgba(58,199,255,0.85),
    rgba(58,199,255,0.0)
  );
  opacity: 0.9;
}

/* Subtle scan shimmer */
#insight .bp-quote-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(58,199,255,0.10) 48%,
    transparent 58%
  );
  transform: translateX(-55%) rotate(6deg);
  opacity: 0;
  pointer-events: none;
}

#insight .bp-quote-card:hover::after {
  opacity: 1;
  animation: bp-quote-shimmer 1.4s ease-out both;
}

@keyframes bp-quote-shimmer {
  0% { transform: translateX(-55%) rotate(6deg); }
  100% { transform: translateX(55%) rotate(6deg); }
}

/* Quote mark */
#insight .bp-quote-mark {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 64px;
  line-height: 1;
  color: rgba(58,199,255,0.20);
  letter-spacing: 0;
  user-select: none;
}

/* Quote text */
#insight .bp-quote {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(245,248,255,0.92);
  letter-spacing: 0.03em;
  max-width: 72ch;
}

/* Meta row */
#insight .bp-quote-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(209,213,219,0.8);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#insight .bp-quote-name {
  color: rgba(245,248,255,0.92);
}

#insight .bp-quote-divider {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(58,199,255,0.55);
  opacity: 0.7;
}

#insight .bp-quote-org {
  color: rgba(209,213,219,0.72);
}

/* Mobile */
@media (max-width: 900px) {
  #insight .bp-quote {
    font-size: 16.5px;
  }
  #insight .bp-quote-mark {
    font-size: 54px;
  }
}
/* ======================================================
   CTA BAND — BioPulse HQ (final section)
   ====================================================== */

.bp-cta-band {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  border-top: 1px solid rgba(148,163,184,0.18);
  border-bottom: 1px solid rgba(148,163,184,0.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(58,199,255,0.16), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(58,199,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)),
    #000;
}

.bp-cta-band::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle, rgba(245,248,255,0.55) 1px, transparent 2px),
    radial-gradient(circle, rgba(90,217,255,0.35) 1px, transparent 2px);
  background-size: 220px 220px, 320px 320px;
  background-position: 0 0, 90px 140px;
  opacity: 0.12;
  pointer-events: none;
  animation: bp-cta-stars 26s linear infinite;
}

@keyframes bp-cta-stars {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-220px, -220px); }
}

.bp-cta-band::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(58,199,255,0.10) 50%,
    transparent 60%
  );
  transform: translateX(-55%) rotate(6deg);
  opacity: 0;
  pointer-events: none;
}

.bp-cta-band:hover::after {
  opacity: 1;
  animation: bp-cta-shimmer 1.5s ease-out both;
}

@keyframes bp-cta-shimmer {
  0% { transform: translateX(-55%) rotate(6deg); }
  100% { transform: translateX(55%) rotate(6deg); }
}

.bp-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.bp-cta-inner .bp-heading-lg {
  letter-spacing: 0.14em;
  line-height: 1.08;
}

.bp-cta-copy {
  max-width: 66ch;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(209,213,219,0.88);
}

/* Actions */
.bp-cta-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Meta pills */
.bp-cta-meta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0.95;
}

/* Make primary feel like "the" action */
.bp-cta-actions .bp-btn-primary {
  box-shadow:
    0 14px 35px rgba(0,0,0,0.55),
    0 0 28px rgba(58,199,255,0.18);
}

.bp-cta-actions .bp-btn-primary:hover {
  box-shadow:
    0 18px 44px rgba(0,0,0,0.65),
    0 0 40px rgba(58,199,255,0.26);
}

/* Mobile */
@media (max-width: 900px) {
  .bp-cta-band { padding: 72px 0; }
  .bp-cta-copy { font-size: 15px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bp-cta-band::before,
  .bp-cta-band:hover::after {
    animation: none !important;
  }
}


/* ======================================================
   CENTERING + DRIFT FIX (FINAL)
   Paste at VERY BOTTOM of global.css
   ====================================================== */

/* Make sure pseudo-elements (like .bp-page::before) anchor correctly */
.bp-page {
  position: relative;
  width: 100%;
}

/* Hard guarantee: sections span full width, containers do the centering */
.bp-header,
.bp-footer,
.bp-hero,
.bp-section,
.bp-constellation-wrap,
.bp-cta-band {
  width: 100%;
}

/* Re-assert container centering (works even inside flex contexts) */
.bp-container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Prevent any 100vw element from causing sideways “push” */
html, body {
  overflow-x: hidden;
}
/* ======================================================
   GLOBAL CONTAINER WIDTH
   ====================================================== */

.bp-container {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ======================================================
   FOOTER — FULL BLEED, TIGHT, CLEAN
   ====================================================== */

.bp-footer {
  margin-top: auto;
  width: 100%;
}

/* Full-width background */
.bp-footer-bleed {
  width: 100%;
  background: #000;
  border-top: 1px solid rgba(148,163,184,0.18);
}

/* Main footer layout */
.bp-footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 64px;

  /* 🔧 TIGHTENED vertical space */
  padding: 40px 0 28px;
  align-items: start;
}

/* Brand */
.bp-footer-brand {
  text-align: left;
}

.bp-footer-copy {
  margin-top: 12px;
  max-width: 42ch;
}

/* Footer links */
.bp-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 40px;
}

.bp-footer-col {
  text-align: left;
}

/* Bottom bar */
.bp-footer-bottom {
  width: 100%;
}

.bp-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* 🔧 MUCH tighter */
  padding: 8px 0 10px;

  font-size: 11px;
  color: var(--bp-text-subtle);
  border-top: 1px solid rgba(148,163,184,0.18);
}

/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 900px) {
  .bp-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 22px;
  }

  .bp-footer-links-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bp-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
/* ======================================================
   MOBILE TUNE PACK — make everything feel intentional
   Paste at VERY BOTTOM of global.css
   ====================================================== */

@media (max-width: 900px) {
  /* tighter global rhythm */
  .bp-section { padding: 56px 0; }          /* was 80px */
  .bp-container { padding-left: 16px; padding-right: 16px; }

  /* headings: reduce size + tracking (Orbitron needs this) */
  .bp-heading-xl {
    font-size: 28px;
    letter-spacing: 0.12em;
    line-height: 1.1;
  }
  .bp-heading-lg {
    font-size: 22px;
    letter-spacing: 0.10em;
    line-height: 1.15;
  }
  .bp-heading-md {
    font-size: 18px;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  /* body copy: slightly smaller, more readable */
  .bp-body {
    font-size: 14px;
    line-height: 1.7;
  }

  /* hero padding tighter */
  .bp-hero-typeband-inner {
    padding: 56px 16px 48px;
  }

  /* buttons: make them thumb-friendly */
  .bp-btn {
    padding: 12px 16px;
    font-size: 11px;
  }

  /* cards/panels: reduce padding */
  .bp-card { padding: 16px; }

  /* split sections should always stack cleanly */
  .bp-split {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    text-align: center;
  }
  .bp-split-content { max-width: 100%; margin: 0 auto; }
  .bp-split-visual { justify-content: center; }

  /* reduce grid min size so cards don’t look huge */
  .bp-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* pipeline strip: wrap nicely and reduce visual weight */
  .bp-pipeline {
    padding: 10px 12px;
    gap: 8px;
  }
  .bp-pipeline-label { font-size: 10px; letter-spacing: 0.12em; }

  /* muscle map card: stop it from feeling gigantic */
  #how-it-works .bp-muscle-map {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }
  #how-it-works .bp-muscle-row {
    grid-template-columns: 1fr 1.2fr auto;
    gap: 10px;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .bp-heading-xl { font-size: 24px; }
  .bp-heading-lg { font-size: 20px; }
  .bp-body { font-size: 13.5px; }

  /* make buttons not wrap awkwardly */
  .bp-btn { width: 100%; justify-content: center; }
  .bp-cta-actions { gap: 10px; }
}
