/* SVD Lab · Enterprise (Mercor VI) Design System */
:root {
  color-scheme: light;
  --bg: #fcfdff;
  --bg-elevated: #f5f7fc;
  --surface: #ffffff;
  --raised: #fafbfe;
  --figure-bg: #ffffff;
  --text: #161a2c;
  --body: #39445c;
  --muted: #525e75;
  --line: #dce2ef;
  --line-strong: #cdd6e8;
  --indigo: #4f46e5;
  --accent: #4136bc;
  --accent-hover: #332991;
  --accent-soft: #edeaff;
  --accent-border: #dcd7fb;
  --blue: #1d4ed8;
  --blue-soft: #eff4ff;
  --blue-border: #c7d7fe;
  --shadow-sm: 0 2px 6px rgba(53, 73, 117, 0.05);
  --shadow-md: 0 12px 32px rgba(53, 73, 117, 0.08), 0 2px 5px rgba(53, 73, 117, 0.04);
  --shadow-lg: 0 18px 46px rgba(53, 73, 117, 0.10), 0 2px 8px rgba(53, 73, 117, 0.05);
  --sans: "Inter", "SF Pro Display", "Avenir Next", "Helvetica Neue", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 1rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }
section[id] { scroll-margin-top: 84px; }
figure, h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { color: inherit; }

a {
  color: var(--accent);
  text-underline-offset: .24em;
  overflow-wrap: anywhere;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}
a:hover { color: var(--accent-hover); }

:is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

code, kbd { font-family: var(--mono); overflow-wrap: anywhere; }
.container { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 60;
  inset: 12px auto auto 12px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #ffffff; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 780;
  letter-spacing: -.05em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }

.brand-mark {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.35);
}

.site-nav, .language { display: flex; flex-wrap: wrap; align-items: center; }

.site-nav {
  justify-content: center;
  gap: 6px clamp(14px, 2.2vw, 32px);
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 540;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 4px;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 650;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}

.language { justify-content: flex-end; gap: 5px; }

