/* ==========================================================
   ZANGOL — Design System
   Inspired by Stripe / Zocdoc / Apple / Linear / Oura, not hospitals.
   Signature element: the "Pulse Line" — an ECG-style trace that flattens
   into a calm trend line, running through the hero and section dividers,
   symbolizing "catch it before it becomes a spike."
   ========================================================== */

:root {
  /* Color tokens (from brief) */
  --navy: #0B2A55;
  --emerald: #0F8F6F;
  --emerald-light: #14B892;
  --yellow: #FFD84D;
  --bg: #FFFDF7;
  --heading: #16213E;
  --body: #5B6472;
  --white: #FFFFFF;

  --navy-10: rgba(11, 42, 85, 0.06);
  --navy-20: rgba(11, 42, 85, 0.12);
  --emerald-10: rgba(15, 143, 111, 0.08);
  --emerald-20: rgba(15, 143, 111, 0.16);

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(22, 33, 62, 0.06);
  --shadow-md: 0 8px 30px rgba(22, 33, 62, 0.08);
  --shadow-lg: 0 20px 60px rgba(22, 33, 62, 0.12);
  --shadow-glow-emerald: 0 8px 40px rgba(15, 143, 111, 0.25);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;

  /* Type scale */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3.5rem;
  --fs-4xl: 4.5rem;

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-10);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.section-heading {
  font-size: var(--fs-2xl);
  max-width: 640px;
}

.section-heading--center { max-width: 700px; margin: 0 auto; text-align: center; }

.section-sub {
  font-size: var(--fs-lg);
  color: var(--body);
  max-width: 560px;
  margin-top: 16px;
}

.section-sub--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: #0e3a72; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--cta {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(255, 216, 77, 0.4);
}
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 216, 77, 0.55); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-20);
}
.btn--ghost:hover { background: var(--navy-10); }

.btn--emerald {
  background: var(--emerald);
  color: var(--white);
  box-shadow: var(--shadow-glow-emerald);
}
.btn--emerald:hover { background: var(--emerald-light); transform: translateY(-2px); }

.btn--lg { padding: 18px 38px; font-size: var(--fs-base); }
.btn--full { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(22, 33, 62, 0.06);
  transition: box-shadow 0.3s ease;
}

.navbar.is-scrolled { box-shadow: var(--shadow-sm); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--navy);
}

.navbar__logo-mark {
  width: 34px;
  height: 34px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--heading);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link--active::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 14px; }

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--navy-10);
}
.navbar__mobile-menu.is-open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 120px;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}

.hero__blob--1 { width: 480px; height: 480px; background: var(--emerald); top: -180px; right: -120px; }
.hero__blob--2 { width: 380px; height: 380px; background: var(--yellow); bottom: -140px; left: -100px; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.06); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero__eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

.hero__title {
  font-size: var(--fs-4xl);
  max-width: 620px;
}

.hero__title .accent { color: var(--emerald); }

.hero__sub {
  font-size: var(--fs-lg);
  margin-top: 24px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--body);
  font-weight: 600;
}

.hero__trust-item svg { color: var(--emerald); flex-shrink: 0; }

/* Hero visual: floating glass dashboard cards + pulse line */
.hero__visual { position: relative; height: 520px; }

.pulse-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.pulse-path {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-pulse 3.5s ease-out forwards infinite;
}

@keyframes draw-pulse {
  0% { stroke-dashoffset: 1000; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  z-index: 2;
  animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.glass-card--1 { top: 6%; left: 4%; width: 230px; animation-delay: 0s; }
.glass-card--2 { top: 40%; right: 0%; width: 210px; animation-delay: -2.5s; }
.glass-card--3 { bottom: 6%; left: 12%; width: 250px; animation-delay: -5s; }

.glass-card__label { font-size: var(--fs-xs); color: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.glass-card__value { font-size: var(--fs-xl); color: var(--heading); font-weight: 800; margin-top: 6px; }
.glass-card__delta { font-size: var(--fs-xs); font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.glass-card__delta--good { color: var(--emerald); }
.glass-card__ring { width: 56px; height: 56px; margin: 0 auto; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--navy);
  padding: 56px 0;
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__value { font-size: var(--fs-2xl); font-weight: 800; color: var(--white); }
.stat__label { font-size: var(--fs-xs); color: rgba(255,255,255,0.65); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Trusted by ---------- */
.trusted {
  padding: 56px 0;
  text-align: center;
}

.trusted__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--body); font-weight: 600; margin-bottom: 32px; }

.trusted__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.55;
}

.trusted__logos span { font-weight: 700; font-size: var(--fs-lg); color: var(--heading); }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--navy-10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--emerald-10);
  color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.feature-card__title { font-size: var(--fs-lg); margin-bottom: 10px; }
.feature-card__desc { font-size: var(--fs-sm); color: var(--body); }

/* ---------- AI intelligence section ---------- */
.ai-section {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 80px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.ai-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-section .eyebrow { background: rgba(255,255,255,0.1); color: var(--emerald-light); }
.ai-section h2 { color: var(--white); font-size: var(--fs-2xl); }
.ai-section p { color: rgba(255,255,255,0.7); }

.ai-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 20px; }
.ai-list li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-sm); color: rgba(255,255,255,0.85); }
.ai-list li svg { color: var(--emerald-light); flex-shrink: 0; margin-top: 3px; }

