:root {
  --ink: #101318;
  --muted: #5d6675;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dfe3e8;
  --green: #2f7d64;
  --amber: #c4873e;
  --blue: #315b8f;
  --dark: #111827;
  --dark-muted: #c7d0dc;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
  background: rgba(251, 250, 246, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  min-height: calc(80vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 72px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 900px;
  font-size: clamp(2.65rem, 4.8vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
}

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

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

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.flow-panel {
  display: grid;
  gap: 4px;
  width: min(100%, 520px);
  margin-left: auto;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 100, 0.09), transparent 34%),
    linear-gradient(315deg, rgba(49, 91, 143, 0.11), transparent 40%),
    var(--panel);
  box-shadow: 0 24px 80px rgba(16, 19, 24, 0.10);
}

.flow-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 750;
}

.flow-node.strong {
  color: var(--ink);
  border-color: rgba(47, 125, 100, 0.45);
}

.flow-node::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.flow-node.strong::after {
  background: var(--green);
}

.flow-line {
  width: 1px;
  height: 5px;
  margin: -3px auto;
  background: var(--line);
}

.rankings-hero {
  display: grid;
  gap: 22px;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 72px) clamp(48px, 6vw, 72px);
}

.rankings-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.rankings-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.rankings-intro .lede {
  margin-bottom: 0;
}

.ranking-switch {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.ranking-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.ranking-switch button.active {
  background: var(--dark);
  color: #fff;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.market-tabs a:first-child,
.market-tabs a:hover {
  color: var(--ink);
  background: rgba(47, 125, 100, 0.08);
}

.section {
  padding: clamp(62px, 8vw, 108px) clamp(20px, 5vw, 72px);
  scroll-margin-top: 86px;
}

.section.compact {
  padding-top: clamp(32px, 5vw, 72px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.03rem;
}

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

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

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

.card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: var(--panel);
}

.card-kicker {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p,
.join-box p {
  color: var(--muted);
}

.taxonomy-card {
  min-height: 300px;
}

.taxonomy-card .card-kicker {
  color: var(--green);
}

.paths-section {
  background: #fff;
  border-block: 1px solid rgba(16, 19, 24, 0.08);
}

.path-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 320px;
  padding: 28px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 100, 0.07), transparent 40%),
    var(--panel);
}

.path-card .card-kicker,
.path-card h3,
.path-card p {
  margin-bottom: 0;
}

.path-card p {
  color: var(--muted);
}

.path-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
}

.object-model {
  background: #fff;
  border-block: 1px solid rgba(16, 19, 24, 0.08);
}

.model-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: var(--panel);
}

.model-step {
  min-height: 250px;
  padding: 24px;
  border-right: 1px solid rgba(16, 19, 24, 0.08);
}

.model-step:last-child {
  border-right: 0;
}

.model-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.model-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.proof-layer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(47, 125, 100, 0.05);
  font-size: 0.92rem;
}

.proof-layer strong {
  color: var(--ink);
}

.product-flow {
  background: #fff;
  border-block: 1px solid rgba(16, 19, 24, 0.08);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: var(--panel);
}

.workflow-step {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid rgba(16, 19, 24, 0.08);
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step span {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.workflow-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.workflow-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.ratings {
  background: #fff;
  border-block: 1px solid rgba(16, 19, 24, 0.08);
}

.leaderboard-shell {
  display: grid;
  gap: 18px;
}

.leaderboard-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.leaderboard-scroll {
  overflow-x: auto;
  border: 1px solid rgba(16, 19, 24, 0.11);
  border-radius: 8px;
  background: var(--panel);
}

.leaderboard-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
  text-align: left;
  vertical-align: middle;
}

.leaderboard-table th {
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-table td {
  color: var(--ink);
  font-size: 0.95rem;
}

.leaderboard-table tr:last-child td {
  border-bottom: 0;
}

.leaderboard-table small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.positive {
  color: var(--green);
  font-weight: 800;
}

.negative {
  color: #b42318;
  font-weight: 800;
}

.score-pill,
.score-large {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 850;
}

.score-pill {
  min-width: 42px;
  min-height: 34px;
  padding: 0 8px;
}

.score-large {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
}

.badge,
.flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 4px 2px 0;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  background: rgba(47, 125, 100, 0.1);
  color: var(--green);
}

.badge.clean {
  background: rgba(49, 91, 143, 0.1);
  color: var(--blue);
}

.flag {
  background: rgba(196, 135, 62, 0.14);
  color: #8a5a21;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(16, 19, 24, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.text-button:hover {
  border-color: var(--ink);
}

.vault-detail {
  padding: 26px;
  border: 1px solid rgba(16, 19, 24, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 100, 0.08), transparent 36%),
    var(--paper);
}

.detail-empty {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.detail-head .card-kicker {
  margin-bottom: 8px;
}

.detail-head h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
}

