/* ==========================================================================
   SILICON ARM — BIOMEDICAL IN-SILICO TRIAL PLATFORM
   Aesthetic: QuantHealth Warm Stone & Deep Clinical Ink (Non-AI, Prestige Life Sciences)
   ========================================================================== */

:root {
  /* Warm Organic Stone Canvas (QuantHealth Signature) */
  --bg-body: #efede8;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f6f5f0;
  --bg-surface-subtle: #fbfbf9;
  --bg-card: #ffffff;
  --bg-ink: #001534;
  --bg-ink-card: #041b3d;

  /* Typography Colors */
  --text-main: #001534;          /* Deep ink navy */
  --text-body: #1e293b;          /* Dark slate */
  --text-muted: #526071;         /* Medium slate */
  --text-faint: #788796;         /* Captions */
  --text-light: #ffffff;         /* On dark surfaces */
  --text-light-muted: #cbd5e1;

  /* Crisp Scientific Borders */
  --border-subtle: rgba(0, 21, 52, 0.10);
  --border-card: rgba(0, 21, 52, 0.08);
  --border-hover: rgba(0, 21, 52, 0.22);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Primary Life-Sciences Ink & Accents (No Electric Blue) */
  --brand-ink: #001534;
  --brand-ink-hover: #072554;
  --brand-accent: #0f172a;
  
  /* QuantHealth Signature Cream / Light Yellow */
  --accent-cream: #f9ffe0;
  --accent-cream-border: #d4e87a;
  --accent-lime: #15803d;

  /* Clinical Disease Tones (Earthy & Grounded) */
  --nafld-tone: #059669;
  --nafld-bg: #ecfdf5;
  --nafld-border: #a7f3d0;

  --tb-tone: #b45309;
  --tb-bg: #fffbeb;
  --tb-border: #fde68a;

  --diabetes-tone: #6d28d9;
  --diabetes-bg: #f5f3ff;
  --diabetes-border: #ddd6fe;

  /* Fonts */
  --font-heading: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 21, 52, 0.04);
  --shadow-card: 0 4px 18px rgba(0, 21, 52, 0.06);
  --shadow-hover: 0 10px 30px rgba(0, 21, 52, 0.10);
  --shadow-dark: 0 16px 40px rgba(0, 11, 26, 0.35);

  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Subtle stone paper texture */
.bg-ambient-light {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 21, 52, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(249, 255, 224, 0.4) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 237, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0, 21, 52, 0.08);
  mix-blend-mode: multiply;
  transition: transform var(--transition);
}

.logo:hover .logo-icon-img {
  transform: scale(1.08);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.logo-text span {
  color: var(--nafld-tone);
}

.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  display: inline-block;
  transition: transform var(--transition);
}

.footer-logo-img:hover {
  transform: translateY(-2px);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  background: rgba(0, 21, 52, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.nav-link.active {
  color: var(--text-main);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 21, 52, 0.08);
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-live {
  background: var(--nafld-bg);
  color: var(--nafld-tone);
  border: 1px solid var(--nafld-border);
}

.badge-soon {
  background: var(--tb-bg);
  color: var(--tb-tone);
  border: 1px solid var(--tb-border);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--brand-ink);
  color: #ffffff;
  border: 1px solid var(--brand-ink);
  box-shadow: 0 2px 8px rgba(0, 21, 52, 0.15);
}

.btn-primary:hover {
  background: var(--brand-ink-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 21, 52, 0.25);
}

.btn-lime {
  background: var(--accent-cream);
  color: var(--text-main);
  font-weight: 700;
  border: 1px solid var(--accent-cream-border);
  box-shadow: 0 2px 8px rgba(0, 21, 52, 0.05);
}

.btn-lime:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 21, 52, 0.1);
}

.btn-subtle {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 21, 52, 0.04);
}

.btn-subtle:hover {
  background: #fafaf8;
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.80rem;
}

/* Hero Section */
.hero {
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.4px;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.1;
  color: var(--text-main);
  max-width: 950px;
  margin-bottom: 22px;
}

.hero-h1 span {
  color: var(--nafld-tone);
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 860px;
  margin-bottom: 36px;
}

.hero-lead strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Hero Split Layout */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

/* Hero Network Visual Stage */
.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.hero-visual-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.visual-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.live-indicator-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.live-green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nafld-tone);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  animation: liveBlink 2s infinite;
}

.visual-svg-container {
  width: 100%;
  aspect-ratio: 16 / 11;
}

