:root {
  color-scheme: light;
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Light Theme Color Palette - Medical Teal & Slate */
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f8fafc;
  --surface: #ffffff;
  --soft: #f0fdf4;
  --line: #cbd5e1;
  
  --teal: #0d9488;
  --teal-dark: #115e59;
  --blue: #2563eb;
  --coral: #e11d48;
  --gold: #d97706;
  --navy: #0f172a;
  --navy-surface: rgba(255, 255, 255, 0.06);
  --navy-line: rgba(255, 255, 255, 0.12);
  
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dark-theme {
  color-scheme: dark;
  
  /* Dark Theme Color Palette */
  --ink: #f8fafc;
  --muted: #94a3b8;
  --paper: #0b0f19;
  --surface: #111827;
  --soft: #064e3b;
  --line: #1e293b;
  
  --teal: #10b981;
  --teal-dark: #34d399;
  --blue: #3b82f6;
  --coral: #fb7185;
  --gold: #fbbf24;
  --navy: #070b13;
  --navy-surface: #111827;
  --navy-line: #1e293b;
  
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: 
    linear-gradient(90deg, rgba(13, 148, 136, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-theme body {
  background-image: 
    linear-gradient(90deg, rgba(16, 185, 129, 0.015) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, 0.01) 1px, transparent 1px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* Header & Controls */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(20px, 6vw, 78px);
  background: rgba(248, 251, 248, 0.85);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s ease;
}

.dark-theme .site-header {
  background: rgba(7, 11, 19, 0.85);
}

.site-header.is-elevated {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(16, 33, 43, 0.04);
}

.dark-theme .site-header.is-elevated {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand,
.site-nav,
.hero-actions,
.trust-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button Styles */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--soft);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.sun-icon {
  display: none;
}
.moon-icon {
  display: block;
}

.dark-theme .sun-icon {
  display: block;
}
.dark-theme .moon-icon {
  display: none;
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--teal-dark);
  background: var(--soft);
}

.dark-theme .site-nav a:hover {
  color: var(--teal-dark);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle span {
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 999px;
}

/* Sections Global Styling */
.buyer-section,
.platform-section,
.outcomes-section,
.proof-section,
.pilot-section,
.safety-section,
.contact-section {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 6vw, 78px);
  scroll-margin-top: 5.5rem;
}

/* Typography Redesign */
h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: 1.05;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

p {
  line-height: 1.65;
  margin-top: 0;
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  display: grid;
  min-height: 90vh;
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(100px, 15vh, 150px) clamp(20px, 6vw, 78px) clamp(48px, 8vw, 88px);
}

.hero-copy {
  max-width: 760px;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-heading);
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.2);
}

.button.secondary {
  color: var(--teal);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary:hover {
  background: var(--soft);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  padding: 8px 14px;
  color: var(--teal);
  background: var(--soft);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.trust-strip span:hover {
  transform: scale(1.03);
}

/* Image Mockups Styles */
.hero-visual,
.proof-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-visual::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(225, 29, 72, 0.12), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.1), transparent 35%),
    var(--soft);
  border-radius: var(--radius);
}

.hero-visual img,
.proof-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-visual:hover img,
.proof-figure:hover img {
  transform: scale(1.025);
}

.hero-visual figcaption,
.proof-figure figcaption {
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Section Headings */
.section-heading {
  width: min(880px, 100%);
  margin-bottom: 48px;
}

.section-heading.compact {
  width: min(720px, 100%);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.15rem;
}

/* Grid & Layout Cards */
.buyer-grid,
.module-grid,
.outcome-metrics,
.timeline,
.safety-grid {
  display: grid;
  gap: 20px;
}

/* Buyers Section */
.buyer-section {
  background: var(--navy);
  color: #f8fbff;
}

.buyer-section .eyebrow {
  color: var(--teal-dark);
}

.dark-theme .buyer-section .eyebrow {
  color: var(--teal);
}

.buyer-section .section-heading p {
  color: #cbd5e1;
}

.buyer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-grid article {
  min-height: 245px;
  padding: 30px;
  background: var(--navy-surface);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.buyer-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
}

.buyer-grid span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.dark-theme .buyer-grid span {
  color: var(--teal);
}

.buyer-grid h3 {
  color: #f8fbff;
  margin-bottom: 12px;
}

.buyer-grid p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Platform Section */
.platform-section {
  background: #fafaf9;
}

.dark-theme .platform-section {
  background: #0d121c;
}

.module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 310px;
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-hover);
}

.module-card.featured {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.module-card.featured:hover {
  border-color: var(--teal);
}

.module-card.featured p {
  color: #cbd5e1;
}

.module-card strong {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-card.featured strong {
  color: var(--teal-dark);
}

.dark-theme .module-card.featured strong {
  color: var(--teal);
}

.module-card.featured h3 {
  color: #ffffff;
}

.module-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Outcomes Section */
.outcomes-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  background: var(--navy);
  color: #f8fbff;
}

.outcomes-section .eyebrow {
  color: var(--teal-dark);
}

.dark-theme .outcomes-section .eyebrow {
  color: var(--teal);
}

.outcome-copy p {
  color: #cbd5e1;
}

.outcome-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.outcome-metrics article {
  min-height: 150px;
  padding: 26px;
  background: var(--navy-surface);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.outcome-metrics article:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
}

.outcome-metrics span {
  display: block;
  margin-bottom: 16px;
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark-theme .outcome-metrics span {
  color: var(--teal);
}

.outcome-metrics strong {
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
}

/* Proof Section */
.proof-section {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  background: var(--soft);
}

.dark-theme .proof-section {
  background: rgba(6, 78, 59, 0.15);
}

.proof-copy p {
  color: var(--muted);
}

.proof-copy ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.proof-copy li::marker {
  color: var(--teal);
}

/* Timeline Section (Pilot) */
.pilot-section {
  background: var(--paper);
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 250px;
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline article:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-hover);
}

.timeline span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 30px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
}

.timeline p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Safety Section */
.safety-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 84px);
  background: #fafaf9;
}

.dark-theme .safety-section {
  background: #0d121c;
}

.safety-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.safety-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.safety-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-hover);
}

.safety-grid h3 {
  font-size: 1.15rem;
}

.safety-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Contact Section & Form Redesign */
.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  background: var(--navy);
  color: #f8fbff;
}

.contact-section .eyebrow {
  color: var(--teal-dark);
}

.dark-theme .contact-section .eyebrow {
  color: var(--teal);
}

.contact-section p {
  color: #cbd5e1;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.contact-card label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.contact-card textarea {
  resize: vertical;
}

/* Interactive Toast Alert styling */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  max-width: 420px;
  width: calc(100vw - 48px);
}

.toast {
  background: var(--navy);
  color: #f8fbff;
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left-color: var(--teal);
}

/* Footer Section */
.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(20px, 6vw, 78px);
  color: #cbd5e1;
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
}

.site-footer span:first-child {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Media Queries & Responsiveness */
@media (max-width: 1060px) {
  .hero,
  .outcomes-section,
  .proof-section,
  .safety-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .hero-visual figcaption {
    display: none;
  }

  .buyer-grid,
  .module-grid,
  .outcome-metrics,
  .timeline,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .buyer-grid article,
  .module-card,
  .timeline article,
  .safety-grid article {
    min-height: auto;
    padding: 24px;
  }

  .module-card strong,
  .timeline span,
  .buyer-grid span {
    margin-bottom: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
