/* March Health — Health Digital Twin. B2B product page. */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f0f9ff;
  --bg-mint: #ecfdf8;
  --bg-warm: #fffbeb;
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-blue: #0369a1;
  --accent-blue-soft: #e0f2fe;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
}

.logo img {
  height: 2rem;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav a[href^="http"] {
  color: var(--accent);
  font-weight: 600;
}

.nav a[href^="http"]:hover {
  color: var(--accent-hover);
}

/* Sections */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: 65ch;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

/* 1. Hero */
.hero {
  padding: 7rem 1.5rem 4.5rem;
  background: linear-gradient(160deg, var(--bg-mint) 0%, var(--bg-tint) 50%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-primary {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.cta-secondary {
  display: inline-block;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(13, 148, 136, 0.25);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cta-secondary:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* 2. Problem */
.problem {
  padding: 3.5rem 0;
  background: var(--bg);
}

.problem-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 65ch;
}

.problem-list li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0 0.6rem 1.25rem;
  position: relative;
  border-radius: 6px;
  transition: background 0.15s;
}

.problem-list li:hover {
  background: var(--bg-soft);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-blue-soft);
}

.problem-list strong {
  color: var(--text);
}

/* 3. Solution */
.solution {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, var(--bg-mint) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
}

.solution-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  max-width: 65ch;
}

.solution-list li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.6rem;
  padding-left: 1.25rem;
  position: relative;
}

.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.solution-note {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  max-width: 65ch;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 4. Demos */
.demos {
  padding: 3.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.demos h2 {
  color: var(--text);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.demo-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--accent);
}

.demo-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

.demo-video-wrap {
  aspect-ratio: 16 / 9;
  background: var(--text);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.demo-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.35;
}

.demo-card p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.demo-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}

.demo-cta:hover {
  color: var(--accent-hover);
}

/* 5. How It Works */
.how {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
}

.how-steps {
  margin: 0;
  padding-left: 1.5rem;
  max-width: 65ch;
  counter-reset: step;
}

.how-steps li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  position: relative;
}

.how-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

.how-steps strong {
  color: var(--text);
}

/* 6. Evidence */
.evidence {
  padding: 3.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.evidence-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  max-width: 65ch;
}

.evidence-list li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.6rem;
  padding-left: 1.25rem;
  position: relative;
}

.evidence-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-blue-soft);
}

.evidence-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
  max-width: 65ch;
  padding: 0.75rem 0;
}

/* 7. Deployment */
.deployment {
  padding: 3.5rem 0;
  background: var(--bg-warm);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.deploy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 65ch;
}

.deploy-list li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

.deploy-list strong {
  color: var(--text);
}

/* 8. Security */
.security {
  padding: 3.5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.security-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  max-width: 65ch;
}

.security-list li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.security-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.security-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 65ch;
}

/* 9. Closing */
.closing {
  padding: 4rem 0;
  background: linear-gradient(160deg, var(--bg-mint) 0%, var(--bg-tint) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing h2 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.closing-lead {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.closing .cta-primary {
  margin: 0;
}

.closing .cta-secondary {
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--text);
  color: #e2e8f0;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-logo {
  color: inherit;
}

.footer-logo img {
  height: 1.5rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
  color: var(--accent-soft);
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 5.5rem 1.25rem 3.5rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }

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

  .nav {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.8125rem;
  }
}
