/* My Med Portal — Coming Soon */
:root {
  --navy: #0c1222;
  --navy-mid: #151d32;
  --navy-soft: #1e2a47;
  --teal: #0ea5a5;
  --teal-bright: #2dd4bf;
  --teal-glow: rgba(14, 165, 165, 0.4);
  --coral: #f97316;
  --coral-soft: rgba(249, 115, 22, 0.12);
  --white: #ffffff;
  --off: #f4f7fb;
  --muted: #8b9cb8;
  --text: #e8edf5;
  --text-dark: #0f172a;
  --text-body: #3d4f66;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-xl: 28px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--off);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em, i {
  font-style: normal;
}

strong {
  font-weight: 700;
  color: var(--navy);
}

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

.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

/* Ambient background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(14, 165, 165, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(249, 115, 22, 0.08) 0%, transparent 45%),
    var(--off);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(14, 165, 165, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 165, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

/* Top banner */
.top-banner {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--text);
  text-align: center;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.top-banner strong {
  color: var(--teal-bright);
  font-weight: 700;
}

@media (max-width: 480px) {
  .top-banner-detail {
    display: block;
    margin-top: 2px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(244, 247, 251, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header .container {
  position: relative;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px 12px 10px 16px;
  box-shadow: 0 4px 24px rgba(12, 18, 34, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  min-width: 0;
  flex-shrink: 1;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal) 0%, #06b6d4 100%);
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px var(--teal-glow);
}

.logo-mark svg { width: 20px; height: 20px; color: white; }

.nav--desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav--desktop a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav--mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-scrim {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(12, 18, 34, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(12, 18, 34, 0.35);
  transform: translateY(-1px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, #06b6d4 100%);
  color: white;
  box-shadow: 0 4px 24px var(--teal-glow);
}

.btn-teal:hover {
  box-shadow: 0 8px 32px var(--teal-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  padding: 12px 18px;
}

.btn-ghost:hover { color: var(--navy); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-coming {
  position: relative;
  overflow: hidden;
}

.btn-coming::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--off);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  cursor: pointer;
  color: var(--navy);
  position: relative;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}

.menu-icon--close {
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
}

.menu-toggle[aria-expanded="true"] .menu-icon--open {
  opacity: 0;
  transform: scale(0.8);
}

.menu-toggle[aria-expanded="true"] .menu-icon--close {
  opacity: 1;
  transform: scale(1);
}

/* Hero */
.hero {
  padding: 72px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: white;
  border: 1px solid rgba(14, 165, 165, 0.25);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(14, 165, 165, 0.12);
  animation: fadeUp 0.8s var(--ease) both;
}

.coming-badge .dot {
  width: 10px;
  height: 10px;
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal-bright);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: 0;
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero h1 .highlight {
  font-style: normal;
  font-weight: 700;
  color: var(--teal);
  display: block;
  margin-top: 0.15em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-body);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.75;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

.waitlist-inline {
  display: flex;
  max-width: 440px;
  background: white;
  border-radius: 100px;
  padding: 6px;
  box-shadow: 0 8px 40px rgba(12, 18, 34, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.waitlist-inline input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  min-width: 0;
}

.waitlist-inline input::placeholder { color: #64748b; }

.waitlist-inline button {
  flex-shrink: 0;
  border-radius: 100px;
  padding: 14px 22px;
  white-space: nowrap;
}

.hero-note {
  font-size: 1rem;
  color: var(--text-body);
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.hero-note svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero visual — light health hub */
.hero-visual {
  position: relative;
  animation: fadeUp 1s var(--ease) 0.3s both;
}

.health-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hub-card {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(12, 18, 34, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(12, 18, 34, 0.1);
}

.hub-card--main {
  grid-column: 1 / -1;
  padding: 24px 26px;
  border-top: 4px solid var(--teal);
}

.hub-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hub-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal) 0%, #06b6d4 100%);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.hub-profile-text {
  flex: 1;
  min-width: 140px;
}

.hub-profile-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.hub-profile-text p {
  font-size: 1.05rem;
  color: var(--text-body);
}

.hub-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(14, 165, 165, 0.1);
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.hub-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--off);
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.hub-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hub-source-dot.hospital { background: #3b82f6; }
.hub-source-dot.lab { background: #8b5cf6; }
.hub-source-dot.rx { background: var(--teal); }
.hub-source-dot.clinic { background: var(--coral); }

.hub-card--event {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-left: 4px solid transparent;
}

.hub-card--event.visit { border-left-color: #3b82f6; }
.hub-card--event.lab { border-left-color: #8b5cf6; }
.hub-card--event.rx { border-left-color: var(--teal); }

.hub-event-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.hub-card--event strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.hub-card--event span {
  font-size: 0.95rem;
  color: var(--text-body);
}

.hub-card--stat {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: none;
  color: white;
}

.hub-card--stat:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(12, 18, 34, 0.15);
}

.hub-stat-item {
  text-align: center;
  flex: 1;
}

.hub-stat-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.hub-stat-item span {
  font-size: 0.95rem;
  color: #a8b8d0;
  font-weight: 600;
}

.hub-stat-soon strong {
  font-size: 1.1rem;
  color: var(--teal-bright);
}

.hub-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Problem section */
.problem {
  padding: 100px 0;
}

.problem-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.75;
}

.fragment-flow-label {
  display: none;
}

/* Fragmentation diagram */
.fragment-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}

.emr-silos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.emr-card {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(12, 18, 34, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
}

.emr-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(12, 18, 34, 0.1);
}

.emr-card.right:hover { transform: translateX(-4px); }

.emr-card .emr-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.emr-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.emr-icon.hospital { background: #dbeafe; }
.emr-icon.clinic { background: #fce7f3; }
.emr-icon.lab { background: #fef3c7; }
.emr-icon.pharmacy { background: #d1fae5; }

.emr-card p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
}

.emr-card .format-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--coral-soft);
  color: var(--coral);
  word-break: break-word;
}

.diagram-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  font-size: 1.05rem;
  font-weight: 700;
}

.patient-silhouette {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border: 3px dashed #94a3b8;
  opacity: 0.9;
}

.broken-lines {
  display: flex;
  gap: 4px;
}

.broken-lines span {
  width: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--coral) 0, var(--coral) 6px, transparent 6px, transparent 12px);
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 32px rgba(12, 18, 34, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(12, 18, 34, 0.08);
}

.problem-num {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(14, 165, 165, 0.35);
  line-height: 1;
  margin-bottom: 12px;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* Solution */
.solution {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 165, 0.04) 50%, transparent 100%);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-content .section-tag { color: var(--teal); }

.solution-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 16px rgba(12, 18, 34, 0.03);
}

.check-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal) 0%, #06b6d4 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.solution-list strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.solution-list span {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* Merge visual */
.merge-visual {
  position: relative;
  height: 420px;
}

.merge-source {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(12, 18, 34, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.merge-source.s1 { top: 0; left: 0; animation: drift 6s ease-in-out infinite; }
.merge-source.s2 { top: 20%; right: 0; animation: drift 6s ease-in-out infinite 1s; }
.merge-source.s3 { bottom: 30%; left: 5%; animation: drift 6s ease-in-out infinite 2s; }
.merge-source.s4 { bottom: 0; right: 10%; animation: drift 6s ease-in-out infinite 0.5s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

.merge-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: 0 0 60px var(--teal-glow), 0 20px 60px rgba(12, 18, 34, 0.3);
  z-index: 2;
}

.merge-hub strong {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
}

.merge-hub span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-bright);
  margin-top: 4px;
}

.merge-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--teal-bright), transparent);
  transform-origin: top center;
  opacity: 0.4;
}

.merge-line.l1 { transform: rotate(-140deg); }
.merge-line.l2 { transform: rotate(-40deg); }
.merge-line.l3 { transform: rotate(120deg); }
.merge-line.l4 { transform: rotate(40deg); }

/* Features coming */
.features {
  padding: 100px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--navy);
  color: var(--teal-bright);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-tile {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.feature-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #06b6d4);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(12, 18, 34, 0.08);
}

.feature-tile:hover::before { opacity: 1; }

.feature-tile.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-tile.wide .feature-icon-wrap { margin-bottom: 0; }

.feature-icon-wrap.teal { background: rgba(14, 165, 165, 0.12); }
.feature-icon-wrap.purple { background: #ede9fe; }
.feature-icon-wrap.orange { background: var(--coral-soft); }
.feature-icon-wrap.blue { background: #dbeafe; }
.feature-icon-wrap.green { background: #d1fae5; }

.feature-tile h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-tile p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
}

.feature-soon {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
}

/* CTA */
.cta {
  padding: 40px 0 100px;
}

.cta-panel {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2744 40%, var(--navy-mid) 100%);
  border-radius: 32px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(12, 18, 34, 0.2);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--teal-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 35%);
  pointer-events: none;
}

.cta-panel > * { position: relative; z-index: 1; }

.cta-panel .coming-soon-pill {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.cta-panel h2 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0;
  line-height: 1.25;
}

.cta-panel > p {
  color: #c5d0e0;
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-waitlist {
  display: flex;
  max-width: 480px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px;
  backdrop-filter: blur(8px);
}

.cta-waitlist input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 1rem;
  color: white;
  outline: none;
  min-width: 0;
}

.cta-waitlist input::placeholder { color: rgba(255, 255, 255, 0.4); }

.cta-fine {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.app-soon {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.store-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: not-allowed;
}

.store-soon .soon-tag {
  font-size: 0.8rem;
  padding: 3px 8px;
  background: rgba(45, 212, 191, 0.2);
  color: var(--teal-bright);
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--muted);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer .logo { color: white; }

.footer p { font-size: 1.05rem; max-width: 420px; margin-top: 8px; line-height: 1.65; }

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--teal-bright); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 34, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: min(440px, 100%);
  padding: 40px 36px;
  text-align: center;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 40px 80px rgba(12, 18, 34, 0.25);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal) 0%, #06b6d4 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: 0 8px 32px var(--teal-glow);
}

