.agent-hero {
  background:
    radial-gradient(circle at 84% 14%, rgba(38, 195, 171, 0.17), transparent 30rem),
    linear-gradient(145deg, #07141f, #102b3a 70%, #0f3a3b);
  color: #fff;
  overflow: hidden;
  padding: 6.5rem 0 5rem;
}

.agent-hero .eyebrow,
.agent-hero .hero-lead {
  color: #cce5e3;
}

.agent-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0.6rem 0 1.4rem;
  max-width: 13ch;
}

.agent-hero-grid,
.agent-two-column {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
}

.protocol-card {
  background: rgba(4, 17, 27, 0.72);
  border: 1px solid rgba(161, 226, 215, 0.3);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.protocol-card-header,
.protocol-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.protocol-card-header {
  border-bottom: 1px solid rgba(161, 226, 215, 0.2);
  padding-bottom: 1rem;
}

.protocol-card-header strong {
  color: #fff;
}

.protocol-row {
  border-bottom: 1px solid rgba(161, 226, 215, 0.12);
  gap: 1rem;
  padding: 0.9rem 0;
}

.protocol-row span {
  color: #9fb8bc;
}

.protocol-row strong {
  color: #efffff;
  font-size: 0.92rem;
  text-align: right;
}

.protocol-card > p {
  color: #cce5e3;
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

.metric-strip,
.agent-grid,
.deliverable-grid {
  display: grid;
  gap: 1rem;
}

.metric-strip {
  grid-template-columns: repeat(4, 1fr);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.metric-strip div {
  background: #fff;
  border: 1px solid #dbe5e8;
  border-radius: 0.85rem;
  box-shadow: 0 0.75rem 2rem rgba(7, 20, 31, 0.08);
  padding: 1.15rem;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  color: #07141f;
  font-size: 1.05rem;
}

.metric-strip span {
  color: #60727a;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

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

.agent-card,
.deliverable-card {
  background: #fff;
  border: 1px solid #dbe5e8;
  border-radius: 1rem;
  padding: 1.5rem;
}

.agent-card span {
  color: #0b756d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-card h3,
.deliverable-card h3 {
  margin: 0.55rem 0 0.65rem;
}

.action-flow {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2.25rem;
}

.action-flow div {
  background: #eff7f6;
  border-left: 3px solid #21a99c;
  border-radius: 0.45rem;
  padding: 1rem;
}

.action-flow span {
  color: #0b756d;
  display: block;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.trace-pair {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
}

.trace-column {
  background: #07141f;
  border: 1px solid #24424e;
  border-radius: 1rem;
  color: #fff;
  padding: 1.35rem;
}

.trace-column.unsafe {
  border-color: #bb5151;
}

.trace-column h3 {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 1rem;
}

.trace-event {
  border-left: 2px solid #4fae9f;
  color: #cce5e3;
  font-size: 0.9rem;
  margin: 0 0 0.7rem 0.25rem;
  padding: 0.15rem 0 0.15rem 0.85rem;
}

.unsafe .trace-event:last-child {
  border-color: #e47272;
  color: #ffdede;
}

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

.pilot-band {
  background: #0b2b36;
  border-radius: 1.25rem;
  color: #fff;
  padding: clamp(1.75rem, 5vw, 3.25rem);
}

.pilot-band p {
  color: #cce5e3;
}

.sample-report-meta {
  word-break: break-word;
}

.report-callout {
  background: #edf7f5;
  border-left: 4px solid #16988b;
  padding: 1rem 1.2rem;
}

.walkthrough-hero h1 {
  max-width: 14ch;
}

.walkthrough-video {
  padding-bottom: 0;
}

.video-embed {
  aspect-ratio: 16 / 9;
  background: #07141f;
  border: 1px solid #24424e;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(7, 20, 31, 0.14);
  margin-top: 2rem;
  overflow: hidden;
}

.video-embed iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.video-host-note {
  color: #60727a;
  font-size: 0.85rem;
  margin: 0.9rem 0 0;
}

.walkthrough-stack {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 2.5rem;
}

.walkthrough-stage {
  background: #fff;
  border: 1px solid #dbe5e8;
  border-radius: 1.1rem;
  box-shadow: 0 0.75rem 2rem rgba(7, 20, 31, 0.06);
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.walkthrough-stage .trace-table {
  table-layout: fixed;
  width: 100%;
}

.stage-heading {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stage-heading span,
.stage-label {
  color: #0b756d;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-heading h3 {
  margin: 0;
}

.walkthrough-meta {
  grid-template-columns: repeat(3, 1fr);
}

.walkthrough-pair,
.severity-decision {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.walkthrough-pair > div,
.severity-decision > div {
  background: #f1f7f6;
  border: 1px solid #dbe5e8;
  border-radius: 0.85rem;
  padding: 1.25rem;
}

.walkthrough-pair .unsafe,
.severity-decision .critical-decision {
  background: #fff5f3;
  border-color: #efb0aa;
}

.walkthrough-pair blockquote {
  margin-bottom: 0;
}

.criterion-table th:first-child {
  width: auto;
}

.judgement-fail {
  color: #a02f2f;
}

.judgement-pass {
  color: #0b756d;
}

.judgement-na {
  color: #5f6e73;
}

.severity-decision {
  margin-bottom: 1.25rem;
}

.severity-decision span,
.severity-decision strong {
  display: block;
}

.severity-decision span {
  color: #60727a;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.severity-decision strong {
  color: #07141f;
  font-size: 1.5rem;
}

.critical-decision strong {
  color: #a02f2f;
}

@media (max-width: 900px) {
  .agent-hero-grid,
  .agent-two-column,
  .trace-pair,
  .walkthrough-pair,
  .severity-decision {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .walkthrough-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .agent-hero {
    padding: 4.5rem 0 3.5rem;
  }

  .metric-strip,
  .agent-grid,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }

  .stage-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .walkthrough-meta {
    grid-template-columns: 1fr;
  }
}
