body.agent-page-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fbfbf9 0%, #f3f4f1 54%, #ebece6 100%);
}

.agent-page-body .topbar {
  position: sticky;
}

.agent-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agent-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(129, 141, 130, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.agent-nav a:hover {
  border-color: rgba(15, 126, 92, 0.34);
  background: rgba(255, 255, 255, 0.86);
}

.agent-nav svg {
  width: 15px;
  height: 15px;
}

.agent-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
}

.agent-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  min-height: min(700px, calc(100dvh - 76px));
  padding: clamp(20px, 3vw, 42px) 0 clamp(12px, 2vw, 28px);
}

.agent-kicker,
.agent-eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #131813;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 930;
  line-height: 0.96;
}

.agent-hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: #3f493f;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 610;
  line-height: 1.58;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.agent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(22, 75, 61, 0.2);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(22, 75, 61, 0.16);
}

.agent-button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  box-shadow: none;
}

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

.agent-button svg {
  width: 16px;
  height: 16px;
}

.agent-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.agent-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(184, 193, 181, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #455145;
  font-size: 13px;
  font-weight: 760;
}

.agent-proof svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.agent-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(40, 51, 43, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 246, 240, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 28px 70px rgba(28, 38, 32, 0.12);
}

.agent-console::before {
  display: block;
  height: 38px;
  border-bottom: 1px solid rgba(40, 51, 43, 0.12);
  background:
    linear-gradient(90deg, #c23838 0 10px, transparent 10px 18px, #a45e18 18px 28px, transparent 28px 36px, #0f7e5c 36px 46px, transparent 46px),
    rgba(248, 249, 246, 0.86);
  background-position: 18px 14px, 0 0;
  background-repeat: no-repeat;
  content: "";
}

.agent-console-body {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
}

.handoff-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 11px;
  align-items: center;
}

.handoff-node {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(22, 75, 61, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(34, 43, 37, 0.08);
}

.handoff-node svg {
  width: 20px;
  height: 20px;
}

.handoff-beam {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 75, 61, 0.1);
}

.handoff-beam::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 126, 92, 0), rgba(15, 126, 92, 0.68), rgba(15, 126, 92, 0));
  content: "";
  animation: handoffPulse 2.8s ease-in-out infinite;
}

@keyframes handoffPulse {
  0% { transform: translateX(-110%); }
  58%, 100% { transform: translateX(260%); }
}

.console-note {
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 1px solid rgba(185, 194, 181, 0.7);
  border-radius: 8px;
  background: #ffffff;
}

.console-note strong {
  color: #172018;
  font-size: 14px;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.code-row span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(22, 75, 61, 0.16);
  border-radius: 6px;
  background: #eef2ed;
  color: var(--accent-dark);
  font-weight: 950;
}

.agent-console pre,
.docs-code {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(25, 34, 28, 0.12);
  border-radius: 8px;
  background: #101712;
  color: #e7efe8;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.agent-section {
  padding: clamp(32px, 5vw, 68px) 0;
  border-top: 1px solid rgba(184, 193, 181, 0.54);
}

.agent-section h2,
.docs-content h1,
.docs-content h2 {
  margin: 0;
  color: #151a15;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
}

.agent-section > p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #526052;
  font-size: 16px;
  line-height: 1.7;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.agent-card,
.docs-panel {
  border: 1px solid rgba(184, 193, 181, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.agent-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
}

.agent-card svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.agent-card h3 {
  margin: 0;
  color: #192119;
  font-size: 18px;
}

.agent-card p {
  margin: 0;
  color: #536153;
  font-size: 14px;
  line-height: 1.62;
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.agent-flow div {
  min-height: 124px;
  padding: 17px;
  border: 1px solid rgba(184, 193, 181, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.agent-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.agent-flow h3 {
  margin: 14px 0 7px;
  font-size: 16px;
}

.agent-flow p {
  margin: 0;
  color: #586558;
  font-size: 14px;
  line-height: 1.56;
}

.agent-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px) 0 6px;
}

.agent-cta-band h2 {
  max-width: 620px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
  padding-top: clamp(20px, 3vw, 40px);
}

.docs-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(184, 193, 181, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.docs-sidebar a {
  padding: 9px 10px;
  border-radius: 6px;
  color: #455045;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.docs-sidebar a:hover {
  background: rgba(22, 75, 61, 0.08);
  color: var(--accent-dark);
}

.docs-content {
  display: grid;
  gap: 18px;
}

.docs-hero {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(184, 193, 181, 0.56);
}

.docs-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #526052;
  font-size: 17px;
  line-height: 1.68;
}

.docs-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
}

.docs-panel h2 {
  font-size: clamp(22px, 2.5vw, 32px);
}

.docs-panel h3 {
  margin: 6px 0 0;
  color: #1d241e;
  font-size: 17px;
}

.docs-panel p,
.docs-panel li {
  color: #4d5a4d;
  font-size: 15px;
  line-height: 1.68;
}

.docs-panel p,
.docs-panel ul,
.docs-panel ol {
  margin: 0;
}

.docs-panel ul,
.docs-panel ol {
  display: grid;
  gap: 8px;
  padding-left: 21px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(184, 193, 181, 0.72);
  border-radius: 8px;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(184, 193, 181, 0.56);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: rgba(238, 242, 237, 0.88);
  color: #1e281f;
  font-size: 12px;
  text-transform: uppercase;
}

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

.docs-note {
  padding: 13px 14px;
  border-left: 3px solid var(--green);
  background: rgba(15, 126, 92, 0.08);
  color: #344037;
  font-size: 14px;
  line-height: 1.62;
}

code {
  border-radius: 5px;
  background: rgba(22, 75, 61, 0.09);
  color: #123d32;
  font-size: 0.94em;
}

@media (max-width: 900px) {
  .agent-hero,
  .docs-layout {
    grid-template-columns: 1fr;
  }

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

  .agent-grid,
  .agent-flow {
    grid-template-columns: 1fr 1fr;
  }

  .docs-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .agent-main {
    padding: 16px;
  }

  .agent-nav a:first-child {
    display: none;
  }

  .agent-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .agent-grid,
  .agent-flow,
  .docs-sidebar {
    grid-template-columns: 1fr;
  }

  .handoff-line {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .handoff-node {
    width: 38px;
    height: 38px;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .handoff-beam::after {
    animation: none;
    transform: none;
  }
}
