/* ========================================================================
   PHYSIO PS — Premium Healthcare Diagnostic Platform
   Design Direction: Clinical dark, electric teal, precision medicine
   ======================================================================== */

/* --- CUSTOM PROPERTIES --- */
:root {
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* PhysioPS × HumanOS Pulse Node tokens (v2.3) */
  --accent: #00E5A0;            /* parasympathetic / primary CTA */
  --accent-dim: #00B583;
  --accent-blue: #4A9EFF;       /* sympathetic / signal energy */
  --accent-purple: #A855F7;     /* HumanOS AI / HRV composite */
  --accent-glow: rgba(0, 229, 160, 0.15);
  --accent-glow-strong: rgba(0, 229, 160, 0.30);
  --signal-glow-blue: rgba(74, 158, 255, 0.25);
  --signal-glow-violet: rgba(168, 85, 247, 0.22);

  --color-parasym: #00E5A0;
  --color-sympathetic: #4A9EFF;
  --color-hrv: #A855F7;
  --color-baseline: #64748B;

  --bg: #030B14;                /* void canvas */
  --bg-elevated: #05101D;
  --bg-card: #0D1B2A;           /* surface-0 */
  --bg-card-hover: #122236;
  --surface: #07121F;
  --surface-2: #122236;

  --text: #F0F4FF;
  --text-muted: #A7B4C8;
  --text-faint: #69758A;

  --border: rgba(240, 244, 255, 0.06);
  --border-accent: rgba(0, 229, 160, 0.18);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-glow: 0 0 40px rgba(0, 229, 160, 0.10);
  --shadow-signal: 0 0 28px rgba(0, 229, 160, 0.34);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: #fff; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul[role='list'], ol[role='list'] { list-style: none; }
::selection { background: rgba(0, 229, 160, 0.25); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- PARTICLE CANVAS --- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* --- CONTAINER --- */
.container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

/* --- NAVIGATION --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(3, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden { transform: translateY(-100%); }
.header--scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

.nav-container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(0, 229, 160, 0.35));
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.logo:hover .logo-mark {
  filter: drop-shadow(0 0 18px rgba(0, 229, 160, 0.55));
  transform: scale(1.04);
}
.logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.nav-cta:hover { background: #fff; color: var(--bg) !important; transform: translateY(-1px); }
.mobile-toggle { display: none; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: #fff; color: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 229, 160,0.3); }
.btn-ghost {
  border: 1px solid var(--border-accent);
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.btn-large { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* --- GRADIENT TEXT --- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- SECTION COMMON --- */
.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}
.section-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 65ch;
  margin-inline: auto;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 11, 20,0.3) 0%, rgba(3, 11, 20,0.7) 40%, rgba(3, 11, 20,0.95) 80%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--space-32) var(--space-6) var(--space-16);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  background: var(--accent-glow);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: var(--space-8);
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  border-top: 1px solid var(--border);
  padding-top: var(--space-8);
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--accent);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-card-large { grid-column: span 3; }
.feature-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- CONDITIONS CAROUSEL --- */
.section-conditions { overflow: hidden; }
.conditions-carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.conditions-track {
  display: flex;
  gap: var(--space-3);
  animation: scroll-left 40s linear infinite;
  width: max-content;
}
.conditions-track-reverse { animation: scroll-right 45s linear infinite; }

@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.condition-pill {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--bg-card);
  transition: all var(--transition-fast);
}
.condition-pill:hover { color: var(--accent); border-color: var(--accent); }

/* --- SPLIT LAYOUT --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-reverse .split-content { order: 2; }
.split-reverse .split-visual { order: 1; }

/* --- HumanOS SECTION --- */
.humanos-features { display: flex; flex-direction: column; gap: var(--space-6); margin: var(--space-8) 0; }
.humanos-feature { display: flex; gap: var(--space-4); align-items: flex-start; }
.humanos-feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
}
.humanos-feature h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-1); color: var(--text); }
.humanos-feature p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.6; }

