:root {
  --bg: #070a12;
  --bg-raised: #0c111d;
  --panel: rgba(14, 20, 34, 0.78);
  --panel-solid: #101725;
  --line: rgba(151, 176, 219, 0.16);
  --line-strong: rgba(151, 176, 219, 0.3);
  --text: #f3f6fb;
  --muted: #9ca9be;
  --soft: #c7d0df;
  --cyan: #66dcff;
  --cyan-deep: #1f9fc4;
  --amber: #ffbd62;
  --violet: #b69aff;
  --green: #7de2b3;
  --danger: #ff9b9b;
  --radius: 18px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.36);
  --font-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(31, 159, 196, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(112, 78, 190, 0.14), transparent 30rem),
    linear-gradient(180deg, #080c15 0%, var(--bg) 50%, #060810 100%);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(120, 156, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 156, 210, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: #031018;
  background: var(--cyan);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 18px;
  z-index: 100;
  padding: 9px 14px;
  color: #041017;
  background: var(--cyan);
  border-radius: 8px;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 14px;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 30rem;
  height: 30rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}

.ambient-a {
  top: 12vh;
  left: -18rem;
  background: var(--cyan);
}

.ambient-b {
  right: -20rem;
  bottom: 8vh;
  background: var(--violet);
}

.section-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1320px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px 10px 16px;
  background: rgba(7, 11, 19, 0.76);
  border: 1px solid rgba(151, 176, 219, 0.13);
  border-radius: 15px;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(102, 220, 255, 0.16), rgba(102, 220, 255, 0.03));
  border: 1px solid rgba(102, 220, 255, 0.3);
  border-radius: 11px;
}

.brand-mark svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.header-cta {
  padding: 9px 15px;
  color: #031017;
  background: var(--cyan);
  font-size: 13px;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
  align-items: center;
  gap: 44px;
  min-height: 780px;
  padding-block: 72px 86px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.eyebrow span {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(110deg, #f6fbff 0%, #7ce6ff 52%, #a795ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.85;
}

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

.button {
  min-height: 45px;
  padding: 0 18px;
  font-size: 14px;
}

.button-primary {
  color: #031018;
  background: linear-gradient(135deg, #7ce6ff, #41c4e6);
  box-shadow: 0 8px 30px rgba(72, 197, 229, 0.17);
}

.button-secondary {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover {
  color: var(--text);
  border-color: rgba(102, 220, 255, 0.5);
}

.hero-facts {
  display: flex;
  gap: 0;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding-right: 24px;
}

.hero-facts div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-facts strong {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-facts span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(102, 220, 255, 0.07), transparent 32%),
    rgba(10, 15, 26, 0.82);
  border: 1px solid rgba(151, 176, 219, 0.24);
  border-radius: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}

.stage-kicker,
.candidate-head span,
.table-head span,
.result-tag,
.evidence-card > span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.stage-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 560;
}

.stage-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.stage-status span {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 189, 98, 0.09);
}

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

.stage-status.is-ready span {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(125, 226, 179, 0.09);
}

.stage-status.is-error {
  color: var(--danger);
}

.stage-status.is-error span {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 155, 155, 0.09);
}

.model-stage {
  position: relative;
  height: 490px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 44%, rgba(18, 38, 60, 0.48), rgba(4, 7, 13, 0.2) 64%);
  border-block: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
}

.model-stage:active {
  cursor: grabbing;
}

.model-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.stage-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(83, 137, 180, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 137, 180, 0.11) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  pointer-events: none;
}

