:root {
  --ink: #04080F;
  --navy: #070D1A;
  --navy2: #0C1526;
  --navy3: #111D33;
  --panel: #14213D;
  --border: rgba(0,229,204,0.12);
  --border-dim: rgba(255,255,255,0.06);
  --teal: #00E5CC;
  --teal2: #00BFA5;
  --teal-glow: rgba(0,229,204,0.15);
  --teal-dim: rgba(0,229,204,0.06);
  --amber: #F59E0B;
  --red: #EF4444;
  --green: #10B981;
  --white: #F8FAFC;
  --muted: #64748B;
  --dim: #94A3B8;
  --card-bg: rgba(20,33,61,0.6);
  --glass: rgba(255,255,255,0.03);
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--teal2); border-radius: 4px; }

/* ── SELECTION ── */
::selection { background: var(--teal); color: var(--navy); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(4,8,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  transition: all 0.3s;
}
nav.scrolled {
  height: 60px;
  background: rgba(4,8,15,0.95);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2.5px solid var(--navy);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: var(--navy);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--dim);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--teal); }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.btn-ghost {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--white); background: var(--glass); }
.btn-primary {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--teal);
  border: none;
  cursor: pointer;
  padding: 9px 22px;
  border-radius: 8px;
  transition: all 0.25s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #00F5DA;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,229,204,0.3);
}
.btn-outline {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 1.5px solid var(--teal);
  cursor: pointer;
  padding: 13px 28px;
  border-radius: 10px;
  transition: all 0.25s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-outline:hover {
  background: var(--teal-dim);
  transform: translateY(-1px);
}
.btn-lg {
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 10px;
}
.mobile-menu-btn {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 5% 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,204,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,191,165,0.05) 0%, transparent 60%),
              var(--navy);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,204,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,204,0.08);
  border: 1px solid rgba(0,229,204,0.2);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-title em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--dim);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-ctas {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex; gap: 36px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-dim);
}
.hero-stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-val span { color: var(--teal); }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}