/* HumanOS Demo Card */
.humanos-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-faint); }
.demo-dots span:first-child { background: #ff5f56; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #27c93f; }
.demo-title { font-size: var(--text-xs); color: var(--text-muted); }
.demo-body { padding: var(--space-8); }
.demo-upload-zone {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.demo-upload-zone p { font-size: var(--text-sm); color: var(--text-muted); }
.demo-btn {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}
.demo-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.demo-feat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-elevated);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- AI SECTION --- */
.ai-visual-section { margin-bottom: var(--space-12); }
.full-bleed-img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-fast);
}
.ai-card:hover { border-color: var(--border-accent); }
.ai-card-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.ai-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-3); }
.ai-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* --- FULL IMAGE SECTION --- */
.section-full-image {
  position: relative;
  z-index: 1;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}
.section-full-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.image-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  background: linear-gradient(180deg, rgba(3, 11, 20,0.4) 0%, rgba(3, 11, 20,0.8) 100%);
}
.image-overlay-content h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.image-overlay-content p { font-size: var(--text-lg); color: var(--text-muted); max-width: 600px; }

/* --- SCIENCE / PUBLICATION --- */
.research-quote {
  border-left: 3px solid var(--accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.research-quote p { font-size: var(--text-base); font-style: italic; color: var(--text); line-height: 1.7; }
.research-quote cite { display: block; font-size: var(--text-xs); color: var(--accent); margin-top: var(--space-2); font-style: normal; }

.research-stats { display: flex; gap: var(--space-8); margin-top: var(--space-8); }
.research-stat { }
.research-stat-number { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--accent); }
.research-stat-label { display: block; font-size: var(--text-xs); color: var(--text-muted); }

.publication-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.pub-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.publication-card h4 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-3); color: var(--text); }
.pub-title { font-size: var(--text-sm); color: var(--text-muted); font-style: italic; margin-bottom: var(--space-2); }
.pub-authors { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--space-4); }
.pub-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-6);
}
.pub-key-findings { border-top: 1px solid var(--border); padding-top: var(--space-5); }
.pub-key-findings h5 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-3); color: var(--accent); }
.pub-key-findings ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.pub-key-findings li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}
.pub-key-findings li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- EDGE COMPUTE --- */
.edge-image-section { margin-bottom: var(--space-12); }
.edge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.edge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.edge-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.edge-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-4);
}
.edge-card h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-2); }
.edge-card p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.6; }

/* --- WEARABLE --- */
.rounded-img { border-radius: var(--radius-xl); border: 1px solid var(--border); }
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.feature-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- FOUNDER --- */
.founder-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-16);
  align-items: start;
}
.founder-story { margin-top: var(--space-8); }
.story-lead {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.founder-story p { color: var(--text-muted); margin-bottom: var(--space-4); font-size: var(--text-sm); line-height: 1.7; }
.story-quote {
  font-size: var(--text-base) !important;
  font-style: italic;
  color: var(--accent) !important;
  border-left: 3px solid var(--accent);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
}
.founder-sig { margin-top: var(--space-8); }
.founder-info h4 { font-size: var(--text-sm); font-weight: 700; color: var(--text); }
.founder-info p { font-size: var(--text-xs); color: var(--text-muted); }
.founder-tagline { font-style: italic; color: var(--accent) !important; margin-top: var(--space-2); }

/* Timeline */
.founder-timeline { position: relative; padding-left: var(--space-8); }
.founder-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-blue), transparent);
}
.timeline-item { position: relative; padding-bottom: var(--space-8); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-8) + 1px);
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-faint);
}
.timeline-marker.active { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 12px rgba(0, 229, 160,0.4); }
.timeline-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.timeline-content p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.6; }

/* --- VETERANS --- */
.veterans-stats { display: flex; gap: var(--space-10); margin: var(--space-6) 0; }
.vet-stat-number { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--accent); }
.vet-stat-label { display: block; font-size: var(--text-xs); color: var(--text-muted); }

.target-markets { margin-top: var(--space-8); }
.target-markets h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-4); color: var(--text); }
.market-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.market-pill {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--bg-card);
}