.visual-svg-element {
  width: 100%;
  height: 100%;
  display: block;
}

/* Visual Card Mini Metrics Footer */
.visual-card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.mini-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
}

.mini-stat-val {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Animations for Network Visual */
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes networkDash {
  to { stroke-dashoffset: -120; }
}

@keyframes hubPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 8px rgba(0, 21, 52, 0.15)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 4px 14px rgba(5, 150, 105, 0.25)); }
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.anim-dash-stream {
  stroke-dasharray: 6 5;
  animation: networkDash 6s linear infinite;
}

.anim-dash-stream-fast {
  stroke-dasharray: 5 4;
  animation: networkDash 3.5s linear infinite;
}

.anim-hub-center {
  animation: hubPulse 3s ease-in-out infinite;
  transform-origin: center;
}

.anim-ring-rotate {
  animation: ringSpin 24s linear infinite;
  transform-origin: center;
}

/* Key Metrics Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Section Shared Styles */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-head {
  margin-bottom: 44px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--nafld-tone);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.7;
}

/* Disease Grid on Homepage */
.disease-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.disease-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.disease-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.card-body {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.card-footer-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.card-footer-metrics strong {
  color: var(--text-main);
}

/* ==========================================================================
   CLINICAL DEVELOPMENT & DISEASE COLLABORATION SECTION
   ========================================================================== */
.collab-banner-wrap {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  margin-top: 20px;
}

.collab-banner-head {
  max-width: 860px;
  margin-bottom: 36px;
}

.collab-banner-head h3 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.collab-banner-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Capabilities Grid */
.module-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.module-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--transition);
}

.module-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.module-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.module-card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.module-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* Disease Pipeline Table */
.disease-track-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 32px;
}

.disease-track-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  padding: 8px 16px;
  text-align: left;
}

.disease-track-row {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.disease-track-row:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.disease-track-row td {
  padding: 16px;
  font-size: 0.88rem;
  color: var(--text-body);
}

.disease-track-row td:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.disease-track-row td:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.track-disease-name {
  font-weight: 700;
  color: var(--text-main);
  display: block;
  font-size: 0.95rem;
}

.track-disease-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.track-phase-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.phase-live {
  background: var(--nafld-bg);
  color: var(--nafld-tone);
  border: 1px solid var(--nafld-border);
}

.phase-pipeline {
  background: var(--tb-bg);
  color: var(--tb-tone);
  border: 1px solid var(--tb-border);
}

.phase-collab {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* 4-Step Collaboration Framework */
.collab-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.collab-step-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.collab-step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nafld-tone);
  margin-bottom: 6px;
}

.collab-step-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.collab-step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   NAFLD SECTION & SIMULATORS (INTEGRATED ON HOMEPAGE)
   ========================================================================== */
.panel {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

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

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.panel-sub {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Gallery Diagnostic Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.gallery-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.gallery-card-body {
  padding: 16px;
}

.gallery-card-body h4 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.gallery-card-body p {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Patient Risk Simulator Layout */
.sim-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.sim-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sim-field-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.sim-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.sim-field-header span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--nafld-tone);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-ink);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sim-field-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-top: 6px;
}

