:root {
  --bg: #f6f7fb;
  --bg-deep: #edf2ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-alt: #f2f7ff;
  --ink: #111827;
  --muted: #5f6b85;
  --line: rgba(17, 24, 39, 0.1);
  --primary: #246bff;
  --primary-deep: #1543b3;
  --accent: #17b890;
  --accent-soft: #dff8f0;
  --warm: #fff2dc;
  --shadow: 0 20px 60px rgba(37, 72, 143, 0.14);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(36, 107, 255, 0.13), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(23, 184, 144, 0.13), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 48%, #f5f8ff 100%);
  font-family: "Manrope", sans-serif;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 107, 255, 0.09), transparent 16%),
    radial-gradient(circle at 78% 24%, rgba(23, 184, 144, 0.08), transparent 14%),
    radial-gradient(circle at 68% 70%, rgba(255, 200, 96, 0.08), transparent 18%);
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 56px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.wordmark,
.site-nav,
.hero-pills span,
.card-label,
.eyebrow,
.domain-kicker,
.citation-label,
.proof-strip span,
.feature-panel span,
.step-number,
.results-tags span {
  font-family: "IBM Plex Mono", monospace;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark-copy {
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
}

.header-cta {
  flex-shrink: 0;
}

.hero,
.feature-split,
.showcase-card,
.results-banner,
.final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  text-align: center;
  padding: 42px;
}