/* --- ECOSYSTEM --- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}
.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.eco-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }
.eco-center { border-color: var(--accent); }
.eco-center .eco-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, var(--accent-glow-strong), transparent 70%);
  z-index: 0;
}
.eco-card h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-1); position: relative; z-index: 1; }
.eco-card p { font-size: var(--text-xs); color: var(--text-muted); position: relative; z-index: 1; }
.eco-label { display: block; font-size: var(--text-xs); color: var(--accent); margin-top: var(--space-2); position: relative; z-index: 1; font-weight: 600; }
.eco-url { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-faint); margin-top: var(--space-2); position: relative; z-index: 1; }

/* --- NEWS --- */
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-6); }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  color: var(--text);
}
.news-card:hover { border-color: var(--border-accent); transform: translateY(-4px); color: var(--text); }
.news-source { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.1em; }
.news-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-3); line-height: 1.3; }
.news-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; flex-grow: 1; }
.news-date { font-size: var(--text-xs); color: var(--text-faint); margin-top: var(--space-4); }
.news-card-featured { grid-row: span 1; }

/* --- TESTIMONIALS --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}
.testimonial-featured { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.testimonial-quote {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: var(--space-6);
}
.testimonial-quote::before { content: '\201C'; font-size: 2rem; color: var(--accent); line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.testimonial-role { font-size: var(--text-xs); color: var(--text-faint); line-height: 1.5; }

/* --- CTA --- */
.section-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin: var(--space-8) 0; }
.cta-contact-info { color: var(--text-muted); font-size: var(--text-sm); }
.cta-contact-info a { color: var(--accent); }

/* --- FOOTER --- */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-4); max-width: 300px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-2); color: var(--text); }
.footer-links a { font-size: var(--text-xs); color: var(--text-muted); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: var(--space-6); text-align: center; }
.footer-bottom p { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--space-2); }
.footer-disclaimer { max-width: 500px; margin-inline: auto; }
.footer-nirmata { margin-top: var(--space-4); }
.footer-nirmata a { color: var(--accent); }

