/* === Bia Entitlement Lock/Blur States === */
/* Use a veil overlay on locked containers rather than applying `filter: blur` to
   the container (which creates a new stacking context and breaks overlays).
   Keep ::after for a message; use ::before for a backdrop-filter veil. */
/* .bia-blur removed: deprecated, prefer .bia-locked::before veil */
.bia-locked {
  position: relative;
}
.bia-locked::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(2, 6, 23, 0.35);
  border-radius: inherit;
}
.bia-locked::after {
  content: 'Insight available to partners';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 20, 0);
  border: 1px solid rgba(22, 226, 255, 0.12);
  border-radius: 16px;
  color: #e7f7ff;
  font-weight: 600;
  letter-spacing: 0.2px;
}
/* === coach-home.html Inline Style Migrations === */
.console-sub-margin-top {
  margin-top: 0.35rem !important;
}
.console-sub-text-right {
  text-align: right !important;
}
/* === bia-pulse2.html Inline Styles Migration === */
.hud-pulse-circle-size {
  width: 64px !important;
  height: 64px !important;
  font-size: 1.2rem !important;
}
.hud-muted-margin-top {
  margin-top: 0.3rem !important;
}
.hud-muted-font085 {
  font-size: 0.85rem !important;
}
.margin-top-07rem {
  margin-top: 0.7rem !important;
}
.hud-muted-font08 {
  font-size: 0.8rem !important;
}
.hud-margin-left-small {
  margin-left: 0.5rem !important;
}
.hud-panel-margin-bottom {
  margin-bottom: 1.5rem !important;
}
.hud-muted-font078 {
  font-size: 0.78rem !important;
}
.margin-top-small {
  margin-top: 0.7rem !important;
}
.flex-row-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
}
.gap-05rem {
  gap: 0.5rem !important;
}
.margin-top-11rem {
  margin-top: 1.1rem !important;
}
.margin-top05rem {
  margin-top: 0.5rem !important;
}
.flex-column-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.flex-grow {
  flex-grow: 1 !important;
}
.min-width-220 {
  min-width: 220px !important;
}
/* === student-pulse.html Inline Style Migrations === */
.side-list-margin-top {
  margin-top: 0.4rem;
}
.settings-privacy-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.hud-muted-font082 {
  font-size: 0.8rem;
}
.settings-athlete-team-row {
  display: grid;
  gap: 0.25rem;
  margin-left: 1.5rem;
}
.settings-toggle-label {
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.settings-label {
  font-size: 0.8rem;
  display: grid;
  gap: 0.25rem;
}
.settings-profile-fields {
  display: grid;
  gap: 0.55rem;
}
.hud-avatar-marginb05 {
  margin-bottom: 0.5rem;
}
.settings-profile-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: flex-start;
}
/* === Settings Inline Style Migrations === */
.hud-muted-margin0-font082 {
  margin: 0;
  font-size: 0.82rem;
}
/* === Student Connections Inline Style Migrations === */
.conn-flex-end-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.conn-match-meta-hint {
  margin-top: 0.35rem;
}
.conn-orbit-hint {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: right;
}
.conn-group-hint {
  font-size: 0.78rem;
  color: var(--muted);
}
/* === Messages Inline Style Migrations === */
.hidden-btn {
  display: none;
}
/* === Planner Inline Style Migrations === */
.panel-margin-top {
  margin-top: 2.2rem;
}
/* === Profile Inline Style Migrations === */
.profile-avatar-input-hidden {
  display: none;
}
.profile-one-liner-detail {
  margin-top: 0.3rem;
  font-size: 0.82rem;
}
.profile-badges-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
}
.profile-goal-btn-row {
  margin-top: 0.6rem;
}
/* === Student Home: Status Row for Backup === */
.hud-status-row {
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hud-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.95);
  display: inline-block;
}
/* === Student Home: Question Block === */
.hud-question-desc {
  font-size: 0.78rem;
}
.hud-question-options {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hud-question-talk {
  margin-top: 0.9rem;
}
/* === Student Home Inline Style Migrations === */
.hud-affiliation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hud-today-header-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.hud-today-block {
  margin-top: 0.6rem;
}
.hud-today-block-title {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
}
.hud-today-arc-block {
  margin-top: 0.55rem;
}
.hud-today-arc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}
.hud-today-arc-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hud-today-arc-trend {
  color: var(--accent2);
}
.hud-today-arc-forecast {
  margin-top: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.25rem 0.4rem;
}
.hud-today-arc-svg {
  width: 100%;
  height: 18px;
}
.hud-today-arc-forecast-label {
  font-size: 0.7rem;
}
.hud-today-whatif-row {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.76rem;
}
.hud-panel-quick-read {
  padding: 0.75rem 0.8rem;
}
.hud-quick-read-title {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
}
.hud-quick-read-desc {
  font-size: 0.8rem;
}
.hud-rhythm-title {
  margin: 0;
  font-size: 0.95rem;
}
.hud-rhythm-desc {
  font-size: 0.8rem;
}
.hud-rhythm-toggle-row {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  overflow: hidden;
  font-size: 0.72rem;
}
.hud-rhythm-toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.22rem 0.6rem;
}
.hud-rhythm-toggle-btn.active {
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
}
.hud-resume-title {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}
.hud-resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.74rem;
}
.hud-signals-desc {
  font-size: 0.78rem;
}
.hud-signals-block {
  margin-top: 0.6rem;
}
.hud-signals-block-margin {
  margin-top: 0.8rem;
}
.hud-signals-title {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
}
.hud-signals-detail {
  margin: 0;
}
.hud-signals-tags {
  margin-top: 0.35rem;
}
.hud-signals-viewall {
  margin-top: 0.8rem;
}
.hud-nil-desc {
  font-size: 0.78rem;
}
.hud-nil-detail {
  font-size: 0.8rem;
}
.hud-nil-status-upcoming {
  border-color: rgba(250, 204, 21, 0.9);
  background: rgba(250, 204, 21, 0.18);
}
.hud-nil-viewall {
  margin-top: 0.8rem;
}
/* === Biakobaye – Global Vibranium Shell === */