.ai-report-mock {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.ai-report-mock__row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ai-report-mock__row:last-child { border-bottom: none; }
.ai-report-mock__name { font-size: var(--fs-sm); font-weight: 600; }
.ai-report-mock__badge { font-size: var(--fs-xs); font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); }
.badge--normal { background: rgba(15,143,111,0.2); color: var(--emerald-light); }
.badge--watch { background: rgba(255,216,77,0.2); color: var(--yellow); }

/* ---------- Dashboard preview ---------- */
.dashboard-preview {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--navy-10);
  padding: 40px;
  margin-top: 64px;
}

.dashboard-preview__tabs { display: flex; gap: 8px; margin-bottom: 32px; }
.dashboard-preview__tab { padding: 10px 20px; border-radius: var(--radius-full); font-size: var(--fs-xs); font-weight: 700; }
.dashboard-preview__tab--active { background: var(--navy); color: var(--white); }
.dashboard-preview__tab:not(.dashboard-preview__tab--active) { background: var(--navy-10); color: var(--body); }

.dashboard-preview__chart-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.score-ring-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  position: relative;
}

.step-card { text-align: left; position: relative; }
.step-card__num { font-size: var(--fs-2xl); font-weight: 800; color: var(--emerald-10); -webkit-text-stroke: 1.5px var(--emerald); color: transparent; }
.step-card__title { font-size: var(--fs-base); font-weight: 700; color: var(--heading); margin-top: 12px; }
.step-card__desc { font-size: var(--fs-sm); margin-top: 8px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--navy-10);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover { transform: translateY(-6px); }

.pricing-card--featured {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(1.04);
}

.pricing-card--featured .pricing-card__name,
.pricing-card--featured .pricing-card__price,
.pricing-card--featured .pricing-card__unit { color: var(--white); }

.pricing-card--featured .pricing-feature { color: rgba(255,255,255,0.8); }

.pricing-card__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--navy);
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-full);
}

.pricing-card__name { font-size: var(--fs-lg); font-weight: 700; }
.pricing-card__price { font-size: var(--fs-3xl); font-weight: 800; margin-top: 16px; }
.pricing-card__unit { font-size: var(--fs-sm); color: var(--body); font-weight: 500; }

.pricing-features { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.pricing-feature { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.pricing-feature svg { color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.pricing-card--featured .pricing-feature svg { color: var(--emerald-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 64px auto 0; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--navy-10);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  background: none;
  border: none;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item__icon { transition: transform 0.3s ease; flex-shrink: 0; color: var(--emerald); }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  font-size: var(--fs-sm);
}

.faq-item.is-open .faq-item__answer { max-height: 300px; padding: 0 26px 22px; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #123a6b 100%);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section h2 { color: var(--white); font-size: var(--fs-2xl); max-width: 600px; margin: 0 auto; }
.cta-section p { color: rgba(255,255,255,0.7); margin-top: 16px; }
.cta-section__actions { margin-top: 36px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--heading); color: rgba(255,255,255,0.65); padding: 80px 0 32px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand { font-weight: 800; font-size: var(--fs-lg); color: var(--white); margin-bottom: 14px; }
.footer__desc { font-size: var(--fs-sm); max-width: 280px; }
.footer__col-title { color: var(--white); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: var(--fs-sm); }
.footer__links a:hover { color: var(--white); }
.footer__bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); flex-wrap: wrap; gap: 16px; }
.footer__socials { display: flex; gap: 16px; }

/* ---------- Utility / responsive ---------- */
.fade-in-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 380px; margin-top: 40px; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats-strip__grid { grid-template-columns: 1fr 1fr; }
  .ai-section, .cta-section { padding: 48px 32px; }
  .ai-section__grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .navbar__links, .navbar__actions .btn--ghost { display: none; }
  .navbar__toggle { display: block; }
  .hero__title { font-size: var(--fs-3xl); }
  .features-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .stats-strip__grid { grid-template-columns: 1fr 1fr; }
  .dashboard-preview__chart-area { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