/* Simulator Results Column & Output Panel */
.sim-output-panel {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Clinical Status Badges in Slider Headers */
.sim-status-badge {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.sim-status-badge.status-normal {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.sim-status-badge.status-warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sim-status-badge.status-crit {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* De Ritis Ratio (AST/ALT) Card */
.deritis-card {
  grid-column: span 2;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.deritis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.deritis-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.deritis-val {
  font-family: var(--font-mono);
  font-size: 0.90rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.deritis-val.normal {
  background: #ecfdf5;
  color: #059669;
}

.deritis-val.warning {
  background: #fff7ed;
  color: #ea580c;
}

.deritis-val.critical {
  background: #fef2f2;
  color: #dc2626;
}

.deritis-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Preset Strip */
.preset-strip {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.preset-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-preset {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preset:hover {
  background: var(--brand-ink);
  color: #ffffff;
  border-color: var(--brand-ink);
}

.btn-preset.active {
  background: var(--brand-ink);
  color: #ffffff;
  border-color: var(--brand-ink);
}

/* Circular SVG Risk Gauge */
.sim-gauge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.sim-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 263.89;
  stroke-dashoffset: 263.89;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.sim-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.sim-risk-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.sim-risk-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.sim-ci-text {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sim-ci-text span {
  font-weight: 700;
  color: var(--text-main);
}

/* Conformal Prediction Set Indicator Card */
.conformal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: all 0.3s ease;
}

.conformal-card.is-ambiguous {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  animation: pulseAmbiguous 2s infinite ease-in-out;
}

@keyframes pulseAmbiguous {
  0%, 100% {
    border-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  }
  50% {
    border-color: #d97706;
    box-shadow: 0 0 16px rgba(217, 119, 6, 0.35);
  }
}

.conformal-head {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.conformal-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Local SHAP Feature Attribution Waterfall */
.shap-waterfall-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.shap-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.shap-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.shap-sub {
  font-size: 0.67rem;
  color: var(--text-faint);
}

.shap-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shap-row {
  display: grid;
  grid-template-columns: 80px 1fr 42px;
  align-items: center;
  gap: 8px;
  font-size: 0.70rem;
}

.shap-name {
  color: var(--text-body);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shap-track {
  position: relative;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.shap-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #94a3b8;
  z-index: 2;
}

.shap-bar-pos {
  background: #ef4444;
  height: 100%;
  border-radius: 0 4px 4px 0;
  transition: width 0.3s ease;
  position: absolute;
  left: 50%;
}

.shap-bar-neg {
  background: #10b981;
  height: 100%;
  border-radius: 4px 0 0 4px;
  transition: width 0.3s ease;
  position: absolute;
  right: 50%;
}

.shap-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
}

.shap-val.pos { color: #ef4444; }
.shap-val.neg { color: #10b981; }

/* 5-Year Disease Progression & Animated Player */
.progression-wrap {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.progression-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progression-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.progression-year-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--nafld-tone);
  background: var(--nafld-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.progression-player {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: var(--bg-surface-alt);
  border-radius: 6px;
}

.btn-prog-play {
  background: var(--brand-ink);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-prog-play:hover {
  background: var(--brand-ink-hover);
}

.prog-slider-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prog-timeline-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.progression-item {
  margin-bottom: 7px;
}

.prog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-body);
  margin-bottom: 3px;
}

.prog-name {
  font-weight: 500;
}

.prog-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.prog-track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.prog-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.35s ease;
}

.prog-bar.state-s0 { background: #10b981; }
.prog-bar.state-s1 { background: #f59e0b; }
.prog-bar.state-s2 { background: #f97316; }
.prog-bar.state-s3 { background: #ef4444; }

/* ==========================================================================
   IN-SILICO DRUG EFFECT SIMULATOR
   ========================================================================== */
.drug-sim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.drug-controls-wrap,
.drug-output-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drug-preset-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-drug-preset {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-drug-preset:hover {
  border-color: var(--brand-ink);
}

.btn-drug-preset.active {
  background: var(--brand-ink);
  color: #ffffff;
  border-color: var(--brand-ink);
}

.drug-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drug-mech-desc {
  padding: 10px 12px;
  background: var(--bg-surface-subtle);
  border-left: 3px solid var(--nafld-tone);
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.drug-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nafld-bg);
  border: 1px solid var(--nafld-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.drug-stat-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--nafld-tone);
}

.drug-stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--nafld-tone);
}

.drug-compare-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.arm-item {
  margin-bottom: 10px;
}

.arm-item:last-child {
  margin-bottom: 0;
}

.arm-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.arm-bar-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.arm-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s ease;
}

.arm-bar-fill.ctrl { background: #ef4444; }
.arm-bar-fill.tx { background: var(--nafld-tone); }

.arm-val {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Longitudinal Biomarker Clearance Trajectory SVG Chart */
.clearance-chart-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.clearance-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.clearance-chart-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.clearance-chart-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.clearance-chart-legend {
  display: flex;
  gap: 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.ctrl { background: #ef4444; }
.legend-dot.tx { background: var(--nafld-tone); }
.legend-dot.safe { background: #10b981; opacity: 0.6; }

.clearance-svg-wrap {
  width: 100%;
  height: 130px;
  position: relative;
}

.clearance-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Clearance Simple Stat Boxes */
.clearance-meter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.clearance-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.clearance-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.clearance-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.clearance-sub {
  font-size: 0.70rem;
  color: var(--nafld-tone);
  font-weight: 600;
}

/* Pulse highlight animation for interactive demo anchor navigation */
@keyframes targetGlow {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(21, 128, 61, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

.pulse-highlight {
  animation: targetGlow 1.6s ease-out 2;
  border-color: var(--accent-lime) !important;
}

/* Platform Deliverables Layer List */
.layer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.layer-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.layer-box h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.layer-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Modal Windows */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 21, 52, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-dark);
  position: relative;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-top h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brand-ink);
  background: #ffffff;
}

/* Image Lightbox */
.img-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-shadow: var(--shadow-dark);
}

.img-modal-dialog img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   CO-DEVELOPMENT INTAKE PORTAL & ENHANCED FORM UI
   ========================================================================== */
.codev-intake-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 21, 52, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 40px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.codev-intake-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #00e5ff, #0d9488);
}

.codev-card-header {
  margin-bottom: 24px;
  text-align: left;
}

.codev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #0284c7;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.codev-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.codev-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
}

.codev-subtitle a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Track Pills */
.codev-track-wrapper {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.codev-track-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.codev-track-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.codev-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.codev-pill:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.codev-pill.active {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0284c7;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.codev-pill .pill-icon {
  font-size: 0.95rem;
}

/* 2-Column Form Grid */
.codev-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  margin-bottom: 22px;
}

.codev-field {
  display: flex;
  flex-direction: column;
}

.codev-field-full {
  grid-column: 1 / -1;
}

.codev-field label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.codev-field label .req {
  color: #e11d48;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon input {
  padding-left: 38px !important;
}

.codev-field input,
.codev-field select,
.codev-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
}

.codev-field input:focus,
.codev-field select:focus,
.codev-field textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.field-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Trust Bar */
.codev-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 14px 18px;
  background: rgba(2, 132, 199, 0.04);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: 10px;
  margin-bottom: 24px;
}

.codev-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.codev-trust-item .trust-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.codev-trust-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.codev-trust-item span {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Submit row */
.codev-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-codev-submit {
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
}

.btn-codev-submit:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-codev-submit .btn-arrow {
  transition: transform 0.2s ease;
}

.btn-codev-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.codev-direct-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.codev-direct-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Success Card */
.codev-success-card {
  padding: 36px 24px;
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
}

.success-badge-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  margin: 0 auto 16px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.success-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
  max-width: 760px;
  margin: 0 auto 24px;
}

.timeline-step {
  padding: 16px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  position: relative;
}

.timeline-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 6px;
}

.timeline-step h6 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-step p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.success-contact-box {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 8px 16px;
  background: rgba(2, 132, 199, 0.06);
  border-radius: 6px;
}

.success-contact-box a {
  color: var(--primary);
  font-weight: 600;
}

/* Modal Dialog Extensions */
.modal-dialog-lg {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 21, 52, 0.65);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-dark);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* Responsive queries */
@media (max-width: 768px) {
  .codev-intake-card {
    padding: 24px 18px;
  }
  .codev-form-grid {
    grid-template-columns: 1fr;
  }
  .codev-trust-bar {
    grid-template-columns: 1fr;
  }
  .success-timeline {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--bg-ink);
  color: #ffffff;
  padding: 64px 0 36px;
  margin-top: 60px;
}

.footer .logo-text {
  color: #ffffff;
}

.footer .logo-icon {
  background: #ffffff;
  color: var(--bg-ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-info {
  max-width: 420px;
}

.footer-info p {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  margin-top: 14px;
}

.footer-navs {
  display: flex;
  gap: 60px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-contact-item a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-sub {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ==========================================================================
   ANIMATED TECHNOLOGY STACK & PIPELINE STYLES
   ========================================================================== */

.pipeline-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-ink);
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.pipeline-stages-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding-top: 20px;
}

.pipeline-track-line {
  position: absolute;
  top: 6px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: rgba(0, 21, 52, 0.08);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}

.pipeline-energy-pulse {
  width: 140px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #15803d, #e2f854, transparent);
  animation: energyTravel 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes energyTravel {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(1100px); }
}

.pipeline-stage-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pipeline-stage-card:hover, .pipeline-stage-card.active {
  transform: translateY(-4px);
  border-color: var(--brand-ink);
  box-shadow: var(--shadow-hover);
}

.pipeline-stage-card.active {
  background: #ffffff;
  border-top: 3px solid #15803d;
}

.stage-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #526071;
  margin-bottom: 6px;
}

.stage-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stage-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.stage-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Layer Section Layout */
.tech-layer-wrap {
  margin-bottom: 50px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.tech-layer-header {
  max-width: 860px;
  margin-bottom: 28px;
}

.tech-grid-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.tech-text-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.tech-visual-container {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  overflow: hidden;
}

/* Layer 1: Animated Stream Processor */
.anim-processor-box {
  position: relative;
}

.anim-stream-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #526071;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.anim-stream-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: 12px;
  align-items: center;
}

.stream-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-heading);
  margin-bottom: 2px;
}

.packet-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.packet-pulse-1 { animation: packetPulse 3s infinite 0.2s; }
.packet-pulse-2 { animation: packetPulse 3s infinite 1.2s; }
.packet-pulse-3 { animation: packetPulse 3s infinite 2.2s; }

@keyframes packetPulse {
  0%, 100% { border-color: var(--border-subtle); transform: scale(1); }
  50% { border-color: #15803d; transform: scale(1.02); box-shadow: 0 4px 10px rgba(21, 128, 61, 0.12); }
}

.tag-warn {
  font-size: 0.65rem;
  background: #fffbeb;
  color: #b45309;
  padding: 1px 5px;
  border-radius: 3px;
  align-self: flex-start;
  font-weight: 700;
}

.tag-clean {
  font-size: 0.65rem;
  background: #ecfdf5;
  color: #059669;
  padding: 1px 5px;
  border-radius: 3px;
  align-self: flex-start;
  font-weight: 700;
}

.stream-funnel-core {
  background: #001534;
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}

.funnel-ring {
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  border: 2px dashed #e2f854;
  opacity: 0.5;
  animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
  100% { transform: rotate(360deg); }
}

.funnel-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.funnel-text {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Layer 3: DAG Visualizer */
.dag-node-circle {
  transition: all 0.3s ease;
}

.dag-node-group:hover .dag-node-circle {
  stroke-width: 3px;
  stroke: #15803d;
  filter: drop-shadow(0 3px 8px rgba(21, 128, 61, 0.25));
}

.dag-edge {
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

/* General Patient Digital Twin Graph */
.patient-graph-widget {
  background: linear-gradient(145deg, #ffffff, var(--bg-surface-alt));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.patient-svg-wrap {
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, rgba(255, 255, 255, 0.95) 70%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.patient-core-halo {
  animation: corePulse 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes corePulse {
  0% { r: 38; opacity: 0.25; }
  50% { r: 46; opacity: 0.65; }
  100% { r: 38; opacity: 0.25; }
}

.patient-core-orbit {
  animation: orbitRotate 20s linear infinite;
  transform-origin: 270px 175px;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.patient-node-group {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.patient-node-group:hover {
  filter: drop-shadow(0 4px 12px rgba(0, 21, 52, 0.15));
}

.patient-node-group:hover .patient-node-circle {
  stroke-width: 2.5px;
  transform: scale(1.04);
}

.patient-node-circle {
  transition: all 0.25s ease;
  transform-origin: center;
}

.patient-conduit-primary {
  stroke-dasharray: 6 3;
  animation: conduitFlow 1.8s linear infinite;
}

.patient-conduit-cross {
  stroke-dasharray: 4 3;
  opacity: 0.35;
  animation: conduitFlowReverse 2.4s linear infinite;
}

@keyframes conduitFlow {
  from { stroke-dashoffset: 18; }
  to { stroke-dashoffset: 0; }
}

@keyframes conduitFlowReverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 21; }
}

.patient-hud-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.patient-hud-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.patient-hud-metric-card:hover {
  border-color: var(--brand-emerald);
  transform: translateY(-1px);
}

.patient-metric-val {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-ink);
  line-height: 1.2;
}

.patient-metric-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Layer 4: Semi-Markov State Widgets */
.state-nodes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}

.state-node-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  flex: 1;
  min-width: 85px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.state-node-box:hover {
  transform: translateY(-2px);
  border-color: #001534;
}

.state-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #526071;
  margin-bottom: 3px;
}

.state-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.state-stat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #15803d;
}

.s3-box .state-stat {
  color: #b45309;
}

.state-transition-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #526071;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
}

.arrow-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #15803d;
  border-radius: 50%;
  animation: arrowPulseTrack 1.8s infinite;
}

@keyframes arrowPulseTrack {
  0% { transform: translateX(-10px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(10px); opacity: 0; }
}

/* Layer 5: Conformal Triage Router */
.triage-routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.triage-route-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.triage-route-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.route-neg { border-top: 3px solid #10b981; }
.route-ambiguous { border-top: 3px solid #d97706; background: #fffdf5; }
.route-pos { border-top: 3px solid #f43f5e; }

.triage-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.badge-neg { background: #ecfdf5; color: #059669; }
.badge-ambiguous { background: #fef3c7; color: #b45309; }
.badge-pos { background: #ffe4e6; color: #e11d48; }

.triage-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.triage-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   ADVANCED MEDICAL ANIMATIONS & WIDGET EXTENSIONS
   ========================================================================== */
/* Laser Scanner in DPDP Chamber */
.chamber-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e2f854, transparent);
  box-shadow: 0 0 12px #e2f854;
  animation: laserScan 2.4s ease-in-out infinite;
}

@keyframes laserScan {
  0% { top: 0; opacity: 0.2; }
  50% { top: 96%; opacity: 1; }
  100% { top: 0; opacity: 0.2; }
}

/* Glowing DAG Edge Animation */
.dag-edge-animated {
  stroke-dasharray: 8 4;
  animation: dagEdgeFlow 1.6s linear infinite;
}

@keyframes dagEdgeFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* 5-Year Semi-Markov Cohort Progression Bar */
.progression-timeline-wrap {
  margin-top: 16px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.timeline-year-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-year-btn {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-year-btn:hover, .timeline-year-btn.active {
  background: #001534;
  color: #ffffff;
  border-color: #001534;
}

.cohort-distrib-bar {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 8px;
  background: #e2e8f0;
}

.distrib-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.70rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: hidden;
  padding: 0 4px;
}

.seg-s0 { background: #15803d; }
.seg-s1 { background: #0284c7; }
.seg-s2 { background: #d97706; }
.seg-s3 { background: #dc2626; }

.distrib-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

/* Conformal Patient Stream Widget */
.patient-stream-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.patient-live-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.patient-live-card.pulse-highlight {
  border-color: #15803d;
  box-shadow: 0 0 14px rgba(21, 128, 61, 0.2);
}

/* Clinical Development Trial Gantt Bar */
.trial-gantt-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.gantt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.gantt-label {
  width: 140px;
  font-weight: 600;
  color: var(--text-main);
  flex-shrink: 0;
}

.gantt-track {
  flex: 1;
  background: var(--bg-surface-alt);
  height: 20px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.gantt-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: #ffffff;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Indication Matrix Filter Tabs */
.matrix-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.matrix-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.matrix-tab-btn:hover, .matrix-tab-btn.active {
  background: #001534;
  color: #ffffff;
  border-color: #001534;
}

/* ==========================================================================
   INVESTOR TECHNOLOGY & TRIAL DE-RISKING CALCULATOR STYLES
   ========================================================================== */
.strategic-value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 36px;
}

.strategic-metric {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strategic-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 21, 52, 0.06);
}

.strategic-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-ink);
  line-height: 1.1;
  display: block;
}

.strategic-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.35;
}

.commercial-moat-box {
  background: var(--accent-cream);
  border: 1px solid var(--accent-cream-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
}

.commercial-moat-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.commercial-moat-desc {
  font-size: 0.80rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Trial De-risking ROI Calculator */
.roi-calculator-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  margin-top: 18px;
}

.roi-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roi-outputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.roi-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roi-card.highlight {
  background: var(--nafld-bg);
  border-color: var(--nafld-border);
}

.roi-val {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.roi-card.highlight .roi-val {
  color: var(--nafld-tone);
}

.roi-label {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.roi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-h1 { font-size: 2.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .disease-grid { grid-template-columns: 1fr; }
  .module-cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .sim-layout { grid-template-columns: 1fr; }
  .drug-sim-layout { grid-template-columns: 1fr; }
  .layer-list { grid-template-columns: 1fr; }
  .collab-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-stages-container { grid-template-columns: repeat(2, 1fr); }
  .pipeline-track-line { display: none; }
  .tech-grid-split { grid-template-columns: 1fr; }
  .anim-stream-columns { grid-template-columns: 1fr; }
  .triage-routes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .nav-links { overflow-x: auto; width: 100%; justify-content: flex-start; }
  .hero-h1 { font-size: 2rem; }
  .stats-row { grid-template-columns: 1fr; }
  .sim-controls-grid { grid-template-columns: 1fr; }
  .collab-steps-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-navs { flex-direction: column; gap: 24px; }
  .pipeline-stages-container { grid-template-columns: 1fr; }
}
