/* The marketing page. Deliberately not the app's stylesheet: a visitor has no
   reason to download a console's CSS, and the console has no reason to carry a
   hero section. */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #262d38;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #3b82f6;
  --ok: #3fb950;
  --bad: #f85149;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }

body {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav { display: flex; gap: 24px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
nav a:hover { color: var(--text); }
nav .signin { color: var(--text); }

/* Account creation lives here now that the hero has one button. It is an ordinary nav
   link on purpose: the hero owns the one call to action on this page. */
nav .signup-nav { margin-right: 18px; }

main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 40px 120px; }

.hero {
  /* One column: the form is a layer now, so there is no second column to balance.
     The measure is capped where prose stops being readable, not where the page ends. */
  position: relative;
  padding: 88px 0 48px;
  text-align: center;
}
/* A soft pool of light behind the headline. It replaces the empty right half a
   two-column hero used to fill with a product shot. */
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -60px 8% auto;
  height: 330px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.17), transparent 68%);
  pointer-events: none;
}
.hero-copy { max-width: 840px; margin: 0 auto; }
.hero-copy .lede { margin: 0 auto; }
.hero-actions { justify-content: center; }

/* The headline sizes itself to its content, up to the page's own width limit. Prose
   keeps a readable measure; a display line does not need one. */
.hero-copy h1 { max-width: none; }
/* `pre-line` so the two sentences in the lede can be two paragraphs: the first names the
   problem, the second what this is. One wall of text reads as a feature list. */
.hero-copy .lede { max-width: 68ch; white-space: pre-line; }

@media (max-width: 900px) {
  .hero { padding-top: 56px; }
}
@media (max-width: 640px) {
  .hero { text-align: left; }
  .hero-copy .lede { margin: 0; }
  .hero-actions { justify-content: flex-start; }
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.lede { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }

h2 { font-size: 24px; letter-spacing: -0.01em; margin: 0 0 24px; }
h3 { font-size: 16px; margin: 0 0 8px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  width: 100%;
}

.card h2 { font-size: 19px; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 14.5px; }

label { display: block; margin: 18px 0 0; font-size: 14px; }
label small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }

input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

button {
  margin-top: 22px;
  width: 100%;
  padding: 11px 16px;
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}
button:hover { background: #2f6fd0; }
button:disabled { opacity: 0.6; cursor: default; }

.note { margin-top: 14px; font-size: 14px; min-height: 1.2em; }
.note.ok { color: var(--ok); }
.note.bad { color: var(--bad); }

section { padding: 64px 0 0; }
section p { color: var(--muted); max-width: 62ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.grid p { margin: 0; font-size: 14.5px; }

pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
}

code { font-family: var(--mono); font-size: 0.92em; }

/* ---------------------------------------------------------------- capability cards
 *
 * Four cards, two by two: each one names a thing the agent can do, then a scene that shows
 * what it is for. A feature list without the second half is a spec sheet.
 */
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 640px) { .caps { grid-template-columns: 1fr; } }

.cap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cap-mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.cap h3 { margin: 0; font-size: 16px; }
.cap-lead { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.cap-scene {
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

footer {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
}
footer span { margin-right: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  header { padding: 16px 20px; }
  main { padding: 0 20px 64px; }
  nav { gap: 14px; }
  nav a:not(.signin):not(.signup-nav):not(.cloud-nav) { display: none; }
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 6px;
}
#workspace-hint.ok { color: var(--ok); }
#workspace-hint.bad { color: var(--bad); }

/* The language picker sits in the nav and must not look like a form control. */
.lang {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 2px 6px;
  cursor: pointer;
}
.lang:hover { border-color: var(--muted); }

/*
 * The hero's left column. Without this the copy ends after three lines and the rest of
 * the column is empty, which reads as a missing image rather than a spare layout.
 */
.points {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.points li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 18px;
  position: relative;
}
/* A small rule instead of a bullet: this is prose, not a checklist. */
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.points strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.points span {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------------- narrative sections
 *
 * The page sells a way of working, not a feature list, so the sections are bands:
 * one idea each, separated by space rather than borders. A rule between every section
 * would turn a page-long argument into a spec sheet.
 */

.eyebrow {
  margin: 0 0 20px;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--accent);
  font-weight: 500;
}

/* Uppercase is a typographic device for Latin text. Applied to Chinese it does nothing
   but change the letterspacing, so the label is left alone in that language. */
.eyebrow:lang(zh) { text-transform: none; letter-spacing: 0.04em; }
:lang(en) .eyebrow { text-transform: uppercase; }

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

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: filter 0.15s ease;
}
.cta:hover { filter: brightness(1.1); }
.cta.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.cta.ghost:hover { border-color: var(--muted); filter: none; }


.band { padding: 76px 0 0; }
.band h2 { font-size: 28px; letter-spacing: -0.015em; margin: 0 0 28px; max-width: 22ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.split p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--muted); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .band { padding-top: 56px; }
  .band h2 { font-size: 24px; }
}

