:root {
  color-scheme: dark;
  --bg: #07110f;
  --bg-soft: #0b1916;
  --panel: rgba(16, 35, 30, 0.78);
  --panel-strong: #10251f;
  --line: rgba(149, 238, 208, 0.15);
  --text: #f4fbf8;
  --muted: #98ada6;
  --green: #54e8b8;
  --green-soft: #99f7da;
  --blue: #8399ff;
  --danger: #ffb47e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 0%, rgba(37, 117, 91, 0.22), transparent 34%),
    linear-gradient(180deg, #07110f 0%, #081512 42%, #050b0a 100%);
  color: var(--text);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  top: 20%;
  right: -120px;
  background: var(--green);
}

.ambient-two {
  bottom: 10%;
  left: -160px;
  background: var(--blue);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 17, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(84, 232, 184, 0.4);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(84, 232, 184, 0.22), rgba(131, 153, 255, 0.12));
  color: var(--green-soft);
  font-size: 13px;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  align-items: center;
  gap: 40px;
  padding: 70px 0 80px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h1 span {
  color: transparent;
  background: linear-gradient(95deg, var(--green-soft), #b8c5ff 92%);
  background-clip: text;
}

.hero-copy > p {
  max-width: 610px;
  margin-bottom: 32px;
  color: #aec1ba;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.primary-button,
.ghost-button,
.export-button {
  border-radius: 12px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--green);
  color: #04110d;
  box-shadow: 0 10px 34px rgba(84, 232, 184, 0.18);
}

.ghost-button,
.export-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover,
.export-button:hover {
  transform: translateY(-2px);
}

.ghost-button:hover,
.export-button:hover {
  border-color: rgba(84, 232, 184, 0.5);
}

.hero-note {
  margin-top: 18px;
  color: #647b73;
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 4% 8%;
  border: 1px solid rgba(84, 232, 184, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 232, 184, 0.09), transparent 65%);
  box-shadow: inset 0 0 80px rgba(84, 232, 184, 0.05);
  z-index: -1;
}

#molecule {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(35, 225, 164, 0.12));
  animation: float 7s ease-in-out infinite;
}