/* ── HERO DASHBOARD MOCK ── */
.hero-dashboard {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}
.dashboard-window {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,229,204,0.08),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(0,229,204,0.06);
}
.dash-topbar {
  background: var(--navy3);
  border-bottom: 1px solid var(--border-dim);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dash-dot-r { background: #FF5F57; }
.dash-dot-y { background: #FEBC2E; }
.dash-dot-g { background: #28C840; }
.dash-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.dash-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.65rem;
  color: var(--teal);
  font-family: var(--font-mono);
}
.dash-live-dot {
  width: 5px; height: 5px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.dash-body { padding: 14px; }
.dash-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.dash-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.dash-alert-badge {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #EF4444;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: var(--font-mono);
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.vital-card {
  background: var(--navy3);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 8px 10px;
}
.vital-card.red { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.vital-card.amber { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.05); }
.vital-card.green { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.vital-name {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.vital-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}
.vital-val.red { color: #EF4444; }
.vital-val.amber { color: #F59E0B; }
.vital-val.green { color: #10B981; }
.vital-unit {
  font-size: 0.5rem;
  color: var(--muted);
  margin-top: 2px;
}
.vital-indicator {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}
.ind-red { background: #EF4444; box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.ind-amber { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,0.6); }
.ind-green { background: #10B981; box-shadow: 0 0 6px rgba(16,185,129,0.6); }

/* Patient list */
.patient-list { display: flex; flex-direction: column; gap: 4px; }
.patient-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy3);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.65rem;
}
.patient-row.critical { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.04); }
.patient-row.watch { border-color: rgba(245,158,11,0.2); }
.patient-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--teal);
  flex-shrink: 0;
}
.patient-name { font-weight: 500; color: var(--white); flex: 1; }
.patient-ward { color: var(--muted); font-size: 0.6rem; }
.risk-pill {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.risk-critical { background: rgba(239,68,68,0.15); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }
.risk-high { background: rgba(245,158,11,0.15); color: #F59E0B; border: 1px solid rgba(245,158,11,0.3); }
.risk-stable { background: rgba(16,185,129,0.12); color: #10B981; border: 1px solid rgba(16,185,129,0.25); }

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.float-card-left {
  left: -60px; bottom: 40px;
  animation: float1 4s ease-in-out infinite;
}
.float-card-right {
  right: -50px; top: 60px;
  animation: float2 4s ease-in-out infinite 1s;
}
@keyframes float1 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.float-card-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.float-card-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.float-card-sub {
  font-size: 0.65rem;
  color: var(--dim);
  margin-top: 2px;
}
.float-alert {
  display: flex; align-items: center; gap: 8px;
}
.float-alert-icon {
  width: 28px; height: 28px;
  background: rgba(239,68,68,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.float-alert-text { font-size: 0.65rem; }
.float-alert-title { font-weight: 600; color: #EF4444; }
.float-alert-sub { color: var(--muted); }

/* ── SECTION BASICS ── */
section { padding: 100px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--teal);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--dim);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}
.text-teal { color: var(--teal); }

/* ── PROBLEM SECTION ── */
#problem {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
#problem::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,229,204,0.04) 0%, transparent 70%);
  right: -200px; top: -100px;
  pointer-events: none;
}
.problem-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.problem-year {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,229,204,0.15);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: -20px;
  user-select: none;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,204,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.problem-card:hover {
  border-color: rgba(0,229,204,0.2);
  transform: translateY(-3px);
}
.problem-card:hover::before { opacity: 1; }
.problem-icon {
  width: 44px; height: 44px;
  background: rgba(0,229,204,0.08);
  border: 1px solid rgba(0,229,204,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.problem-icon svg { width: 20px; height: 20px; }
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
#solution {
  background: var(--navy);
  position: relative;
}
.solution-flow {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 64px;
  position: relative;
}
.flow-node {
  flex: 1;
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.flow-node:hover { border-color: var(--border); transform: translateY(-4px); }
.flow-node.center {
  background: linear-gradient(135deg, rgba(0,229,204,0.08) 0%, rgba(0,191,165,0.05) 100%);
  border-color: rgba(0,229,204,0.25);
  box-shadow: 0 0 40px rgba(0,229,204,0.08);
}
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 48px; flex-shrink: 0;
  color: var(--teal);
  font-size: 1.2rem;
  position: relative;
}
.flow-arrow::before {
  content: '';
  position: absolute;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(0,229,204,0.3), rgba(0,229,204,0.6), rgba(0,229,204,0.3));
}
.flow-node-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy3);
  border: 1px solid var(--border-dim);
}
.flow-node.center .flow-node-icon {
  background: rgba(0,229,204,0.12);
  border-color: rgba(0,229,204,0.25);
}
.flow-node-icon svg { width: 24px; height: 24px; }
.flow-node h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.flow-node p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.flow-node-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  margin-top: 16px;
}
.flow-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--navy3);
  border: 1px solid var(--border-dim);
  color: var(--dim);
  letter-spacing: 0.04em;
}
.flow-node.center .flow-tag {
  background: rgba(0,229,204,0.06);
  border-color: rgba(0,229,204,0.2);
  color: var(--teal);
}

/* ── FEATURE ROWS ── */
.feature-row-section { padding: 100px 5%; }
.feature-row-section.ink { background: var(--ink); }
.feature-row-section.navy { background: var(--navy); }
.feature-row {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-text .section-label { margin-bottom: 14px; }
.feature-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--white);
  margin-bottom: 16px;
}
.feature-text h3 em { font-style: normal; color: var(--teal); }
.feature-text p { font-size: 1rem; color: var(--dim); line-height: 1.75; font-weight: 300; }
.feature-check-list {
  list-style: none; margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9375rem; color: var(--dim); font-weight: 300; line-height: 1.5;
}
.feature-check {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.feature-check svg { width: 11px; height: 11px; }
.feature-visual {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(0,229,204,0.12);
  overflow: hidden;
  max-width: 440px; margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.feature-visual-inner {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.feature-visual-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.feature-visual:hover .feature-visual-inner img {
  transform: scale(1.03);
}

/* ── OUTCOMES ── */
#outcomes { background: var(--ink); }
.outcomes-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 48px; text-align: center;
}
.outcomes-title em { font-style: normal; color: var(--teal); }
.outcomes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 960px; margin: 0 auto;
  text-align: left;
}
.outcome-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--navy2); border: 1px solid var(--border-dim);
  border-radius: 12px; padding: 20px;
  transition: all 0.3s;
}
.outcome-item:hover { border-color: rgba(0,229,204,0.2); transform: translateY(-2px); }
.outcome-check {
  min-width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,229,204,0.12); border: 1px solid rgba(0,229,204,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.outcome-check svg { width: 13px; height: 13px; }
.outcome-item p { font-size: 0.9rem; color: var(--dim); line-height: 1.55; font-weight: 300; }

/* ── CLINICAL MODULES (broad) ── */
#modules { background: var(--navy); }
.modules-broad-intro { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.modules-broad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.module-card {
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  border-radius: 14px; padding: 24px;
  transition: all 0.3s; position: relative; overflow: hidden; cursor: default;
}
.module-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.module-card:hover {
  border-color: rgba(0,229,204,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,229,204,0.04);
}
.module-card:hover::after { opacity: 1; }
.module-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: rgba(0,229,204,0.08); border: 1px solid rgba(0,229,204,0.12);
}
.module-icon svg { width: 18px; height: 18px; }
.module-card h3 {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600;
  color: var(--white); margin-bottom: 7px; letter-spacing: -0.01em;
}
.module-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.module-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 3px 8px; border-radius: 100px;
  background: rgba(0,229,204,0.06); border: 1px solid rgba(0,229,204,0.15); color: var(--teal);
}

/* ── CLINICAL IN ACTION ── */
#showcase {
  background: var(--navy);
  overflow: hidden;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.showcase-features {
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 40px;
}
.showcase-feature {
  display: flex; gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-dim);
  background: var(--navy2);
  transition: all 0.3s;
  cursor: pointer;
}
.showcase-feature.active,
.showcase-feature:hover {
  border-color: rgba(0,229,204,0.25);
  background: rgba(0,229,204,0.03);
}
.showcase-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy3);
  border: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.showcase-feature.active .showcase-feature-icon {
  background: rgba(0,229,204,0.1);
  border-color: rgba(0,229,204,0.2);
}
.showcase-feature-icon svg { width: 18px; height: 18px; }
.showcase-feature h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.showcase-feature p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Large dashboard mock */
.showcase-dashboard {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,229,204,0.05);
}
.sd-topbar {
  background: var(--navy3);
  border-bottom: 1px solid var(--border-dim);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.sd-logo {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.sd-nav-items {
  display: flex; gap: 16px;
  margin-left: 20px;
}
.sd-nav-item {
  font-size: 0.65rem;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 6px;
  cursor: default;
  transition: all 0.2s;
}
.sd-nav-item.active {
  background: rgba(0,229,204,0.1);
  color: var(--teal);
}
.sd-body { padding: 16px; }
.sd-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.sd-stat-card {
  background: var(--navy3);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 10px 12px;
}
.sd-stat-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.sd-stat-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}
.sd-stat-val.teal { color: var(--teal); }
.sd-stat-val.red { color: #EF4444; }
.sd-stat-val.amber { color: #F59E0B; }
.sd-stat-change {
  font-size: 0.55rem;
  color: var(--muted);
  margin-top: 3px;
}
.sd-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
}
.sd-panel {
  background: var(--navy3);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 12px;
}
.sd-panel-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.sd-panel-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--teal);
  background: rgba(0,229,204,0.08);
  padding: 1px 6px;
  border-radius: 100px;
}
.sd-patient-mini {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 0.6rem;
  margin-bottom: 3px;
  background: var(--navy2);
}
.sd-patient-mini:last-child { margin-bottom: 0; }
.sd-avatar-mini {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}
.sd-name { flex: 1; color: var(--white); font-weight: 500; }
.sd-room { color: var(--muted); font-size: 0.55rem; }
.mini-chart-container { margin-top: 4px; }