/* Two columns of marks: what does not work, then the one thing that does. */
.contrast { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contrast li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.contrast li:last-child { color: var(--text); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.bad-mark { color: var(--bad); flex: 0 0 14px; font-weight: 600; }
.ok-mark { color: var(--ok); flex: 0 0 14px; font-weight: 600; }

.grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }

.pillar { border-left: 2px solid var(--border); padding-left: 18px; }
.pillar-mark { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.pillar h3 { font-size: 17px; margin: 0 0 9px; }
.pillar p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

.steps { display: flex; flex-direction: column; gap: 26px; max-width: 760px; }
.step-text h3 { font-size: 17px; margin: 0 0 8px; }
.step-text p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--muted); }

.fits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fits li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.fits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------------------------------------------------------------- sign-up layer
 *
 * A `<dialog>` rather than a positioned div: it brings Escape, focus trapping and an
 * inert background without a line of JavaScript, and a modal that loses focus to the
 * page behind it is worse than no modal.
 */

.signup-dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
  /* Wide enough for the longest paragraph to keep a readable measure, and never as wide
     as the screen: at 100vw the backdrop disappears and the dialog stops reading as a layer. */
  width: min(620px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  /* The default dialog is centred; a shadow lifts it off a page of the same colour. */
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.signup-dialog::backdrop {
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(2px);
}

.signup-body { position: relative; padding: 6px; }

/* Inside the dialog the card is the whole surface, so its own frame is redundant. */
.signup-dialog .card {
  border: none;
  background: transparent;
  padding: 26px 24px 24px;
  max-width: none;
}

.signup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  /* The page's global `button` rule gives every button `width: 100%`, a top margin and the
     accent background. Undone here or the close control is a blue block stretched across
     the dialog. */
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.signup-close:hover { color: var(--text); border-color: var(--border); }

/* The page behind a modal must not scroll under it. */
html:has(.signup-dialog[open]) { overflow: hidden; }



/* The prompt is one line of text and one button. It is the whole call to action, so it
   gets a frame rather than sitting loose in the section. */
/* The name of the first option, not a caption for the steps below it. */
.how-choice {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--text);
}
.how-prompt {
  /* The button is positioned against this box, so it needs to be the containing block. */
  position: relative;
  display: flex;
  /* Top-aligned: the text is two lines now, and centring made it look cramped against
     the top edge of a taller box. */
  align-items: flex-start;
  width: 100%;
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.how-prompt pre {
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  /* Room for the button, which is out of the flow now. */
  padding: 14px 96px 14px 16px;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
.how-prompt code {
  display: block;
  width: 100%;
  white-space: pre-wrap;
  /* `break-word` only splits a word that does not fit, so the address moves to its own
     line instead of being cut through a path segment. */
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 13.5px;
  line-height: 1.55;
}

/* Absolutely positioned inside the field: a grid item sized itself to its content
   (27px) no matter what `align-self` said, which left it looking like a chip stuck to
   the inside edge. This pins it to the full height of the box. */
.how-copy {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* The page's global `button` rule sets `width: 100%`, `margin-top` and the accent
     background; all three have to be undone here or the control is a full-width block
     pushed down by 22px. */
  width: auto;
  margin: 0;
  display: grid;
  place-items: center;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0 9px 9px 0;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.how-copy:hover { background: var(--panel-2, #1c2430); }

.how-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Two-step connect block: an instruction pair, each with its own copy box. */
.how-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.how-step-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.how-step-title strong {
  font-size: 15px;
}
.how-step-hint {
  font-size: 13px;
  color: var(--muted);
}

/* The rotating example fades rather than cutting, so the change reads as one line becoming
   another instead of a flicker. */
#how-example code {
  transition: opacity 220ms ease;
}

/* ---------------------------------------------------------------- open-source hero
 *
 * The source build gets a two-column hero: the copy says what it is, the console mock
 * shows what it looks like. The mock is markup rather than a screenshot, so it stays
 * crisp and the page does not depend on a PNG staying in sync with the app.
 */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { border-radius: 6px; display: block; }
.brand span { line-height: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 58px;
  align-items: center;
  text-align: left;
  padding: 76px 0 58px;
}
.hero-copy { max-width: none; margin: 0; }
.hero-copy .lede { margin: 0; max-width: 62ch; }
.hero-copy h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero-actions { justify-content: flex-start; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 26px 0 0;
}
.hero-facts li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .01em;
  background: rgba(22, 27, 34, .55);
}

.hero-panel {
  border: 1px solid #2a3442;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #171e27, #10151c 70%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(59, 130, 246, .06);
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #27303d;
  background: rgba(255,255,255,.025);
}
.mock-top i { width: 8px; height: 8px; border-radius: 50%; background: #3a4656; }
.mock-top i:nth-child(1) { background: #f87171; }
.mock-top i:nth-child(2) { background: #fbbf24; }
.mock-top i:nth-child(3) { background: #34d399; }
.mock-top span { margin-left: auto; font: 10px var(--mono); color: #718096; }
.mock-grid { display: grid; grid-template-columns: 128px 1fr; min-height: 340px; }
.mock-side { padding: 14px 10px; border-right: 1px solid #27303d; background: rgba(0,0,0,.12); }
.mock-brand { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #dbeafe; margin: 2px 4px 16px; }
.mock-brand img { width: 16px; height: 16px; border-radius: 4px; }
.mock-ws { display: flex; align-items: center; justify-content: space-between; color: #cbd5e1; font-size: 11px; padding: 7px 8px; border: 1px solid #334155; border-radius: 6px; margin-bottom: 12px; }
.mock-ws span { color: #64748b; }
.mock-nav { color: #94a3b8; font-size: 11px; padding: 7px 8px; border-radius: 5px; }
.mock-nav.on { color: #e2e8f0; background: #1d4ed81f; }
.mock-main { padding: 16px; min-width: 0; }
.mock-head { color: #f1f5f9; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.mock-pill { font: 9px var(--mono); color: #93c5fd; border: 1px solid #1e40af; background: #172554; padding: 2px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.mock-tabs { display: flex; gap: 16px; border-bottom: 1px solid #27303d; padding-bottom: 9px; margin-bottom: 11px; color: #64748b; font-size: 10px; }
.mock-tabs .on { color: #93c5fd; border-bottom: 2px solid #3b82f6; padding-bottom: 8px; margin-bottom: -10px; }
.mock-app { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border: 1px solid #27303d; border-radius: 8px; margin-bottom: 7px; background: #151c25; }
.mock-app b { display: block; color: #e2e8f0; font-size: 11px; font-weight: 650; }
.mock-app small { display: block; color: #64748b; font-size: 9px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.mock-app > span { color: #64748b; font: 9px var(--mono); white-space: nowrap; }
.mock-live { display: flex; align-items: center; gap: 6px; color: #6ee7b7; font: 9px var(--mono); margin-top: 12px; }
.mock-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d39988; }

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 84px;
  padding: 32px 34px;
  border: 1px solid #2b3644;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(37, 99, 235, .16), rgba(22, 27, 34, .75) 58%);
}
.closing h2 { margin: 0 0 6px; font-size: 24px; }
.closing p { margin: 0; max-width: 54ch; font-size: 14px; }
.closing-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.closing-actions .cta { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .hero-panel { max-width: 620px; width: 100%; margin: 0 auto; }
  .closing { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero-copy h1 { font-size: 38px; }
  .mock-grid { grid-template-columns: 105px 1fr; }
  .mock-side { padding-left: 6px; padding-right: 6px; }
  .mock-brand { font-size: 10px; }
  .mock-app > span { display: none; }
  .mock-app small { max-width: 150px; }
  .closing { padding: 24px; margin-top: 54px; }
  .closing-actions { width: 100%; }
  .closing-actions .cta { flex: 1; text-align: center; }
}

/* Chinese display text has no word spaces, so a headline that fits in English can leave
   one character stranded on its own line. Keep the Chinese headline at a size that fits
   the column and prevent an arbitrary break inside the phrase. */
:lang(zh) .hero-copy h1 {
  font-size: clamp(34px, 3.4vw, 46px);
  letter-spacing: -0.055em;
  word-break: keep-all;
}

/* ---------------------------------------------------------------- agent-native apps
 *
 * The agent building the app and the app using a model are different ideas. This
 * section puts the second one beside a real function definition, without an endpoint count.
 */
.agent-apps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.agent-copy h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 16px; max-width: 18ch; }
.agent-lede { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 52ch; }
.agent-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.agent-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 17px; position: relative; }
.agent-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.agent-list strong { color: var(--text); font-size: 14.5px; font-weight: 600; }
.agent-list span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.agent-code {
  border: 1px solid #2a3442;
  border-radius: 12px;
  overflow: hidden;
  background: #0d131b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}
.agent-code-top { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #26303e; color: #94a3b8; font: 10px var(--mono); }
.agent-code-top i { color: #60a5fa; font-style: normal; border: 1px solid #1e40af; border-radius: 4px; padding: 2px 5px; }
.agent-code pre { margin: 0; padding: 18px 20px; overflow-x: auto; color: #cbd5e1; font: 11.5px/1.75 var(--mono); }
.agent-code code { font: inherit; }
.c-key { color: #93c5fd; }
.c-str { color: #86efac; }
.agent-code-foot { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid #26303e; color: #64748b; font: 9px var(--mono); }
.agent-code-foot i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

@media (max-width: 900px) {
  .agent-apps { grid-template-columns: 1fr; gap: 32px; }
  .agent-copy h2 { max-width: none; }
}
@media (max-width: 640px) {
  .agent-code pre { font-size: 10.5px; padding: 14px; }
}

/* Signup challenge on the marketing form: the same picture the console asks for. */
.captcha-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.captcha-row img {
  width: 160px;
  height: 56px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.captcha-row button { width: auto; margin-top: 0; flex: 0 0 auto; white-space: nowrap; }
#captcha-answer { width: 100%; }

/* The Chinese hero headline is deliberately two lines. */
:lang(zh) .hero-copy h1 { white-space: pre-line; }
