#agent-sections {
  --agent-ink: #f0f5f2;
  --agent-mint: #86efac;
  --agent-dim: #8f9f95;
  --agent-line: #29322d;
  --agent-bg: #050807;
  color: var(--agent-ink);
  background: var(--agent-bg);
}
.agent-zone {
  max-width: 1440px;
  margin: 0 auto;
  padding: 108px clamp(20px, 5vw, 80px);
  min-width: 0;
  scroll-margin-top: 100px;
}
.agent-section-head { max-width: 840px; margin-bottom: 44px; }
.agent-kicker {
  margin: 0 0 20px;
  color: var(--agent-mint);
  font: 10px/1.6 var(--mono);
  letter-spacing: 1.2px;
}
.agent-section-head h2 {
  margin: 0 0 24px;
  color: var(--agent-ink);
  font: 600 clamp(38px, 4.8vw, 70px)/1.04 var(--sans);
  letter-spacing: -.055em;
}
.agent-section-head h2 span { color: var(--agent-dim); }
.agent-section-head > p:last-child:not(.agent-kicker) {
  max-width: 620px;
  margin: 0;
  color: #a0aea5;
  font: 15px/1.75 var(--sans);
}
.agent-section-head-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 64px;
  max-width: none;
}
.agent-section-head-split > p:last-child { margin-bottom: 5px; max-width: 380px; }