/* --- SCROLL REVEAL --- */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* --- MOBILE --- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large { grid-column: span 2; }
  .edge-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    z-index: 99;
  }
  .nav-links.active { display: flex; }
  .nav-link { font-size: var(--text-lg); }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    padding: var(--space-2);
  }
  .mobile-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    transition: all var(--transition-fast);
  }
  .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split-layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .split-reverse .split-content { order: 1; }
  .split-reverse .split-visual { order: 2; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .ai-grid { grid-template-columns: 1fr; }
  .edge-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-featured { grid-column: span 1; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .founder-layout { grid-template-columns: 1fr; gap: var(--space-10); }

  .hero-stats { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-content { padding-top: var(--space-24); }

  .research-stats { flex-direction: column; gap: var(--space-4); }
  .veterans-stats { flex-direction: column; gap: var(--space-4); }
}

@media (max-width: 480px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-features-row { grid-template-columns: 1fr; }
}

/* ========================================================================
   PHYSIO PS v2 — FOUR NEW INTERACTIVE SECTIONS
   ======================================================================== */

/* --- SHARED: Reveal animation --- */
.reveal-row {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-row.revealed {
  opacity: 1;
  transform: translateY(0);
}
.text-accent { color: var(--accent); }

/* ========================================================================
   SECTION 1: INTERACTIVE ANS BODY MAP
   ======================================================================== */
.section-bodymap {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.bodymap-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.bodymap-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bodymap-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.body-silhouette {
  transition: opacity 0.4s;
}

/* Organ hotspot styles */
.organ-group {
  cursor: pointer;
  transition: filter 0.3s ease;
}

.organ-pulse {
  fill: rgba(0, 229, 160, 0.05);
  stroke: none;
  animation: organPulse 3s ease-in-out infinite;
}

.organ-group:nth-child(3) .organ-pulse { animation-delay: 0.5s; }
.organ-group:nth-child(4) .organ-pulse { animation-delay: 1s; }
.organ-group:nth-child(5) .organ-pulse { animation-delay: 1.5s; }
.organ-group:nth-child(6) .organ-pulse { animation-delay: 2s; }
.organ-group:nth-child(7) .organ-pulse { animation-delay: 2.5s; }

@keyframes organPulse {
  0%, 100% { fill: rgba(0, 229, 160, 0.04); transform-origin: center; }
  50% { fill: rgba(0, 229, 160, 0.12); }
}

.organ-shape {
  fill: rgba(0, 229, 160, 0.08);
  stroke: rgba(0, 229, 160, 0.4);
  stroke-width: 1.2;
  transition: all 0.4s ease;
}

.organ-detail {
  stroke: rgba(0, 229, 160, 0.25);
  transition: stroke 0.4s ease;
}

.organ-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: fill 0.4s ease;
  pointer-events: none;
}

/* Hovered organ */
.organ-group.active .organ-pulse {
  fill: rgba(0, 229, 160, 0.2);
  animation: organPulseActive 1.5s ease-in-out infinite;
}

@keyframes organPulseActive {
  0%, 100% { fill: rgba(0, 229, 160, 0.15); }
  50% { fill: rgba(0, 229, 160, 0.35); }
}

.organ-group.active .organ-shape {
  fill: rgba(0, 229, 160, 0.2);
  stroke: var(--accent);
  stroke-width: 2;
  filter: url(#glowFilterStrong);
}

.organ-group.active .organ-detail {
  stroke: var(--accent);
}

.organ-group.active .organ-label {
  fill: var(--accent);
  font-weight: 700;
}

/* Dimmed organs */
.organ-group.dimmed .organ-shape {
  fill: rgba(0, 229, 160, 0.02);
  stroke: rgba(0, 229, 160, 0.1);
}
.organ-group.dimmed .organ-pulse {
  fill: rgba(0, 229, 160, 0.01);
  animation: none;
}
.organ-group.dimmed .organ-label {
  fill: var(--text-faint);
}

/* Info Panel */
.bodymap-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 120px;
  transition: border-color 0.4s ease;
}

.bodymap-info-panel.active-panel {
  border-color: var(--border-accent);
}

.bodymap-panel-default {
  text-align: center;
  color: var(--text-muted);
}

.bodymap-panel-default h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.bodymap-panel-default p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.panel-icon-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  margin: 0 auto 1.5rem;
  animation: panelPulse 2s ease-in-out infinite;
}

@keyframes panelPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 20px rgba(0, 229, 160, 0); }
}

.bodymap-panel-content {
  width: 100%;
}

.panel-organ-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.bodymap-panel-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.panel-conditions-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.panel-conditions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.panel-condition-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 229, 160, 0.06);
  border: 1px solid rgba(0, 229, 160, 0.15);
  color: var(--text);
  font-size: var(--text-xs);
  font-family: var(--font-body);
}

.panel-warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 68, 85, 0.06);
  border: 1px solid rgba(255, 68, 85, 0.15);
}

.panel-warning-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.panel-warning p {
  font-size: var(--text-sm);
  color: #ff8a95;
  line-height: 1.6;
}

/* ========================================================================
   SECTION 2: LIVE ANS WAVEFORM SIMULATOR
   ======================================================================== */
.section-waveform {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
}

.waveform-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 3rem;
}

.waveform-canvas-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

#waveformCanvas {
  width: 100%;
  height: 340px;
  display: block;
  border-radius: var(--radius-md);
}