/* Brand tokens */
:root {
  --bg: #050714;
  --accent: #6b5bff;
  --accent2: #16e2ff;
  --accent3: #ff6bd5;
  --accent4: #22c55e;
  --text: #f9fafb;
  --muted: #9ca3af;
  --card-bg: rgba(15, 23, 42, 0.97);

  --bia-pulse-strength: 1;
  --bia-pulse-speed: 2.8s;

  /* Logo tokens (gold values from student-home.html) */
  /* Increased slightly for better visibility on desktop (student-home) */
  --logo-size: 36px;
  --logo-gap: 0.14rem;
  --logo-main-size: 1rem;
  --logo-pronounce-size: 0.78rem;
  --logo-sub-size: 0.76rem;
}

/* Base reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #151b3d 0, #050714 52%, #02040a 100%);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    sans-serif;
}

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

button {
  font-family: inherit;
}

/* === Background orbs (used on all pages) === */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.orb1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.8), transparent 70%);
  top: -80px;
  left: -120px;
}

.orb2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(22, 226, 255, 0.9), transparent 70%);
  top: 40%;
  right: -120px;
}

/* NAV: keep orb locked to the left logo area */
.bia-main-nav-left,
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.nav-right .bia-orb,
.nav-right .bia-orb * {
  /* hide accidental duplicate orb in the right area */
  display: none !important;
  visibility: hidden !important;
}

.bia-orb--nav,
.bia-orb[data-bia-orb='nav'],
.bia-orb {
  position: relative !important;
  flex: 0 0 auto !important;
}

/* === NAV LOGO ORB — MUST STAY IN HEADER === */
.nav .bia-orb,
.nav .bia-orb-logo,
header .bia-orb,
header .bia-orb-logo {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* nav orb must be normal flow */
.bia-orb--nav,
[data-bia-orb='nav'],
.bia-main-nav-left .bia-orb {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  top: auto !important;
}

.orb3 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 107, 213, 0.9), transparent 70%);
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
}

/* Layout shell */
.shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 3.5rem;
  z-index: 2;
}

/* === Vibranium Nav (shared) === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-bottom: 2.2rem;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.8));
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  /* Keep the left area (logo) from shrinking when center links grow */
  flex: 0 0 auto;
  min-width: 0;
}

/* Nav orb: logo chip (keeps legacy .bia-orb--nav and new .bia-nav-orb small) */
.bia-nav-orb,
.bia-orb--nav {
  --bia-orb-size: 40px;
  width: var(--bia-orb-size);
  height: var(--bia-orb-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
}

.bia-nav-orb img,
.bia-orb--nav .bia-orb__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.bia-nav-orb-track,
.bia-orb__track {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 18px rgba(107, 91, 255, 0.25);
  pointer-events: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-right: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Ensure center navigation can wrap without pushing the logo-left area
   - flex: 1 1 auto lets it grow/shrink within remaining space
   - min-width: 0 prevents overflowing flex items from forcing shrink on siblings
   - flex-wrap: wrap allows the links to stack within the center column instead
     of pushing the logo text into a stacked layout. */
.nav-center {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  padding: 0 1rem;
}

/* === Vibranium Shell Chips (nav right) === */
.bia-shell-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.78);
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.32), rgba(15, 23, 42, 0.98));
  font-size: 0.72rem;
  color: #e5e7eb;
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.95),
    0 0 22px rgba(15, 23, 42, 0.9);
  white-space: nowrap;
}

.bia-shell-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.bia-shell-chip-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Continuity – green glow */
.bia-shell-chip--continuity .bia-shell-chip-dot {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.95);
}

/* Status – purple / blue glow */
.bia-shell-chip--status {
  background: radial-gradient(circle at 25% 0%, rgba(155, 100, 255, 0.42), rgba(35, 20, 70, 0.95));
  border: 1px solid rgba(155, 100, 255, 0.8);
  box-shadow:
    0 0 18px rgba(155, 100, 255, 0.9),
    0 0 32px rgba(155, 100, 255, 0.65),
    0 0 52px rgba(155, 100, 255, 0.45);
  color: #ede9fe;
}

.bia-shell-chip--status .bia-shell-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a855f7;
  box-shadow:
    0 0 14px rgba(168, 85, 247, 0.95),
    0 0 24px rgba(168, 85, 247, 1),
    0 0 32px rgba(168, 85, 247, 0.85);
}

.bia-shell-chip-dot--pulse {
  animation: bia-status-pulse 2.2s ease-in-out infinite;
}

@keyframes bia-status-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 14px rgba(168, 85, 247, 0.95),
      0 0 24px rgba(168, 85, 247, 1),
      0 0 32px rgba(168, 85, 247, 0.85);
  }
  50% {
    transform: scale(1.28);
    box-shadow:
      0 0 24px rgba(168, 85, 247, 1),
      0 0 38px rgba(168, 85, 247, 1),
      0 0 52px rgba(168, 85, 247, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 14px rgba(168, 85, 247, 0.95),
      0 0 24px rgba(168, 85, 247, 1),
      0 0 32px rgba(168, 85, 247, 0.85);
  }
}

/* 🔵 Bia Icon – Vibranium Halo */
.logo-mark {
  /* enforce a true circular mark globally (size tokenized) */
  display: inline-flex;
  width: var(--logo-size);
  height: var(--logo-size);
  min-width: var(--logo-size);
  min-height: var(--logo-size);
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(249, 250, 251, 0.8);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 26px rgba(56, 189, 248, 0.9),
    0 18px 55px rgba(15, 23, 42, 0.95);
  background: conic-gradient(from 210deg, #6b5bff, #16e2ff, #ff6bd5, #6b5bff);
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 20% 0%,
    #fdfdff 0,
    #e5e7eb 18%,
    #9f9cf2 45%,
    #4f46e5 65%,
    #22d3ee 100%
  );
  opacity: 0.98;
}