/* ── WHO USES IT ── */
#users { background: var(--ink); }
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.user-card {
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.user-card:hover {
  border-color: rgba(0,229,204,0.2);
  transform: translateY(-4px);
}
.user-avatar-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--navy3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.user-avatar-wrap svg { width: 44px; height: 44px; }
.user-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.user-role-badge {
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy2);
}
.user-role-badge svg { width: 10px; height: 10px; }
.user-card h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.user-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── COMPLIANCE ── */
#compliance {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#compliance::before {
  content: '';
  position: absolute;
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,204,0.04) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.compliance-inner { position: relative; z-index: 1; }
.compliance-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 64px;
}
.compliance-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.compliance-badge {
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s;
}
.compliance-badge:hover {
  border-color: rgba(0,229,204,0.2);
  transform: translateY(-2px);
}
.compliance-badge-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: rgba(0,229,204,0.08);
  border: 1px solid rgba(0,229,204,0.15);
  display: flex; align-items: center; justify-content: center;
}
.compliance-badge-icon svg { width: 18px; height: 18px; }
.compliance-badge h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.compliance-badge p {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.4;
}
.fhir-stack { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.fhir-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(0,229,204,0.06);
  border: 1px solid rgba(0,229,204,0.15);
  color: var(--teal);
  letter-spacing: 0.04em;
}