.waveform-legend {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-para .legend-dot { background: #00E5A0; }
.legend-symp .legend-dot { background: #4488ff; }
.legend-hr .legend-dot { background: #ff4455; opacity: 0.6; }

.waveform-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.waveform-readouts {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.readout:last-child { border-bottom: none; }

.readout-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.readout-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s;
}

.readout-para { color: #00E5A0; }
.readout-symp { color: #4488ff; }

.waveform-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wave-btn {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.wave-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(0, 229, 160, 0.05);
}

.wave-btn-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 160, 0.08);
}

.wave-btn-danger:hover {
  border-color: #ff4455;
  color: #ff4455;
  background: rgba(255, 68, 85, 0.08);
}

/* ========================================================================
   SECTION 3: TWO PATHS — FORK IN THE ROAD
   ======================================================================== */
.section-twopaths {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.twopaths-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.twopaths-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: blur(2px);
}

.section-twopaths .container {
  position: relative;
  z-index: 1;
}

.paths-stage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2.5rem auto 2rem;
  max-width: 500px;
}

.stage-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.stage-dot:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stage-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

.stage-dot.passed {
  border-color: rgba(0, 229, 160, 0.4);
  background: rgba(0, 229, 160, 0.15);
  color: var(--accent);
}

.stage-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
  transition: background 0.3s ease;
}

.stage-line.active-line {
  background: linear-gradient(90deg, var(--accent), rgba(0, 229, 160, 0.2));
}

.paths-timeline {
  margin-top: 1rem;
  position: relative;
}

.path-stage {
  display: none;
  animation: pathFadeIn 0.5s ease forwards;
}

.path-stage.active {
  display: block;
}

@keyframes pathFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-time {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.paths-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.path-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid;
  transition: transform 0.3s ease;
}

.path-card:hover {
  transform: translateY(-4px);
}

.path-good {
  background: rgba(0, 229, 160, 0.04);
  border-color: rgba(0, 229, 160, 0.2);
}

.path-bad {
  background: rgba(255, 68, 85, 0.04);
  border-color: rgba(255, 68, 85, 0.15);
}

.path-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.path-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.path-badge-good {
  background: rgba(0, 229, 160, 0.12);
  color: var(--accent);
}

.path-badge-bad {
  background: rgba(255, 68, 85, 0.12);
  color: #ff6b7a;
}

.path-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.path-card p {
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.7;
}

.path-cost-good {
  color: var(--accent);
  font-family: var(--font-mono);
}

.path-cost-bad {
  color: #ff6b7a;
  font-family: var(--font-mono);
}

.paths-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.paths-stat {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.paths-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.paths-stat-bad { color: #ff6b7a; }
.paths-stat-good { color: var(--accent); }

.paths-stat-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.paths-cite {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.6;
}

.paths-stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ========================================================================
   SECTION 4: PHARMA MACHINE vs ROOT CAUSE TRUTH
   ======================================================================== */
.section-pharma {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
}

.pharma-rows {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pharma-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pharma-row h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.4;
}

/* Bar chart */
.pharma-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bar-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  height: 36px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill-bad {
  background: linear-gradient(90deg, rgba(255, 68, 85, 0.3), rgba(255, 68, 85, 0.6));
}

.bar-fill-muted {
  background: linear-gradient(90deg, rgba(136, 146, 168, 0.2), rgba(136, 146, 168, 0.4));
}

.bar-value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

/* Progress ring */
.pharma-ring-wrap {
  display: flex;
  justify-content: center;
}

.pharma-ring {
  width: 160px;
  height: 160px;
}

.ring-progress {
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Big number */
.pharma-big-number {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.big-num-prefix {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #ff6b7a;
}

.big-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: #ff6b7a;
  line-height: 1;
}

.big-num-suffix {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.pharma-dots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 240px;
  margin-top: 0.75rem;
}

.pharma-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 68, 85, 0.15);
  transition: background 0.3s ease;
}

.pharma-dot.lit {
  background: #ff4455;
  box-shadow: 0 0 4px rgba(255, 68, 85, 0.4);
}

/* Doctor icons */
.pharma-doctors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.doctor-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.doctor-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-icon.visible {
  opacity: 1;
  transform: scale(1);
}

.doctor-icon.visible svg {
  stroke: var(--accent);
}

.doctor-icon svg {
  width: 28px;
  height: 28px;
}

.doctor-count {
  text-align: center;
}

.doctor-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #ff6b7a;
}

.doctor-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Pharma CTA */
.pharma-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.06), rgba(74, 158, 255, 0.06));
  border: 1px solid var(--border-accent);
}