.logo-mark span {
  position: relative;
  letter-spacing: 0.02em;
  color: #020617 !important;
  line-height: 1;
  display: inline-block;
  transform: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: var(--logo-gap);
  line-height: 1.1;
  min-width: 0;
}

.logo-main {
  font-size: var(--logo-main-size);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.logo-pronounce {
  font-size: var(--logo-pronounce-size);
  color: #c7d2fe;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: var(--logo-sub-size);
  color: var(--muted);
}

/* Global HUD school logo — used in profile snapshots across pages
   Centralized here so all profile types (student, recruiter, admin, etc.)
   display a consistent circular school mark. */
.hud-school-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #020617;
  overflow: hidden;
}

/* Generic affiliation (school, recruiter, company, organization)
   Use these classes when rendering the user's primary affiliation in HUD
   (students -> school, recruiters/brands -> organization). They match
   the size and behavior of the legacy `.hud-school-logo` so templates
   can switch to the generic classes without layout drift. */
.hud-affiliation-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

.hud-affiliation-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #020617;
  overflow: hidden;
  flex: 0 0 36px;
}

.hud-affiliation-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hud-affiliation-meta strong {
  display: block;
}

.nav-center {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.nav-center a {
  font-size: 0.78rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.16s ease-out;
}

.nav-center a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.nav-center a.active {
  color: var(--text);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.35), rgba(15, 23, 42, 0.95));
}

/* Helper for pages that used inline two-row nav wrappers (legacy)
   Convert those inline wrappers to use `.nav-row` so global CSS controls spacing.
 */
.nav-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 720px) {
  .nav-row {
    gap: 0.6rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Signals header + filter bar (shared — canonical styles) */
  .signals-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.2rem 0 1rem;
  }
  .signals-title h1 {
    margin: 0;
    color: var(--ink);
  }
  .signals-title p {
    margin: 0.25rem 0 0;
    color: var(--muted);
  }

  .signals-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  }
  .signals-filters .left,
  .signals-filters .right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .bia-input,
  .bia-select {
    height: 36px;
    border-radius: 12px;
    padding: 0 0.75rem;
    background: rgba(10, 14, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ink);
    outline: none;
  }
  .bia-input::placeholder {
    color: rgba(229, 231, 235, 0.45);
  }
  .bia-input:focus,
  .bia-select:focus {
    border-color: rgba(22, 226, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(22, 226, 255, 0.1);
  }

  .bia-btn-primary {
    height: 36px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 226, 255, 0.22);
    background: rgba(22, 226, 255, 0.1);
    color: var(--ink);
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease,
      border-color 0.15s ease;
  }
  .bia-btn-primary:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 226, 255, 0.32);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  }

  @media (max-width: 720px) {
    .signals-header {
      flex-direction: column;
      align-items: flex-start;
    }
    .signals-filters {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

/* Desktop-specific logo bump: preserve smaller sizes on mobile but
   increase the mark and text slightly on wide viewports (student-home). */
@media (min-width: 1100px) {
  :root {
    /* Desktop: keep a modest bump but revert the larger increase */
    --logo-size: 48px;
    --logo-gap: 0.16rem;
    --logo-main-size: 1.05rem;
    --logo-pronounce-size: 0.82rem;
    --logo-sub-size: 0.78rem;
  }

  /* Slightly scale the letter inside the mark so it reads at larger sizes */
  .logo-mark {
    font-size: 1.05rem;
  }
}

.bia-status-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(60, 0, 140, 0.2);
  border: 1px solid rgba(164, 120, 255, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #c4b5fd;
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.35);
}

.bia-status-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c084fc, #9333ea 60%, #581c87);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Orbit stats (shared across pages) */
.orbit-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.orbit-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.14),
    rgba(15, 23, 42, 0.95)
  );
  color: #e5e7eb;
  white-space: nowrap;
}

.orbit-stat-pill span[data-orbit-total],
.orbit-stat-pill span[data-orbit-new],
.orbit-stat-pill span[data-orbit-high-impact] {
  font-weight: 500;
}

.orbit-stats--profile {
  margin-top: 6px;
  margin-bottom: 0;
}

/* Orbit panel (Discover + Profile) */
.orbit-panel {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(22, 226, 255, 0.12), rgba(15, 23, 42, 0.95));
  padding: 12px 14px 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

.orbit-panel--profile {
  padding: 10px 12px;
  box-shadow: none;
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.14),
    rgba(15, 23, 42, 0.95)
  );
}

.orbit-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.orbit-panel-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.orbit-panel-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.orbit-panel-sub {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 2px;
}

.orbit-panel-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.orbit-badge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.orbit-badge-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.7);
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.35), rgba(15, 23, 42, 1));
  color: #e5e7eb;
}

.orbit-panel-body {
  margin-top: 4px;
}

.orbit-panel-body--compact {
  margin-top: 2px;
}

.orbit-stat-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .orbit-stat-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.orbit-stat-main {
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.orbit-stat-label {
  font-size: 0.72rem;
  color: #9ca3af;
}

.orbit-stat-value {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2px;
}

.orbit-stat-foot {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 1px;
}

.orbit-stat-side {
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.orbit-stat-value-sm {
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 2px;
}

.orbit-progress-wrap {
  margin-top: 6px;
}

.orbit-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.6);
  overflow: hidden;
}

.orbit-progress-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.9), rgba(56, 189, 248, 0.9));
  transition: width 260ms ease-out;
}

.orbit-progress-caption {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 3px;
}

.orbit-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.orbit-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #cbd5f5;
}