.lang-button {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.lang-button:hover {
  border-color: var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
}

.lang-button:is([aria-pressed="true"], [aria-current], .active, .is-active) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

/* Breadcrumbs */
.page-crumbs {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.crumbs-row,
.crumbs-row > ol {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-block: 0;
  padding-inline: 0;
  list-style: none;
}

.crumbs-row {
  min-height: 40px;
  align-content: center;
  padding-block: 8px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.crumbs-row a { color: var(--muted); text-decoration: none; }
.crumbs-row a:hover { color: var(--accent); text-decoration: underline; }
.crumbs-row [aria-current="page"] { color: var(--text); font-weight: 620; }

/* Hero Section — Clean Mercor Light Surface + Subtle Indigo Aura */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 64% 68% at 82% 24%, rgba(79, 70, 229, 0.075) 0%, rgba(163, 179, 255, 0.08) 42%, transparent 72%),
    radial-gradient(ellipse 48% 52% at 14% 16%, rgba(224, 231, 255, 0.45) 0%, transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(129, 152, 207, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(129, 152, 207, 0.13) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 86% 84% at 56% 42%, #000 16%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 86% 84% at 56% 42%, #000 16%, transparent 80%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(32px, 4.8vw, 64px);
  padding-block: clamp(56px, 7vw, 96px) clamp(62px, 7.4vw, 104px);
}

.hero-copy, .visual, .visual-panel, .benchmark-card, .method-card,
.package-card, .cdu-scenario, .note-card, .closing-card { min-width: 0; }

.hero-title {
  color: var(--text);
  font-size: clamp(2.55rem, 4.1vw, 3.85rem);
  font-weight: 760;
  line-height: 1.07;
  letter-spacing: -.048em;
  text-wrap: balance;
}

.hero-title :is(em, mark, span) { color: inherit; background: transparent; font-style: normal; }

html[lang="zh-CN"] .hero-title {
  max-width: 12ch;
  font-size: clamp(2.45rem, 4.2vw, 3.8rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.hero-subtitle {
  max-width: 44ch;
  margin-top: clamp(18px, 2vw, 24px);
  color: var(--muted);
  font-size: clamp(1.03rem, 1.38vw, 1.18rem);
  font-weight: 440;
  line-height: 1.58;
  letter-spacing: -.005em;
}

html[lang="zh-CN"] .hero-subtitle {
  line-height: 1.68;
}

.hero-description {
  max-width: 49ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(.96rem, 1.15vw, 1.05rem);
  line-height: 1.62;
}

/* Actions & Buttons — Mercor Enterprise Indigo */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: clamp(24px, 2.8vw, 30px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid #bec8dd;
  border-radius: 8px;
  padding: 9px 19px;
  color: var(--text);
  font-size: .89rem;
  font-weight: 640;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}

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

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(65, 54, 188, 0.22);
}

.button--primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(51, 41, 145, 0.28);
}

.button--secondary {
  border-color: #bec8dd;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.button--secondary:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Hero Right Panel — 01→04 Pipeline Architecture */
.task-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.task-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.task-panel-head h2 {
  color: var(--text);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.018em;
}

.pipeline-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font: 600 .72rem/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pipeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.45);
}

.task-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.task-stop {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: clamp(18px, 2vw, 22px);
  background: var(--surface);
  transition: background-color 180ms var(--ease);
}

.task-stop:hover { background: var(--raised); }

.task-stop:nth-child(4) {
  background: linear-gradient(155deg, #f5f3ff 0%, #ffffff 68%);
}

.task-stop:nth-child(4):hover {
  background: linear-gradient(155deg, #edeaff 0%, #fafbff 68%);
}

.task-stop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-stop-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.task-symbol {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.task-symbol svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-index {
  color: var(--muted);
  font: 600 .72rem/1 var(--mono);
  letter-spacing: .08em;
}

.task-arrow {
  color: #9aa7bf;
  font: 500 .78rem/1 var(--mono);
}

.task-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 650 .66rem/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.task-stop h3 {
  color: var(--text);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.015em;
}

.task-stop p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.54;
  overflow-wrap: anywhere;
}

/* Sections & Typography */
.section {
  padding-block: clamp(52px, 5.8vw, 82px);
  border-top: 1px solid var(--line);
}

html:not([data-page="home"]) main > .section:first-child {
  border-top: 0;
  padding-top: clamp(32px, 4.4vw, 60px);
}

.section--tint { background: var(--bg-elevated); }

.section-head {
  max-width: 72ch;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.section-head--compact {
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.visual-kicker,
.section-kicker {
  color: var(--accent);
  font: 650 .74rem/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.section-kicker { margin-bottom: 9px; }

.section-title {
  color: var(--text);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 750;
  line-height: 1.11;
  letter-spacing: -.048em;
  text-wrap: balance;
}

html[lang="zh-CN"] .section-title {
  letter-spacing: -.022em;
  line-height: 1.22;
}

.section-head .section-title { max-width: 24ch; text-wrap: pretty; }
.section-description {
  max-width: 64ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.64;
}

/* Featured MeshBench Teaser on Homepage */
.feature-teaser {
  padding-block: clamp(44px, 5.2vw, 72px);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.feature-card > * { min-width: 0; }

.feature-card h2 {
  color: var(--text);
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.feature-card h2 + p {
  max-width: 48ch;
  margin-top: 11px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.6;
}

.feature-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.feature-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: .83rem;
}

.feature-metric strong {
  color: var(--accent);
  font: 700 1.2rem/1 var(--mono);
}

.feature-card .actions { margin-top: 20px; }

/* Clean Light Instrument Frame for Scientific Figures */
.feature-art {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--figure-bg);
  box-shadow: var(--shadow-sm);
}

.art-frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  font: 550 .72rem/1.3 var(--mono);
  color: var(--muted);
}

.art-frame-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: .04em;
}

.art-frame-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
}

.feature-art img {
  width: 100%;
  height: auto;
  padding: 12px 10px 8px;
  background: var(--figure-bg);
  object-fit: contain;
}

.feature-art figcaption {
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

/* Related Cards Grid (Homepage & Case Studies) */
.home-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-related--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: clamp(20px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--body);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 170ms var(--ease), border-color 170ms var(--ease), background-color 170ms var(--ease), box-shadow 170ms var(--ease);
}

.related-card:hover,
.related-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.card-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--muted);
  font: 620 .67rem/1.3 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.card-pill--gold {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.card-pill--cyan {
  border-color: var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue);
}

.related-card :is(h2, h3) {
  color: var(--text);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: -.022em;
  transition: color 160ms var(--ease);
}

.related-card:hover :is(h2, h3),
.related-card:focus-within :is(h2, h3) {
  color: var(--accent);
}

.related-card p {
  font-size: .91rem;
  line-height: 1.56;
  color: var(--muted);
}

.card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.card-metric-chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--body);
  font: 550 .73rem/1.35 var(--mono);
}

.related-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 650;
}

