:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #ffffff;
  --ink: #11120f;
  --muted: #62655f;
  --line: #d9d5c9;
  --line-strong: #b8b09d;
  --green: #0a6a5a;
  --green-dark: #06473e;
  --blue: #243e7d;
  --gold: #b7791f;
  --shadow: 0 20px 55px rgba(38, 35, 28, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0, rgba(247, 245, 239, 0) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid rgba(217, 213, 201, 0.8);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 720;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero,
.section,
.answer-band,
.cta-band,
.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 70px);
  padding: 74px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 44px;
}

.article-hero {
  min-height: auto;
  padding-bottom: 40px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  margin: 24px 0 0;
  max-width: 660px;
  color: #33352f;
  font-size: clamp(18px, 2.2vw, 22px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 820;
  text-decoration: none;
  line-height: 1.15;
}

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

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

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.affiliate-note {
  margin: 14px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  display: grid;
  gap: 12px;
}

.hero-visual {
  min-height: 560px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(10, 106, 90, 0.08), rgba(183, 121, 31, 0.1)),
    var(--paper);
  box-shadow: var(--shadow);
}

.visual-header,
.visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.visual-header strong {
  color: var(--ink);
}

.visual-core {
  min-height: 150px;
  padding: 28px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(6, 71, 62, 0.28);
  border-radius: var(--radius);
  background: #102c29;
  color: #fff;
}

.core-label,
.visual-lanes span,
.visual-protocols span {
  color: #9ed8ca;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.visual-core strong {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
}

.visual-lanes,
.visual-protocols {
  display: grid;
  gap: 12px;
}

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

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

.visual-lanes div,
.visual-protocols div {
  min-height: 118px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.visual-lanes strong,
.visual-protocols strong {
  margin-top: 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.visual-protocols div {
  border-color: rgba(36, 62, 125, 0.22);
  background: #f6f7fb;
}

.visual-protocols span {
  color: var(--blue);
}

.visual-footer {
  justify-content: center;
  padding-top: 4px;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid rgba(17, 18, 15, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #e7e2d6;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.media-row img {
  box-shadow: 0 14px 32px rgba(38, 35, 28, 0.1);
}

.answer-band,
.cta-band {
  margin-top: 28px;
  padding: 34px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.answer-band p:last-child,
.cta-band p:last-child {
  margin-bottom: 0;
}

.section {
  padding: 86px 0 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 54px;
}

.prose p {
  margin: 0 0 18px;
  color: #343630;
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.cards .section-heading {
  grid-column: 1 / -1;
}

.card {
  min-height: 244px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.card a {
  margin-top: auto;
  font-weight: 800;
}

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

.hub-link {
  min-height: 148px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.hub-link:hover {
  border-color: var(--green);
  color: var(--ink);
}

.hub-link span {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hub-link strong {
  display: block;
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.18;
}

.text-cta {
  display: inline-flex;
  margin-top: 2px;
  font-weight: 820;
}

.protocol-panel {
  min-height: 470px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 106, 90, 0.08), rgba(36, 62, 125, 0.08)),
    var(--paper);
  box-shadow: var(--shadow);
}

.protocol-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.protocol-node {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 850;
}

.protocol-node span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.protocol-node.agent {
  background: #102c29;
  color: #fff;
}

.protocol-node.mcp {
  border-color: rgba(10, 106, 90, 0.55);
}

.protocol-node.a2a {
  border-color: rgba(36, 62, 125, 0.55);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #efebe0;
  color: #25251f;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}

tbody th {
  width: 18%;
  color: var(--green-dark);
}

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

.steps {
  margin: 0;
  padding-left: 24px;
}

.steps li {
  margin: 0 0 16px;
  padding-left: 6px;
  color: #343630;
  font-size: 18px;
}

.cta-band {
  align-items: center;
  grid-template-columns: 1fr auto;
  background: #102c29;
  color: #fff;
}

.cta-band .section-kicker {
  color: #9ed8ca;
}

.cta-band p {
  max-width: 720px;
  color: #dbe8e4;
}

.cta-band .button-primary {
  border-color: rgba(255, 255, 255, 0.28);
  background: #ffffff;
  color: var(--green-dark);
}

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

.source-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.source-list a {
  font-weight: 820;
}

.faq {
  max-width: 920px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 820;
  font-size: 18px;
}

details p {
  margin: -4px 0 22px;
  color: var(--muted);
}

.legal {
  padding-bottom: 82px;
}

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

.legal-grid > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.legal-grid p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.footer {
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 760;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 640px;
  }

  .answer-band,
  .cta-band,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .hub-grid,
  .protocol-row,
  .visual-lanes {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .answer-band,
  .cta-band,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-top: 38px;
    gap: 28px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .answer-band,
  .cta-band {
    padding: 24px;
  }

  .media-row,
  .legal-grid,
  .visual-protocols {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