/* Regions */
.regions-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.region-card {
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.3s;
}
.region-card:hover { border-color: rgba(0,229,204,0.2); }
.region-flag { font-size: 1.6rem; line-height: 1; flex-shrink: 0; width: 2rem; }
.region-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.region-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ── CTA SECTION ── */
#cta {
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,229,204,0.07) 0%, transparent 65%);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-inner .section-title { font-size: clamp(2rem, 4vw, 3.25rem); }
.cta-inner .section-subtitle { margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 0.8rem; color: var(--muted); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border-dim);
  padding: 60px 5% 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-top: 16px; max-width: 260px; }
.footer-col-title { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; color: var(--white); margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-legal { font-size: 0.78rem; color: var(--muted); }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--teal); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .float-card-left, .float-card-right { display: none; }
  .showcase-inner { grid-template-columns: 1fr; }
  .compliance-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  section { padding: 72px 5%; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .solution-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); height: 32px; width: auto; }
  .sd-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sd-two-col { grid-template-columns: 1fr; }
  .regions-strip { grid-template-columns: 1fr; }
  .compliance-badges { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .modules-broad-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .feature-visual { max-width: 100%; }
  .feature-row-section { padding: 72px 5%; }
}
@media (max-width: 480px) {
  .vitals-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-broad-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  cursor: pointer;
  color: var(--dim);
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border);
  color: var(--white);
  background: var(--navy3);
}
.theme-toggle svg { width: 15px; height: 15px; pointer-events: none; }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --ink: #EEF2F7;
  --navy: #FFFFFF;
  --navy2: #F1F5F9;
  --navy3: #E2EAF4;
  --panel: #CBD5E1;
  --border: rgba(0,137,123,0.22);
  --border-dim: rgba(0,0,0,0.07);
  --teal: #00897B;
  --teal2: #00695C;
  --teal-glow: rgba(0,137,123,0.12);
  --teal-dim: rgba(0,137,123,0.07);
  --white: #0F172A;
  --muted: #64748B;
  --dim: #475569;
  --card-bg: rgba(241,245,249,0.9);
  --glass: rgba(0,0,0,0.04);
}
[data-theme="light"] body { background: var(--navy); }
[data-theme="light"] nav {
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(0,0,0,0.07);
}
[data-theme="light"] nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .dashboard-window {
  box-shadow: 0 0 0 1px rgba(0,137,123,0.08), 0 24px 60px rgba(0,0,0,0.12), 0 0 40px rgba(0,137,123,0.04);
}
[data-theme="light"] .problem-year {
  -webkit-text-stroke-color: rgba(0,137,123,0.2);
}
[data-theme="light"] .showcase-dashboard {
  box-shadow: 0 24px 60px rgba(0,0,0,0.12), 0 0 40px rgba(0,137,123,0.04);
}
[data-theme="light"] .float-card {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