.related-action .arrow {
  display: inline-block;
  transition: transform 160ms var(--ease);
}

.related-card:hover .related-action { color: var(--accent-hover); }
.related-card:hover .related-action .arrow { transform: translateX(3px); }

/* Homepage Dual-Channel Closing Band */
.closing-section {
  padding-block: clamp(44px, 5vw, 68px);
}

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

.closing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.closing-card--primary {
  border-color: var(--accent-border);
  background: linear-gradient(110deg, #f7f6ff 15%, #eff2ff 100%);
}

.closing-card h2 {
  color: var(--text);
  font-size: clamp(1.18rem, 1.8vw, 1.44rem);
  font-weight: 730;
  line-height: 1.26;
  letter-spacing: -.028em;
}

.closing-card p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.58;
  max-width: 48ch;
}

.closing-card .actions {
  margin-top: auto;
  padding-top: 12px;
}

/* Interactive MeshBench Visual Panel */
.benchmark-intro {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(26px, 4.8vw, 64px);
  margin-bottom: clamp(26px, 4vw, 48px);
}

.benchmark-intro .section-head {
  max-width: 44ch;
  margin-bottom: 0;
}

.benchmark-intro .section-title { font-size: clamp(2rem, 3.1vw, 2.9rem); }

.visual {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.visual-head, .visual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 13px;
  padding: 14px 20px;
}

.visual-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.visual-head h2 {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -.038em;
  line-height: 1.2;
  margin-top: 2px;
}

.visual-head h3 { color: var(--text); font-size: 1.05rem; font-weight: 700; }

.visual-head > .visual-caption {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font: 550 .75rem/1.4 var(--mono);
  color: var(--muted);
}

.visual-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.visual-tab {
  min-width: 0;
  min-height: 35px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 12px;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease);
}

.visual-tab:hover {
  border-color: var(--line);
  background: var(--bg-elevated);
  color: var(--text);
}

.visual-tab:is([aria-selected="true"], [aria-pressed="true"], .active, .is-active) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.visual-panel {
  display: grid;
  align-items: center;
  min-height: clamp(140px, 16vw, 232px);
  padding: 16px 16px 8px;
}

.visual-panel--scores { min-height: 0; padding-bottom: 14px; }

.visual-image {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--figure-bg);
}

img.visual-image, .visual-image img {
  width: 100%;
  padding: 10px 8px;
  object-fit: contain;
  background: var(--figure-bg);
}

.visual-foot {
  padding-top: 8px;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.visual-caption { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }

.visual-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.visual-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 13px 20px;
  color: var(--body);
  font-size: .84rem;
  line-height: 1.45;
}

.visual-stat + .visual-stat { border-left: 1px solid var(--line); }
.visual-stat :is(strong, b) { color: var(--accent); font: 700 1.26rem/1.2 var(--mono); }

/* Cards, Grids & Tables */
.benchmark-layout, .cdu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
}