.orbit-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.orbit-stat-chip {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

/* Primary CTA */
.btn-primary {
  background: radial-gradient(circle at 10% 0%, #f9fafb, #e5e7eb 15%, #6b5bff 65%, #16e2ff 100%);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: #020617;
  font-size: 0.82rem;
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.65);
  border: none;
  white-space: nowrap;
}

/* Responsive nav */
@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-center {
    width: 100%;
    justify-content: flex-start;
  }
}

/* === Pulse Score Circle Animation (for any .hud-pulse-circle) === */
.hud-pulse-circle {
  animation: hud-pulse-breathe var(--bia-pulse-speed, 2.8s) ease-in-out infinite;
  will-change: transform, box-shadow, opacity;
}

@keyframes hud-pulse-breathe {
  0%,
  100% {
    transform: scale(calc(var(--bia-pulse-strength, 1) * 0.94));
    box-shadow:
      0 0 calc(10px * var(--bia-pulse-strength)) rgba(22, 226, 255, 0.55),
      0 0 calc(20px * var(--bia-pulse-strength)) rgba(129, 140, 248, 0.45);
    opacity: 0.9;
  }

  50% {
    transform: scale(calc(var(--bia-pulse-strength, 1) * 1.06));
    box-shadow:
      0 0 calc(22px * var(--bia-pulse-strength)) rgba(22, 226, 255, 0.95),
      0 0 calc(36px * var(--bia-pulse-strength)) rgba(129, 140, 248, 0.85);
    opacity: 1;
  }
}

/* === Kill the old “BIA IS LISTENING” rail anywhere it appears === */
.bia-persona-rail,
.bia-quick-nav,
.bia-persona-rail + .bia-quick-nav {
  display: none !important;
}

/* === Bia AI: strict scoping (DO NOT touch nav orb) === */
#bia-ai-root {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
  isolation: isolate !important;
}

/* Only the floating AI orb (not header/nav orb) */
#bia-orb {
  position: fixed !important;
  z-index: 2147483001 !important;
  pointer-events: auto !important;
}

/* Only the AI drawer instance */
.bia-drawer[data-bia-ai-drawer] {
  position: fixed !important;
  z-index: 2147483640 !important;
  pointer-events: auto !important;
}

/* If you’re using aria-hidden, keep it—but ONLY for the AI drawer */
.bia-drawer[data-bia-ai-drawer][aria-hidden='true'] {
  display: none !important;
}

/* === Explicit sizing to prevent collapsing into a line === */
.bia-drawer[data-bia-ai-drawer] {
  right: 18px !important;
  bottom: 88px !important;
  width: min(420px, calc(100vw - 36px)) !important;
  height: min(70vh, 620px) !important;
  max-height: min(70vh, 620px) !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}
.bia-drawer[data-bia-ai-drawer].bia-open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Header/nav orb must stay in normal flow */
.nav .bia-orb[data-bia-orb='nav'] {
  position: relative !important;
  z-index: auto !important;
}

/* === Bia AI: Drawer internal layout & UX tightening === */
/* Drawer shell: header / body (scroll) / footer (composer) */
.bia-drawer[data-bia-ai-drawer] {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Top area (title + chips) */
.bia-drawer[data-bia-ai-drawer] .bia-drawer-header {
  flex: 0 0 auto !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

/* Scrollable conversation area */
.bia-drawer[data-bia-ai-drawer] .bia-drawer-body {
  flex: 1 1 auto !important;
  overflow: auto !important;
  padding: 12px 14px 14px !important;
}

/* Bottom composer (input row) */
.bia-drawer[data-bia-ai-drawer] .bia-drawer-footer {
  flex: 0 0 auto !important;
  padding: 10px 12px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(5, 7, 20, 0.85) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
}

/* Chip row / quick actions: wrap + spacing */
.bia-drawer[data-bia-ai-drawer] .bia-chip-row,
.bia-drawer[data-bia-ai-drawer] .bia-quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

/* Message bubbles: less cramped, stop stretching */
.bia-drawer[data-bia-ai-drawer] .bia-msg {
  max-width: 92% !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  line-height: 1.35 !important;
}

/* Keep long words/URLs from wrecking layout */
.bia-drawer[data-bia-ai-drawer] .bia-msg,
.bia-drawer[data-bia-ai-drawer] .bia-msg * {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Composer row: avoid squishing inputs into a noodle */
.bia-drawer[data-bia-ai-drawer] .bia-composer {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}
.bia-drawer[data-bia-ai-drawer] .bia-composer input,
.bia-drawer[data-bia-ai-drawer] .bia-composer textarea {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Active signal indicator chips in thread header */
.thread-header-active-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.execution-chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  color: #e5e7eb;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.execution-chip:hover {
  opacity: 1;
}
.execution-chip:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
/* =========================
   Guardrail: CTA styles must not leak into chat bubbles
   ========================= */

/* Scope primary CTA styling to actual interactive elements only */
button.btn-primary,
a.btn-primary,
input.btn-primary {
  background: radial-gradient(circle at 10% 0%, #f9fafb, #e5e7eb 15%, #6b5bff 65%, #16e2ff 100%);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: #020617;
  font-size: 0.82rem;
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.65);
  border: none;
  white-space: nowrap;
}

/* Neutralize any accidental .btn-primary usage on non-interactive elements */
.btn-primary:not(button):not(a):not(input) {
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* === Landing background: orb layer is authoritative === */
html {
  background: var(--bg, #050714) !important;
}

html:has(body[data-bia-page='landing']),
html:has(body[data-bia-page='whitepapers']),
body[data-bia-page='landing'],
body[data-bia-page='whitepapers'] {
  -ms-overflow-style: none;
}

html:has(body[data-bia-page='landing'])::-webkit-scrollbar,
html:has(body[data-bia-page='whitepapers'])::-webkit-scrollbar,
body[data-bia-page='landing']::-webkit-scrollbar,
body[data-bia-page='whitepapers']::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-bia-page='landing'] {
  background: transparent !important;
  color: var(--text, #f9fafb) !important;
}

body[data-bia-page='landing'] .landing-background {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background: radial-gradient(circle at top, #151b3d 0, #050714 52%, #02040a 100%) !important;
}

body[data-bia-page='landing'] .landing-background .orb1 {
  position: absolute;
  width: 340px;
  height: 340px;
  top: -80px;
  left: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.8), transparent 70%);
  filter: blur(80px);
  opacity: 0.9;
}

body[data-bia-page='landing'] .landing-background .orb2 {
  position: absolute;
  width: 340px;
  height: 340px;
  top: 40%;
  right: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22, 226, 255, 0.9), transparent 70%);
  filter: blur(80px);
  opacity: 0.9;
}

body[data-bia-page='landing'] .landing-background .orb3 {
  position: absolute;
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: 50%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 107, 213, 0.9), transparent 70%);
  filter: blur(80px);
  opacity: 0.9;
  transform: translateX(-50%);
}

