:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #050505;
  --muted: #626262;
  --line: #050505;
  --soft: #f5f5f5;
  --panel: #fff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 28px;
  border-bottom: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  display: inline-block;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--ink);
}

.topbar nav a {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.topbar nav a:hover {
  border-bottom-color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 44px;
  align-items: center;
  padding: 52px clamp(22px, 5vw, 72px) 38px;
  border-bottom: 1.5px solid var(--line);
}

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

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.9;
  font-weight: 900;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button.secondary {
  background: var(--bg);
}

.clinical-board,
.panel,
.process-card {
  border: 1.5px solid var(--ink);
  background: var(--panel);
}

.clinical-board {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow);
}

.board-header {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1.5px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
}

.body-map {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px), #fff;
  background-size: 28px 28px;
}

.body-map svg {
  width: min(92%, 460px);
  height: auto;
  overflow: visible;
}

.outline,
.spine,
.organ,
.pulse-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.outline {
  stroke-width: 3.5;
}

.organ {
  fill: #fff;
}

.spine {
  stroke-dasharray: 7 9;
}

.pulse-line {
  stroke-width: 2.5;
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.node:hover,
.node.active {
  background: var(--ink);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}

.workspace,
.process,
.simulator {
  padding: 76px clamp(22px, 5vw, 72px);
  border-bottom: 1.5px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.98;
}

.module-grid,
.sim-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panel-title span,
.process-card span,
.recommendation > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.panel h3,
.process-card h3,
.recommendation h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.module-panel p,
.process-card p,
.recommendation p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric-row div {
  min-height: 94px;
  padding: 14px;
  border: 1.5px solid var(--ink);
  background: var(--soft);
}

.metric-row span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.timeline li {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1.5px solid var(--ink);
  color: var(--muted);
  font-weight: 700;
}

.timeline li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.timeline li.done,
.timeline li.active {
  color: var(--ink);
}

.timeline li.done::before,
.timeline li.active::before {
  background: var(--ink);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  min-height: 280px;
  padding: 24px;
}

.process-card.featured {
  background: var(--ink);
  color: #fff;
}

.process-card.featured span,
.process-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.controls {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  min-height: 48px;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

input[type="range"] {
  accent-color: var(--ink);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(22px, 5vw, 72px);
  font-weight: 900;
}

@media (max-width: 920px) {
  .hero,
  .module-grid,
  .sim-grid,
  .process-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .clinical-board {
    min-height: 520px;
  }

  .body-map {
    min-height: 456px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
    gap: 12px;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(46px, 17vw, 68px);
  }

  .hero,
  .workspace,
  .process,
  .simulator {
    padding-left: 18px;
    padding-right: 18px;
  }

  .node {
    width: 42px;
    height: 42px;
  }

  footer {
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }
}