.cdu-layout { align-items: start; gap: 30px; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.package-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.benchmark-card, .method-card, .package-card, .cdu-scenario, .note-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 2.2vw, 26px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.package-card {
  display: flex;
  flex-direction: column;
  border-top: 2.5px solid var(--indigo);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 3px 8px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 650 .73rem/1.2 var(--mono);
  letter-spacing: .06em;
}

.benchmark-card :is(h3, h4),
.method-card h3,
.package-card :is(h2, h3),
.cdu-scenario h3,
.note-card h3 {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -.022em;
}

.benchmark-card p,
.method-card p,
.package-card p,
.cdu-scenario p,
.note-body {
  margin-top: 9px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
}

.benchmark-card strong, .package-card strong { color: var(--accent); }

.artifact-list, .threshold-grid { display: grid; gap: 0; margin: 16px 0 0; }
.artifact-list div, .threshold-grid div {
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.artifact-list dt, .threshold-grid dt { color: var(--muted); font-size: .89rem; }
.artifact-list dd, .threshold-grid dd { margin: 0; color: var(--accent); font: 620 .84rem/1.5 var(--mono); text-align: right; }

.method-context { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.method-context p { margin: 0; font-size: .84rem; color: var(--muted); }
.method-index {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  padding: 4px 8px;
  border: 1px solid var(--accent-border);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 1.05rem/1 var(--mono);
}

.method-thresholds { margin-top: 15px; }
.method-thresholds summary, .note-card summary {
  color: var(--text);
  font-weight: 660;
  cursor: pointer;
  transition: color 150ms var(--ease);
}
.method-thresholds summary { color: var(--accent); font-size: .9rem; }
.note-card summary:hover { color: var(--accent); }

.score-table { width: 100%; margin-top: 12px; border-collapse: collapse; text-align: left; }
.score-table :is(th, td) {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: .86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.score-table th { color: var(--text); font-weight: 700; }
.score-table :is(td, th):first-child { padding-left: 0; }
.score-table :is(td, th):last-child { padding-right: 0; }
.score-table td :is(strong, b) { color: var(--accent); font-variant-numeric: tabular-nums; }
.score-table td > span { display: block; color: var(--muted); font-size: .84em; }
.score-table caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: .79rem; padding-top: 8px; }
.score-table--compact { margin-top: 0; }
.score-table--compact :is(td, th) { padding-block: 7px; }
.benchmark-card .evidence-note { color: var(--muted); font-size: .82rem; margin-top: 12px; }

.case-insight {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-top: 18px;
  align-items: start;
}
.case-insight > p { margin-top: 0; }

.paper-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.paper-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: .89rem;
  font-weight: 660;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.paper-link:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.paper-link > span { color: var(--muted); font-size: .8rem; font-weight: 500; }

.package-next { margin-top: 24px; }
.package-next a { color: var(--accent); font-weight: 660; text-decoration: none; }
.package-next a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Liquid Cooling Interactive Scenario — Mercor Blueprint Light Schematic */
.cdu-details { margin-top: 24px; }
.cdu-verification { margin-top: 20px; }
.cdu-verification summary > span { margin-left: 8px; }
.verify-count {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 .9rem/1.3 var(--mono);
}

.cdu-scenario {
  padding: 0;
  overflow: hidden;
  border-color: var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.cdu-scenario .visual-head { padding: 15px 20px; }
.cdu-scenario-body { padding: 18px 20px 20px; }

.cdu-loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr));
  gap: 8px;
  padding: 14px;
  border: 1px solid #dce4f5;
  border-radius: 10px;
  background-color: #f1f5fd;
  background-image:
    linear-gradient(rgba(129, 152, 207, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 152, 207, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
}

.loop-part {
  min-width: 0;
  padding: 10px;
  border: 1px solid #b9c8e8;
  border-radius: 7px;
  background: #ffffff;
  color: #283a60;
  font-size: .82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 3px rgba(40, 58, 96, 0.06);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}

.loop-pump { border-color: #627cb7; }
.cdu-scenario[data-offline="true"] .loop-pump {
  border-color: #c88359;
  color: #8a371a;
  background: #fff0e6;
}

.pump-indicator {
  display: inline-block;
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: #10b981;
  margin-inline-end: .48em;
}
.cdu-scenario[data-offline="true"] .pump-indicator { background: #a64e2c; }

.cdu-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.cdu-step {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font: 550 .82rem/1 var(--mono);
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease);
}
.cdu-step:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}
.cdu-step:is([aria-pressed="true"], [aria-selected="true"], .active, .is-active) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 680;
}

.cdu-readout {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 11px;
  min-height: 52px;
  margin-top: 14px;
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--indigo);
  border-radius: 8px;
  background: #f7f6ff;
  padding: 10px 14px;
  color: var(--body);
  font-size: .9rem;
}
.cdu-readout :is(strong, b) { color: var(--accent); font: 700 .95rem/1.3 var(--mono); }

.threshold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

.note-card { border-top: 2.5px solid var(--indigo); }
.note-body > :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 9px; }
.note-body :is(ul, ol) { padding-left: 1.3em; }