body[data-bia-page='landing'] .landing-background::after {
  content: none;
  display: none;
}

body[data-bia-page='landing'] .landing-background::before {
  content: none;
  display: none;
}

body[data-bia-page='landing'] .landing-shell {
  position: relative !important;
  z-index: 2 !important;
}

/* Stage geometry: give main area real vertical space so centering works */
body[data-bia-page='landing'] .landing-main {
  /* header + footer + breathing room allowance */
  min-height: calc(100vh - 240px);
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(18px, 4vh, 48px) 20px;
}

/* Hero sits slightly above true center (feels more “hero”) */
body[data-bia-page='landing'] .landing-main--center {
  align-content: center;
  padding-top: clamp(12px, 2vh, 24px);
}

/* Card sizing + presence */
body[data-bia-page='landing'] .landing-card {
  width: min(960px, 100%);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 28px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 22%,
    rgba(3, 6, 20, 0.58) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);

  box-shadow:
    0 30px 80px rgba(15, 18, 45, 0.75),
    0 0 40px rgba(107, 91, 255, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset !important;

  /* animation lives in keyframes only */
  animation: landing-card-entry 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Title/subtitle rhythm */
body[data-bia-page='landing'] .landing-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

body[data-bia-page='landing'] .landing-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 16px;
  color: rgba(226, 232, 240, 0.82);
  max-width: 64ch;
}

body[data-bia-page='landing'] .landing-category-note,
body[data-bia-page='landing'] .landing-hint {
  color: rgba(226, 232, 240, 0.7);
  max-width: 64ch;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.55;
}

/* CTA stack spacing */
body[data-bia-page='landing'] .landing-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

/* Primary link looks like a real button-row, not a plain list item */
body[data-bia-page='landing'] .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  min-height: 44px;
}

body[data-bia-page='landing'] .cta-link-label {
  display: inline-flex;
  align-items: center;
}

body[data-bia-page='landing'] .cta-link-cue {
  display: inline-flex;
  align-items: center;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.4);
  font-size: 0.7rem;
  line-height: 1.15;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

body[data-bia-page='landing'] .landing-back {
  margin-top: 16px;
}

/* Mobile tighten: avoid huge empty top space */
@media (max-width: 520px) {
  body[data-bia-page='landing'] .landing-main {
    min-height: calc(100vh - 210px);
    padding: 18px 16px 28px;
  }
  body[data-bia-page='landing'] .landing-card {
    padding: 18px;
    border-radius: 16px;
  }
  body[data-bia-page='landing'] .cta-link {
    width: 100%;
  }
}

@keyframes landing-card-entry {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-bia-page='landing'] .landing-background .orb1,
body[data-bia-page='landing'] .landing-background .orb2 {
  animation: landing-orb-drift 360s linear infinite;
}

body[data-bia-page='landing'] .landing-background .orb3 {
  animation: landing-orb-breathe 360s linear infinite;
}

@keyframes landing-orb-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(3px, -4px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes landing-orb-breathe {
  0% {
    opacity: 0.8;
    filter: blur(0.6px) saturate(0.98);
  }
  50% {
    opacity: 0.84;
    filter: blur(0.7px) saturate(1);
  }
  100% {
    opacity: 0.8;
    filter: blur(0.6px) saturate(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-bia-page='landing'] .landing-card,
  body[data-bia-page='landing'] .landing-background .orb1,
  body[data-bia-page='landing'] .landing-background .orb2,
  body[data-bia-page='landing'] .landing-background .orb3 {
    animation: none !important;
    transition: none !important;
  }
  body[data-bia-page='landing'] .landing-bg-orbs .bg-orb {
    animation: none !important;
  }
}

/* === Landing header canon + orb glow === */
body[data-bia-page='landing'] .landing-header {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 48px));
  margin: 28px auto 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-bia-page='landing'] .landing-header .orb-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  outline: none;
  flex-direction: row !important;
}

body[data-bia-page='landing'] .orb-row:focus,
body[data-bia-page='landing'] .orb-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120, 200, 255, 0.22);
  border-radius: 999px;
}

body[data-bia-page='landing'] .bia-wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

body[data-bia-page='landing'] .bia-orb {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(140, 220, 255, 0.55) 18%,
    rgba(60, 140, 255, 0.35) 38%,
    rgba(10, 30, 60, 0.05) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(80, 180, 255, 0.35),
    0 0 34px rgba(80, 180, 255, 0.18);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body[data-bia-page='landing'] .orb-row {
  border-radius: 999px;
  flex-direction: row !important;
}

body[data-bia-page='landing'] .landing-footer {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 48px));
  margin: 34px auto 26px;
}

body[data-bia-page='landing'] .landing-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  justify-content: space-between;
  opacity: 0.72;
}

body[data-bia-page='landing'] .landing-footer-left {
  font-size: 12px;
  letter-spacing: 0.2px;
}