/* The character stays pixel sharp inside a technical, numbered module board. */
.agent-os { background: var(--agent-bg); }
.agent-os-board {
  border: 1px solid var(--agent-line);
  border-radius: 8px;
  overflow: hidden;
  background: #111613;
  position: relative;
}
.agent-board-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--agent-line);
  color: #a4b0a8;
  font: 9px/1.5 var(--mono);
  letter-spacing: .5px;
}
.agent-board-bar > span:first-child { display: flex; align-items: center; gap: 10px; }
.agent-board-bar i { display: block; width: 6px; height: 6px; background: var(--agent-mint); }
.agent-board-bar > span:last-child { font-size: 8px; color: #84948a; }
.agent-os-main { display: grid; grid-template-columns: .9fr 1.6fr; }
.agent-os-character {
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  border-right: 1px solid var(--agent-line);
  background: radial-gradient(ellipse at 50% 65%, #1c402a55, transparent 65%), #090e0b;
}
.agent-os-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#7a9c823b .7px, transparent .8px);
  background-size: 15px 15px;
  mask-image: radial-gradient(ellipse, #000 15%, transparent 74%);
}
.agent-os-character:after {
  content: '';
  position: absolute;
  bottom: 58px;
  width: 180px;
  height: 38px;
  border: 1px solid #86efac3d;
  background: #86efac08;
  transform: rotateX(55deg) rotate(45deg);
  z-index: -1;
}
.agent-os-character img {
  width: 210px;
  height: 340px;
  max-height: 80%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 1px #0005);
}
.agent-os-character > p {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
  color: #73877b;
  font: 8px/1.5 var(--mono);
  letter-spacing: .4px;
}
.agent-os-character > p span { color: var(--agent-mint); }
.agent-corner { position: absolute; width: 14px; height: 14px; border: solid #86efac6b; }
.agent-corner-a { top: 28px; left: 28px; border-width: 1px 0 0 1px; }
.agent-corner-b { right: 28px; bottom: 48px; border-width: 0 1px 1px 0; }
.agent-os-capabilities { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.agent-os-capabilities > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-content: start;
  align-items: start;
  gap: 17px 12px;
  padding: 32px 26px;
  min-width: 0;
  transition: background .2s ease;
}
.agent-os-capabilities > div:hover { background: #1a231d; }
.agent-os-capabilities > div:nth-child(odd) { border-right: 1px solid var(--agent-line); }
.agent-os-capabilities > div:nth-child(-n+2) { border-bottom: 1px solid var(--agent-line); }
.agent-module-number { padding-top: 3px; color: #819489; font: 10px var(--mono); }
.agent-os-capabilities h3 {
  margin: 0 0 14px;
  color: #edf4ef;
  font: 600 22px/1.16 var(--sans);
  letter-spacing: -.035em;
}
.agent-os-capabilities p { margin: 0; color: #98a79e; font: 13px/1.7 var(--sans); }
.agent-module-tag {
  grid-column: 2;
  width: max-content;
  margin-top: 3px;
  color: #a5c1ad;
  font: 8px/1.5 var(--mono);
  letter-spacing: .7px;
}
.agent-module-tag:before { content: '['; color: #526b5c; margin-right: 5px; }
.agent-module-tag:after { content: ']'; color: #526b5c; margin-left: 5px; }
.agent-os-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 24px;
  border-top: 1px solid var(--agent-line);
  font: 8px/1.5 var(--mono);
  color: #7d9184;
  letter-spacing: .4px;
}
.agent-os-footer span { display: flex; gap: 13px; }
.agent-os-footer strong { color: #bccfc2; font-weight: 400; }

/* The source is a real, readable console, rather than decorative code. */
.agent-code-zone { border-top: 1px solid #202a24; background: #080c09; }
.code-console { min-width: 0; overflow: hidden; border: 1px solid #333e36; border-radius: 8px; background: #0d120f; }
.code-titlebar {
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--agent-line);
  color: #83988b;
  font: 8px var(--mono);
  letter-spacing: .6px;
}
.code-titlebar > span { display: flex; gap: 6px; }
.code-titlebar i { width: 5px; height: 5px; display: block; background: #415348; }
.code-titlebar i:first-child { background: #86efac; }
.code-titlebar i:nth-child(2) { background: #819a87; }
.code-titlebar p { margin: 0; }
.code-titlebar a { color: #b0c8b8; border-bottom: 1px solid #475d4e; padding-bottom: 4px; font-size: 7px; }
.code-tabs { display: flex; gap: 4px; padding: 0 16px; overflow-x: auto; border-bottom: 1px solid var(--agent-line); scrollbar-width: thin; }
.code-tabs button { flex: 0 0 auto; position: relative; padding: 19px 17px; border: 0; background: transparent; color: #81988a; white-space: nowrap; font: 10px var(--mono); }
.code-tabs button[aria-selected=true] { color: #d4f8df; background: #17201a; }
.code-tabs button[aria-selected=true]:after { content: ''; position: absolute; height: 2px; left: 17px; right: 17px; bottom: 0; background: var(--agent-mint); }
.code-tabs button:hover { color: #f0f5f2; }
.code-panel { min-width: 0; min-height: 350px; max-height: 450px; display: flex; overflow: auto; padding: 28px 0; background: #0a0f0c; scrollbar-width: thin; scrollbar-color: #3b5544 #0a0f0c; }
.code-lines { flex: 0 0 auto; padding: 0 22px 0 24px; border-right: 1px solid #233429; color: #486251; user-select: none; white-space: pre; text-align: right; font: 11px/1.95 var(--mono); }
.code-panel pre { margin: 0; padding: 0 26px; min-width: max-content; color: #bdcec2; tab-size: 2; font: 11px/1.95 var(--mono); }
.code-panel code { font: inherit; }
.code-string { color: #a4dfb5; }
.code-number { color: #e1ebcf; }
.code-keyword { color: #edf8ef; }
.code-comment { color: #678671; }
.code-console-footer { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 20px; min-height: 84px; padding: 20px 24px; border-top: 1px solid var(--agent-line); font: 8px var(--mono); color: #91a99a; }
.code-console-footer > span { color: #b0d7bb; letter-spacing: .7px; }
.code-console-footer p { max-width: 580px; margin: 0; color: #94a89c; font: 12px/1.6 var(--sans); }
.code-console-footer > div { display: flex; align-items: center; gap: 13px; }
.code-console-footer button, .code-console-footer a { padding: 11px 13px; border: 1px solid #394e40; border-radius: 3px; color: #c4e8ce; background: transparent; white-space: nowrap; font: 8px var(--mono); letter-spacing: .4px; }
.code-console-footer a { border-color: transparent; padding-right: 0; }
.code-console-footer button:hover, .code-console-footer a:hover { color: white; border-color: #6b9a7b; }
.code-copy-status { min-height: 0; height: 0; margin: 0; color: #b5efc7; font: 8px var(--mono); }
.code-copy-status:not(:empty) { height: auto; padding: 0 24px 16px; }

/* Editable examples use the same dark visual system as the live launchpad. */
.agent-simulator { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px; margin-top: 24px; padding: 36px; border: 1px solid #303e34; border-radius: 8px; background: #141b16; color: var(--agent-ink); }
.agent-sim-intro .agent-kicker { margin-bottom: 17px; font-size: 8px; letter-spacing: 1px; }
.agent-sim-intro h3 { margin: 0 0 19px; font: 600 31px/1.1 var(--sans); letter-spacing: -.04em; }
.agent-sim-intro > p:not(.agent-kicker) { max-width: 300px; margin: 0 0 17px; color: #95a99b; font: 12px/1.7 var(--sans); }
.agent-sim-intro .agent-sim-note { padding-top: 16px; margin-bottom: 0!important; border-top: 1px solid #2d4033; color: #80978a!important; font-size: 10px!important; }
.agent-sim-form { min-width: 0; display: flex; flex-direction: column; gap: 17px; }
.agent-sim-form label { display: block; position: relative; color: #b1c6b8; font: 9px/1.5 var(--mono); }
.agent-sim-form label > span { position: absolute; top: 0; right: 0; color: #749780; font-size: 8px; }
.agent-sim-form input { width: 100%; min-width: 0; margin-top: 9px; padding: 13px 12px; border: 1px solid #344c3d; border-radius: 4px; background: #0b120d; color: #dcf1e2; font: 14px var(--mono); outline-offset: 3px; }
.agent-sim-form input:focus { border-color: #86efac; outline: 1px solid #86efac; }
.agent-sim-form > p { margin: 0; color: #80998a; font: 8px/1.7 var(--mono); }
.agent-sim-result { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-left: 30px; border-left: 1px solid #314537; }
.agent-sim-result > p:first-child { margin: 0 0 18px; color: #8cab97; font: 8px/1.7 var(--mono); letter-spacing: .6px; }
.agent-sim-result output { color: #c6f7d5; overflow-wrap: anywhere; font: 500 clamp(25px, 2.6vw, 40px)/1.15 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.agent-sim-result output span { display: block; margin-top: 8px; color: #789e83; font: 10px var(--mono); letter-spacing: 1px; }
.agent-sim-result > div { display: flex; flex-direction: column; gap: 11px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #314537; color: #86a792; font: 9px var(--mono); }
.agent-sim-result strong { color: #d1e8d9; overflow-wrap: anywhere; font: 11px var(--mono); }
.agent-sim-result > p:last-child { max-width: 260px; margin: 22px 0 0; color: #81998a; font: 10px/1.7 var(--sans); }

.agent-process { border-top: 1px solid #202a24; background: var(--agent-bg); }
.agent-runbook { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; border: 1px solid var(--agent-line); border-radius: 7px; overflow: hidden; }
.agent-runbook li { position: relative; min-width: 0; padding: 30px 22px 34px; border-right: 1px solid var(--agent-line); background: #111713; }
.agent-runbook li:last-child { border-right: 0; }
.agent-step-number { display: block; margin-bottom: 38px; color: #86efac; font: 11px/1 var(--mono); }
.agent-runbook h3 { margin: 0 0 15px; color: #e1eee5; font: 10px var(--mono); letter-spacing: .4px; }
.agent-runbook p { margin: 0; color: #91a69a; font: 12px/1.75 var(--sans); }
.agent-step-arrow { position: absolute; right: 20px; top: 24px; color: #678d73; font: 19px var(--mono); }
.agent-runbook li:last-child .agent-step-arrow { display: none; }
.agent-faq-zone { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; border-top: 1px solid #202a24; background: #080c09; }
.agent-faq-zone .agent-section-head h2 { font-size: clamp(36px, 3.8vw, 56px); }
.agent-faq-list { min-width: 0; }
.agent-faq-list details { border-bottom: 1px solid #2f4035; }
.agent-faq-list details:first-child { border-top: 1px solid #2f4035; }
.agent-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 0; color: #dce9e0; font: 500 16px/1.45 var(--sans); cursor: pointer; list-style: none; }
.agent-faq-list summary::-webkit-details-marker { display: none; }
.agent-faq-list summary > span { flex: 0 0 auto; color: #86efac; font: 22px var(--mono); }
.agent-faq-list details[open] summary > span { transform: rotate(45deg); }
.agent-faq-list details p { margin: 0; padding: 0 34px 27px 0; color: #92a89a; font: 13px/1.85 var(--sans); }
.agent-reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.agent-revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .agent-zone { padding-top: 88px; padding-bottom: 88px; }
  .agent-os-main { grid-template-columns: .85fr 1.4fr; }
  .agent-os-capabilities > div { padding: 28px 20px; grid-template-columns: 1fr; gap: 15px; }
  .agent-module-tag { grid-column: auto; }
  .agent-os-capabilities h3 { font-size: 20px; }
  .agent-os-capabilities p { font-size: 12px; }
  .agent-os-character img { width: 180px; }
  .agent-section-head-split { grid-template-columns: 1.25fr 1fr; gap: 36px; }
  .agent-simulator { gap: 24px; padding: 28px; }
  .agent-sim-result { padding-left: 22px; }
  .code-console-footer { grid-template-columns: 65px 1fr; gap: 12px; }
  .code-console-footer > div { grid-column: 2; }
  .agent-runbook { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-runbook li { min-height: 210px; }
  .agent-runbook li:nth-child(3) { border-right: 0; }
  .agent-runbook li:nth-child(-n+3) { border-bottom: 1px solid var(--agent-line); }
  .agent-faq-zone { grid-template-columns: .9fr 1.2fr; gap: 40px; }
}
@media (max-width: 760px) {
  .agent-zone { padding: 68px 22px; scroll-margin-top: 90px; }
  .agent-section-head { margin-bottom: 32px; }
  .agent-section-head h2 { font-size: clamp(35px, 7vw, 48px); letter-spacing: -.045em; }
  .agent-section-head > p:last-child:not(.agent-kicker) { font-size: 14px; }
  .agent-kicker { font-size: 9px; margin-bottom: 17px; }
  .agent-section-head-split { grid-template-columns: 1fr; gap: 0; }
  .agent-section-head-split > p:last-child { max-width: 550px; }
  .agent-os-main { grid-template-columns: 1fr; }
  .agent-os-character { min-height: 350px; border-right: 0; border-bottom: 1px solid var(--agent-line); }
  .agent-os-character img { width: 155px; height: 285px; }
  .agent-os-character:after { bottom: 42px; }
  .agent-os-character > p { bottom: 17px; font-size: 7px; }
  .agent-os-capabilities > div { padding: 27px 22px; }
  .agent-os-capabilities h3 { font-size: 22px; }
  .agent-os-capabilities p { font-size: 13px; }
  .agent-os-footer { gap: 14px; padding: 19px 20px; font-size: 7px; }
  .agent-board-bar { padding: 15px 18px; gap: 15px; font-size: 7px; }
  .agent-board-bar > span:last-child { max-width: 98px; font-size: 6px; text-align: right; line-height: 1.6; }
  .agent-simulator { grid-template-columns: 1fr 1fr; gap: 26px; padding: 28px; }
  .agent-sim-intro { grid-column: 1 / -1; }
  .agent-sim-intro h3 { font-size: 31px; }
  .agent-sim-intro h3 br { display: none; }
  .agent-sim-intro > p:not(.agent-kicker) { max-width: 560px; font-size: 12px; }
  .agent-sim-result { justify-content: flex-start; padding-top: 3px; }
  .agent-sim-result output { font-size: 29px; }
  .agent-sim-result strong { font-size: 10px; }
  .code-titlebar { padding: 0 15px; gap: 12px; }
  .code-titlebar p { font-size: 6px; letter-spacing: .3px; }
  .code-titlebar a { font-size: 6px; letter-spacing: 0; }
  .code-titlebar > span { gap: 4px; }
  .code-titlebar i { width: 4px; height: 4px; }
  .code-tabs { padding: 0 8px; }
  .code-tabs button { padding: 17px 13px; font-size: 9px; }
  .code-panel { min-height: 310px; max-height: 390px; padding: 23px 0; }
  .code-panel pre, .code-lines { font-size: 10px; line-height: 1.9; }
  .code-lines { padding: 0 13px; }
  .code-panel pre { padding: 0 20px 0 16px; }
  .code-console-footer { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .code-console-footer > div { grid-column: auto; justify-content: space-between; }
  .code-console-footer p { font-size: 11px; }
  .code-copy-status:not(:empty) { padding-left: 18px; }
  .agent-runbook { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-runbook li { min-height: 205px; padding: 27px 20px; }
  .agent-runbook li:nth-child(3) { border-right: 1px solid var(--agent-line); }
  .agent-runbook li:nth-child(2n) { border-right: 0; }
  .agent-runbook li:nth-child(-n+4) { border-bottom: 1px solid var(--agent-line); }
  .agent-step-number { margin-bottom: 32px; }
  .agent-runbook h3 { font-size: 9px; }
  .agent-runbook p { font-size: 12px; }
  .agent-faq-zone { grid-template-columns: 1fr; gap: 0; }
  .agent-faq-zone .agent-section-head h2 { font-size: clamp(35px, 7vw, 48px); }
  .agent-faq-list summary { padding: 23px 0; font-size: 15px; }
  .agent-faq-list details p { font-size: 13px; }
}
@media (max-width: 420px) {
  .agent-zone { padding: 56px 16px; }
  .agent-section-head h2 { font-size: 36px; }
  .agent-board-bar { padding-left: 14px; padding-right: 14px; }
  .agent-os-capabilities > div { padding: 25px 17px; }
  .agent-os-capabilities h3 { font-size: 20px; }
  .agent-os-capabilities p { font-size: 12px; }
  .agent-os-footer span { gap: 9px; }
  .agent-simulator { grid-template-columns: 1fr; gap: 25px; padding: 23px; }
  .agent-sim-intro { grid-column: auto; }
  .agent-sim-intro h3 { font-size: 29px; }
  .agent-sim-result { padding: 24px 0 0; border-left: 0; border-top: 1px solid #314537; }
  .agent-sim-result output { font-size: 35px; overflow-wrap: normal; }
  .agent-sim-result > p:last-child { max-width: none; font-size: 10px; }
  .agent-runbook li { min-height: 215px; padding: 25px 16px; }
  .agent-runbook h3 { font-size: 9px; letter-spacing: 0; }
  .agent-runbook p { font-size: 11px; }
  .agent-step-arrow { right: 14px; }
  .code-titlebar a { max-width: 67px; text-align: right; line-height: 1.5; }
  .code-titlebar p { max-width: 130px; text-align: center; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-reveal-ready { opacity: 1; transform: none; transition: none; }
  .agent-os-capabilities > div { transition: none; }
}
