:root {
  --bg: #F4F9F7;
  --bg-alt: #E8F0ED;
  --fg: #0D3B3E;
  --fg-muted: #4A7A78;
  --accent: #E85D44;
  --accent-warm: #E8A020;
  --teal: #3DAB8C;
  --surface: #FFFFFF;
  --border: rgba(13, 59, 62, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.nav-tag {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Hero */
.hero {
  padding: 72px 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.stat-unit {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 4px;
  line-height: 1.4;
  max-width: 90px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.breathing-ring {
  position: relative;
  width: 300px;
}
.breathing-svg {
  width: 100%;
  height: auto;
  animation: breathe-pulse 4s ease-in-out infinite;
}
@keyframes breathe-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.breath-wave {
  animation: wave-flow 3s ease-in-out infinite;
}
@keyframes wave-flow {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 20; }
}
.wave-slow { animation-duration: 3s; }
.wave-medium { animation-duration: 4s; animation-delay: 0.5s; }

.breathing-label {
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-bottom {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
}
.trust-tag {
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
}

/* Shared Section Styles */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.section-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.section-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* Monitoring / Timeline */
.monitoring {
  background: var(--surface);
}
.monitoring-visual {
  margin-top: 48px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-left: 2px solid var(--border);
  margin-left: 23px;
  padding-left: 28px;
  position: relative;
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
}
.timeline-normal::before { border-color: var(--teal); }
.timeline-warning::before { border-color: var(--accent-warm); }
.timeline-action::before { border-color: var(--accent); }
.timeline-marker {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}
.timeline-day {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.timeline-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 6px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Triggers */
.triggers {
  background: var(--bg);
}
.triggers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.triggers-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trigger-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(13,59,62,0.06);
}
.trigger-icon { margin-bottom: 10px; }
.trigger-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.trigger-value {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.trigger-status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}
.trigger-status.safe {
  background: rgba(61,171,140,0.12);
  color: var(--teal);
}
.trigger-status.caution {
  background: rgba(232,160,32,0.15);
  color: #C07D10;
}
.trigger-detail {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
}
.trigger-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trigger-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

/* Care Team */
.care-team {
  background: var(--surface);
}
.report-preview {
  margin-top: 40px;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 640px;
  box-shadow: 0 4px 24px rgba(13,59,62,0.08);
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.report-patient {
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.report-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}
.report-meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.report-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px;
  gap: 0;
}
.report-metric {
  padding: 0 16px;
  border-left: 1px solid var(--border);
}
.report-metric:first-child { border-left: none; padding-left: 0; }
.metric-value {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.metric-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 4px;
  line-height: 1.4;
}
.metric-trend {
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}
.metric-trend.up { color: var(--teal); }
.metric-trend.neutral { color: var(--fg-muted); }
.report-note {
  margin: 0 24px 24px;
  padding: 14px 16px;
  background: rgba(61,171,140,0.08);
  border-radius: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}
.report-note svg { flex-shrink: 0; margin-top: 2px; }
.report-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.report-action {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Closing */
.closing {
  background: var(--fg);
  color: var(--bg);
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--bg);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.closing-body {
  font-size: 15px;
  color: rgba(244,249,247,0.65);
  line-height: 1.75;
}
.agent-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}
.agent-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agent-features li {
  font-size: 15px;
  color: rgba(244,249,247,0.8);
  padding-left: 20px;
  position: relative;
}
.agent-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Footer */
.footer {
  background: #071F20;
  color: rgba(244,249,247,0.5);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--bg);
}
.footer-tagline {
  font-size: 14px;
  color: rgba(244,249,247,0.5);
  flex: 1;
}
.footer-built {
  font-size: 12px;
  color: rgba(244,249,247,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 48px 24px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .section-inner { padding: 56px 24px; }
  .triggers-inner { grid-template-columns: 1fr; gap: 40px; }
  .triggers-visual { order: 2; }
  .report-metrics { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .report-metric { border-left: none; padding: 0; }
  .closing-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px; }
  .footer-inner { padding: 32px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-tagline { order: 2; }
  .footer-built { order: 3; }
}