body[data-bia-page='landing'] .landing-footer-right {
  font-size: 12px;
}

body[data-bia-page='landing'] .landing-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

body[data-bia-page='landing'] .bg-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

body[data-bia-page='landing'] .bg-orb.orb-a {
  left: -140px;
  top: 40px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(120, 120, 255, 0.55) 0%,
    rgba(40, 40, 120, 0.18) 55%,
    rgba(0, 0, 0, 0) 75%
  );
}

body[data-bia-page='landing'] .bg-orb.orb-b {
  right: -190px;
  top: 240px;
  width: 640px;
  height: 640px;
  opacity: 0.48;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(0, 210, 255, 0.42) 0%,
    rgba(0, 110, 160, 0.16) 55%,
    rgba(0, 0, 0, 0) 78%
  );
}

body[data-bia-page='landing'] .bg-orb.orb-c {
  left: 120px;
  bottom: -240px;
  width: 600px;
  height: 600px;
  opacity: 0.52;
  background: radial-gradient(
    circle at 35% 40%,
    rgba(255, 80, 220, 0.32) 0%,
    rgba(120, 40, 110, 0.16) 55%,
    rgba(0, 0, 0, 0) 78%
  );
}

/* Re-enable orb field motion (whitepapers uses bg-orb now) */
body[data-bia-page='landing'] .landing-bg-orbs .bg-orb {
  animation: landing-orb-drift 360s linear infinite;
  will-change: transform;
}

body[data-bia-page='landing'] .landing-bg-orbs .bg-orb.orb-b {
  animation: landing-orb-breathe 360s linear infinite;
}

body[data-bia-page='landing'] .landing-bg-orbs .bg-orb.orb-c {
  animation:
    landing-orb-drift 420s linear infinite,
    landing-orb-breathe 300s linear infinite;
}

body[data-bia-page='landing'] .landing-shell,
body[data-bia-page='landing'] .landing-main {
  position: relative;
  z-index: 2;
}

/* === Glass card: manufactured highlight + clean edge === */
body[data-bia-page='landing'] .landing-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 22%,
    rgba(3, 6, 20, 0.58) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

/* === CTA system: one primary, one secondary === */
body[data-bia-page='landing'] .cta-link {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

body[data-bia-page='landing'] .cta-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.085) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

body[data-bia-page='landing'] .cta-link:hover .cta-link-cue {
  color: rgba(226, 232, 240, 0.5);
  border-left-color: rgba(255, 255, 255, 0.12);
}

body[data-bia-page='landing'] .cta-link--primary {
  background: linear-gradient(
    120deg,
    rgba(107, 91, 255, 0.22),
    rgba(22, 226, 255, 0.14)
  ) !important;
  border-color: rgba(107, 91, 255, 0.38) !important;
}

body[data-bia-page='landing'] .cta-link--primary:hover {
  border-color: rgba(22, 226, 255, 0.42) !important;
}

body[data-bia-page='landing'] .cta-link--bia-teaser {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(120, 230, 255, 0.32) !important;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle at 24% 72%, rgba(140, 220, 255, 0.58) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 43% 34%, rgba(255, 255, 255, 0.44) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 67% 61%, rgba(255, 255, 255, 0.36) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 82% 26%, rgba(140, 220, 255, 0.7) 0 1.1px, transparent 2px),
    radial-gradient(circle at 92% 70%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.8px),
    linear-gradient(
      115deg,
      rgba(74, 52, 168, 0.46),
      rgba(9, 22, 46, 0.9) 46%,
      rgba(9, 83, 112, 0.72)
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(7, 15, 34, 0.24),
    0 0 0 1px rgba(120, 230, 255, 0.08) !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

body[data-bia-page='landing'] .cta-link--bia-teaser .cta-link-cue {
  border-left-color: rgba(140, 220, 255, 0.1);
  color: rgba(210, 244, 255, 0.5);
}

body[data-bia-page='landing'] .cta-link--bia-teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 12%,
      rgba(255, 255, 255, 0.14) 48%,
      rgba(255, 255, 255, 0) 76%
    ),
    radial-gradient(circle at 58% 50%, rgba(255, 107, 213, 0.16), transparent 26%);
  opacity: 0.6;
  pointer-events: none;
}

body[data-bia-page='landing'] .cta-link--bia-teaser:hover {
  border-color: rgba(140, 220, 255, 0.48) !important;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 24% 72%, rgba(140, 220, 255, 0.66) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 43% 34%, rgba(255, 255, 255, 0.52) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 67% 61%, rgba(255, 255, 255, 0.44) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 82% 26%, rgba(140, 220, 255, 0.78) 0 1.1px, transparent 2px),
    radial-gradient(circle at 92% 70%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.8px),
    linear-gradient(
      115deg,
      rgba(84, 63, 184, 0.54),
      rgba(10, 24, 50, 0.94) 46%,
      rgba(12, 98, 130, 0.78)
    ) !important;
}

body[data-bia-page='landing'] .landing-back .cta-link {
  background: rgba(0, 0, 0, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  opacity: 0.92;
}

/* === Footer rhythm === */
body[data-bia-page='landing'] .landing-footer {
  margin-top: clamp(22px, 3.4vh, 34px) !important;
  padding-bottom: clamp(18px, 3vh, 28px);
  opacity: 0.86;
}

body[data-bia-page='landing'] .cta-link:active {
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* === Whitepapers: layout, background, and hero breathing (scoped) === */
body[data-bia-page='whitepapers'] {
  background: transparent;
  color: var(--text, #f9fafb);
}

body[data-bia-page='whitepapers'] .landing-background {
  background: radial-gradient(circle at top, #151b3d 0, #050714 52%, #02040a 100%);
}

body[data-bia-page='whitepapers'] .landing-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, #151b3d 0, #050714 52%, #02040a 100%);
}

body[data-bia-page='whitepapers'].whitepapers--landing-bg .landing-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, #151b3d 0, #050714 52%, #02040a 100%);
}

body[data-bia-page='whitepapers'].whitepapers--landing-bg .landing-background .orb1 {
  position: absolute;
  width: 340px;
  height: 340px;
  top: -80px;
  left: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.8), transparent 70%);
  filter: blur(80px);
  opacity: 0.9;
}