.vault-detail p {
  max-width: 760px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.detail-grid div {
  padding: 14px;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-grid span,
.tag-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-stack {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 20px;
}

.score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
}

.score-line span {
  color: var(--muted);
  font-weight: 750;
}

.score-line strong {
  text-align: right;
}

.tag-group {
  margin-top: 16px;
}

.evidence-list {
  margin-top: 18px;
}

.evidence-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-link {
  margin-top: 20px;
}

.page-hero {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 64px);
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero .lede {
  max-width: 780px;
}

.page-shell {
  display: grid;
  gap: 24px;
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 72px);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.method-card,
.profile-panel {
  padding: 26px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: var(--panel);
}

.method-card p,
.profile-panel p,
.profile-panel li {
  color: var(--muted);
}

.method-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  padding: 16px;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.registration-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 125, 100, 0.08), transparent 34%),
    var(--panel);
}

.registration-copy,
.agent-builder,
.agent-card-preview {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.registration-copy p {
  color: var(--muted);
}

.registration-steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: registration;
}

.registration-steps li {
  counter-increment: registration;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
}

.registration-steps li::before {
  content: counter(registration);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 0.76rem;
}

.agent-builder {
  display: grid;
  gap: 14px;
}

.agent-builder label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.agent-builder input,
.agent-builder select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(16, 19, 24, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.agent-builder input:focus,
.agent-builder select:focus {
  outline: 2px solid rgba(47, 125, 100, 0.24);
  border-color: rgba(47, 125, 100, 0.58);
}

.agent-card-preview {
  display: grid;
  gap: 14px;
  align-content: start;
}

.agent-card-preview pre {
  min-height: 330px;
  max-height: 520px;
  margin: 0;
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: #101318;
  color: #e6edf3;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.weight-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
}

.weight-row:last-child {
  border-bottom: 0;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 19, 24, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.tier-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.tier-row {
  display: grid;
  grid-template-columns: 90px 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
}

.tier-row:last-child {
  border-bottom: 0;
}

.tier-head {
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-row span:last-child {
  color: var(--muted);
}

.tier-head span:last-child {
  color: #fff;
}

.scorecard-summary {
  display: grid;
  align-content: start;
  gap: 14px;
}

.scorecard-summary .card-kicker,
.scorecard-summary h3,
.scorecard-summary p {
  margin-bottom: 0;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-row {
  display: grid;
  grid-template-columns: auto minmax(130px, 0.55fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.task-row > span:not(.flag):not(.badge) {
  color: var(--muted);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.profile-metric {
  padding: 16px;
  border: 1px solid rgba(16, 19, 24, 0.08);
  border-radius: 8px;
  background: var(--paper);
}

.profile-metric span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-metric strong {
  font-size: 1.15rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 18px;
}

.profile-panel ul {
  margin: 0;
  padding-left: 20px;
}

.vaults {
  background: #f3f5f0;
  border-block: 1px solid rgba(16, 19, 24, 0.08);
}

.vault-board {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(16, 19, 24, 0.11);
  border-radius: 8px;
  background: var(--panel);
}

.vault-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(260px, 1.8fr) minmax(180px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(16, 19, 24, 0.08);
}

.vault-row:last-child {
  border-bottom: 0;
}

.vault-head {
  background: var(--dark);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vault-row strong {
  font-size: 1.02rem;
}

.vault-row span {
  color: var(--muted);
}

.vault-head span {
  color: #fff;
}

.vault-row em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.dark {
  background: var(--dark);
  color: #fff;
}

.dark .eyebrow {
  color: #92d0ba;
}

.trust-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-row span {
  color: #92d0ba;
  font-weight: 800;
}

.trust-row p {
  max-width: 840px;
  margin-bottom: 0;
  color: var(--dark-muted);
  font-size: clamp(1.02rem, 1.7vw, 1.35rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.join-box {
  padding: 28px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: var(--panel);
}

.faq {
  background: #fff;
  border-top: 1px solid rgba(16, 19, 24, 0.08);
}

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

.faq-grid article {
  padding: 26px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  background: var(--paper);
}

.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(16, 19, 24, 0.08);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav {
    display: flex;
    order: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    gap: 5px;
    padding-top: 2px;
    color: var(--ink);
    font-size: 0.78rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(16, 19, 24, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    font-weight: 750;
  }

  .nav a:hover {
    background: rgba(47, 125, 100, 0.08);
  }

  .section {
    scroll-margin-top: 138px;
  }

  .hero,
  .grid.three,
  .grid.two,
  .faq-grid,
  .split,
  .vault-row,
  .model-chain,
  .workflow-strip,
  .detail-grid,
  .method-grid,
  .registration-workspace,
  .profile-layout,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .flow-panel {
    margin-left: 0;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vault-row {
    gap: 6px;
    padding: 18px;
  }

  .workflow-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 19, 24, 0.08);
  }

  .workflow-step:last-child {
    border-bottom: 0;
  }

  .model-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 19, 24, 0.08);
  }

  .model-step:last-child {
    border-bottom: 0;
  }

  .registration-workspace,
  .registration-copy,
  .agent-builder,
  .agent-card-preview {
    padding: 18px;
  }

  .agent-card-preview pre {
    min-height: 260px;
    max-height: 420px;
  }

  .site-footer {
    flex-direction: column;
  }

  .leaderboard-meta,
  .detail-head {
    flex-direction: column;
  }

  .leaderboard-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .leaderboard-scroll {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .leaderboard-table thead {
    display: none;
  }

  .leaderboard-table,
  .leaderboard-table tbody,
  .leaderboard-table tr,
  .leaderboard-table td {
    display: block;
    width: 100%;
  }

  .leaderboard-table tr {
    padding: 14px;
    border: 1px solid rgba(16, 19, 24, 0.11);
    border-radius: 8px;
    background: var(--panel);
  }

  .leaderboard-table td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 19, 24, 0.07);
    font-size: 0.9rem;
  }

  .leaderboard-table td:first-child {
    padding-top: 0;
  }

  .leaderboard-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .leaderboard-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .leaderboard-table td[data-label="Vault"],
  .leaderboard-table td[data-label="Vault / Account"],
  .leaderboard-table td[data-label="Agent"],
  .leaderboard-table td[data-label="Status"],
  .leaderboard-table td[data-label="Detail"] {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .leaderboard-table td[data-label="Detail"] .text-button {
    width: 100%;
  }

  .leaderboard-table td[data-label="Detail"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 16px;
  }

  .hero,
  .rankings-hero,
  .section {
    padding-inline: 16px;
  }

  .hero,
  .rankings-hero {
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .rankings-intro {
    align-items: start;
    flex-direction: column;
  }

  .rankings-intro .hero-actions {
    width: 100%;
  }

  .ranking-switch {
    width: 100%;
  }

  .ranking-switch button {
    flex: 1 1 0;
  }

  .market-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .market-tabs::-webkit-scrollbar {
    display: none;
  }

  .market-tabs a {
    flex: 0 0 auto;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.25rem);
    line-height: 1.1;
    margin-bottom: 18px;
  }

  h2 {
    font-size: clamp(1.8rem, 8.4vw, 2.35rem);
    line-height: 1.08;
  }

  .lede {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .flow-panel {
    padding: 16px;
    box-shadow: 0 18px 56px rgba(16, 19, 24, 0.08);
  }

  .flow-node {
    min-height: 44px;
    padding-inline: 14px;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .card,
  .path-card,
  .join-box,
  .vault-detail {
    padding: 20px;
  }

  .taxonomy-card,
  .card,
  .path-card {
    min-height: auto;
  }

  .card-kicker {
    margin-bottom: 22px;
  }

  .leaderboard-meta {
    gap: 4px;
    font-size: 0.8rem;
  }

  .leaderboard-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .leaderboard-scroll {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .leaderboard-table thead {
    display: none;
  }

  .leaderboard-table,
  .leaderboard-table tbody,
  .leaderboard-table tr,
  .leaderboard-table td {
    display: block;
    width: 100%;
  }

  .leaderboard-table tr {
    padding: 14px;
    border: 1px solid rgba(16, 19, 24, 0.11);
    border-radius: 8px;
    background: var(--panel);
  }

  .leaderboard-table td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 19, 24, 0.07);
    font-size: 0.9rem;
  }

  .leaderboard-table td:first-child {
    padding-top: 0;
  }

  .leaderboard-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .leaderboard-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .leaderboard-table td[data-label="Vault"],
  .leaderboard-table td[data-label="Vault / Account"],
  .leaderboard-table td[data-label="Linked Vaults"],
  .leaderboard-table td[data-label="Agent"],
  .leaderboard-table td[data-label="Status"],
  .leaderboard-table td[data-label="Detail"] {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .leaderboard-table td[data-label="Vault"]::before,
  .leaderboard-table td[data-label="Vault / Account"]::before,
  .leaderboard-table td[data-label="Linked Vaults"]::before,
  .leaderboard-table td[data-label="Agent"]::before,
  .leaderboard-table td[data-label="Status"]::before,
  .leaderboard-table td[data-label="Detail"]::before {
    margin-bottom: 0;
  }

  .leaderboard-table td[data-label="Detail"] .text-button {
    width: 100%;
  }

  .score-large {
    width: 54px;
    height: 54px;
  }

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

  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .page-shell {
    padding-inline: 16px;
  }

  .method-card,
  .profile-panel {
    padding: 20px;
  }

  .weight-row {
    grid-template-columns: 1fr 48px;
  }

  .weight-row .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tier-row {
    grid-template-columns: 74px minmax(54px, 0.42fr) minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    font-size: 0.88rem;
  }

  .task-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .task-row .text-button {
    width: 100%;
  }

  .faq-grid article {
    padding: 20px;
  }
}
