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

:root {
  --navy:      #0a1628;
  --slate:     #1e2d3d;
  --teal:      #00c896;
  --teal-dim:  #008f72;
  --cream:     #faf7f0;
  --cream-mid: #f0ece3;
  --text:      #1a2535;
  --text-mid:  #4a5568;
  --text-dim:  #8a9ab0;
  --alert:     #f59e0b;
  --alert-bg:  #fffbeb;
  --red:       #ef4444;
  --red-bg:    #fef2f2;
  --radius:    12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-mid);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

/* ─── Typography helpers ─── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ─── Hero ─── */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-mid);
  border: 1px solid #e2ddd5;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
}

.headline-accent {
  color: var(--teal);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  max-width: 110px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--cream-mid);
}

/* ─── Hero Visual — dual phone frames ─── */
.hero-visual {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Shared phone frame */
.phone-frame {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(10, 22, 40, 0.08), 0 1px 4px rgba(10, 22, 40, 0.04);
  border: 1px solid var(--cream-mid);
}

.phone-topbar {
  background: #f5f1eb;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cream-mid);
}

.phone-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phone-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.phone-status.active { background: var(--teal); }
.phone-status.flag {
  background: var(--alert);
  animation: pulse 1.5s infinite;
}

.phone-content {
  background: #fffdf9;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}

/* Patient side */
.med-card {
  background: #f5f1eb;
  border: 1px solid var(--cream-mid);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.med-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 200, 150, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.med-info { flex: 1; }

.med-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.med-time {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.med-check {
  font-size: 0.75rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.med-check.taken {
  background: rgba(0, 200, 150, 0.15);
  color: var(--teal-dim);
}

.symptom-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.symptom-chip {
  font-size: 0.65rem;
  padding: 4px 8px;
  background: #f5f1eb;
  border: 1px solid var(--cream-mid);
  border-radius: 6px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chip-val { font-weight: 600; }
.chip-val.ok  { color: var(--teal-dim); }
.chip-val.warn { color: var(--alert); }

.physio-card {
  background: #f5f1eb;
  border: 1px solid var(--cream-mid);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.physio-tag {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.physio-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.physio-progress {
  height: 4px;
  background: var(--cream-mid);
  border-radius: 4px;
  overflow: hidden;
}

.physio-bar {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
}

.physio-cta {
  font-size: 0.65rem;
  color: var(--teal-dim);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.reminder-strip {
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.7rem;
  color: var(--teal-dim);
  font-weight: 500;
  text-align: center;
}

/* Clinical side */
.clinical-side {
  border-color: rgba(0, 200, 150, 0.2);
}

.phone-topbar.dark {
  background: var(--navy);
  border-color: rgba(255,255,255,0.06);
}

.phone-topbar.dark .phone-label.light { color: rgba(255,255,255,0.5); }

.phone-content.dark {
  background: #0d1f30;
  gap: 10px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.dash-count {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

.chart-area {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px;
}

.chart-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.bar {
  flex: 1;
  background: rgba(0, 200, 150, 0.3);
  border-radius: 3px 3px 0 0;
  min-height: 10px;
  transition: background 0.3s;
}

.bar.highlight { background: var(--teal); }

.flag-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flag-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}

.flag-card.alert { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }
.flag-card.warn  { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.15); }

.flag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.flag-dot.amber { background: var(--alert); }
.flag-dot.red   { background: var(--red); }

.flag-info { display: flex; flex-direction: column; }

.flag-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}

.flag-reason {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}

.resistance-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.12);
  border-radius: 8px;
}

.res-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.res-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.res-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
}

.res-val {
  font-size: 0.6rem;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}

/* ─── Split Vision ─── */
.split-vision {
  background: var(--cream-mid);
  border-top: 1px solid #e2ddd5;
  border-bottom: 1px solid #e2ddd5;
  padding: 80px 24px;
}

.vision-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.vision-text .section-headline { margin-bottom: 20px; }

.vision-body {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 1rem;
}

.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.pillar-body {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ─── Features ─── */
.features {
  padding: 80px 24px;
}

.features-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  border-radius: 20px;
  border: 1px solid #e2ddd5;
  overflow: hidden;
  background: #fffdf9;
}

.feature-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--cream-mid);
}

.feature-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

.feature-badge.patient {
  background: rgba(0, 200, 150, 0.1);
  color: var(--teal-dim);
  border: 1px solid rgba(0, 200, 150, 0.25);
}

.feature-badge.clinical {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
}

.feature-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── Data Pipeline ─── */
.data-pipeline {
  background: var(--navy);
  padding: 80px 24px;
}

.pipeline-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.pipeline-inner .section-eyebrow { color: var(--teal); }

.pipeline-inner .section-headline {
  color: #fff;
  margin-bottom: 56px;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.pipeline-step {
  position: relative;
  padding-right: 24px;
}

.pipeline-step:last-child { padding-right: 0; }

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 200, 150, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

.step-connector {
  position: absolute;
  top: 12px;
  right: 0;
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.1);
}

.pipeline-step:last-child .step-connector { display: none; }

/* ─── Closing ─── */
.closing {
  padding: 96px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
}

.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.closing-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--cream-mid);
  border: 1px solid #e2ddd5;
  color: var(--text-mid);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--cream-mid);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 24px 64px;
  }

  .hero-visual { justify-content: center; }

  .vision-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-connector { display: none; }
}

@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .hero-visual { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