.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: rgba(5, 8, 14, 0.58);
  font-size: 12px;
  backdrop-filter: blur(4px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.stage-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.stage-loading.is-error {
  color: var(--danger);
}

.stage-loading i {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(102, 220, 255, 0.16);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.stage-loading.is-error i {
  display: none;
}

.stage-hint {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  padding: 5px 8px;
  color: rgba(214, 225, 241, 0.6);
  background: rgba(6, 10, 18, 0.58);
  border: 1px solid rgba(151, 176, 219, 0.12);
  border-radius: 7px;
  font-size: 9px;
  pointer-events: none;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.segmented,
.layer-controls {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(151, 176, 219, 0.1);
  border-radius: 9px;
}

.segmented button,
.layer-controls button {
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.segmented button:hover,
.layer-controls button:hover,
.segmented button:focus-visible,
.layer-controls button:focus-visible {
  color: var(--text);
  outline: none;
}

.segmented button.is-active,
.layer-controls button.is-active {
  color: var(--text);
  background: rgba(102, 220, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(102, 220, 255, 0.16);
}

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 12px 18px 15px;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.legend b {
  color: var(--soft);
  font-family: var(--font-mono);
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(102, 220, 255, 0.8);
}

.dot.amber {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 189, 98, 0.8);
}

.dot.violet {
  background: var(--violet);
  box-shadow: 0 0 8px rgba(182, 154, 255, 0.8);
}

.stage-foot p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.section-block {
  padding-block: 92px;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-intro.wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: end;
  max-width: none;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 590;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-intro p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.section-intro.wide > p {
  margin: 0;
}

.panel {
  background: linear-gradient(150deg, rgba(19, 27, 44, 0.86), rgba(10, 15, 26, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

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

.problem-card {
  min-height: 235px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.problem-card:hover {
  border-color: rgba(102, 220, 255, 0.32);
  transform: translateY(-2px);
}

.card-index {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.problem-card h3 {
  margin: 32px 0 10px;
  font-size: 25px;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.problem-card small {
  display: inline-block;
  margin-top: 22px;
  padding: 5px 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 5px;
  font-size: 9px;
}

.insight-strip {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 16px;
  padding: 22px 26px;
}

.insight-strip > span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.insight-strip p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
}

.arch-column {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.arch-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.arch-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 9px 14px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}

.arch-node.strong {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
}

.arch-node.accent {
  color: var(--amber);
  background: rgba(255, 189, 98, 0.06);
  border-color: rgba(255, 189, 98, 0.24);
}

.arch-node.muted {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
}

.arch-arrow {
  padding: 4px 0;
  color: rgba(102, 220, 255, 0.5);
  font-size: 12px;
}

.arch-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}

.arch-bridge i {
  width: 1px;
  height: 46px;
  background: linear-gradient(transparent, rgba(102, 220, 255, 0.45), transparent);
}

.bridge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(102, 220, 255, 0.8);
}

.pipeline-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.pipeline-list li {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.pipeline-list li > span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.pipeline-list h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 560;
}

.pipeline-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.nbv-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(450px, 0.9fr);
  gap: 60px;
  align-items: start;
}

.nbv-copy {
  position: sticky;
  top: 110px;
}

.nbv-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.nbv-copy > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.nbv-copy > p strong {
  color: var(--soft);
  font-weight: 570;
}

.formula {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding: 18px 20px;
}

.formula > span {
  color: var(--muted);
  font-size: 10px;
}

.formula code {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.formula small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.nbv-summary {
  display: flex;
  gap: 0;
  margin-top: 25px;
}

.nbv-summary div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-right: 20px;
}

.nbv-summary div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.nbv-summary strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 480;
}

.nbv-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.candidate-panel {
  padding: 21px;
}

.candidate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.candidate-head h3 {
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 560;
}

.candidate-head em {
  padding: 5px 8px;
  color: var(--amber);
  background: rgba(255, 189, 98, 0.07);
  border: 1px solid rgba(255, 189, 98, 0.18);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
}

.candidate-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.candidate-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 13px 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(151, 176, 219, 0.1);
  border-radius: 11px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.candidate-card:hover,
.candidate-card:focus-visible,
.candidate-card.is-active {
  background: rgba(255, 189, 98, 0.045);
  border-color: rgba(255, 189, 98, 0.32);
  outline: none;
  transform: translateX(2px);
}

.candidate-rank {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--amber);
  background: rgba(255, 189, 98, 0.07);
  border: 1px solid rgba(255, 189, 98, 0.18);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.candidate-main {
  min-width: 0;
}

.candidate-main strong {
  display: block;
  overflow: hidden;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.candidate-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.candidate-meta b {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.candidate-meta small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.fine-print {
  margin: 15px 0 0;
  padding-top: 13px;
  color: rgba(156, 169, 190, 0.72);
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.7;
}

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

.result-card {
  padding: 22px;
}

.result-card h3 {
  margin: 22px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.result-card > strong {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -0.05em;
}

.result-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.table-panel {
  margin-top: 14px;
  padding: 22px;
}

.table-head,
.matching-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.table-head h3,
.matching-head h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 560;
}

.table-head p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

th {
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 500;
  text-align: right;
}

th:first-child,
th:nth-child(2),
td:first-child,
td:nth-child(2) {
  text-align: left;
}

td {
  padding: 10px 12px;
  color: var(--soft);
  border-bottom: 1px solid rgba(151, 176, 219, 0.085);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.is-nbv td {
  color: var(--text);
  background: rgba(255, 189, 98, 0.035);
}

tbody tr.is-nbv td:nth-child(2) {
  color: var(--amber);
}

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

.table-notes p {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(151, 176, 219, 0.08);
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.7;
}

.table-notes b {
  color: var(--soft);
  font-weight: 550;
}

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

.evidence-card {
  padding: 20px;
}

.evidence-card h3 {
  margin: 14px 0 16px;
  font-size: 15px;
  font-weight: 550;
}

.evidence-card dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 10px;
}

.evidence-card dt {
  color: var(--muted);
}

.evidence-card dd {
  margin: 0;
  color: var(--soft);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.matching-table {
  margin-top: 14px;
  padding: 20px 22px;
}

.matching-head {
  margin-bottom: 12px;
}

.matching-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.pill {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 8px;
}

.pill.good {
  color: var(--green);
  background: rgba(125, 226, 179, 0.08);
  border: 1px solid rgba(125, 226, 179, 0.17);
}

.pill.neutral {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.boundary-layout h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 590;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.boundary-layout > div > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.boundary-list {
  margin: 0;
  padding: 8px 22px;
  list-style: none;
}

.boundary-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-list li:last-child {
  border-bottom: 0;
}

.boundary-list li > span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 9px;
}

.boundary-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.boundary-list b {
  color: var(--soft);
  font-weight: 550;
}

.team-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 32px;
}

.team-card h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 570;
  letter-spacing: -0.035em;
}

.team-card p {
  max-width: 620px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 390px;
}

.tech-stack span {
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  padding-block: 28px 42px;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: flex;
  flex-direction: column;
}

.site-footer strong {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.site-footer span,
.site-footer p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.site-footer .attribution {
  max-width: 380px;
  text-align: right;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 360px;
  padding: 12px 15px;
  color: var(--amber);
  background: #17130c;
  border: 1px solid rgba(255, 189, 98, 0.28);
  border-radius: 9px;
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.reveal-delay {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.candidate-card:focus-visible,
.button:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
  }

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

  .hero-stage {
    max-width: 820px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .nbv-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .nbv-copy {
    position: static;
    max-width: 780px;
  }

  .architecture {
    grid-template-columns: 1fr 90px 1fr;
    gap: 15px;
  }

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

  .team-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .tech-stack {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 78px;
  }

  .section-shell {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .header-cta {
    padding: 8px 10px;
    font-size: 11px;
  }

  .hero {
    gap: 34px;
    padding-block: 50px 62px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-facts {
    margin-top: 30px;
  }

  .hero-facts div {
    padding-right: 12px;
  }

  .hero-facts div + div {
    padding-left: 12px;
  }

  .hero-facts strong {
    font-size: 15px;
  }

  .hero-facts span {
    font-size: 9px;
  }

  .stage-head {
    padding: 16px;
  }

  .model-stage {
    height: 390px;
  }

  .stage-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .stage-foot {
    padding-inline: 14px;
  }

  .stage-foot p {
    width: 100%;
    margin-left: 0;
  }

  .section-block {
    padding-block: 62px;
  }

  .section-intro.wide,
  .boundary-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-intro.wide > p {
    margin-top: 0;
  }

  .problem-grid,
  .pipeline-list,
  .result-grid,
  .evidence-grid,
  .table-notes {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 0;
  }

  .problem-card h3 {
    margin-top: 18px;
  }

  .insight-strip {
    grid-template-columns: 1fr;
    gap: 9px;
  }

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

  .arch-bridge {
    flex-direction: row;
  }

  .arch-bridge i {
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 220, 255, 0.45), transparent);
  }

  .candidate-panel {
    padding: 15px;
  }

  .candidate-card {
    grid-template-columns: 29px minmax(0, 1fr);
  }

  .candidate-meta {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
    text-align: left;
  }

  .table-head,
  .matching-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .table-head p {
    text-align: left;
  }

  .team-card {
    padding: 22px;
  }

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

  .site-footer .attribution {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .brand-copy small {
    display: none;
  }

  .header-cta {
    white-space: nowrap;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-facts div,
  .hero-facts div + div {
    flex: 0 0 calc(50% - 7px);
    padding: 0;
    border: 0;
  }

  .model-stage {
    height: 330px;
  }

  .stage-status {
    display: none;
  }

  .nbv-summary strong {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