body[data-bia-page='whitepapers'].whitepapers--landing-bg .landing-background .orb2 {
  position: absolute;
  width: 340px;
  height: 340px;
  top: 40%;
  right: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22, 226, 255, 0.9), transparent 70%);
  filter: blur(80px);
  opacity: 0.9;
}

body[data-bia-page='whitepapers'].whitepapers--landing-bg .landing-background .orb3 {
  position: absolute;
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: 50%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 107, 213, 0.9), transparent 70%);
  filter: blur(80px);
  opacity: 0.9;
  transform: translateX(-50%);
}

body[data-bia-page='whitepapers'] .landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

body[data-bia-page='whitepapers'] .landing-main {
  flex: 1 0 auto;
  padding-top: clamp(28px, 6vh, 72px);
  padding-bottom: clamp(36px, 7vh, 90px);
  display: grid;
  justify-items: center;
}

body[data-bia-page='whitepapers'] .landing-main--center {
  align-content: center;
}

body[data-bia-page='whitepapers'] .landing-card {
  width: min(980px, 100%);
  max-width: 980px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 22%,
    rgba(3, 6, 20, 0.58) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body[data-bia-page='whitepapers'] .landing-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

body[data-bia-page='whitepapers'] .landing-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 14px;
  color: rgba(226, 232, 240, 0.82);
  max-width: 64ch;
}

body[data-bia-page='whitepapers'] .landing-category-note,
body[data-bia-page='whitepapers'] .landing-hint {
  color: rgba(226, 232, 240, 0.7);
  max-width: 64ch;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.55;
}

body[data-bia-page='whitepapers'] .landing-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

body[data-bia-page='whitepapers'] .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

body[data-bia-page='whitepapers'] .cta-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.26);
}

body[data-bia-page='whitepapers'] .cta-link--primary {
  background: linear-gradient(120deg, rgba(107, 91, 255, 0.22), rgba(22, 226, 255, 0.14));
  border-color: rgba(107, 91, 255, 0.38);
}

body[data-bia-page='whitepapers'] .cta-link--primary:hover {
  border-color: rgba(22, 226, 255, 0.42);
}

body[data-bia-page='whitepapers'] .landing-back {
  margin-top: 16px;
}

body[data-bia-page='whitepapers'] .landing-header {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 48px));
  margin: 28px auto 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-bia-page='whitepapers'] .landing-header .orb-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  outline: none;
  flex-direction: row;
}

body[data-bia-page='whitepapers'] .landing-header .orb-row #bia-orb,
body[data-bia-page='landing'] .landing-header .orb-row #bia-orb {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 999px;
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
  overflow: visible;
}

body[data-bia-page='whitepapers'] .bia-wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

body[data-bia-page='whitepapers'] .landing-footer {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 48px));
  margin: 34px auto 26px;
}

body[data-bia-page='whitepapers'] .landing-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  justify-content: space-between;
  opacity: 0.72;
}

body[data-bia-page='whitepapers'] .landing-footer-left,
body[data-bia-page='whitepapers'] .landing-footer-right {
  font-size: 12px;
}

body[data-bia-page='whitepapers'] .landing-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

body[data-bia-page='whitepapers'].whitepapers--landing-bg .landing-bg-orbs {
  display: none;
}

body[data-bia-page='whitepapers'] .landing-shell,
body[data-bia-page='whitepapers'] .landing-main {
  position: relative;
  z-index: 2;
}

body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  opacity: 0.18;
  filter: blur(58px) saturate(0.95);
  transform: translateZ(0);
  mix-blend-mode: screen;
}

body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb.orb-a {
  left: -220px;
  top: 120px;
  opacity: 0.14;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(140, 175, 255, 0.46) 0%,
    rgba(120, 150, 255, 0.3) 32%,
    rgba(92, 120, 220, 0.16) 58%,
    rgba(0, 0, 0, 0) 90%
  );
}

body[data-bia-page='landing'] .landing-card--stacked,
body[data-bia-page='whitepapers'] .landing-card--stacked {
  display: grid;
  gap: 18px;
}

body[data-bia-page='landing'] .landing-kicker,
body[data-bia-page='whitepapers'] .landing-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: rgba(140, 220, 255, 0.88);
}

body[data-bia-page='landing'] .landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}

body[data-bia-page='landing'] .landing-feature-panel,
body[data-bia-page='landing'] .landing-mini-panel,
body[data-bia-page='landing'] .landing-path-card,
body[data-bia-page='whitepapers'] .landing-mini-panel,
body[data-bia-page='whitepapers'] .paper-library-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

body[data-bia-page='landing'] .landing-section-label,
body[data-bia-page='whitepapers'] .landing-section-label,
body[data-bia-page='whitepapers'] .paper-library-type {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.58);
}

body[data-bia-page='landing'] .landing-panel-title,
body[data-bia-page='landing'] .landing-path-title,
body[data-bia-page='whitepapers'] .paper-library-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

body[data-bia-page='landing'] .landing-panel-copy,
body[data-bia-page='landing'] .landing-path-copy,
body[data-bia-page='whitepapers'] .paper-library-copy,
body[data-bia-page='whitepapers'] .paper-library-note {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.58;
}

body[data-bia-page='landing'] .landing-bullet-list,
body[data-bia-page='landing'] .landing-step-list,
body[data-bia-page='whitepapers'] .landing-step-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(226, 232, 240, 0.84);
  display: grid;
  gap: 8px;
}