.molecule-line {
  stroke: url(#lineGradient);
  stroke-width: 2;
}

.molecule-node {
  fill: url(#nodeGradient);
  filter: url(#glow);
}

.structure-card {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 1.5fr;
  gap: 16px;
  padding: 18px 20px;
}

.glass-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(20, 46, 38, 0.78), rgba(10, 25, 21, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mini-label {
  display: block;
  margin-bottom: 6px;
  color: #708b81;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.structure-card strong {
  font-size: 13px;
}

.status-ready {
  color: var(--green-soft);
}

.thesis {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.compact-heading {
  margin-bottom: 44px;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.thesis-grid article {
  min-height: 240px;
  padding: 38px 34px;
  border-right: 1px solid var(--line);
}

.thesis-grid article:last-child {
  border-right: 0;
}

.thesis-number {
  display: block;
  margin-bottom: 26px;
  color: var(--green-soft);
  font-family: Georgia, serif;
  font-size: 52px;
}

.thesis-grid h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.thesis-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.architecture {
  padding: 110px 0;
}

.architecture-heading {
  align-items: center;
}

.architecture-stage {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(84, 232, 184, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(rgba(84, 232, 184, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 232, 184, 0.025) 1px, transparent 1px),
    rgba(5, 15, 12, 0.55);
  background-size: 34px 34px;
  box-shadow: var(--shadow);
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 34px;
}

.architecture-module {
  position: relative;
  display: grid;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(19, 42, 35, 0.88), rgba(8, 22, 18, 0.92));
  color: var(--text);
  text-align: left;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.architecture-module:nth-child(5) { grid-column: 4; grid-row: 2; }
.architecture-module:nth-child(6) { grid-column: 3; grid-row: 2; }
.architecture-module:nth-child(7) { grid-column: 2; grid-row: 2; }
.architecture-module:nth-child(8) { grid-column: 1; grid-row: 2; }

.architecture-module:nth-child(-n+3)::after,
.architecture-module:nth-child(n+5):nth-child(-n+7)::after,
.architecture-module:nth-child(4)::after {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #42685c;
  font-size: 18px;
}

.architecture-module:nth-child(-n+3)::after {
  content: "→";
  top: calc(50% - 17px);
  right: -35px;
}

.architecture-module:nth-child(4)::after {
  content: "↓";
  bottom: -27px;
  left: calc(50% - 17px);
}

.architecture-module:nth-child(n+5):nth-child(-n+7)::after {
  content: "←";
  top: calc(50% - 17px);
  left: -35px;
}

.architecture-module:hover,
.architecture-module.selected {
  border-color: rgba(84, 232, 184, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28), inset 0 0 30px rgba(84, 232, 184, 0.04);
}

.architecture-module.running {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(84, 232, 184, 0.3), 0 0 38px rgba(84, 232, 184, 0.18);
  transform: translateY(-5px) scale(1.015);
}

.architecture-module.complete {
  border-color: rgba(84, 232, 184, 0.24);
}

.architecture-module.complete .module-number {
  color: var(--green);
}

.module-run-result {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(72, 232, 173, 0.22);
  border-radius: 16px;
  background: rgba(72, 232, 173, 0.055);
}

.module-run-result > span {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.module-run-result > strong {
  display: block;
  color: var(--white);
  font-size: 16px;
}

.patient-chain {
  padding-top: 96px;
}

.patient-chain-card {
  padding: 28px;
}

.patient-chain-head,
.patient-chain-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.patient-chain-head h3 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 28px;
}

.patient-chain-head h3 small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hla-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.hla-list span {
  padding: 7px 10px;
  border: 1px solid rgba(72, 232, 173, 0.22);
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
}

.patient-funnel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.funnel-stage {
  position: relative;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.funnel-stage:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -10px;
  color: var(--green);
  content: "→";
  transform: translate(50%, -50%);
}

.funnel-stage > span,
.funnel-stage small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.funnel-stage strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--green);
  font-size: 26px;
}

.patient-chain-body {
  align-items: stretch;
}

.patient-chain-body > div:first-child {
  flex: 1.6;
}

.patient-candidates {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.patient-candidates > div {
  display: grid;
  grid-template-columns: 24px 72px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.patient-candidates span,
.patient-candidates small {
  color: var(--muted);
  font-size: 11px;
}

.patient-candidates strong,
.patient-candidates code {
  color: var(--white);
}

.patient-candidates code {
  color: var(--green);
  letter-spacing: 0.08em;
}

.patient-chain-proof {
  flex: 1;
  padding: 22px;
  border: 1px solid rgba(72, 232, 173, 0.18);
  border-radius: 14px;
  background: rgba(72, 232, 173, 0.05);
}

.patient-chain-proof span {
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.patient-chain-proof strong {
  display: block;
  margin: 12px 0;
  color: var(--white);
  font-size: 20px;
}

.patient-chain-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

#moduleRunMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

#moduleRunMetrics span {
  overflow: hidden;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

#moduleRunMetrics b {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  #moduleRunMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patient-chain-head,
  .patient-chain-body {
    display: block;
  }

  .hla-list {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .patient-funnel {
    grid-template-columns: 1fr;
  }

  .funnel-stage:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -14px;
    content: "↓";
    transform: translate(50%, 50%);
  }

  .patient-candidates > div {
    grid-template-columns: 22px 60px 1fr;
  }

  .patient-candidates small {
    display: none;
  }

  .patient-chain-proof {
    margin-top: 18px;
  }
}

.module-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #45645b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.module-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(84, 232, 184, 0.24);
  border-radius: 12px;
  background: rgba(84, 232, 184, 0.08);
  color: var(--green-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.architecture-module strong,
.architecture-module small {
  display: block;
}

.architecture-module strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.architecture-module small {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
}

.tool-chip {
  align-self: end;
  justify-self: start;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(131, 153, 255, 0.09);
  color: #b6c1ff;
  font-size: 9px;
  font-weight: 700;
}

.module-state {
  position: absolute;
  right: 16px;
  bottom: 18px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-state.ready {
  color: var(--green);
}

.module-state.build {
  color: var(--danger);
}

.architecture-detail {
  margin-top: 26px;
  padding: 26px 28px;
  border-radius: 18px;
}

.detail-module-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-module-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #07110f;
  font-weight: 900;
}

.detail-module-heading h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.license-badge {
  padding: 7px 10px;
  border: 1px solid rgba(84, 232, 184, 0.18);
  border-radius: 7px;
  color: var(--green-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.detail-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.detail-flow > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-flow span,
.detail-flow strong {
  display: block;
}

.detail-flow span {
  margin-bottom: 7px;
  color: #58766c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.detail-flow strong {
  color: #d4e1dc;
  font-size: 11px;
  line-height: 1.45;
}

.detail-flow i {
  align-self: center;
  color: #45645b;
  font-style: normal;
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.detail-footer p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.integration-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #6d887e;
  font-size: 9px;
}

.integration-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.flow-outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(84, 232, 184, 0.22);
  border-radius: 999px;
  background: rgba(84, 232, 184, 0.06);
  text-align: center;
}

.flow-outcome span {
  color: #57746a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.flow-outcome strong {
  color: var(--green-soft);
  font-size: 11px;
}

.workspace,
.results,
.construct {
  padding: 100px 0;
}

.case-badge {
  border: 1px solid rgba(131, 153, 255, 0.25);
  border-radius: 999px;
  padding: 9px 14px;
  color: #b9c4ff;
  background: rgba(131, 153, 255, 0.08);
  font-size: 12px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
}

.patient-panel,
.pipeline-panel,
.ranking-card,
.detail-card,
.construct-card {
  border-radius: 18px;
}

.patient-panel,
.pipeline-panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
}

.verified,
.idle-state {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(84, 232, 184, 0.08);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.idle-state {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.idle-state.running {
  color: var(--green);
  background: rgba(84, 232, 184, 0.08);
}

.patient-list {
  margin: 0;
}

.patient-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.patient-list dt {
  color: var(--muted);
  font-size: 12px;
}

.patient-list dd {
  margin: 0;
  font-size: 12px;
  text-align: right;
}

.sample-files {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.sample-files > div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  color: #c5d3ce;
  font-size: 11px;
}

.sample-files b {
  color: #66877c;
  font-size: 9px;
  text-transform: uppercase;
}

.file-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: rgba(131, 153, 255, 0.1);
  color: #bfc8ff;
  font-weight: 700;
}

.pipeline {
  display: grid;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.42;
  transition: opacity 320ms ease, transform 320ms ease, background 320ms ease;
}

.pipeline-step.active {
  opacity: 1;
  transform: translateX(4px);
}

.pipeline-step.complete {
  opacity: 0.82;
}

.step-index {
  color: #557269;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.pipeline-step strong,
.pipeline-step span {
  display: block;
}

.pipeline-step strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.pipeline-step span {
  color: var(--muted);
  font-size: 11px;
}

.pipeline-step .step-result {
  color: var(--green-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.pipeline-step.complete .step-result {
  opacity: 1;
  transform: translateX(0);
}

.progress-track {
  height: 3px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 12px var(--green);
  transition: width 500ms ease;
}

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

.ranking-card,
.detail-card {
  min-height: 510px;
  padding: 22px;
}

.table-head,
.candidate-row {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr 1fr 0.65fr;
  align-items: center;
  gap: 12px;
}

.table-head {
  padding: 0 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #648078;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.candidate-row {
  width: 100%;
  min-height: 70px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 180ms ease, transform 180ms ease;
}

.candidate-row:hover,
.candidate-row.selected {
  background: linear-gradient(90deg, rgba(84, 232, 184, 0.1), rgba(84, 232, 184, 0.02));
  transform: translateX(3px);
}

.candidate-row .candidate-id {
  color: var(--green-soft);
  font-weight: 700;
}

.lab-positive {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(84, 232, 184, 0.14);
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.candidate-row .candidate-target,
.candidate-row .candidate-hla {
  color: #b3c4be;
  font-size: 12px;
}

.candidate-score {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.detail-head h3 {
  margin-bottom: 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.score-ring {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 94.2%, rgba(255, 255, 255, 0.08) 0);
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #10231e;
}

.score-ring span {
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
}

.sequence-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(131, 153, 255, 0.15);
  border-radius: 10px;
  background: rgba(131, 153, 255, 0.05);
}

.sequence-box span {
  color: var(--muted);
  font-size: 11px;
}

.sequence-box code {
  color: #c6ceff;
  letter-spacing: 0.12em;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #aebfb9;
  font-size: 11px;
}

.metric-label b {
  color: var(--text);
}

.metric-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 400ms ease;
}

.decision-box {
  display: flex;
  gap: 13px;
  margin-top: 26px;
  padding: 15px;
  border: 1px solid rgba(84, 232, 184, 0.14);
  border-radius: 12px;
  background: rgba(84, 232, 184, 0.05);
}

.decision-icon {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #05110e;
  font-weight: 900;
}

.decision-box strong {
  font-size: 12px;
}

.decision-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.decision-box.negative {
  border-color: rgba(255, 180, 126, 0.18);
  background: rgba(255, 180, 126, 0.05);
}

.decision-box.negative .decision-icon {
  background: var(--danger);
}

.benchmark-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: 16px;
}

.benchmark-strip > div {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.benchmark-strip > div:first-child {
  padding-left: 0;
}

.benchmark-strip > div:last-child {
  border-right: 0;
}

.benchmark-strip span,
.benchmark-strip strong {
  display: block;
}

.benchmark-strip span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.benchmark-strip strong {
  color: var(--green-soft);
  font-size: 17px;
}

.construct-card {
  padding: 34px;
}

.construct-track {
  display: flex;
  min-height: 82px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.construct-part {
  display: grid;
  flex: 1;
  min-width: 70px;
  place-items: center;
  border-right: 1px solid rgba(7, 17, 15, 0.4);
  color: #081410;
  font-size: 11px;
  font-weight: 800;
}

.construct-part:last-child {
  border-right: 0;
}

.construct-part.cap,
.construct-part.poly {
  flex: 0.65;
  background: #c4d0cb;
}

.construct-part.utr {
  background: #8298ff;
}

.construct-part.signal {
  background: #c9acff;
}

.construct-part.epitope {
  flex: 1.35;
  background: var(--green);
}

.construct-part.epitope.alt {
  background: #8cf0d0;
}

.construct-part.linker {
  flex: 0.7;
  background: #ffcc8f;
}

.construct-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
}

.construct-metrics > div {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.construct-metrics > div:first-child {
  padding-left: 0;
}

.construct-metrics > div:last-child {
  border-right: 0;
}

.construct-metrics span,
.construct-metrics strong {
  display: block;
}

.construct-metrics span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.construct-metrics strong {
  font-size: 20px;
}

.low-risk {
  color: var(--green-soft);
}

.moat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  min-height: 650px;
  padding: 110px 0;
}

.moat-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.moat-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.flywheel {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(84, 232, 184, 0.12);
  border-radius: 50%;
}

.flywheel::before,
.flywheel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(84, 232, 184, 0.09);
  border-radius: 50%;
}

.flywheel::before {
  inset: 14%;
}

.flywheel::after {
  inset: 29%;
}

.flywheel-center {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 232, 184, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 232, 184, 0.22), rgba(84, 232, 184, 0.04));
  color: var(--green-soft);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 60px rgba(84, 232, 184, 0.12);
}

.orbit {
  position: absolute;
  display: grid;
  width: 110px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #0c1d18;
  color: #c1d1cb;
  font-size: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.orbit-one { top: 4%; left: calc(50% - 55px); }
.orbit-two { top: calc(50% - 19px); right: -2%; }
.orbit-three { bottom: 4%; left: calc(50% - 55px); }
.orbit-four { top: calc(50% - 19px); left: -2%; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #5d746b;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 13px 18px;
  border: 1px solid rgba(84, 232, 184, 0.3);
  border-radius: 10px;
  background: #102720;
  color: var(--green-soft);
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@media (max-width: 900px) {
  .hero,
  .moat {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .thesis-grid,
  .workspace-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .architecture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-module:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .architecture-module:nth-child(n)::after {
    content: none;
  }

  .detail-flow {
    grid-template-columns: 1fr;
  }

  .detail-flow i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .thesis-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thesis-grid article:last-child {
    border-bottom: 0;
  }

  .construct-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .benchmark-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .benchmark-strip > div {
    padding: 0;
    border-right: 0;
  }

  .construct-metrics > div {
    border-right: 0;
    padding: 0;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar-meta {
    font-size: 9px;
  }

  h1 {
    font-size: 45px;
  }

  .hero-actions,
  .section-heading,
  .detail-footer,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .structure-card {
    grid-template-columns: 1fr 1fr;
  }

  .structure-card > div:last-child {
    grid-column: 1 / -1;
  }

  .pipeline-step {
    grid-template-columns: 36px 1fr;
  }

  .architecture-stage {
    padding: 16px;
  }

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

  .detail-module-heading {
    grid-template-columns: auto 1fr;
  }

  .license-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pipeline-step .step-result {
    display: none;
  }

  .table-head,
  .candidate-row {
    grid-template-columns: 0.8fr 1.3fr 0.7fr;
  }

  .candidate-hla,
  .table-head span:nth-child(3) {
    display: none;
  }

  .construct-card {
    overflow-x: auto;
  }

  .benchmark-strip {
    grid-template-columns: 1fr;
  }

  .construct-track {
    min-width: 700px;
  }

  .flywheel {
    width: 86%;
  }
}