.modal h2 {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.modal p {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.6;
}

.modal .coming-note {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 24px;
}

.modal-close-btn {
  width: 100%;
  margin-top: 8px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — tablet & mobile
   ========================================================================== */

@media (max-width: 960px) {
  .header {
    padding: 10px 0;
  }

  .header-bar {
    padding: 8px 10px 8px 14px;
    gap: 10px;
  }

  .nav--desktop,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 205;
    background: rgba(12, 18, 34, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-scrim.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .nav--mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: min(320px, 88vw);
    height: 100%;
    height: 100dvh;
    padding: max(20px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
    background: white;
    box-shadow: -8px 0 40px rgba(12, 18, 34, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    gap: 0;
  }

  .nav--mobile.is-open {
    transform: translateX(0);
  }

  .nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-mobile-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--off);
    border-radius: 12px;
    color: var(--navy);
    cursor: pointer;
  }

  .nav--mobile a:not(.btn) {
    display: block;
    padding: 16px 4px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .nav--mobile a:not(.btn):active {
    color: var(--teal);
  }

  .btn-mobile-cta {
    margin-top: auto;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .hero-grid,
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
    margin-bottom: 24px;
  }

  .waitlist-inline {
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    border-radius: var(--radius);
    padding: 8px;
    gap: 8px;
  }

  .waitlist-inline input {
    width: 100%;
    padding: 14px 16px;
    text-align: left;
  }

  .waitlist-inline button {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-note {
    text-align: center;
  }

  .hero-visual {
    order: 0;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .health-hub {
    grid-template-columns: 1fr;
  }

  .hub-card--event {
    grid-column: 1;
  }

  .problem,
  .solution,
  .features {
    padding: 64px 0;
  }

  .problem-intro,
  .features-header {
    margin-bottom: 40px;
    text-align: center;
  }

  .section-desc {
    margin-inline: auto;
  }

  .fragment-diagram {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .fragment-flow-label {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 0;
  }

  .emr-silos {
    gap: 12px;
  }

  .emr-card:hover,
  .emr-card.right:hover {
    transform: none;
  }

  .diagram-center {
    flex-direction: column;
    padding: 28px 20px;
    margin: 8px 0;
    background: white;
    border-radius: var(--radius);
    border: 1px dashed rgba(249, 115, 22, 0.35);
    box-shadow: 0 4px 20px rgba(12, 18, 34, 0.05);
  }

  .broken-lines {
    flex-direction: column;
    gap: 6px;
  }

  .broken-lines span {
    width: 2px;
    height: 20px;
    background: repeating-linear-gradient(
      180deg,
      var(--coral) 0,
      var(--coral) 5px,
      transparent 5px,
      transparent 10px
    );
  }

  .problem-cards,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-tile.wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .solution-content {
    text-align: center;
  }

  .solution-list {
    text-align: left;
  }

  .merge-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: auto;
    padding: 8px 0 16px;
    max-width: 100%;
  }

  .merge-source {
    position: static;
    width: 100%;
    animation: none;
    text-align: center;
    padding: 16px 18px;
  }

  .merge-line {
    display: none;
  }

  .merge-hub {
    position: static;
    transform: none;
    width: min(200px, 70vw);
    height: min(200px, 70vw);
    margin: 12px auto;
    flex-shrink: 0;
  }

  .merge-source.s1 { order: 1; }
  .merge-source.s2 { order: 2; }
  .merge-source.s3 { order: 3; }
  .merge-source.s4 { order: 4; }
  .merge-hub { order: 5; }

  .cta {
    padding: 32px 0 64px;
  }

  .cta-panel {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .cta-waitlist {
    max-width: 100%;
    flex-direction: column;
    border-radius: var(--radius);
    padding: 8px;
    gap: 8px;
  }

  .cta-waitlist input {
    text-align: left;
    padding: 14px 16px;
  }

  .cta-waitlist button {
    width: 100%;
  }

  .app-soon {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
  }

  .store-soon {
    justify-content: center;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  .top-banner {
    padding: 10px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .header-bar {
    border-radius: 14px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .coming-badge {
    font-size: 0.88rem;
    padding: 10px 16px 10px 12px;
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero h1 .highlight {
    margin-top: 0.2em;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hub-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hub-count {
    width: 100%;
    text-align: center;
  }

  .hub-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hub-source {
    font-size: 0.85rem;
    padding: 10px 12px;
    justify-content: flex-start;
  }

  .hub-card--main {
    padding: 20px 18px;
  }

  .hub-card--stat {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
  }

  .hub-stat-divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
  }

  .hub-stat-item {
    width: 100%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-desc {
    font-size: 1.05rem;
  }

  .problem-card,
  .feature-tile {
    padding: 24px 20px;
  }

  .problem-num {
    font-size: 2rem;
  }

  .cta-panel h2 {
    font-size: 1.5rem;
  }

  .cta-panel > p {
    font-size: 1.05rem;
  }

  .modal {
    padding: 32px 24px;
    margin: 12px;
  }

  .btn {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .hub-sources {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 0.88rem;
    gap: 8px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }
}

/* Prevent horizontal scroll */
body.menu-open {
  overflow: hidden;
}

@media (hover: none) {
  .feature-tile:hover,
  .problem-card:hover,
  .hub-card:hover,
  .emr-card:hover {
    transform: none;
    box-shadow: inherit;
  }
}