body[data-bia-page='landing'] .landing-link-list {
  display: grid;
  gap: 10px;
}

body[data-bia-page='landing'] .landing-inline-link {
  color: rgba(140, 220, 255, 0.94);
  text-decoration: none;
}

body[data-bia-page='landing'] .landing-inline-link:hover {
  text-decoration: underline;
}

body[data-bia-page='landing'] .landing-pathways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-bia-page='landing'] .landing-path-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

body[data-bia-page='landing'] .landing-path-card--bia {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(120, 230, 255, 0.12), rgba(0, 0, 0, 0) 44%);
  border-color: rgba(120, 230, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(4, 8, 24, 0.22);
}

body[data-bia-page='landing'] .landing-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 8px;
  padding-top: 4px;
}

body[data-bia-page='landing'] .landing-path-actions .cta-link {
  width: auto;
  flex: 0 0 auto;
}

body[data-bia-page='landing'] .landing-path-note {
  margin: 0;
  color: rgba(226, 232, 240, 0.62);
  line-height: 1.5;
}

body[data-bia-page='landing'] .landing-path-note--accent {
  color: rgba(203, 244, 255, 0.82);
}

body[data-bia-page='landing'] .landing-disclosure {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-bia-page='landing'] .landing-disclosure-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: rgba(140, 220, 255, 0.94);
  font-size: 0.95rem;
  line-height: 1.4;
}

body[data-bia-page='landing'] .landing-disclosure-summary::before {
  content: '▸';
  color: rgba(203, 244, 255, 0.82);
  font-size: 0.85rem;
  line-height: 1;
  transform: translateY(-0.5px);
}

body[data-bia-page='landing'] .landing-disclosure[open] .landing-disclosure-summary::before {
  content: '▾';
}

body[data-bia-page='landing'] .landing-disclosure-summary::-webkit-details-marker {
  display: none;
}

body[data-bia-page='landing'] .landing-disclosure-summary:hover {
  text-decoration: underline;
}

body[data-bia-page='landing'] .landing-disclosure-panel {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

body[data-bia-page='whitepapers'] .paper-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-bia-page='whitepapers'] .paper-library-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

body[data-bia-page='whitepapers'] .paper-library-card--featured {
  background: linear-gradient(140deg, rgba(107, 91, 255, 0.14), rgba(22, 226, 255, 0.08));
  border-color: rgba(107, 91, 255, 0.26);
}

body[data-bia-page='whitepapers'] .landing-mini-panel--wide {
  margin-top: 4px;
}

@media (max-width: 860px) {
  body[data-bia-page='landing'] .landing-grid,
  body[data-bia-page='landing'] .landing-pathways,
  body[data-bia-page='whitepapers'] .paper-library-grid {
    grid-template-columns: 1fr;
  }

  body[data-bia-page='landing'] .landing-path-card {
    gap: 10px;
  }

  body[data-bia-page='landing'] .landing-path-actions {
    margin-bottom: 12px;
    padding-top: 0;
  }
}

body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb.orb-b {
  right: -240px;
  bottom: 140px;
  width: 680px;
  height: 680px;
  opacity: 0.16;
  background: radial-gradient(
    circle at 45% 40%,
    rgba(120, 230, 255, 0.42) 0%,
    rgba(90, 220, 255, 0.26) 34%,
    rgba(0, 170, 220, 0.14) 58%,
    rgba(0, 0, 0, 0) 90%
  );
}

body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb.orb-c {
  left: 140px;
  bottom: -280px;
  width: 620px;
  height: 620px;
  opacity: 0.2;
  background: radial-gradient(
    circle at 45% 45%,
    rgba(240, 160, 235, 0.38) 0%,
    rgba(230, 140, 220, 0.22) 34%,
    rgba(190, 90, 200, 0.12) 58%,
    rgba(0, 0, 0, 0) 90%
  );
}

body[data-bia-page='landing'] .contact-form {
  display: grid;
  gap: 14px;
}

body[data-bia-page='landing'] .contact-field {
  display: grid;
  gap: 8px;
}

body[data-bia-page='landing'] .contact-field span {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.84);
}

body[data-bia-page='landing'] .contact-field input,
body[data-bia-page='landing'] .contact-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 10, 24, 0.72);
  color: #f8fafc;
  padding: 12px 14px;
  font: inherit;
}

body[data-bia-page='landing'] .contact-field textarea {
  resize: vertical;
  min-height: 180px;
}

body[data-bia-page='landing'] .contact-field input:focus,
body[data-bia-page='landing'] .contact-field textarea:focus {
  outline: none;
  border-color: rgba(140, 220, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(120, 200, 255, 0.14);
}

body[data-bia-page='landing'] .contact-note {
  margin: 0;
  color: rgba(226, 232, 240, 0.68);
  line-height: 1.55;
}

body[data-bia-page='landing'] .contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body[data-bia-page='landing'] .contact-submit {
  -webkit-appearance: none;
  appearance: none;
  justify-content: center;
  cursor: pointer;
  color: #2fffd5 !important;
  background: linear-gradient(120deg, rgba(107, 91, 255, 0.3), rgba(22, 226, 255, 0.18)) !important;
  border-color: rgba(47, 255, 213, 0.5) !important;
  text-shadow: 0 0 14px rgba(47, 255, 213, 0.28);
}

body[data-bia-page='landing'] .contact-submit:hover,
body[data-bia-page='landing'] .contact-submit:focus-visible {
  color: #ede9fe !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
}

body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb {
  animation: landing-orb-drift 360s linear infinite;
  will-change: transform;
}

body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb.orb-b {
  animation: landing-orb-breathe 360s linear infinite;
}

body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb.orb-c {
  animation:
    landing-orb-drift 420s linear infinite,
    landing-orb-breathe 300s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  body[data-bia-page='whitepapers'] .landing-bg-orbs .bg-orb {
    animation: none !important;
  }
}
