:root {
  color-scheme: light;
  --ink: #18222f;
  --muted: #627083;
  --line: #d9e0e8;
  --panel: #ffffff;
  --band: #f5f8fb;
  --accent: #0b6f6a;
  --accent-2: #a33a3a;
  --accent-3: #725a16;
  --shadow: 0 12px 32px rgba(24, 34, 47, 0.08);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--band);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-band {
  min-height: 52vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 32px;
  padding: 56px clamp(20px, 5vw, 72px) 32px;
  background:
    linear-gradient(135deg, rgba(11, 111, 106, 0.12), rgba(163, 58, 58, 0.08)),
    #eef4f2;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 30px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.metrics-strip div {
  min-height: 108px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics-strip strong {
  display: block;
  font-size: 34px;
}

.metrics-strip span {
  color: var(--muted);
}

.section-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.section-tabs a,
.filter-button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 9px 14px;
}

.filter-button {
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.content-band {
  padding: 48px clamp(20px, 5vw, 72px);
  background: #fff;
}

.alt-band {
  background: var(--band);
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.agent-card,
.memory-row,
.reference-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(24, 34, 47, 0.05);
}

.agent-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.agent-card[hidden] {
  display: none;
}

.agent-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.agent-card p {
  color: #364556;
  line-height: 1.65;
}

.agent-card dl {
  margin: 0;
}

.agent-card dt {
  margin-top: 14px;
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 700;
}

.agent-card dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.agent-card__guards,
.security-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.agent-card__guards span,
.security-chips span {
  border-radius: 999px;
  background: #eef4f2;
  color: var(--accent);
  font-size: 12px;
  padding: 7px 10px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-stage {
  min-height: 150px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workflow-stage__index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.workflow-stage strong,
.workflow-stage span {
  display: block;
}

.workflow-stage span {
  margin: 5px 0 10px;
  color: var(--accent-2);
  font-size: 13px;
}

.workflow-stage p {
  color: var(--muted);
  line-height: 1.6;
}

.harness-list,
.memory-list,
.reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.harness-row,
.memory-row,
.reference-row {
  padding: 18px;
}

.harness-row strong,
.harness-row code,
.harness-row p {
  display: block;
}

.harness-row code {
  margin: 10px 0;
  color: var(--accent-2);
}

.harness-row p {
  color: var(--muted);
  line-height: 1.65;
}

.memory-row code {
  display: block;
  max-width: 100%;
  margin: 10px 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.memory-row ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.reference-row a {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.reference-row p,
.reference-row span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.security-band {
  background: #fbf7f3;
}

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

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

  .metrics-strip div {
    min-height: 92px;
    padding: 16px;
  }

  .content-band {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .agent-grid,
  .workflow-list,
  .harness-list,
  .memory-list,
  .reference-list {
    grid-template-columns: 1fr;
  }
}