.pharma-cta-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.pharma-cta-text strong {
  color: var(--accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

/* ========================================================================
   RESPONSIVE — ALL 4 SECTIONS
   ======================================================================== */
@media (max-width: 900px) {
  .bodymap-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bodymap-svg-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .bodymap-info-panel {
    position: static;
    min-height: auto;
    padding: 1.5rem;
  }

  .waveform-container {
    grid-template-columns: 1fr;
  }

  .waveform-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .waveform-readouts {
    flex: 1;
    min-width: 200px;
  }

  .waveform-controls {
    flex: 1;
    min-width: 200px;
  }

  #waveformCanvas {
    height: 260px;
  }

  .paths-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .paths-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .paths-stat-divider {
    width: 60px;
    height: 1px;
  }

  .pharma-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .pharma-big-number {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .stage-dot {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .path-card {
    padding: 1.25rem;
  }

  .waveform-sidebar {
    flex-direction: column;
  }
}

/* ========================================================================
   PHYSIOPS × HUMANOS — Pulse Node Atmosphere v2.3
   Deep-space radial atmosphere. No grids. Clinical glass + signal glow.
   ======================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 720px at 18% 12%, rgba(0, 229, 160, 0.10), transparent 60%),
    radial-gradient(900px 620px at 82% 22%, rgba(74, 158, 255, 0.09), transparent 65%),
    radial-gradient(1000px 700px at 50% 92%, rgba(168, 85, 247, 0.08), transparent 70%),
    radial-gradient(1400px 900px at 50% 50%, #05101D 0%, #030B14 70%);
}

/* Clinical glass utility: dark translucent panel with crisp border */
.clinical-glass {
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.72), rgba(13, 27, 42, 0.55));
  border: 1px solid rgba(240, 244, 255, 0.06);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius-lg);
}

/* Signal glow utility for hero or active-cockpit moments */
.signal-glow {
  position: relative;
}
.signal-glow::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(0, 229, 160, 0.18) 0%, transparent 70%);
  filter: blur(8px);
}

/* HumanOS AI accent for evidence-first chips and AI badges */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  body::before { background-attachment: scroll; }
}

/* --- INTERACTIVE TARGET MARKETS --- */
.markets-layout .split-content,
.markets-layout .split-visual { transition: opacity 0.35s ease; }

#market-tag, #market-title, #market-desc { transition: opacity 0.3s ease, transform 0.3s ease; }
#market-stats .vet-stat-number,
#market-stats .vet-stat-label { transition: opacity 0.25s ease; }

.market-pill {
  cursor: pointer;
  border: 1px solid var(--border);
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  user-select: none;
}
.market-pill:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-1px);
}
.market-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.market-pill.active {
  color: var(--bg-base, #03060a);
  background: linear-gradient(120deg, #00e5ff 0%, #00bcd4 100%);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.5), 0 8px 24px -10px rgba(0, 229, 255, 0.55);
  font-weight: 600;
}

.market-focus {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0,229,255,0.04), rgba(167,139,250,0.03));
  display: grid;
  gap: var(--space-3);
}
.market-focus-row { display: grid; gap: 6px; }
.market-focus-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.market-focus-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.4;
}
.market-focus-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.market-tag-chip {
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.08);
  color: #6eeeff;
  border: 1px solid rgba(0, 229, 255, 0.2);
  white-space: nowrap;
}

.market-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.market-img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.8s ease;
}
.market-img.is-fading {
  opacity: 0;
  transform: scale(1.04);
}
.market-badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 10, 16, 0.55);
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.market-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18);
  animation: marketPulse 2.4s ease-in-out infinite;
}
@keyframes marketPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

.is-switching #market-tag,
.is-switching #market-title,
.is-switching #market-desc,
.is-switching #market-stats .vet-stat-number,
.is-switching #market-stats .vet-stat-label,
.is-switching #market-focus-value,
.is-switching #market-focus-tags,
.is-switching .market-badge {
  opacity: 0;
}

@media (max-width: 900px) {
  .market-img { height: 380px; }
  .market-badge { font-size: var(--text-xs); padding: 6px 10px; }
}
@media (max-width: 600px) {
  .market-img { height: 300px; }
  .market-focus { padding: var(--space-3); }
}