.eyebrow,
.domain-kicker,
.citation-label {
  margin: 0;
  color: var(--primary-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.showcase-copy h2,
.results-copy h2,
.final-cta-copy h2,
.hero-card-finding h2 {
  margin: 10px 0 18px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 24ch;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.lede,
.hero-people p,
.section-heading p,
.section-copy p,
.feature-panel p,
.path-step p,
.showcase-copy p,
.domain-card p,
.domain-card li,
.example-copy,
.results-copy p,
.proof-strip p,
.ambient-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 18px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-deep);
  box-shadow: var(--shadow);
}

.icon-link-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.icon-link-symbol svg {
  width: 22px;
  height: 22px;
  display: block;
}

.icon-link-paper .icon-link-symbol {
  font-size: 0.74rem;
}

.icon-link-dataset .icon-link-symbol {
  font-size: 1.1rem;
}

.lede,
.hero-people {
  margin-left: auto;
  margin-right: auto;
}

.lede {
  max-width: 980px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.78;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.proof-strip article:hover,
.feature-panel:hover,
.path-step:hover,
.domain-card:hover,
.example-card:hover,
.showcase-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 16px 40px rgba(36, 107, 255, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-pills span,
.results-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(36, 107, 255, 0.12);
  border-radius: 999px;
  background: rgba(36, 107, 255, 0.06);
  color: var(--primary-deep);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.hero-people {
  max-width: 62ch;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.hero-people strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-people p {
  margin: 0;
}

.hero-card-metrics {
  left: 10%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(420px, 86%);
  padding: 18px;
}

.mini-stat {
  padding: 16px 14px;
  border-radius: 20px;
  background: var(--surface-alt);
  text-align: center;
}

.mini-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.proof-strip,
.feature-panel-grid,
.pathway-grid,
.domain-grid,
.example-grid {
  display: grid;
  gap: 18px;
}

.proof-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.proof-strip article,
.feature-panel,
.path-step,
.domain-card,
.example-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.proof-strip span,
.feature-panel span {
  display: block;
  color: var(--primary-deep);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  margin: 10px 0 10px;
  font-size: 1.28rem;
}

.proof-strip p {
  margin: 0;
}

.section {
  margin-top: 52px;
}

.feature-split {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 28px;
  padding: 34px;
}

.section-copy h2,
.feature-panel h3,
.path-step h3,
.domain-card h3,
.example-card h3 {
  margin: 10px 0 12px;
  font-size: 1.7rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-copy h2,
.section-heading h2,
.showcase-copy h2,
.results-copy h2,
.final-cta-copy h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
}

.section-copy p {
  margin: 0 0 16px;
}

.path-step h3,
.domain-card h3,
.example-card h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.path-step p {
  margin: 0;
}

.reasoning-overview {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 30px;
}

.reasoning-heading {
  max-width: 880px;
  margin-bottom: 24px;
}

.reasoning-overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.reasoning-overview-copy {
  display: grid;
  gap: 14px;
}

.overview-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.overview-card p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.reasoning-visual-wrap {
  position: relative;
}

.reasoning-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 48%, rgba(36, 107, 255, 0.06), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(23, 184, 144, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 255, 0.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bubble {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition:
    opacity 500ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    top 700ms cubic-bezier(0.22, 1, 0.36, 1),
    right 700ms cubic-bezier(0.22, 1, 0.36, 1),
    bottom 700ms cubic-bezier(0.22, 1, 0.36, 1),
    left 700ms cubic-bezier(0.22, 1, 0.36, 1),
    width 700ms cubic-bezier(0.22, 1, 0.36, 1),
    height 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reasoning-caption {
  position: absolute;
  top: 7%;
  left: 50%;
  z-index: 1;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.bubble-core {
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transform: translate(-50%, -50%);
}

.bubble-side {
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.bubble-rel {
  top: 50%;
  left: 50%;
  width: 290px;
  height: 290px;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(36, 107, 255, 0.14), rgba(23, 184, 144, 0.18));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.bubble-label {
  display: block;
  max-width: 10ch;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.rel-domains {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 200px;
}

.rel-domains span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bubble-domain {
  top: 50%;
  left: 50%;
  width: 144px;
  height: 144px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.reasoning-visual[data-stage="reasoning"] .bubble-core {
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reasoning-visual[data-stage="reasoning"] .bubble-side,
.reasoning-visual[data-stage="reasoning"] .bubble-rel,
.reasoning-visual[data-stage="reasoning"] .reasoning-caption,
.reasoning-visual[data-stage="reasoning"] .bubble-domain {
  opacity: 0;
}

.reasoning-visual[data-stage="split"] .bubble-core {
  top: 28%;
  left: 50%;
  width: 180px;
  height: 180px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.reasoning-visual[data-stage="split"] .reasoning-caption {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reasoning-visual[data-stage="split"] .bubble-side-top {
  top: 22%;
  left: 50%;
  width: 184px;
  height: 184px;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.reasoning-visual[data-stage="split"] .bubble-side-left {
  top: 52%;
  left: 8%;
  width: 184px;
  height: 184px;
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reasoning-visual[data-stage="split"] .bubble-side-right {
  top: 52%;
  right: 8%;
  left: auto;
  width: 184px;
  height: 184px;
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reasoning-visual[data-stage="split"] .bubble-rel {
  right: 50%;
  bottom: 6%;
  left: auto;
  top: auto;
  width: 184px;
  height: 184px;
  opacity: 1;
  transform: translate(50%, 0) scale(1);
}

.reasoning-visual[data-stage="domains"] .bubble-core,
.reasoning-visual[data-stage="domains"] .bubble-side,
.reasoning-visual[data-stage="domains"] .reasoning-caption {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
}

.reasoning-visual[data-stage="domains"] .bubble-rel {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 300px;
  height: 300px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reasoning-visual[data-stage="domains"] .bubble-domain-top {
  top: 8%;
  left: 50%;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.reasoning-visual[data-stage="domains"] .bubble-domain-left {
  left: 10%;
  bottom: 12%;
  top: auto;
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reasoning-visual[data-stage="domains"] .bubble-domain-right {
  right: 10%;
  bottom: 12%;
  left: auto;
  top: auto;
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.domain-explorer {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  padding: 30px;
}

.explorer-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.explorer-nav {
  display: grid;
  gap: 12px;
}

.generator-controls {
  display: grid;
  gap: 12px;
  align-content: start;
}

.explorer-tab {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.explorer-tab.is-active,
.results-tab.is-active {
  border-color: rgba(36, 107, 255, 0.28);
  background: linear-gradient(135deg, rgba(36, 107, 255, 0.08), rgba(23, 184, 144, 0.08));
}

.results-tab {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.explorer-tab span,
.results-tab span,
.domain-detail strong,
.control span,
.formula-pill {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.explorer-tab span {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-deep);
  font-size: 0.72rem;
}

.results-tab span {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-deep);
  font-size: 0.72rem;
}

.explorer-tab strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.results-tab strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.explorer-tab p,
.results-tab p,
.domain-panel-copy p,
.domain-detail p,
.control output {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.explorer-panels {
  position: relative;
}

.task-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}

.task-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(242, 247, 255, 0.86);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-tab.is-active {
  border-color: rgba(36, 107, 255, 0.28);
  background: rgba(36, 107, 255, 0.1);
  color: var(--primary-deep);
}

.result-task-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(36, 107, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(238, 244, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.result-task-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 107, 255, 0.28);
  color: var(--primary-deep);
}

.result-task-tab.is-active {
  border-color: rgba(36, 107, 255, 0.34);
  background: linear-gradient(135deg, rgba(36, 107, 255, 0.14), rgba(23, 184, 144, 0.12));
  box-shadow: 0 10px 22px rgba(36, 107, 255, 0.1);
  color: var(--primary-deep);
}

.domain-panel {
  display: none;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
}

.domain-panel.is-active {
  display: block;
}

.results-panel {
  display: none;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
}

.results-panel.is-active {
  display: block;
}

.results-panel-title {
  margin: 10px 0 10px;
  font-size: 1.6rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.results-panel-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.results-task-summary {
  display: none;
}

.results-task-summary.is-active {
  display: block;
}

.task-view {
  display: none;
}

.task-view.is-active {
  display: block;
}

.domain-panel-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.domain-panel-copy h3 {
  margin: 10px 0 12px;
  font-size: 1.7rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.domain-detail {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(242, 247, 255, 0.74);
}

.domain-detail strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-size: 0.74rem;
}

.domain-illustration {
  display: grid;
  gap: 10px;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.9), rgba(248, 251, 255, 0.9));
}

.math-illustration {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: center;
}

.matrix-cell,
.molecule-card,
.taxon-node,
.motif-chip,
.formula-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.matrix-cell {
  min-height: 82px;
  padding: 10px 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.accent-cell {
  background: linear-gradient(180deg, rgba(36, 107, 255, 0.12), rgba(36, 107, 255, 0.06));
  color: var(--primary-deep);
}

.missing-cell,
.missing-card {
  border-style: dashed;
  color: var(--primary-deep);
}

.missing-cell {
  font-size: 1.35rem;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .math-illustration {
    gap: 10px;
    padding: 18px;
  }

  .matrix-cell {
    min-height: 72px;
    padding: 9px 7px;
    font-size: 0.8rem;
  }

  .missing-cell {
    font-size: 1.2rem;
  }
}

.bio-illustration {
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
}

.taxon-node {
  min-height: 76px;
  font-weight: 700;
}

.highlight-node {
  background: rgba(23, 184, 144, 0.12);
}

.motif-chip {
  grid-column: 1 / -1;
  min-height: 64px;
  color: var(--primary-deep);
  font-size: 0.88rem;
}

.chem-illustration {
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
}

.formula-pill {
  grid-column: 1 / -1;
  min-height: 56px;
  color: var(--primary-deep);
  font-size: 0.82rem;
}

.molecule-card {
  min-height: 120px;
  padding: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
}

.generator-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-top: 20px;
}

.bio-generator-controls-shell {
  display: grid;
  align-content: start;
  min-width: 0;
}

.bio-generator-controls-shell .generator-controls {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.bio-generator-controls-title {
  margin: -2px 0 4px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.control {
  display: grid;
  gap: 8px;
}

.control-choice {
  align-content: start;
}

.control span {
  color: var(--primary-deep);
  font-size: 0.72rem;
}

.control input[type="range"] {
  width: 100%;
}

.control output {
  font-size: 0.85rem;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  min-width: 56px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.choice-chip:hover {
  border-color: rgba(36, 107, 255, 0.2);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.choice-chip.is-active {
  border-color: rgba(36, 107, 255, 0.28);
  background: linear-gradient(180deg, rgba(36, 107, 255, 0.14), rgba(36, 107, 255, 0.08));
  color: var(--primary-deep);
}

.domain-generate {
  width: 100%;
  max-width: 220px;
  height: 50px;
  align-self: start;
}

.chem-live-illustration {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  min-height: 220px;
  padding: 14px !important;
}

.mol-vis-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  min-width: 90px;
  max-width: 110px;
}

.mol-vis-card-text {
  justify-content: center;
  min-height: 80px;
}

.mol-vis-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.mol-vis-img {
  width: 90px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.mol-vis-smiles {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
}

.mol-vis-smiles-large {
  font-size: 0.72rem;
  max-width: 90px;
}

.domain-output {
  min-height: 250px;
  margin: 0;
}

.biology-generator-output {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin-top: 20px;
}

.bio-generator-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bio-viz-panel {
  display: grid;
  gap: 8px;
}

.bio-viz-canvas {
  min-height: 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  overflow: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.bio-viz-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

#bio-tree-viz {
  display: flex;
  align-items: center;
  justify-content: center;
}

#bio-tree-viz svg {
  margin: auto 0;
}

.bio-tree-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  fill: var(--muted);
}

.bio-tree-label.is-highlight {
  fill: #d9485f;
  font-weight: 700;
}

.bio-tree-branch {
  stroke: rgba(17, 24, 39, 0.22);
  stroke-width: 1.6;
  fill: none;
}

.bio-tree-tip {
  fill: #d9485f;
}

.bio-align-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  fill: var(--muted);
}

.bio-align-label.is-highlight {
  fill: #d9485f;
  font-weight: 700;
}

.bio-align-block {
  fill: rgba(217, 72, 95, 0.14);
  stroke: rgba(17, 24, 39, 0.75);
  stroke-width: 2;
}

.bio-align-row-highlight {
  fill: rgba(217, 72, 95, 0.12);
}

.bio-align-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.bio-align-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bio-align-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.embedded-results {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.embedded-results-copy h3 {
  margin: 10px 0 12px;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.embedded-results-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.results-chart-shell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-chart {
  width: 100%;
  max-width: 760px;
}

.results-panel[data-results-domain="algebra"] .results-detail-grid {
  grid-template-columns: 1fr;
}

.results-chart[data-chart-domain="algebra"] {
  max-width: 100%;
}

.results-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-frame {
  fill: rgba(255, 255, 255, 0.82);
}

.chart-grid {
  stroke: rgba(17, 24, 39, 0.08);
  stroke-width: 1;
}

.chart-axis {
  stroke: rgba(17, 24, 39, 0.18);
  stroke-width: 1.2;
}

.chart-tick,
.chart-label,
.chart-legend {
  fill: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
}

.chart-title {
  fill: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  stroke: #fff;
  stroke-width: 2;
}

.heatmap-super-title,
.heatmap-panel-title,
.heatmap-row-label,
.heatmap-col-label,
.heatmap-axis-note,
.heatmap-axis-label,
.heatmap-cell-text {
  font-family: "IBM Plex Mono", monospace;
}

.heatmap-panel-title {
  fill: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.heatmap-super-title {
  fill: var(--ink);
  font-size: 26px;
  font-weight: 700;
}

.heatmap-row-label,
.heatmap-col-label,
.heatmap-axis-note,
.heatmap-axis-label {
  fill: var(--muted);
  font-size: 18px;
}

.heatmap-cell-text {
  font-size: 18px;
  font-weight: 600;
}

.results-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.results-detail-grid > div:first-child {
  min-width: 0;
}

.result-task-view {
  display: none;
}

.result-task-view.is-active {
  display: block;
}

.results-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.results-table th,
.results-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.results-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-deep);
}

.results-table td {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 196, 86, 0.26);
  color: #9a5b00;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.score-cell {
  color: var(--primary-deep);
  font-weight: 700;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p {
  margin: 0;
}

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

.path-step {
  position: relative;
  overflow: hidden;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  border-radius: 18px;
  background: var(--warm);
  color: var(--primary-deep);
  font-size: 0.92rem;
}

.showcase-grid {
  display: grid;
  gap: 20px;
}

.showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 26px;
}

.showcase-card-reverse .showcase-copy {
  order: 1;
}

.showcase-card-reverse .showcase-media {
  order: 2;
}

.showcase-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ambient-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 28px;
}

.ambient-copy {
  max-width: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
}

.ambient-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ambient-copy strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.ambient-copy p {
  margin: 0;
}

.showcase-copy p {
  margin-top: 0;
  margin-bottom: 16px;
}

.showcase-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.rc-ladder {
  display: grid;
  gap: 12px;
}

.ladder-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.ladder-step span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ladder-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ladder-emphasis {
  background: linear-gradient(135deg, rgba(36, 107, 255, 0.1), rgba(23, 184, 144, 0.1));
}

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

.domain-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.example-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.example-card h3 {
  margin-top: 8px;
}

.example-copy {
  margin: 0;
}

.example-output {
  min-height: 280px;
  margin: 18px 0 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcff;
}

.example-output code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  color: #24324f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.7;
}

.results-banner,
.final-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px;
}

.results-copy,
.final-cta-copy {
  align-self: center;
}

.bibtex-entry {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.bibtex-entry code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  color: #24324f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.7;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.resource-links a {
  color: var(--primary-deep);
}

.header-cta {
  min-width: 64px;
}

.results-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.results-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f7faff;
}

.results-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .feature-split,
  .reasoning-overview-grid,
  .explorer-layout,
  .domain-panel-grid,
  .generator-shell,
  .embedded-results,
  .showcase-card,
  .results-banner,
  .final-cta {
    grid-template-columns: 1fr;
  }
  .proof-strip,
  .pathway-grid,
  .domain-grid,
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .bio-generator-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .hero,
  .reasoning-overview,
  .feature-split,
  .results-banner,
  .final-cta {
    padding: 24px;
  }

  .domain-explorer {
    padding: 22px;
  }

  .proof-strip,
  .pathway-grid,
  .domain-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .explorer-nav {
    grid-template-columns: 1fr;
  }

  .task-nav {
    overflow-x: auto;
  }

  .reasoning-visual {
    min-height: 420px;
    display: grid;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.9));
  }

  .bubble {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 84px;
    border-radius: 28px;
    padding: 20px;
  }

  .bubble-core,
  .bubble-rel {
    min-height: 140px;
  }

  .bubble-label,
  .bubble-core {
    max-width: none;
  }

  .bubble-core,
  .bubble-side-top,
  .bubble-side-left,
  .bubble-side-right,
  .bubble-rel,
  .bubble-domain {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .bubble-domain {
    min-height: 96px;
  }

  .domain-panel {
    padding: 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .showcase-card {
    padding: 20px;
  }

  .site-header {
    justify-content: center;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .example-header {
    flex-direction: column;
  }
}