/* Contact & Data Partners — Mercor Soft Lavender Callout */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  padding: clamp(24px, 3.8vw, 48px);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  background: linear-gradient(110deg, #f7f6ff 15%, #eff2ff 100%);
  box-shadow: var(--shadow-md);
}

.contact-prompts {
  border-left: 1px solid #d8dcf3;
  padding: 8px 0 8px 26px;
  margin-top: 8px;
  color: var(--body);
  font-size: .94rem;
}
.contact-prompts h3 { color: var(--text); margin-bottom: 12px; font-size: 1.04rem; font-weight: 700; }
.contact-prompts :is(ul, ol) { margin: 0; padding-left: 1.25em; }
.contact-prompts li + li { margin-top: 8px; }
.contact-detail { margin-top: 16px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.preview-note { margin-top: 10px; color: var(--muted); font-size: .82rem; }
.card-status { color: var(--accent); font-size: .8rem; }

.partner-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: center;
  margin-top: clamp(24px, 3.8vw, 44px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  background: linear-gradient(110deg, #f7f6ff 15%, #eff2ff 100%);
  box-shadow: var(--shadow-sm);
}
.partner-closing h2 { margin-bottom: 6px; font-size: 1.16rem; font-weight: 720; color: var(--text); }
.partner-closing p { color: var(--muted); font-size: .93rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-block: 22px;
  font-size: .83rem;
}

/* Responsive Breakpoints */
@media (max-width: 1020px) {
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-related--three, .package-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-card,
  .benchmark-intro,
  .benchmark-layout,
  .cdu-layout,
  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .hero-grid { gap: 34px; padding-block: 44px 56px; }
  .task-panel, .visual, .feature-art { max-width: 720px; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-prompts { padding: 18px 0 0; border-left: 0; border-top: 1px solid #d8dcf3; }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 10px;
    min-height: 0;
    padding-block: 10px 9px;
  }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 10px;
    padding-top: 9px;
  }
  .site-nav a {
    font-size: .82rem;
    white-space: normal;
    line-height: 1.3;
  }
  .language { grid-column: 2; grid-row: 1; }
}

@media (max-width: 610px) {
  .hero-title { font-size: clamp(2.1rem, 8.8vw, 3rem); letter-spacing: -.04em; }
  html[lang="zh-CN"] .hero-title { font-size: clamp(2.1rem, 8.5vw, 2.95rem); }
  .task-path,
  .home-related,
  .home-related--three,
  .package-grid,
  .package-grid--three,
  .method-grid,
  .review-grid,
  .case-insight,
  .threshold-grid,
  .partner-closing {
    grid-template-columns: minmax(0, 1fr);
  }
  .cdu-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-head, .visual-foot { padding-inline: 14px; }
  .visual-stats > .visual-stat { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
