:root {
  --bg: #f3f5f8;
  --ink: #192d39;
  --muted: #72818d;
  --border: #e0e7ec;
  --teal: #267c78;
  --teal-d: #18584f;
  --teal-l: #edf7f4;
  --card: #ffffff;
  --shadow: 0 4px 20px #172f3e0a;
  --medjev: #a17bd3;
  --gen: #d69957;
  --ll: #4fc3c9;
  --head: #658ed0;
  --nar: #48a895;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased
}

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

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

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase
}

.muted {
  color: var(--muted)
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: #ffffffee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border)
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 12px
}

.brand .logo {
  background: var(--teal-d);
  color: #fff;
  border-radius: 9px;
  font-size: 22px;
  letter-spacing: -2px;
  padding: 0 11px 4px 8px
}

.brand .divider {
  color: #ccd0d8;
  margin: 0 4px
}

.brand .muted {
  font-weight: 400;
  letter-spacing: 0
}

nav {
  display: flex;
  gap: 6px;
  align-items: center
}

nav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 8px;
  transition: .15s
}

nav a:hover {
  background: var(--teal-l);
  color: var(--teal-d)
}

nav a.cta {
  background: var(--teal-d);
  color: #fff
}

nav a.cta:hover {
  background: var(--teal)
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #12302f, #1c4a44 55%, #267c78);
  color: #eafaf6;
  padding: 74px 0 60px
}

.hero .wrap {
  position: relative;
  z-index: 2
}

.hero .eyebrow {
  color: #8fd0c4
}

.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -2.2px;
  line-height: 1.04;
  margin: 14px 0 18px;
  max-width: 16ch
}

.hero p.lede {
  font-size: clamp(15px, 1.6vw, 19px);
  color: #cfe9e2;
  max-width: 60ch;
  margin: 0 0 30px
}

.hero .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff14;
  border: 1px solid #ffffff22;
  color: #eafaf6;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px
}

.chip b {
  font-size: 15px
}

.hero .glow {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, #4fc3c955, transparent 65%);
  z-index: 1
}

.hero .lede b {
  color: #fff;
  font-weight: 600
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 26px
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--teal-d);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 11px;
  transition: .15s;
  box-shadow: 0 6px 20px #00000022
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px #00000030
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff14;
  border: 1px solid #ffffff33;
  color: #eafaf6;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 11px;
  transition: .15s
}

.btn-ghost:hover {
  background: #ffffff22
}

/* ---------- playground cards ---------- */
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.play-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform .2s, box-shadow .2s, border-color .2s
}

.play-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px #172f3e1c;
  border-color: #d3dde4
}

.play-card .play-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0
}

.play-card .play-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px
}

.play-card.vqa .play-icon {
  background: var(--teal-l);
  color: var(--teal-d)
}

.play-card.snake .play-icon {
  background: #f3ecfb;
  color: #7a5cc0
}

.play-card.triage .play-icon {
  background: #fde8e4;
  color: #c0392b
}

.play-card.anaphylaxis .play-icon {
  background: #fde3e0;
  color: #a52a1e
}

.play-card.icu .play-icon {
  background: #e7eefb;
  color: #3f6bb5
}

.play-card .play-kind {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--muted);
  background: #f4f7f9;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px
}

.play-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.5px;
  margin: 16px 24px 8px
}

.play-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 24px 20px;
  line-height: 1.6
}

.play-card .play-go {
  margin-top: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border)
}

.play-card .play-go .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  transition: .15s
}

.play-card.vqa .play-go .btn {
  background: var(--teal-d);
  color: #fff
}

.play-card.vqa .play-go .btn:hover {
  background: var(--teal)
}

.play-card.snake .play-go .btn {
  background: #5b3fa8;
  color: #fff
}

.play-card.snake .play-go .btn:hover {
  background: #6d4ec4
}

.play-card.triage .play-go .btn {
  background: #b03a2e;
  color: #fff
}

.play-card.triage .play-go .btn:hover {
  background: #c0392b
}

.play-card.anaphylaxis .play-go .btn {
  background: #a52a1e;
  color: #fff
}

.play-card.anaphylaxis .play-go .btn:hover {
  background: #c0392b
}

.play-card.icu .play-go .btn {
  background: #3f6bb5;
  color: #fff
}

.play-card.icu .play-go .btn:hover {
  background: #4f7cc9
}

.play-card .play-go small {
  font-size: 11px;
  color: var(--muted)
}

/* ---------- section shell ---------- */
section.block {
  padding: 56px 0
}

section.block.alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.sec-head {
  max-width: 70ch;
  margin-bottom: 34px
}

.sec-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -1px;
  margin: 8px 0 10px
}

.sec-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0
}

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden
}

.stat {
  background: #fff;
  padding: 22px 24px
}

.stat .n {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px
}

.stat .l {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .4px;
  margin-top: 4px
}

/* ---------- variant cards ---------- */
.variants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px
}

.vcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden
}

.vcard::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--c)
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px #172f3e18;
  border-color: #d3dde4
}

.vcard .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent)
}

.vcard .vname {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 12px 0 2px
}

.vcard .vtag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 72%, #1c2b36);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 32%, #fff);
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-block
}

.vcard .vblurb {
  font-size: 12.5px;
  line-height: 1.55;
  color: #4a5866;
  margin: 12px 0 14px;
  min-height: 56px
}

.vcard .vmetrics {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px
}

.vcard .vmetrics div strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.5px
}

.vcard .vmetrics div small {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: .5px
}

.vcard .rank {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: #f4f7f9;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px
}

/* ---------- figure cards ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px
}

.fig {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s
}

.fig:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px #172f3e14
}

.fig .img {
  background: #f7f9fa;
  border-bottom: 1px solid var(--border);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center
}

.fig .img img {
  border-radius: 6px;
  box-shadow: 0 2px 10px #172f3e12
}

.fig .cap {
  padding: 16px 18px
}

.fig .cap h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px
}

.fig .cap p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55
}

/* ---------- apps ---------- */
.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.app {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: transform .2s, box-shadow .2s
}

.app:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px #172f3e1c
}

.app .top {
  padding: 26px 28px 0
}

.app .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px
}

.app.vqa .icon {
  background: var(--teal-l);
  color: var(--teal-d)
}

.app.snake .icon {
  background: #f3ecfb;
  color: #7a5cc0
}

.app h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.5px;
  margin: 0 0 8px
}

.app p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6
}

.app .go {
  margin-top: auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border)
}

.app .go .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  transition: .15s
}

.app.vqa .go .btn {
  background: var(--teal-d);
  color: #fff
}

.app.vqa .go .btn:hover {
  background: var(--teal)
}

.app.snake .go .btn {
  background: #5b3fa8;
  color: #fff
}

.app.snake .go .btn:hover {
  background: #6d4ec4
}

.app .go small {
  font-size: 11px;
  color: var(--muted)
}

/* ---------- mechanism strip ---------- */
.mech {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.mech .m {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow)
}

.mech .m .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--teal-d);
  text-transform: uppercase
}

.mech .m h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 8px
}

.mech .m p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6
}

/* ---------- footer ---------- */
footer {
  background: #12302f;
  color: #bfe0d8;
  padding: 40px 0;
  font-size: 12px
}

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

footer b {
  color: #fff;
  letter-spacing: 1px
}

/* ---------- responsive ---------- */
@media(max-width:820px) {
  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .apps,
  .mech {
    grid-template-columns: 1fr
  }

  .play-grid {
    grid-template-columns: 1fr
  }

  nav a:not(.cta) {
    display: none
  }
}