:root {
  color-scheme: light;
  --paper: #ffffff;
  --soft: #f5f5ef;
  --ink: #11120f;
  --muted: #60635b;
  --line: #d6d7d0;
  --blue: #2456ff;
  --orange: #ff5635;
  --acid: #d8ff42;
  --earth-axis-tilt: -23.44deg;
  --nav-height: 72px;
  --container: min(1400px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav {
  position: relative;
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Official lockup (symbol + "Turbome 极我"), vector from the brand source files. */
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.sales-control {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.header-sales {
  grid-column: 3;
  justify-self: end;
}

.sales-control:hover {
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  background: var(--paper);
}

.globe-journey {
  position: absolute;
  top: calc(var(--nav-height) + 54px);
  right: -18vw;
  left: auto;
  z-index: 1;
  width: min(1080px, 76vw);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate3d(
      var(--globe-journey-x, 0px),
      var(--globe-journey-y, 0px),
      0
    )
    scale(var(--globe-journey-scale, 1));
  transform-origin: top left;
  clip-path: inset(0 0 var(--globe-clip-bottom, 0%) 0);
  -webkit-mask-image: var(--globe-orbit-mask, none);
  mask-image: var(--globe-orbit-mask, none);
  will-change: transform, opacity, clip-path;
}

.globe-journey.is-unavailable {
  display: none;
}

.globe-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: min(1, calc(var(--globe-journey-opacity, 0.5) + var(--globe-motion-boost, 0)));
  filter: saturate(0.9) contrast(1.08);
  transform: rotate(var(--earth-axis-tilt));
  transition: opacity 180ms ease;
}

.global-language-field {
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  height: clamp(270px, 22.5vw, 315px);
  margin: auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  pointer-events: none;
  opacity: var(--globe-language-opacity, 0);
  transition: opacity 180ms ease;
}

.globe-language-label {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 8px 6px;
  display: grid;
  place-items: center;
  color: #454841;
  background: transparent;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 850;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  text-wrap: pretty;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 12px rgba(255, 255, 255, 0.96);
  filter: blur(2px);
  transform: translateY(6px) scale(0.92);
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.globe-language-label:is([lang="ja"], [lang="ko"], [lang="tr"]) {
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.03em;
}

.globe-language-label.is-visible {
  opacity: 0.68;
  filter: none;
  transform: none;
}


.hero-main {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: max(780px, 100vh);
  min-height: max(780px, 100svh);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 108px) 0 64px;
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr);
  grid-template-areas:
    "copy ledger"
    "deployment deployment";
  align-items: start;
  align-content: start;
  column-gap: clamp(56px, 7vw, 118px);
  row-gap: 0;
}

.hero-main::before,
.hero-main::after {
  position: absolute;
  width: 16px;
  height: 16px;
  content: "";
}

.hero-main::before {
  top: calc(var(--nav-height) + 18px);
  left: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.hero-main::after {
  right: 0;
  bottom: 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  grid-area: copy;
  align-self: start;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 6.9vw, 102px);
  font-weight: 840;
  letter-spacing: -0.045em;
  line-height: 0.87;
}

.title-cn,
.title-en {
  display: block;
}

.title-cn {
  letter-spacing: -0.065em;
}

.title-en {
  margin-top: 0.13em;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.title-en em {
  position: relative;
  display: inline-block;
  color: var(--blue);
  font-family: inherit;
  font-style: normal;
  font-weight: 840;
  letter-spacing: inherit;
  margin-right: 0.1em;
}

.lede {
  max-width: 640px;
  margin: 40px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--ink);
  color: #30322c;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.lede strong {
  font-weight: 820;
}

.hero-definition {
  max-width: 650px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-definition p {
  margin: 0;
  color: #676a62;
  font-size: 12px;
  line-height: 1.72;
}

.hero-definition p:first-child {
  color: var(--ink);
  font-weight: 740;
}

.hero-definition p + p {
  margin-top: 7px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.cta-secondary {
  color: var(--ink);
  background: #fff;
}

.cta-secondary:hover {
  background: var(--acid);
}

.cta svg {
  width: 16px;
  height: 16px;
}

.deployment-support {
  grid-area: deployment;
  position: relative;
  width: min(100%, 1220px);
  margin: 38px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.deployment-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.deployment-group {
  margin-top: 16px;
}

.deployment-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: left;
}

.architecture-grid,
.system-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.architecture-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 48px;
}

.architecture-item {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.architecture-name {
  display: block;
}

.architecture-name strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

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

.system-item {
  position: relative;
  min-width: 0;
  min-height: 86px;
  padding: 4px 0;
  display: grid;
  grid-template-rows: 44px auto;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #3d4039;
  background: transparent;
  text-align: center;
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.system-logo-link {
  width: 100%;
  height: 44px;
  display: grid;
  place-items: center;
}

.system-logo-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.system-logo-link::after {
  width: 36px;
  height: 36px;
  display: none;
  place-items: center;
  border-radius: 50%;
  content: attr(data-logo-fallback);
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.system-logo-link.is-logo-missing img {
  display: none;
}

.system-logo-link.is-logo-missing::after {
  display: grid;
}

.system-logo {
  display: block;
  width: min(40px, 82%);
  height: 40px;
  object-fit: contain;
}

.system-logo-wide {
  width: min(62px, 94%);
}

.system-logo-vector {
  width: 40px;
  height: 40px;
}

.system-name {
  min-width: 0;
  max-width: 100%;
}

.system-name-compact {
  font-size: 10px;
  letter-spacing: -0.04em;
}

.system-name-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.system-item-domestic {
  color: #31342f;
  background: transparent;
}

.system-item-limited {
  border: 0;
}

.deployment-info {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  color: #777a73;
  background: transparent;
  cursor: help;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.deployment-info:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.deployment-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: min(250px, calc(100vw - 48px));
  padding: 13px;
  border: 1px solid var(--ink);
  color: #363932;
  background: #fff;
  text-align: left;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.deployment-tooltip::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 38px;
  height: 3px;
  content: "";
  background: var(--blue);
}

.deployment-info:hover + .deployment-tooltip,
.system-item-macos.is-open .deployment-tooltip,
.deployment-tooltip:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.system-item-macos.is-dismissed .deployment-tooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
}

.deployment-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.capability-ledger {
  grid-area: ledger;
  position: relative;
  align-self: center;
  padding: 24px 0 0 30px;
  border-top: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.66);
}

.capability-ledger::before {
  position: absolute;
  top: 52px;
  bottom: 38px;
  left: 51px;
  width: 1px;
  content: "";
  background: var(--ink);
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 26px;
  padding: 27px 0 29px;
  border-bottom: 1px solid var(--ink);
}

.feature-no {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--blue);
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
}

.feature-body h2 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.feature-body p {
  max-width: 690px;
  margin: 10px 0 0;
  color: #51544c;
  font-size: 14px;
  line-height: 1.78;
}

.feature-body p strong {
  color: var(--ink);
  font-weight: 820;
  box-shadow: inset 0 -0.48em 0 var(--acid);
}

@media (min-width: 1121px) {
  .capability-ledger {
    align-self: start;
    margin-top: 44px;
    transform: none;
  }
}

.agent-showcase {
  position: relative;
  padding: clamp(112px, 10vw, 156px) 0;
  background: var(--paper);
}

.agent-showcase-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
}

.agent-showcase-title {
  max-width: 1080px;
  margin: 0 auto clamp(58px, 5vw, 76px);
  text-align: center;
  font-size: clamp(42px, 4.45vw, 68px);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.agent-showcase-title span {
  color: var(--blue);
}

/* Second section title (B), living inside the card grid between A-6 and B-1. */
.agent-showcase-title-secondary {
  grid-column: 1 / -1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  justify-self: center;
  font-size: clamp(30px, 3.2vw, 50px);
}

/* Closing vision card: text in the upper part, the globe rises beneath it like A-3. */
.agent-showcase-title-vision {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  align-content: start;
  padding-top: clamp(56px, 11vh, 132px);
}

.vision-heading {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

/* Who the product is for: one row of eight on desktop, 4 × 2 on phones. */
.vision-audience {
  max-width: 1120px;
  margin: 38px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.vision-audience li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.vision-audience span {
  color: var(--ink);
}

.vision-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.86);
}

.vision-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.vision-label {
  white-space: nowrap;
}

.agent-card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 1121px) {
  /* The blue accent bar sits above the copy column: cards whose copy is on the right
     (A-2, A-4, A-6, B-2, C-1, C-3) move it to the top-right corner. */
  .agent-card.agent-card-secondary::before,
  .agent-card.agent-card-search::before,
  .agent-card.agent-card-chat::before,
  .agent-card.agent-card-privacy::before,
  .agent-card.agent-card-kb::before,
  .agent-card.agent-card-cite::before {
    right: -1px;
    left: auto;
  }
}

@media (min-width: 1121px) {
  /* Card stage: every showcase card owns one screen (nav + 20px breathing room above,
     20px gap below), so the next card stays out of view until the switch. Cards taller
     than the stage are scaled down by the script via --card-fit-scale. */
  .agent-card-grid {
    grid-auto-rows: calc(100vh - var(--nav-height) - 40px);
    align-items: center;
  }

  .agent-card {
    transform: scale(var(--card-fit-scale, 1));
    transform-origin: center;
  }

  /* The hero (with the deployment wall) is the first card: exactly one screen, its
     content scaled down by the script when it would not fit. */
  .hero {
    height: 100vh;
  }

  .hero-main {
    transform: scale(var(--card-fit-scale, 1));
    transform-origin: top center;
  }

  /* The section title is the next card of the stage: one screen tall, text centred. */
  .agent-showcase-title {
    height: calc(100vh - var(--nav-height) - 40px);
    margin-bottom: 20px;
    /* Block-level align-content keeps the inline text flow (one centred line that may
       wrap naturally); grid/flex would split the spans and <br> into separate items. */
    align-content: center;
  }

  .agent-showcase-title-secondary {
    margin-bottom: 0;
  }

  .agent-showcase-title-vision {
    align-content: start;
  }
}

.agent-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.agent-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  width: 144px;
  height: 5px;
  content: "";
  background: var(--blue);
}

.agent-card-primary {
  grid-column: 1 / -1;
  min-height: 864px;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  background: transparent;
}

.globe-dock {
  position: absolute;
  top: -165px;
  left: -150px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.globe-dock-secondary {
  top: -150px;
  left: -110px;
}

.globe-dock-tertiary {
  top: 0;
  left: 50%;
}

.agent-card-copy {
  position: relative;
  z-index: 2;
  padding: 58px 54px 54px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
}

.agent-card-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--blue);
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
}

.agent-card-copy h3 {
  max-width: 560px;
  margin: 54px 0 0;
  font-size: clamp(36px, 3.25vw, 50px);
  font-weight: 830;
  letter-spacing: -0.05em;
  line-height: 1.16;
}

.agent-card-copy h3 .underlined {
  text-decoration-color: var(--blue);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.command-agent {
  color: var(--blue);
}

.command-intro {
  display: block;
}

.command-kicker {
  font-size: clamp(42px, 3.05vw, 48px);
}

.command-action {
  margin-top: 8px;
  font-size: clamp(34px, 2.5vw, 40px);
  white-space: nowrap;
}

.command-capabilities {
  width: 100%;
  max-width: 560px;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  list-style: none;
}

.command-capability {
  min-width: 0;
  min-height: 64px;
  padding: 4px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 790;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.command-capability > span:last-child {
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.command-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
}

.command-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.agent-card-copy > p {
  max-width: 540px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.86;
}

.platform-support {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.platform-support-title {
  margin: 0 0 13px;
  color: #30332e;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.5;
}

.platform-support-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.platform-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 72px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.platform-item {
  grid-column: span 2;
  min-width: 0;
  min-height: 72px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.platform-item-personal {
  grid-column: span 3;
  background: rgba(36, 86, 255, 0.035);
}

.platform-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
}

.platform-name {
  min-width: 0;
  display: block;
}

.platform-name strong,
.platform-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-name strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.platform-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.agent-card-demo {
  position: relative;
  padding: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.phone-stage {
  --demo-phone-width: clamp(310px, 23vw, 344px);
  --demo-phone-half-width: clamp(155px, 11.5vw, 172px);
  position: relative;
  width: 100%;
  min-height: 760px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  row-gap: 14px;
}

.scenario-rail {
  position: absolute;
  top: calc(50% + 18px);
  right: calc(50% + var(--demo-phone-half-width) + 20px);
  z-index: 4;
  width: min(105px, calc(50% - var(--demo-phone-half-width) - 20px));
  display: grid;
  justify-items: center;
  transform: translateY(-50%);
}

.scenario-title {
  grid-row: 1;
  width: var(--demo-phone-width);
  max-width: 100%;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-align: center;
}

.scenario-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scenario-tab {
  --scenario-duration: 14000ms;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #5b5e57;
  background: transparent;
  cursor: default;
}

.scenario-tab-label {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #9da099;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 840;
  line-height: 1;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.scenario-ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-90deg);
}

.scenario-ring-progress {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.scenario-tab.is-active {
  color: #fff;
}

.scenario-tab.is-active .scenario-tab-label {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.scenario-tab.is-active .scenario-ring {
  opacity: 1;
}

.scenario-tab.is-active .scenario-ring-progress {
  animation: scenario-ring-countdown var(--scenario-duration) linear forwards;
}

.scenario-tabs.is-paused .scenario-ring-progress {
  animation-play-state: paused !important;
}

.scenario-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 50%;
}

.phone-device {
  position: relative;
  z-index: 1;
  width: var(--demo-phone-width);
  aspect-ratio: 402 / 874;
  padding: 9px;
  border: 2px solid #747772;
  border-radius: 62px;
  background: #11120f;
  box-shadow: 0 22px 44px rgba(17, 18, 15, 0.18);
}

.phone-device::before,
.phone-device::after {
  position: absolute;
  width: 4px;
  content: "";
  background: #11120f;
}

.phone-device::before {
  top: 116px;
  left: -6px;
  height: 62px;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 82px 0 #11120f;
}

.phone-device::after {
  top: 154px;
  right: -6px;
  height: 88px;
  border-radius: 0 3px 3px 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 51px;
  background: #ededed;
  clip-path: inset(0 round 51px);
  transform: translateZ(0);
}

.phone-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 8px;
  height: 8px;
  border: 2px solid #30322f;
  border-radius: 50%;
  background: #050605;
  box-shadow: inset 0 0 0 1px #1d2f48;
  transform: translateX(-50%);
}

.phone-systembar {
  position: relative;
  z-index: 3;
  padding: 0 20px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4c4f48;
  background: #fafafa;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.phone-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #30332e;
}

.phone-status strong {
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
}

.phone-signal {
  height: 10px;
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
}

.phone-signal i {
  width: 2px;
  display: block;
  border-radius: 2px 2px 0.5px 0.5px;
  background: currentColor;
}

.phone-signal i:nth-child(1) {
  height: 4px;
}

.phone-signal i:nth-child(2) {
  height: 6px;
}

.phone-signal i:nth-child(3) {
  height: 8px;
}

.phone-signal i:nth-child(4) {
  height: 10px;
}

.phone-battery {
  position: relative;
  width: 17px;
  height: 9px;
  padding: 1px;
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.phone-battery::after {
  position: absolute;
  top: 50%;
  right: -3px;
  width: 2px;
  height: 5px;
  border-radius: 0 1px 1px 0;
  content: "";
  background: currentColor;
  transform: translateY(-50%);
}

.phone-battery i {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 1px;
  background: currentColor;
}

@supports (corner-shape: squircle) {
  .phone-device,
  .phone-screen {
    corner-shape: squircle;
  }

  .phone-screen {
    clip-path: none;
  }
}

.wechat-demo {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  overflow: hidden;
  background: #ededed;
}

.wechat-demo.is-paused *,
.wechat-demo.is-paused *::before,
.wechat-demo.is-paused *::after {
  animation-play-state: paused !important;
}

.wechat-topbar {
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #cacac6;
  background: #fafafa;
}

.wechat-back {
  flex: 0 0 auto;
  color: #3f423c;
  font-size: 20px;
  line-height: 1;
}

.wechat-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.wechat-avatar img {
  width: 20px;
  height: auto;
  display: block;
}

.wechat-contact {
  min-width: 0;
}

.wechat-contact strong {
  display: block;
}

.wechat-contact strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-pause {
  min-width: 42px;
  height: 26px;
  margin-left: auto;
  border: 1px solid #b8bab4;
  color: #444740;
  background: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 740;
}

.chat-pause:hover {
  border-color: var(--ink);
}

.wechat-thread {
  padding: 14px 10px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #bfc1ba transparent;
  scrollbar-width: thin;
}

.chat-scenario[hidden] {
  display: none !important;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.chat-message[hidden] {
  display: none !important;
}

.chat-message + .chat-message {
  margin-top: 12px;
}

.chat-message.is-entering {
  animation: chat-message-in 260ms ease both;
}

.chat-message-user {
  justify-content: flex-end;
}

.chat-mini-avatar {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #fff;
  background: #fff;
  font-size: 8px;
  font-weight: 820;
}

.chat-mini-avatar img {
  width: 16px;
  height: auto;
  display: block;
}

.chat-mini-avatar.user {
  order: 2;
  color: var(--ink);
  background: var(--acid);
}

.chat-bubble {
  position: relative;
  max-width: calc(100% - 31px);
  padding: 11px 12px;
  border: 1px solid #cacbc5;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  font-size: 9px;
  line-height: 1.55;
}

.chat-message-user .chat-bubble {
  border-color: #77c957;
  border-radius: 16px 4px 16px 16px;
  background: #95ec69;
  font-size: 11px;
}

.chat-media-card {
  width: min(210px, calc(100% - 31px));
  overflow: hidden;
  border: 1px solid #77c957;
  border-radius: 16px 4px 16px 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 18, 15, 0.08);
}

.chat-media-card img {
  width: 100%;
  height: auto;
  display: block;
}

.chat-ai-workflow {
  border-left: 4px solid var(--blue);
}

.chat-ai-workflow p {
  margin: 0;
}

.chat-news-link {
  margin-top: 8px;
  display: block;
  color: var(--blue);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.scenario-placeholder {
  min-height: 100%;
  padding: 48px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #656861;
  text-align: center;
}

.scenario-placeholder span,
.scenario-placeholder strong,
.scenario-placeholder small {
  display: block;
}

.scenario-placeholder span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #aeb1aa;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
}

.scenario-placeholder strong {
  margin-top: 14px;
  color: var(--ink);
  font-size: 13px;
}

.scenario-placeholder small {
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.5;
}

.report-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 840;
}

.report-label {
  margin: 12px 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #dedfd9;
  color: var(--blue);
  font-size: 8px;
  font-weight: 820;
}

.report-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 4px;
}

.report-grid > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.report-grid .report-wide {
  grid-column: 1 / -1;
}

.report-grid dt,
.report-grid dd {
  margin: 0;
}

.report-grid dt {
  color: #62655e;
}

.report-grid dd {
  text-align: right;
  font-weight: 810;
}

.report-suggestion {
  margin: 13px 0 0;
  padding: 10px 11px;
  border-left: 3px solid var(--blue);
  background: #f4f6ff;
}

.report-suggestion strong {
  color: var(--blue);
}

.chat-typing-bubble {
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.chat-typing-bubble i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #91948c;
  animation: chat-dot 900ms infinite ease-in-out;
}

.chat-typing-bubble i:nth-child(2) {
  animation-delay: 120ms;
}

.chat-typing-bubble i:nth-child(3) {
  animation-delay: 240ms;
}

.chat-result-bubble {
  border-left: 4px solid var(--blue);
}

.chat-result-bubble p {
  margin: 0;
}

.chat-result-bubble ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.chat-result-bubble li + li {
  margin-top: 3px;
}

.chat-result-bubble li::before {
  margin-right: 6px;
  color: #07914a;
  content: "✓";
  font-weight: 900;
}

.wechat-composer {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #cacac6;
  background: #fafafa;
}

.wechat-composer[hidden] {
  display: none !important;
}

.wechat-input {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  border: 1px solid #d1d2cc;
  border-radius: 19px;
  color: #1d1f1b;
  background: #fff;
  font-size: 10px;
  scrollbar-width: none;
  white-space: nowrap;
}

.wechat-input::-webkit-scrollbar {
  display: none;
}

.wechat-input.is-typing::after {
  width: 1px;
  height: 16px;
  margin-left: 2px;
  content: "";
  background: var(--ink);
  animation: chat-caret 720ms steps(1) infinite;
}

.wechat-send {
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 17px;
  color: #777a72;
  background: #dfe0dc;
  font-size: 9px;
  font-weight: 800;
}

.wechat-send.is-ready {
  color: #fff;
  background: #07c160;
}

.agent-card-secondary {
  grid-column: 1 / -1;
  min-height: 864px;
  display: grid;
  grid-template-areas: "providers copy";
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  background: transparent;
}

.model-provider-panel {
  grid-area: providers;
  min-width: 0;
  padding: 58px 54px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.model-wall-heading {
  margin-bottom: 22px;
  padding-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
}

.model-wall-heading strong,
.model-wall-heading small {
  display: block;
}

.model-wall-heading strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.model-wall-heading small {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.model-provider-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.model-provider-item {
  min-width: 0;
  min-height: 188px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-provider-content {
  width: 100%;
  height: 100%;
  padding: 24px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: inherit;
  text-align: center;
}

.model-provider-logo {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
}

.model-provider-logo-wide {
  width: 108px;
  max-width: 100%;
}

.model-provider-copy strong,
.model-provider-copy small {
  display: block;
}

.model-provider-copy strong {
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
}

.model-provider-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.model-wall-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.model-expert-copy {
  position: relative;
  grid-area: copy;
  min-width: 0;
  padding: 58px 54px 54px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ink);
  background: transparent;
}

.model-expert-copy h3 {
  margin: 54px 0 0;
  font-size: clamp(38px, 3vw, 50px);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.model-expert-copy h3 span {
  color: var(--blue);
}

.model-expert-summary {
  margin-top: 24px;
  color: #54574f;
  font-size: 14px;
  line-height: 1.75;
}

.model-expert-summary p {
  margin: 0;
}

.model-expert-summary p + p {
  margin-top: 10px;
}

.model-expert-summary strong {
  color: var(--ink);
  font-weight: 840;
  box-shadow: inset 0 -0.42em 0 var(--acid);
}

.expert-roster-title {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0.02em;
}

.expert-roster {
  margin: 10px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.expert-roster li {
  border-top: 1px solid var(--line);
}

.expert-roster-heading {
  margin: 0;
}

.expert-trigger {
  width: 100%;
  min-height: 44px;
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.5fr) 22px;
  align-items: start;
  gap: 14px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.expert-trigger:hover {
  color: var(--blue);
}

.expert-trigger:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.expert-name {
  color: var(--ink);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.45;
}

.expert-summary {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.expert-indicator {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: -1px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
}

.expert-indicator::before,
.expert-indicator::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%);
}

.expert-indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.expert-trigger[aria-expanded="true"] {
  color: var(--blue);
}

.expert-trigger[aria-expanded="true"] .expert-indicator::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.expert-panel[hidden] {
  display: none;
}

.expert-panel-inner {
  padding: 8px 36px 13px 126px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.expert-panel-inner p {
  margin: 0;
}

.expert-panel-inner small {
  margin-top: 5px;
  display: block;
  color: #73766e;
  font-size: inherit;
  line-height: inherit;
}

.expert-panel-inner small strong {
  color: var(--ink);
  font-size: inherit;
}

.agent-card-global {
  grid-column: 1 / -1;
  min-height: 0;
  aspect-ratio: 1400 / 864;
  overflow: visible;
  background: transparent;
}

.agent-card-global::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02) 0 48%,
      rgba(255, 255, 255, 0.34) 72%,
      rgba(255, 255, 255, 0.96) 100%
    ),
    radial-gradient(
      circle at 50% 62%,
      rgba(255, 255, 255, 0.04) 0 40%,
      rgba(255, 255, 255, 0.58) 76%,
      rgba(255, 255, 255, 0.92) 100%
    );
}

.global-story-content {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 0;
  padding: 58px 54px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.global-story-content > .agent-card-number {
  align-self: flex-start;
}

.global-story-heading {
  width: min(920px, 88%);
  margin-top: 36px;
  text-align: center;
}

.global-story-heading h3 {
  margin: 0;
  font-size: clamp(46px, 4.4vw, 66px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.global-story-heading h3 span {
  color: var(--blue);
}

.global-story-heading p {
  max-width: 100%;
  margin: 20px auto 0;
  color: #4f524b;
  font-size: 15px;
  line-height: 1.85;
}

.global-story-input-demo {
  width: min(560px, 68%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.global-story-input {
  width: 100%;
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.12);
  cursor: default;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.global-story-input::after {
  width: 2px;
  height: 24px;
  margin-left: 3px;
  flex: 0 0 2px;
  content: "";
  background: var(--blue);
  animation: global-story-caret 720ms steps(1) infinite;
}

.global-story-input > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.global-story-send {
  min-width: 92px;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  box-shadow: 6px 6px 0 rgba(36, 86, 255, 0.16);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.global-story-send:hover,
.global-story-send:focus-visible {
  background: var(--blue);
}

.global-story-send.is-pressing {
  background: var(--blue);
  box-shadow: 1px 1px 0 rgba(36, 86, 255, 0.08);
  transform: translate(4px, 4px) scale(0.97);
}

@keyframes chat-message-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes global-story-caret {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes scenario-ring-countdown {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 100;
  }
}

@keyframes chat-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

@keyframes chat-caret {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  max-width: min(370px, calc(100vw - 32px));
  padding: 15px 18px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--acid);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- A-4 / A-5: SEO search demo and GEO answer demo ---------- */
.agent-card-search,
.agent-card-answer,
.agent-card-chat,
.agent-card-deploy,
.agent-card-privacy,
.agent-card-ops,
.agent-card-kb,
.agent-card-expert,
.agent-card-cite {
  grid-column: 1 / -1;
  min-height: 864px;
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  background: transparent;
}

.agent-card-search,
.agent-card-chat,
.agent-card-privacy,
.agent-card-kb,
.agent-card-cite {
  grid-template-areas: "demo copy";
}

.agent-card-answer,
.agent-card-deploy,
.agent-card-ops,
.agent-card-expert {
  grid-template-areas: "copy demo";
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
}

.story-copy {
  position: relative;
  grid-area: copy;
  min-width: 0;
  padding: 58px 54px 54px;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.search-story-copy,
.support-story-copy,
.privacy-story-copy,
.kb-story-copy,
.cite-story-copy {
  border-left: 1px solid var(--ink);
}

.answer-story-copy,
.deploy-story-copy,
.ops-story-copy,
.expert-story-copy {
  border-right: 1px solid var(--ink);
}

.story-copy.ops-story-copy h3 {
  font-size: clamp(32px, 2.5vw, 42px);
}

/* B-1 stacks two panels in its demo column. */
.agent-card-deploy {
  grid-template-areas:
    "copy demo"
    "copy demo2";
  grid-template-rows: auto auto;
}

/* Two stacked panels: tighter vertical padding keeps the card near the stage height. */
.story-demo.deploy-demo {
  padding-top: 28px;
  padding-bottom: 28px;
  row-gap: 16px;
}

/* Doubled class so it outranks the generic .story-demo grid-area rule below. */
.story-demo.deploy-demo-cloud {
  grid-area: demo2;
  border-top: 1px solid var(--ink);
}

/* B-1's second title line is long; a slightly smaller size keeps it on two lines
   (doubled class so it outranks the generic .story-copy h3 rule below). */
.story-copy.deploy-story-copy h3 {
  font-size: clamp(30px, 2.5vw, 40px);
}

.story-copy.privacy-story-copy h3 {
  font-size: clamp(34px, 2.6vw, 44px);
}

.globe-dock-quaternary {
  top: -140px;
  right: -150px;
  left: auto;
}

.globe-dock-quinary {
  top: -150px;
  left: -120px;
}

.globe-dock-senary {
  top: -130px;
  right: -160px;
  left: auto;
}

.globe-dock-septenary {
  top: -140px;
  left: -130px;
}

.globe-dock-octonary {
  top: -150px;
  right: -140px;
  left: auto;
}

.globe-dock-nonary {
  top: -135px;
  left: -140px;
}

.globe-dock-denary {
  top: -145px;
  right: -150px;
  left: auto;
}

.globe-dock-undenary {
  top: -140px;
  left: -125px;
}

.globe-dock-duodenary {
  top: -150px;
  right: -145px;
  left: auto;
}

.story-copy h3 {
  margin: 54px 0 0;
  font-size: clamp(38px, 3vw, 50px);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.story-copy h3 span {
  color: var(--blue);
}

.story-summary {
  margin-top: 24px;
  color: #4a4d46;
  font-size: 16px;
  line-height: 1.65;
}

.story-summary p {
  margin: 0;
}

.story-summary p + p {
  margin-top: 12px;
}

.story-summary strong {
  color: var(--ink);
  font-weight: 840;
  box-shadow: inset 0 -0.42em 0 var(--acid);
}

.seo-terms {
  margin-top: 22px;
}

/* B-2 splits its copy around the icon grid; the second paragraph keeps a matching gap. */
.privacy-summary-after {
  margin-top: 22px;
}

.story-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.story-points li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
}

.story-points li:last-child {
  border-bottom: 1px solid var(--line);
}

.story-points li::before {
  position: absolute;
  top: 18px;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  border: 1px solid var(--blue);
  background: var(--blue);
}

.story-demo {
  position: relative;
  grid-area: demo;
  min-width: 0;
  padding: 40px;
  display: grid;
  align-content: center;
  justify-items: center;
  row-gap: 22px;
  overflow: hidden;
  background: transparent;
}

/* Heading above each demo window, same treatment as A-2's "大模型生态" heading. */
.story-demo-heading {
  width: min(100%, 560px);
  padding-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.story-demo-heading strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}

/* Search window */
.search-window {
  width: min(100%, 560px);
  padding: 22px 24px 20px;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--ink);
}

.search-query {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.search-query.is-typing::after {
  width: 1px;
  height: 18px;
  margin-left: 2px;
  content: "";
  background: var(--ink);
  animation: chat-caret 720ms steps(1) infinite;
}

.search-button {
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: background-color 120ms ease, transform 120ms ease;
}

.search-button.is-pressed {
  background: var(--blue);
  transform: scale(0.96);
}

.search-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.search-meta.is-visible {
  opacity: 1;
}

.search-results {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.search-result {
  padding: 13px 0 12px 12px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease;
}

.search-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.search-result.is-brand.is-highlighted {
  border-left-color: var(--blue);
}

.result-site {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.result-favicon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #777a72;
  font-size: 10px;
  font-weight: 800;
}

.result-favicon-brand {
  border-color: var(--line);
  background: #fff;
}

.result-favicon-brand img {
  width: 12px;
  height: auto;
  display: block;
}

.result-ad-badge {
  padding: 1px 5px;
  border: 1px solid #b6b8b1;
  color: #5f625b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.result-rank {
  margin-left: auto;
  padding: 2px 7px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.result-rank.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.result-title {
  margin-top: 5px;
  display: block;
  color: #1a3fd6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.search-result.is-brand .result-title {
  color: var(--blue);
}

.result-snippet {
  margin: 4px 0 0;
  color: #4a4d46;
  font-size: 12px;
  line-height: 1.55;
}

/* Answer window */
.answer-window {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
}

.answer-topbar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.answer-model {
  font-weight: 800;
}

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

.answer-thread {
  min-height: 420px;
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.answer-user {
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.answer-user.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.answer-user-bubble {
  max-width: 80%;
  padding: 9px 13px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.answer-assistant {
  display: none;
}

.answer-assistant.is-visible {
  display: block;
}

.answer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.answer-status.is-done .answer-spinner {
  display: none;
}

.answer-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: answer-spin 800ms linear infinite;
}

@keyframes answer-spin {
  to {
    transform: rotate(360deg);
  }
}

.answer-markdown {
  margin-top: 12px;
  color: #2a2c27;
  font-size: 13px;
  line-height: 1.65;
}

.answer-markdown > * {
  margin: 0;
}

.answer-markdown > * + * {
  margin-top: 10px;
}

.answer-markdown > [hidden] {
  display: none;
}

.answer-markdown h4 {
  font-size: 14px;
  font-weight: 830;
}

.answer-markdown ol {
  padding-left: 20px;
}

.answer-markdown li + li {
  margin-top: 6px;
}

.answer-markdown strong {
  color: var(--ink);
  font-weight: 800;
}

.answer-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.answer-caret {
  width: 2px;
  height: 1em;
  margin-left: 1px;
  display: inline-block;
  vertical-align: -0.15em;
  background: var(--blue);
  animation: chat-caret 720ms steps(1) infinite;
}

.answer-sources {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 260ms ease;
}

.answer-sources.is-visible {
  opacity: 1;
}

.answer-sources-label {
  margin-right: 4px;
  color: var(--muted);
  font-weight: 700;
}

.answer-source-chip {
  padding: 2px 8px;
  border: 1px solid var(--line);
  color: #4a4d46;
}

.answer-inputbar {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--ink);
}

.answer-input {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.answer-input.is-typing::after {
  width: 1px;
  height: 16px;
  margin-left: 2px;
  content: "";
  background: var(--ink);
  animation: chat-caret 720ms steps(1) infinite;
}

.answer-send {
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: background-color 120ms ease, transform 120ms ease;
}

.answer-send.is-pressed {
  background: var(--blue);
  transform: scale(0.96);
}

/* Chat window (A-6): a site live-chat widget answered by AI in the visitor's language. */
.support-window {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
}

.support-topbar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.support-site {
  font-weight: 800;
}

.support-agent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.support-agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 86, 255, 0.16);
}

.support-context {
  margin: 0;
  padding: 9px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f4;
  font-size: 11px;
  line-height: 1.5;
}

.support-context dt {
  color: var(--muted);
  font-weight: 700;
}

.support-context dd {
  margin: 0;
  color: #2a2c27;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-thread {
  min-height: 380px;
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-visitor {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.support-visitor.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.support-visitor-bubble {
  max-width: 82%;
  padding: 9px 13px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.support-visitor-translation {
  max-width: 82%;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: right;
  opacity: 0;
  transition: opacity 260ms ease;
}

.support-visitor-translation.is-visible {
  opacity: 1;
}

.support-reply {
  display: none;
}

.support-reply.is-visible {
  display: block;
}

.support-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.support-status.is-done .answer-spinner {
  display: none;
}

.support-status.is-done::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--blue);
}

.support-reply-bubble {
  max-width: 88%;
  margin-top: 12px;
  padding: 11px 14px 10px;
  border: 1px solid var(--ink);
  background: #fff;
}

.support-reply-bubble[hidden] {
  display: none;
}

.support-reply-text {
  margin: 0;
  color: #2a2c27;
  font-size: 13px;
  line-height: 1.6;
}

.support-reply-text strong {
  color: var(--ink);
  font-weight: 800;
}

.support-reply-translation {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 260ms ease;
}

.support-reply-translation.is-visible {
  opacity: 1;
}

.support-sources {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 260ms ease;
}

.support-sources.is-visible {
  opacity: 1;
}

.support-sources-label {
  margin-right: 4px;
  color: var(--muted);
  font-weight: 700;
}

.support-lead {
  max-width: 88%;
  margin: 12px 0 8px;
  padding: 12px 14px;
  display: grid;
  row-gap: 6px;
  border: 1px solid var(--blue);
  background: rgba(36, 86, 255, 0.05);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.support-lead.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.support-lead-title {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.support-lead-note {
  color: #4a4d46;
  font-size: 11.5px;
  line-height: 1.5;
}

.support-lead-form {
  margin-top: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 12px;
}

.support-lead-field {
  padding: 7px 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-lead-button {
  padding: 7px 12px;
  border-left: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

/* Spec table (B-1): three deployment tiers side by side. */
.spec-window {
  width: min(100%, 600px);
  padding: 6px 0 0;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
  table-layout: fixed;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.spec-table thead th {
  padding-top: 10px;
  border-top: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.spec-table thead th:first-child {
  width: 22%;
}

.spec-table tbody th {
  color: var(--ink);
  font-weight: 800;
}

.spec-table tbody td {
  color: #2a2c27;
  font-weight: 600;
}

.spec-table tbody tr:first-child th,
.spec-table tbody tr:first-child td {
  border-top: 0;
}

.spec-table .is-recommended {
  background: rgba(36, 86, 255, 0.06);
}

.spec-table thead .is-recommended {
  color: var(--blue);
  box-shadow: inset 0 3px 0 var(--blue);
}

.spec-table tbody .is-recommended {
  color: var(--ink);
}

.spec-row-cost th,
.spec-row-cost td {
  border-top: 1px solid var(--ink);
}

.spec-row-cost strong {
  color: var(--blue);
  font-size: 15px;
  font-weight: 840;
  white-space: nowrap;
}

.spec-table tbody tr[data-spec-row] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.spec-table tbody tr[data-spec-row].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keeps a short suffix like （推荐） from being split across lines in narrow cells. */
.spec-nowrap {
  white-space: nowrap;
}

/* Cloud compatibility table: seven narrow columns. */
.cloud-table {
  font-size: 12px;
}

.cloud-table th,
.cloud-table td {
  padding: 11px 8px;
}

.cloud-table thead th:first-child,
.cloud-table tbody th {
  padding-left: 14px;
}

.cloud-table thead th:first-child {
  width: 15%;
}

.spec-ok {
  display: block;
  margin-top: 2px;
}

/* A cell that only says 兼容 has no product line above it. */
.spec-ok:only-child {
  margin-top: 0;
}

.spec-ok {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.spec-ok::before {
  margin-right: 3px;
  content: "✓";
}


/* Privacy demo (B-2): the same inquiry seen by the company and by the AI. */
/* Desktop: heading across the top, the two views side by side. The two mobile screens are
   transparent wrappers here (display: contents) and become snap screens below 1120px. */
.story-demo.privacy-demo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  column-gap: 18px;
  row-gap: 22px;
}

.privacy-screen {
  display: contents;
}

.privacy-demo .story-demo-heading {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.privacy-view-internal {
  grid-column: 1;
}

.privacy-view-ai {
  grid-column: 2;
}

.privacy-view {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
}

.privacy-view-title {
  margin: 0;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.privacy-view-ai .privacy-view-title {
  color: var(--blue);
}

.privacy-lock {
  width: 24px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.lock-icon {
  width: 24px;
  height: 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* The shackle pivots on its right leg: open = lifted and swung round half a turn (a
   horizontal flip about the leg, which is what a 180° swing looks like head-on); locking
   swings it back and drops it into the body. */
.lock-shackle {
  transform-box: view-box;
  transform-origin: 16px 0;
  transition: transform 640ms cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-lock.is-open .lock-shackle,
.privacy-lock:not(.is-locked) .lock-shackle {
  transform: translateY(-2.5px) scaleX(-1);
}

.privacy-lock.is-locked .lock-shackle {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lock-shackle {
    transition: none;
  }
}

.mail-card {
  padding: 12px 14px 4px;
  font-size: 12px;
  line-height: 1.6;
  color: #2a2c27;
}

.mail-head {
  margin: 0;
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.mail-head dt {
  color: var(--muted);
  font-weight: 700;
}

.mail-head dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mail-body p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.pii {
  color: var(--ink);
  font-weight: 800;
  transition: filter 420ms ease;
}

/* Gaussian blur stands in for the masking; the text stays in the DOM for layout only.
   The blur sits on an inner span so the token chip after it stays sharp. */
.pii-text {
  transition: filter 420ms ease;
}

.pii.is-masked .pii-text {
  filter: blur(4px);
  -webkit-user-select: none;
  user-select: none;
}

.pii.is-masked::after {
  margin: 0 2px 0 4px;
  padding: 0 4px;
  display: inline-block;
  content: attr(data-token);
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* The model's reply: tokens first, then each one restored to the real value. */
.ai-reply {
  margin-top: 6px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.6;
  color: #2a2c27;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.ai-reply[hidden] {
  display: none;
}

.ai-reply.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-reply-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ai-reply-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ai-reply .mail-body p:first-child {
  margin-top: 6px;
}

.tok {
  padding: 0 3px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tok.is-restored {
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: inherit;
  white-space: normal;
  box-shadow: inset 0 -0.42em 0 var(--acid);
  animation: tok-restore 700ms ease;
}

@keyframes tok-restore {
  from {
    background: var(--acid);
  }

  to {
    background: transparent;
  }
}

.ai-prompt {
  padding: 10px 14px 11px;
  border-bottom: 1px solid var(--ink);
  background: rgba(36, 86, 255, 0.05);
  font-size: 12px;
  line-height: 1.55;
}

.ai-prompt-label {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 6px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.ai-prompt p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.privacy-view-note {
  margin: auto 0 0;
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-view-ai .privacy-view-note {
  color: var(--blue);
  font-weight: 700;
}


/* Harness ops demo (B-3): a Codex-style agent console that only calls whitelisted tools. */
.harness-window {
  width: min(100%, 600px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
  font-size: 12px;
  line-height: 1.55;
}

.harness-topbar {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
}

.harness-title {
  font-weight: 800;
}

.harness-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.harness-scope-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.harness-thread {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.harness-user,
.harness-plan,
.harness-final {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.harness-user p,
.harness-plan p,
.harness-final p {
  margin: 0;
  color: #2a2c27;
}

.harness-user p {
  min-height: 1.55em;
  color: var(--ink);
  font-weight: 700;
}

.harness-user p.is-typing::after {
  width: 1px;
  height: 1em;
  margin-left: 2px;
  display: inline-block;
  vertical-align: -0.15em;
  content: "";
  background: var(--ink);
  animation: chat-caret 720ms steps(1) infinite;
}

.harness-user-label,
.harness-ai-label {
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.harness-user-label {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.harness-ai-label {
  color: #fff;
  background: var(--blue);
}

.harness-plan,
.harness-final {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.harness-plan.is-visible,
.harness-final.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.harness-steps {
  margin: 0 0 0 36px;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.harness-step {
  position: relative;
  margin-left: 12px;
  padding: 6px 0 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.harness-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.harness-step + .harness-step {
  border-top: 1px dashed var(--line);
}

.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.step-index {
  position: absolute;
  top: 9px;
  left: -19px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
}

.harness-step.is-done .step-index {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.step-label {
  font-weight: 800;
}

.step-kind {
  color: var(--muted);
  font-weight: 700;
}

.step-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.harness-step.is-running .step-state::before {
  width: 10px;
  height: 10px;
  content: "";
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: answer-spin 800ms linear infinite;
}

.harness-step.is-done .step-state {
  color: var(--blue);
}

.step-result {
  margin: 4px 0 0;
  color: #2a2c27;
  opacity: 0;
  transition: opacity 240ms ease;
}

.harness-step.is-done .step-result {
  opacity: 1;
}

.harness-footer {
  margin-top: auto;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.harness-stat strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 840;
}

.harness-stat.is-zero strong {
  color: var(--blue);
}


/* Knowledge-base pipeline (C-1): sources on the left, extracted and tiered entries on the right. */
.kb-window {
  width: min(100%, 620px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
  font-size: 12px;
  line-height: 1.5;
}

.kb-topbar {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
}

.kb-title {
  font-weight: 800;
}

.kb-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.kb-status.is-busy {
  color: var(--blue);
}

.kb-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) 64px minmax(0, 7fr);
  align-items: start;
}

.kb-column {
  min-width: 0;
  padding: 12px 14px 8px;
}

.kb-column-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kb-sources,
.kb-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-source {
  padding: 8px 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 8px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.kb-source:first-child {
  border-top: 0;
}

.kb-source.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.kb-source-index {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 800;
}

.kb-source.is-done .kb-source-index {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.kb-source-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.kb-source-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.kb-arrow {
  align-self: stretch;
  padding-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.kb-arrow-label {
  padding: 1px 5px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.kb-arrow-line {
  position: relative;
  width: 40px;
  height: 1px;
  background: var(--ink);
}

.kb-arrow-line::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 6px;
  height: 6px;
  content: "";
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.kb-column-entries {
  border-left: 1px solid var(--line);
}

.kb-entry {
  padding: 7px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.kb-entry:first-child {
  border-top: 0;
}

.kb-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kb-tag {
  padding: 0 5px;
  display: inline-block;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
}

.kb-tag.is-public,
.is-public > .kb-tag {
  border-color: var(--blue);
  color: var(--blue);
}

.kb-tag.is-internal,
.is-internal > .kb-tag {
  border-color: var(--ink);
  color: var(--ink);
}

.kb-tag.is-secret,
.is-secret > .kb-tag {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.kb-entry-body {
  min-width: 0;
  display: grid;
  row-gap: 2px;
}

.kb-entry-text {
  color: #2a2c27;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.kb-entry.is-secret .kb-entry-text {
  color: var(--muted);
  font-weight: 700;
}

.kb-entry-meta {
  color: var(--muted);
  font-size: 11px;
}

.kb-entry-update {
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.kb-footer {
  margin-top: auto;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.kb-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kb-stat strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 840;
}


/* Expert permission demo (C-2): two experts over one knowledge base, side by side. Like B-2,
   the two wrappers are transparent on desktop and become snap screens on narrow widths. */
.story-demo.expert-demo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  align-items: stretch;
  column-gap: 18px;
  row-gap: 22px;
}

.expert-screen {
  display: contents;
}

.expert-demo .story-demo-heading {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.expert-view-public {
  grid-column: 1;
}

.expert-view-internal {
  grid-column: 2;
}

.expert-view {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
  font-size: 12px;
  line-height: 1.55;
}

.expert-view-title {
  margin: 0;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.expert-x {
  color: var(--muted);
  font-weight: 400;
}

.expert-name {
  color: var(--blue);
}

.expert-layers {
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f4;
}

.expert-layer {
  padding: 0 6px;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.7;
  white-space: nowrap;
}

.expert-layer.is-on {
  border-color: var(--blue);
  color: var(--blue);
}

.expert-layer.is-off {
  border-style: dashed;
  border-color: #b6b8b1;
  color: var(--muted);
}

.expert-thread {
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expert-user,
.expert-ai {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.expert-user.is-visible,
.expert-ai.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.expert-user p,
.expert-ai p {
  margin: 0;
  color: #2a2c27;
}

.expert-user p {
  color: var(--ink);
  font-weight: 700;
}

.expert-user-label,
.expert-ai-label {
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.expert-user-label {
  border: 1px solid var(--ink);
}

.expert-ai-label {
  color: #fff;
  background: var(--blue);
}

.expert-ai.is-none .expert-ai-label {
  background: var(--ink);
}

.expert-meta {
  margin-top: 3px;
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.expert-ai.is-none .expert-meta {
  color: var(--muted);
}

/* Cited answers demo (C-3): answers carry [n] marks that point at source cards. */
.cite-window {
  width: min(100%, 600px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(36, 86, 255, 0.1);
  font-size: 12px;
  line-height: 1.6;
}

.cite-topbar {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
}

.cite-title {
  font-weight: 800;
}

.cite-mode {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cite-thread {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cite-user,
.cite-ai {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.cite-user.is-visible,
.cite-ai.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cite-user p,
.cite-text {
  margin: 0;
  color: #2a2c27;
}

.cite-user p {
  color: var(--ink);
  font-weight: 700;
}

.cite-user-label,
.cite-ai-label {
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.cite-user-label {
  border: 1px solid var(--ink);
}

.cite-ai-label {
  color: #fff;
  background: var(--blue);
}

.cite-ai.is-none .cite-ai-label {
  background: var(--ink);
}

.cite-ai-body {
  min-width: 0;
}

.cite-mark {
  margin: 0 1px;
  padding: 0 3px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: super;
  transition: background-color 240ms ease, color 240ms ease;
}

.cite-mark.is-lit {
  color: #fff;
  background: var(--blue);
}

.cite-sources {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.cite-source {
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  background: #f7f7f4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease;
}

.cite-source.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cite-source.is-lit {
  border-color: var(--blue);
}

.cite-source-index {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.cite-source-body {
  min-width: 0;
  display: grid;
  row-gap: 1px;
}

.cite-source-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cite-source-meta {
  color: var(--muted);
  font-size: 11px;
}

.cite-none-badge {
  margin-top: 6px;
  padding: 0 6px;
  display: inline-block;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 240ms ease;
}

.cite-none-badge.is-visible {
  opacity: 1;
}

.cite-footer {
  margin-top: auto;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cite-stat strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 840;
}

.cite-stat.is-zero strong {
  color: var(--blue);
}


/* FAQ: plain flow after the card stage (no snap stops), exclusive details accordion. */
.faq {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 8vw, 120px) 0 clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.faq-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.faq-kicker {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.faq-head h2 {
  margin: 20px 0 0;
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.faq-lead {
  margin: 18px 0 0;
  color: #4a4d46;
  font-size: 15px;
  line-height: 1.7;
}

.faq-sales {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: none;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--ink);
}

.faq-question {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  column-gap: 12px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.faq-index {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
}

.faq-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  content: "";
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 40px 22px 52px;
  color: #4a4d46;
  font-size: 15px;
  line-height: 1.75;
}

.faq-answer p {
  margin: 0;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  color: #fff;
  background: var(--ink);
}

.site-footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.site-footer > .site-footer-inner {
  padding: clamp(48px, 5vw, 72px) 0 clamp(40px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 96px);
  row-gap: 40px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand-logo {
  height: 34px;
}

.footer-tagline {
  max-width: 420px;
  margin: 18px 0 0;
  color: #c9cbc3;
  font-size: 14px;
  line-height: 1.7;
}

.footer-domain {
  margin: 10px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  row-gap: 10px;
}

.footer-col a,
.footer-link-button {
  padding: 0;
  border: 0;
  color: #c9cbc3;
  background: none;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible,
.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer-bottom .site-footer-inner {
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: #9a9d95;
  font-size: 12px;
}

.spec-note {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .hero-main {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "ledger"
      "deployment";
    padding-top: calc(var(--nav-height) + 92px);
    column-gap: 0;
    row-gap: 56px;
  }

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

  .capability-ledger {
    width: 100%;
  }

  .deployment-support {
    margin-top: 0;
  }

  .system-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .agent-card-primary {
    grid-template-columns: 1fr;
  }

  .agent-card-secondary {
    min-height: 0;
    grid-template-areas:
      "copy"
      "providers";
    grid-template-columns: 1fr;
  }

  .model-expert-copy {
    min-height: 720px;
    border-bottom: 1px solid var(--ink);
    border-left: 0;
  }

  .faq-inner,
  .site-footer > .site-footer-inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  /* Long single-word system names (OpenCloudOS) shrink with the viewport so the 4-column
     grid never clips them. */
  .system-name-compact {
    font-size: min(10px, 2.55vw);
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }

  /* Phone fonts run wider than desktop ones: let the icon-grid labels wrap and let long
     tokens in narrow cells break instead of running past the card edge. */
  .command-capability > span:last-child {
    white-space: normal;
    overflow-wrap: anywhere;
    /* Two-line labels split evenly (专业人员 / 指导部署) instead of leaving one character. */
    text-wrap: balance;
    line-height: 1.25;
  }

  .story-summary,
  .story-copy h3,
  .agent-command-title,
  .model-expert-summary,
  .spec-table td,
  .kb-entry-text,
  .harness-thread p,
  .expert-thread p,
  .cite-thread p,
  .mail-body p {
    overflow-wrap: anywhere;
  }

  .agent-card-search,
  .agent-card-answer,
  .agent-card-chat,
  .agent-card-deploy,
  .agent-card-privacy,
  .agent-card-ops,
  .agent-card-kb,
  .agent-card-expert,
  .agent-card-cite {
    min-height: 0;
    grid-template-areas:
      "copy"
      "demo";
    grid-template-columns: 1fr;
  }

  .agent-card-deploy {
    grid-template-areas:
      "copy"
      "demo"
      "demo2";
    grid-template-rows: auto;
  }

  .story-copy {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    border-left: 0;
  }

  .story-demo {
    padding: 32px;
  }

  .model-provider-panel {
    min-height: 720px;
  }

  .agent-card-copy {
    min-height: 560px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .agent-card-demo {
    padding: 32px;
  }

  .phone-stage {
    min-height: 720px;
    grid-template-rows: auto auto auto;
    row-gap: 14px;
  }

  .scenario-rail {
    position: static;
    grid-row: 2;
    width: 100%;
    display: grid;
    place-items: center;
    transform: none;
  }

  .scenario-title {
    grid-row: 1;
    width: var(--demo-phone-width);
    max-width: 100%;
  }

  .scenario-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .phone-device {
    grid-row: 3;
  }

  .wechat-demo {
    height: 100%;
  }

  @media (min-width: 721px) {
    :root {
      --container: min(
        1400px,
        calc(
          100% -
            (
              32px +
                (100vw - 720px) / 400px *
                (32px - (100vw - 100%))
            )
        )
      );
    }

    .agent-card-global {
      aspect-ratio: calc(0.714286 + (100vw - 720px) / 400px * 0.906084);
    }

  .agent-card-global .global-story-content {
    padding:
      clamp(18px, calc(10vw - 54px), 58px)
      clamp(12px, calc(10.5vw - 63.6px), 54px)
      clamp(20px, calc(10vw - 52px), 60px);
  }

  .agent-card-global .global-story-content > .agent-card-number {
    width: clamp(28px, calc(5vw - 8px), 48px);
    height: clamp(28px, calc(5vw - 8px), 48px);
    font-size: clamp(14px, calc(1.5vw + 3.2px), 20px);
  }

  .agent-card-global .global-story-heading {
    width: min(920px, 92%);
    margin-top: clamp(14px, calc(5.5vw - 25.6px), 36px);
  }

  .agent-card-global .global-story-heading h3 {
    font-size: clamp(34px, calc(3.825vw + 6.46px), 49.3px);
    line-height: 1.08;
  }

  .agent-card-global .global-story-heading p {
    margin-top: clamp(8px, calc(3vw - 13.6px), 20px);
    font-size: clamp(14px, calc(0.25vw + 12.2px), 15px);
    line-height: 1.6;
  }

  .agent-card-global .global-story-input-demo {
    width: clamp(280px, calc(70vw - 224px), 560px);
    gap: clamp(7px, calc(0.75vw + 1.6px), 10px);
  }

  .agent-card-global .global-story-input,
  .agent-card-global .global-story-send {
    min-height: clamp(44px, calc(6vw + 0.8px), 68px);
  }

  .agent-card-global .global-story-input {
    padding: 0 clamp(12px, calc(2.5vw - 6px), 22px);
    font-size: clamp(15px, calc(1.25vw + 6px), 20px);
  }

  .agent-card-global .global-story-send {
    min-width: clamp(72px, calc(5vw + 36px), 92px);
    padding: 0 clamp(10px, calc(2vw - 4.4px), 18px);
    font-size: clamp(14px, calc(0.25vw + 12.2px), 15px);
  }

  .agent-card-global .global-language-field {
    width: calc(100% - clamp(0px, calc(19vw - 136.8px), 76px));
    height: clamp(230px, calc(10vw + 158px), 270px);
    margin: auto 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
  }

  .agent-card-global .global-language-field .globe-language-label {
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 4px;
    font-size: clamp(22px, calc(1.5vw + 11.2px), 28px);
    font-weight: 850;
    line-height: 1.08;
  }

    .agent-card-global .global-language-field .globe-language-label:is([lang="ja"], [lang="ko"], [lang="tr"]) {
      font-size: clamp(20px, calc(1.5vw + 9.2px), 26px);
    }
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 66px;
    --container: min(100% - 32px, 1400px);
  }

  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand-logo {
    height: 26px;
  }

  .sales-control {
    min-height: 40px;
    padding: 0 12px;
    font-size: 10px;
  }

  .globe-journey {
    top: 104px;
    right: auto;
    left: 38%;
    width: clamp(460px, 64vw, 720px);
  }

  .globe-canvas {
    transform: rotate(var(--earth-axis-tilt));
  }

  .hero-main {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 62px;
    column-gap: 0;
    row-gap: 46px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
    line-height: 0.93;
  }

  .title-en {
    white-space: normal;
  }

  .lede {
    margin-top: 30px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .deployment-support {
    margin-top: 0;
    padding-top: 18px;
  }

  .architecture-grid {
    gap: 8px 24px;
  }

  .architecture-name strong {
    font-size: 14px;
  }

  .system-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .system-item {
    min-height: 78px;
    padding: 4px 2px;
    font-size: 10px;
  }

  .system-logo,
  .system-logo-vector {
    width: 36px;
    height: 36px;
  }

  .system-logo-wide {
    width: min(56px, 92%);
  }

  .cta {
    width: 100%;
  }

  .capability-ledger {
    padding-left: 0;
  }

  .capability-ledger::before {
    top: 74px;
    bottom: 38px;
    left: 22px;
  }

  .feature {
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 24px 0 28px;
  }

  .feature-no {
    width: 44px;
    height: 44px;
  }

  .feature-body p {
    font-size: 14px;
    line-height: 1.82;
  }

  .hero-definition p {
    font-size: 12px;
  }

  .agent-showcase {
    padding: 84px 0;
  }

  .agent-showcase-title {
    margin-bottom: 42px;
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.12;
  }

  .agent-showcase-title-secondary {
    margin-bottom: 0;
    font-size: clamp(26px, 7.5vw, 40px);
  }

  .agent-card-grid {
    gap: 14px;
  }

  .agent-card-copy {
    min-height: 520px;
    padding: 32px 24px 30px;
  }

  .agent-card-copy h3 {
    margin-top: 38px;
    font-size: 34px;
  }

  .command-kicker {
    font-size: 34px;
  }

  .command-action {
    margin-top: 8px;
    font-size: 28px;
  }

  .command-capabilities {
    margin-top: 24px;
    gap: 12px;
  }

  .command-capability {
    min-height: 60px;
    padding: 4px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    text-align: left;
    font-size: 12px;
  }

  .command-icon {
    width: 34px;
    height: 34px;
  }

  .command-icon svg {
    width: 22px;
    height: 22px;
  }

  .agent-card-copy > p {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.8;
  }

  .agent-card-demo {
    padding: 22px 16px;
  }

  .phone-stage {
    --demo-phone-width: min(304px, calc(100vw - 64px));
    min-height: 0;
    padding: 18px 0;
    grid-template-rows: auto auto auto;
    align-content: start;
    justify-items: center;
    row-gap: 12px;
  }

  .scenario-title {
    width: 100%;
    max-width: none;
    font-size: 16px;
  }

  .phone-device {
    width: var(--demo-phone-width);
    padding: 7px;
    border-radius: 54px;
  }

  .phone-screen {
    border-radius: 45px;
    clip-path: inset(0 round 45px);
  }

  .wechat-demo {
    height: 100%;
  }

  .wechat-topbar {
    padding: 0 8px;
  }

  .wechat-thread {
    padding: 12px 8px 16px;
    overflow-y: hidden;
    overscroll-behavior: auto;
    scrollbar-width: none;
    touch-action: pan-y;
  }

  .chat-bubble {
    padding: 10px;
    font-size: 9px;
  }

  .report-grid {
    column-gap: 8px;
  }

  .model-expert-copy {
    min-height: 0;
    padding: 42px 30px;
  }

  .story-copy {
    padding: 42px 30px;
  }

  .story-copy h3 {
    margin-top: 38px;
    font-size: clamp(32px, 9vw, 44px);
  }

  .story-demo-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .story-summary {
    font-size: 15px;
  }

  .story-demo {
    padding: 22px 16px;
  }

  .search-window {
    padding: 16px 16px 14px;
  }

  .answer-thread {
    min-height: 0;
    padding: 14px 14px 6px;
  }

  .support-thread {
    min-height: 0;
    padding: 14px 14px 6px;
  }

  .support-context {
    padding: 8px 14px;
  }

  .support-reply-bubble,
  .support-lead {
    max-width: 100%;
  }

  .story-copy.deploy-story-copy h3 {
    font-size: clamp(24px, 7vw, 40px);
  }

  .story-copy.privacy-story-copy h3 {
    font-size: clamp(20px, 6.8vw, 40px);
  }

  .story-copy.ops-story-copy h3 {
    font-size: clamp(20px, 6.2vw, 40px);
  }

  .story-copy.expert-story-copy h3 {
    font-size: clamp(24px, 8.4vw, 40px);
  }

  .faq-question {
    padding: 16px 0;
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    font-size: 15px;
  }

  .faq-toggle {
    width: 24px;
    height: 24px;
  }

  .faq-answer {
    padding: 0 0 18px 42px;
    font-size: 14px;
  }

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

  .harness-thread {
    padding: 12px 12px 8px;
  }

  .harness-steps {
    margin-left: 30px;
  }

  .harness-topbar {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  /* Narrow screens: sources above, entries below, with a downward arrow between. */
  .kb-body {
    grid-template-columns: 1fr;
  }

  .kb-arrow {
    padding: 4px 0 6px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .kb-arrow-line {
    width: 1px;
    height: 18px;
  }

  .kb-arrow-line::after {
    top: auto;
    right: -3px;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .kb-column-entries {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .kb-topbar {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  /* Narrow screens: each parameter becomes a block with the three tiers side by side. */
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
  }

  .spec-table thead {
    display: none;
  }

  .spec-table tbody tr {
    padding: 10px 14px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
    border-top: 1px solid var(--line);
  }

  .spec-table tbody tr:first-child {
    border-top: 0;
  }

  .spec-table tbody th {
    grid-column: 1 / -1;
    padding: 0 0 6px;
    border-top: 0;
    font-size: 12px;
  }

  .spec-table tbody td {
    padding: 6px 8px 7px;
    border-top: 0;
    border: 1px solid var(--line);
    font-size: 12px;
  }

  .spec-table tbody td::before {
    margin-bottom: 2px;
    display: block;
    content: attr(data-tier);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .spec-table tbody .is-recommended {
    border-color: var(--blue);
  }

  .spec-table tbody .is-recommended::before {
    color: var(--blue);
  }

  .spec-row-cost th,
  .spec-row-cost td {
    border-top: 0;
  }

  .spec-table tbody tr.spec-row-cost {
    border-top: 1px solid var(--ink);
  }

  .spec-row-cost strong {
    font-size: 12px;
    letter-spacing: -0.02em;
  }

  .spec-table tbody .spec-row-cost td {
    padding-right: 5px;
    padding-left: 6px;
  }

  .privacy-demo .story-demo-heading,
  .expert-demo .story-demo-heading {
    margin-bottom: 16px;
  }

  .cite-topbar {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .cloud-table tbody tr {
    row-gap: 8px;
  }

  .cloud-table tbody th {
    padding-bottom: 0;
  }

  .cloud-table tbody td {
    padding: 6px 8px 7px;
  }

  .model-expert-copy h3 {
    margin-top: 38px;
    font-size: clamp(34px, 10vw, 44px);
  }

  .model-provider-panel {
    min-height: 0;
    padding: 38px 24px;
  }

  .model-wall-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .model-wall-heading small {
    text-align: left;
  }

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

  .model-provider-item {
    min-height: 158px;
  }

  .model-provider-logo {
    width: 62px;
    height: 62px;
  }

  .model-provider-logo-wide {
    width: 96px;
  }

  .expert-trigger {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 4px 12px;
  }

  .expert-name,
  .expert-summary {
    grid-column: 1;
  }

  .expert-indicator {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .expert-panel-inner {
    padding: 8px 28px 14px 0;
    font-size: 11px;
  }

  .agent-card-global {
    grid-column: 1 / -1;
    min-height: 0;
    aspect-ratio: 5 / 7;
  }

  .agent-card-global::after {
    background:
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02) 0 48%,
        rgba(255, 255, 255, 0.38) 74%,
        rgba(255, 255, 255, 0.97) 100%
      ),
      radial-gradient(
        circle at 50% 62%,
        rgba(255, 255, 255, 0.04) 0 38%,
        rgba(255, 255, 255, 0.62) 74%,
        rgba(255, 255, 255, 0.94) 100%
      );
  }

  .globe-dock-tertiary {
    top: 0;
  }

  .global-story-content {
    height: 100%;
    min-height: 0;
    padding:
      clamp(8px, 2.6vw, 18px)
      clamp(5px, 2vw, 12px)
      clamp(10px, 3vw, 20px);
  }

  .global-story-content > .agent-card-number {
    width: clamp(12px, 4vw, 28px);
    height: clamp(12px, 4vw, 28px);
    font-size: clamp(8px, 2.2vw, 14px);
  }

  .global-story-heading {
    width: 100%;
    margin-top: clamp(6px, 1.8vw, 14px);
  }

  .global-story-heading h3 {
    font-size: clamp(18px, 5.6vw, 34px);
    line-height: 1.08;
  }

  .global-story-heading p {
    margin-top: clamp(4px, 1.2vw, 8px);
    font-size: 14px;
    line-height: 1.4;
  }

  .global-story-input-demo {
    width: min(78%, 280px);
    gap: clamp(3px, 1vw, 7px);
  }

  .global-story-input {
    min-height: clamp(28px, 8vw, 44px);
    padding: 0 clamp(5px, 1.8vw, 12px);
    box-shadow: 3px 3px 0 rgba(36, 86, 255, 0.12);
    font-size: clamp(11px, 2.8vw, 15px);
  }

  .global-story-input::after {
    width: 1px;
    height: clamp(10px, 3.4vw, 22px);
    margin-left: 2px;
    flex-basis: 1px;
  }

  .global-story-send {
    min-width: clamp(34px, 11vw, 72px);
    min-height: clamp(28px, 8vw, 44px);
    padding: 0 clamp(4px, 1.5vw, 10px);
    box-shadow: 2px 2px 0 rgba(36, 86, 255, 0.14);
    font-size: clamp(10px, 2.8vw, 14px);
  }

  .global-story-send.is-pressing {
    box-shadow: none;
    transform: translate(1px, 1px) scale(0.96);
  }

  .global-language-field {
    width: 100%;
    height: clamp(138px, 46vw, 230px);
    margin: auto 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  .global-language-field .globe-language-label {
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 1px;
    font-size: clamp(11px, 3.5vw, 22px);
    font-weight: 850;
    line-height: 1.05;
  }

  .global-language-field .globe-language-label:is([lang="ja"], [lang="ko"], [lang="tr"]) {
    font-size: clamp(10px, 3.2vw, 20px);
    letter-spacing: -0.03em;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 520px) {
  .global-language-field {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
  }

  .deployment-tooltip {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    width: auto;
  }

  .system-item {
    min-height: 76px;
    font-size: 10px;
  }

  .platform-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 60px;
  }

  .platform-item {
    min-height: 60px;
    padding: 8px 7px;
    gap: 6px;
  }

  .platform-logo {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .platform-name small {
    display: none;
  }

  .phone-device {
    border-radius: 52px;
  }

  .phone-screen {
    border-radius: 43px;
    clip-path: inset(0 round 43px);
  }
}

@media (max-width: 350px) {
  .system-item {
    min-height: 74px;
    padding-right: 2px;
    padding-left: 2px;
    font-size: 9.5px;
  }

  .system-logo,
  .system-logo-vector {
    width: 34px;
    height: 34px;
  }

  .system-logo-wide {
    width: min(52px, 90%);
  }

  .system-name-compact {
    font-size: 8.5px;
    letter-spacing: -0.05em;
  }

  .system-item-macos {
    padding-right: 0;
    padding-left: 0;
  }

  .system-item-macos .system-name-row {
    gap: 1px;
  }

  .system-item-macos .deployment-info {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .command-kicker {
    font-size: 30px;
  }

  .command-action {
    margin-top: 6px;
    font-size: 24px;
  }

  .command-capability {
    min-height: 76px;
    padding: 6px 2px;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 6px;
    text-align: center;
    font-size: 12px;
    letter-spacing: -0.04em;
  }

  .command-icon {
    width: 32px;
    height: 32px;
  }

  .platform-item-office {
    padding: 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .platform-item-office .platform-logo {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .platform-item-office .platform-name strong {
    font-size: 9px;
  }
}

@media (max-width: 1120px) {
  /* Mobile card stage: native scroll snapping, one screen per panel. Each screen spans
     from the snap line (nav + 20px, see scroll-padding-top) to the bottom of the small
     viewport; a 20px gap between screens keeps the pitch at exactly one viewport. This
     block sits after every width breakpoint so it wins over their panel sizing. */
  :root {
    --stage-screen: calc(100vh - var(--nav-height) - 20px);
    --stage-screen: calc(100svh - var(--nav-height) - 20px);
    /* Distance from the snap line to the first screen's top (hero padding minus 20px). */
    --stage-hero-lead: 72px;
  }

  html {
    scroll-snap-type: y mandatory;
  }

  [data-mobile-stage] {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* overflow: hidden would make each card its own scroll container and capture the
     panels' snap areas; clip keeps the clipping without creating a scroller. */
  .agent-card {
    overflow: hidden;
    overflow: clip;
  }

  .hero-main {
    padding-bottom: 0;
    row-gap: 20px;
  }

  /* First screen parks at scroll 0: it starts below the snap line by the hero lead, so it
     is that much shorter and its snap margin cancels the offset. */
  .hero-copy {
    min-height: calc(var(--stage-screen) - var(--stage-hero-lead));
    scroll-margin-top: var(--stage-hero-lead);
    align-content: center;
  }

  .capability-ledger,
  .deployment-support {
    min-height: var(--stage-screen);
    margin-top: 0;
    align-content: center;
  }

  .agent-showcase {
    padding: 20px 0 24px;
  }

  .agent-showcase-title {
    height: var(--stage-screen);
    margin-bottom: 20px;
    align-content: center;
  }

  .agent-showcase-title-secondary {
    margin-bottom: 0;
  }

  .agent-showcase-title-vision {
    align-content: start;
    padding-top: clamp(48px, 9vh, 96px);
  }

  /* The vision sentence is long: let it flow naturally on phones at a smaller size. */
  .agent-showcase-title-vision {
    font-size: clamp(21px, 6vw, 40px);
  }

  .vision-heading {
    text-wrap: balance;
  }

  .vision-heading br {
    display: none;
  }

  .vision-audience {
    margin-top: 26px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 6px;
    font-size: 11px;
  }

  .vision-audience li {
    gap: 6px;
  }

  .vision-icon {
    width: 38px;
    height: 38px;
  }

  .vision-icon svg {
    width: 21px;
    height: 21px;
  }

  .agent-card-copy,
  .model-expert-copy,
  .story-copy {
    min-height: var(--stage-screen);
    justify-content: center;
  }

  /* Second panel of a card: its top border parks right under the nav (no 20px strip of
     the previous panel showing), so it is 20px taller to still reach the bottom. */
  .agent-card-demo,
  .model-provider-panel,
  .story-demo {
    min-height: calc(var(--stage-screen) + 20px);
    scroll-margin-top: -20px;
  }

  /* After the last stage screen the page scrolls naturally: FAQ + footer form one snap
     area taller than the viewport, and a snap area larger than the snapport is scrolled
     freely, so mandatory snapping never pulls the reader back up. */
  .page-tail {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    scroll-snap-align: start;
  }

  /* B-2: the panel is a plain wrapper and each of its two views is a snap screen. Its
     overflow must be clip, not hidden, or it would become a scroll container and capture
     the screens' snap areas. */
  .story-demo.privacy-demo {
    min-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    overflow: clip;
  }

  .privacy-screen {
    min-height: calc(var(--stage-screen) + 20px);
    padding: 12px 16px;
    display: grid;
    align-content: center;
    scroll-margin-top: -20px;
  }

  .privacy-screen-ai {
    border-top: 1px solid var(--ink);
  }

  .story-demo.expert-demo {
    min-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    overflow: clip;
  }

  .expert-screen {
    min-height: calc(var(--stage-screen) + 20px);
    padding: 12px 16px;
    display: grid;
    align-content: center;
    scroll-margin-top: -20px;
  }

  .expert-screen-internal {
    border-top: 1px solid var(--ink);
  }

  /* A-3 is shorter than a screen: its grid row is a full screen and the card sits centred
     in it; the script sets the card's snap margin so the row's top parks under the nav,
     which also keeps the previous card out of view. */
  .agent-card-grid {
    grid-template-rows: auto auto calc(var(--stage-screen) + 20px) auto auto auto auto auto auto auto auto auto auto auto auto;
  }

  .agent-card-global {
    align-self: center;
  }

  /* Safety net set by the script: a screen whose content is still taller than its slot
     keeps the slot height and scales its content down to fit, so the snap pitch holds. */
  [data-mobile-stage][data-screen-fit] {
    /* The box is laid out 1/k larger and scaled by k from its top-left corner, so it
       visually fills exactly the slot width and height with borders on its edges; the
       negative bottom margin gives the extra layout height back to the flow. */
    width: calc(100% / var(--screen-fit-scale, 1));
    height: var(--screen-fit-height);
    min-height: 0;
    margin-bottom: calc(-1 * var(--screen-fit-shift, 0px));
    transform: scale(var(--screen-fit-scale, 1));
    transform-origin: top left;
  }

  .hero-main {
    overflow-x: clip;
  }

  /* Light compaction so typical phones need no scaling. */
  .agent-card-demo {
    padding: 12px 16px;
  }

  .story-demo {
    padding: 12px 16px;
  }

  .phone-stage {
    padding: 10px 0;
  }

  .model-expert-copy {
    padding: 32px 30px 30px;
  }

  .model-expert-copy h3 {
    margin-top: 16px;
  }

  .model-expert-summary {
    margin-top: 16px;
  }

  .model-expert-summary p {
    line-height: 1.5;
  }

  .expert-roster-title {
    margin-top: 14px;
  }

  .model-provider-item {
    min-height: 118px;
  }

  .model-provider-content {
    padding: 14px 10px 12px;
    gap: 8px;
  }

  .model-provider-logo {
    width: 46px;
    height: 46px;
  }

  .model-provider-logo-wide {
    width: 84px;
  }
}

@media (max-width: 720px) {
  :root {
    --stage-hero-lead: 28px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .phone-screen,
  .wechat-demo,
  .wechat-thread {
    touch-action: pan-y;
  }

  .wechat-thread {
    overflow-y: hidden;
    overscroll-behavior: auto;
    scrollbar-width: none;
  }

  .wechat-thread::-webkit-scrollbar {
    display: none;
  }
}

@supports (corner-shape: squircle) {
  .phone-screen {
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }

  .globe-journey {
    will-change: auto;
  }
}

/* ==========================================================================
   i18n：语言切换器、各语言字体栈、RTL
   ========================================================================== */

/* NAV 右侧：语言切换器 + 联系销售 */
.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  position: relative;
}

.lang-switch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.lang-switch-button:hover,
.lang-switch[data-open] .lang-switch-button {
  color: #fff;
  background: var(--ink);
}

.lang-switch-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lang-switch-icon,
.lang-switch-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.lang-switch-chevron {
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}

.lang-switch[data-open] .lang-switch-chevron {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 260px;
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(17, 18, 15, 0.16);
}

.lang-switch-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}

.lang-switch-item:hover,
.lang-switch-item:focus-visible {
  outline: none;
  background: var(--soft);
  color: var(--blue);
}

.lang-switch-label {
  font-weight: 640;
}

.lang-switch-sep {
  color: var(--line);
}

.lang-switch-native {
  color: var(--muted);
}

@media (max-width: 720px) {
  .nav-actions {
    gap: 8px;
  }

  .lang-switch-button {
    padding: 0 10px;
    gap: 6px;
  }

  .lang-switch-menu {
    min-width: min(260px, calc(100vw - 32px));
  }
}

@media (max-width: 720px) {
  /* 手机上语言名限宽省略，避免挤压品牌与联系销售 */
  .lang-switch-current {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  /* 极窄屏幕只留地球图标与箭头，语言名由 aria-label 保留 */
  .lang-switch-current {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* 各语言系统字体栈（按整页语言 html:lang 生效，不影响页内嵌入的其它语言片段）：拉丁部分仍用 Inter / 系统字体，只为对应文字补字体 */
html:lang(ja) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
}

html:lang(ko) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
}

html:lang(th) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Thonburi, "Leelawadee UI", Tahoma,
    "Noto Sans Thai", sans-serif;
  line-height: 1.7;
}

html:lang(ar) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, "Noto Naskh Arabic",
    "Noto Sans Arabic", sans-serif;
}

html:lang(he) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Tahoma, "Noto Sans Hebrew",
    sans-serif;
}

html:lang(hi) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Kohinoor Devanagari", "Nirmala UI",
    "Noto Sans Devanagari", sans-serif;
  line-height: 1.7;
}

/* 大标题不自动断字：显示级字号下的连字符（Das welt-weit…）在视觉上很突兀，正文仍保留断字 */
html:not(:lang(zh)) :is(h1, h2, h3, .title-cn, .title-en, .story-demo-heading, .vision-heading) {
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* 拉丁 / 西里尔 / 希腊文：长单词允许在必要时折断，避免撑破标签与表格 */
html:lang(en),
html:lang(es),
html:lang(fr),
html:lang(de),
html:lang(pt),
html:lang(ru),
html:lang(tr),
html:lang(it),
html:lang(vi),
html:lang(id),
html:lang(el),
html:lang(pl),
html:lang(nl),
html:lang(sw) {
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* --------------------------------------------------------------------------
   RTL（ar / he）：flex / grid 自动镜像，这里只处理物理方向的装饰、定位、双向文字。
   LTR 页面不受影响（全部在 [dir="rtl"] 之下），新样式请优先用逻辑属性。
   -------------------------------------------------------------------------- */

/* 双向文字：行内元素按自身首个强方向字符独立排版（拉丁品牌名、邮箱、型号在阿拉伯语句子里保持 LTR） */
[dir="rtl"] :is(b, strong, em, i, span, a, code, kbd, dd, small, time, cite) {
  unicode-bidi: isolate;
}

[dir="rtl"] [lang]:not([lang^="ar"]):not([lang^="he"]):not(html) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* 天然是 LTR 的片段：英文品牌标题、网址、邮箱 / 电话链接 */
[dir="rtl"] :is(.title-en, .result-url, .answer-source-url, [href^="mailto:"], [href^="tel:"]) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* 内容可能是阿拉伯语文字，也可能是邮箱、电话、型号等拉丁技术值：按每段自身的首个强方向字符定向，
   这样 [جهة الاتصال] 保持 RTL，而 1234567890@example.com、+52 … 不会被重排。 */
[dir="rtl"] :is(.mail-head dd, .tok, .pii, .pii-text, .support-context dd, .kb-source-title, .cite-source-title, .step-command, code, samp, kbd) {
  unicode-bidi: plaintext;
}

/* 头部与全局 */
[dir="rtl"] .skip-link {
  left: auto;
  right: 10px;
}

[dir="rtl"] .toast {
  right: auto;
  left: 22px;
}

[dir="rtl"] .lang-switch-menu {
  right: auto;
  left: 0;
}

/* Hero */
[dir="rtl"] .lede {
  padding-left: 0;
  padding-right: 18px;
  border-left: 0;
  border-right: 4px solid var(--ink);
}

[dir="rtl"] .capability-ledger::before {
  left: auto;
  right: 51px;
}

[dir="rtl"] .deployment-label,
[dir="rtl"] .architecture-item,
[dir="rtl"] .command-capability,
[dir="rtl"] .expert-trigger,
[dir="rtl"] .global-story-input,
[dir="rtl"] .story-demo-heading,
[dir="rtl"] .spec-table th,
[dir="rtl"] .spec-table td,
[dir="rtl"] .deployment-tooltip {
  text-align: right;
}

[dir="rtl"] .report-grid dd,
[dir="rtl"] .model-wall-heading small,
[dir="rtl"] .support-visitor-translation {
  text-align: left;
}

[dir="rtl"] .deployment-tooltip {
  right: auto;
  left: 0;
}

[dir="rtl"] .deployment-tooltip::before {
  left: auto;
  right: -1px;
}

/* 卡片：蓝色角条与文案侧竖线跟着文案走 */
[dir="rtl"] .agent-card::before {
  left: auto;
  right: -1px;
}

[dir="rtl"] .agent-card-copy {
  border-right: 0;
  border-left: 1px solid var(--ink);
}

[dir="rtl"] .model-expert-copy {
  border-left: 0;
  border-right: 1px solid var(--ink);
}

[dir="rtl"] .search-story-copy,
[dir="rtl"] .support-story-copy,
[dir="rtl"] .privacy-story-copy {
  border-left: 0;
  border-right: 1px solid var(--ink);
}

[dir="rtl"] .answer-story-copy,
[dir="rtl"] .deploy-story-copy,
[dir="rtl"] .ops-story-copy,
[dir="rtl"] .expert-story-copy,
[dir="rtl"] .kb-story-copy,
[dir="rtl"] .cite-story-copy {
  border-right: 0;
  border-left: 1px solid var(--ink);
}

[dir="rtl"] .story-points li {
  padding: 12px 22px 12px 0;
}

[dir="rtl"] .story-points li::before {
  left: auto;
  right: 0;
}

/* 平台 / 模型墙的格线 */
[dir="rtl"] .platform-grid,
[dir="rtl"] .model-provider-grid {
  border-left: 0;
  border-right: 1px solid var(--line);
}

[dir="rtl"] .platform-item,
[dir="rtl"] .model-provider-item {
  border-right: 0;
  border-left: 1px solid var(--line);
}

/* A-1 手机演示 */
[dir="rtl"] .scenario-rail {
  right: auto;
  left: calc(50% + var(--demo-phone-half-width) + 20px);
}

[dir="rtl"] .chat-ai-workflow,
[dir="rtl"] .chat-result-bubble {
  border-left: 0;
  border-right: 4px solid var(--blue);
}

[dir="rtl"] .report-suggestion {
  border-left: 0;
  border-right: 3px solid var(--blue);
}

[dir="rtl"] .chat-result-bubble li::before {
  margin-right: 0;
  margin-left: 6px;
}

[dir="rtl"] .chat-pause,
[dir="rtl"] .result-rank,
[dir="rtl"] .step-state {
  margin-left: 0;
  margin-right: auto;
}

/* 打字光标与小标签的间距 */
[dir="rtl"] .wechat-input.is-typing::after,
[dir="rtl"] .search-query.is-typing::after,
[dir="rtl"] .answer-input.is-typing::after,
[dir="rtl"] .harness-user p.is-typing::after,
[dir="rtl"] .global-story-input::after {
  margin-left: 0;
  margin-right: 2px;
}

[dir="rtl"] .answer-caret {
  margin-left: 0;
  margin-right: 1px;
}

[dir="rtl"] .kb-entry-update {
  margin-left: 0;
  margin-right: 4px;
}

[dir="rtl"] .answer-sources-label,
[dir="rtl"] .support-sources-label {
  margin-right: 0;
  margin-left: 4px;
}

[dir="rtl"] .spec-ok::before {
  margin-right: 0;
  margin-left: 3px;
}

[dir="rtl"] .title-en em {
  margin-right: 0;
  margin-left: 0.1em;
}

/* A-4 / A-5 / A-6 的输入条与结果 */
[dir="rtl"] .search-button,
[dir="rtl"] .answer-send,
[dir="rtl"] .support-lead-button {
  border-left: 0;
  border-right: 1px solid var(--ink);
}

[dir="rtl"] .search-result {
  border-left: 0;
  border-right: 3px solid transparent;
}

[dir="rtl"] .search-result.is-brand.is-highlighted {
  border-right-color: var(--blue);
}

[dir="rtl"] .result-rank {
  transform: translateX(-6px);
}

[dir="rtl"] .result-rank.is-visible {
  transform: translateX(0);
}

[dir="rtl"] .answer-markdown ol {
  padding-left: 0;
  padding-right: 20px;
}

/* B-1 表格 */
[dir="rtl"] .cloud-table thead th:first-child,
[dir="rtl"] .cloud-table tbody th {
  padding-left: 0;
  padding-right: 14px;
}

/* B-3 运维步骤的时间线 */
[dir="rtl"] .harness-steps {
  border-left: 0;
  border-right: 1px solid var(--line);
}

[dir="rtl"] .harness-step {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .step-index {
  left: auto;
  right: -19px;
}

/* C-1 知识库的箭头与分栏线 */
[dir="rtl"] .kb-arrow-line::after {
  right: auto;
  left: -1px;
  transform: rotate(-135deg);
}

[dir="rtl"] .kb-column-entries {
  border-left: 0;
  border-right: 1px solid var(--line);
}

[dir="rtl"] .kb-source {
  transform: translateX(6px);
}

[dir="rtl"] .kb-source.is-visible {
  transform: translateX(0);
}

/* 指向性图标：Hero 次要按钮的“前往”箭头在 RTL 下要反向（向下的滚动箭头是方向中性的，不翻） */
[dir="rtl"] .cta-secondary svg {
  transform: scaleX(-1);
}

/* 地球：桌面停在文案对侧，停靠点跟着卡片镜像 */
[dir="rtl"] .globe-journey {
  right: auto;
  left: -18vw;
}

[dir="rtl"] .globe-dock {
  left: auto;
  right: -150px;
}

[dir="rtl"] .globe-dock-secondary {
  left: auto;
  right: -110px;
}

[dir="rtl"] .globe-dock-quinary {
  left: auto;
  right: -120px;
}

[dir="rtl"] .globe-dock-septenary {
  left: auto;
  right: -130px;
}

[dir="rtl"] .globe-dock-nonary {
  left: auto;
  right: -140px;
}

[dir="rtl"] .globe-dock-undenary {
  left: auto;
  right: -125px;
}

[dir="rtl"] .globe-dock-quaternary {
  right: auto;
  left: -150px;
}

[dir="rtl"] .globe-dock-senary {
  right: auto;
  left: -160px;
}

[dir="rtl"] .globe-dock-octonary {
  right: auto;
  left: -140px;
}

[dir="rtl"] .globe-dock-denary {
  right: auto;
  left: -150px;
}

[dir="rtl"] .globe-dock-duodenary {
  right: auto;
  left: -145px;
}

@media (min-width: 1121px) {
  [dir="rtl"] .agent-card.agent-card-secondary::before,
  [dir="rtl"] .agent-card.agent-card-search::before,
  [dir="rtl"] .agent-card.agent-card-chat::before,
  [dir="rtl"] .agent-card.agent-card-privacy::before,
  [dir="rtl"] .agent-card.agent-card-kb::before,
  [dir="rtl"] .agent-card.agent-card-cite::before {
    right: auto;
    left: -1px;
  }
}

@media (max-width: 1120px) {
  [dir="rtl"] .agent-card-copy,
  [dir="rtl"] .model-expert-copy,
  [dir="rtl"] .story-copy {
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 720px) {
  [dir="rtl"] .globe-journey {
    left: auto;
    right: 38%;
  }

  [dir="rtl"] .capability-ledger::before {
    left: auto;
    right: 22px;
  }

  [dir="rtl"] .harness-steps {
    margin-left: 0;
    margin-right: 30px;
  }

  [dir="rtl"] .kb-arrow-line::after {
    right: auto;
    left: -3px;
  }

  [dir="rtl"] .kb-column-entries {
    border-right: 0;
  }

  [dir="rtl"] .model-wall-heading small {
    text-align: right;
  }

  [dir="rtl"] .toast {
    left: 16px;
    right: 16px;
  }
}

/* 非中文页面：中文里靠 <br> 与缩放维持单行的标题 / 标签，在拉丁等更长的文字里允许自然折行（宁可换行不要溢出）。
   输入框、代称、品牌标题、显式 .nowrap 仍保持单行，由译文长度预算控制。 */
html:not(:lang(zh)) .command-action,
html:not(:lang(zh)) .vision-label,
html:not(:lang(zh)) .command-capability > span:last-child,
html:not(:lang(zh)) .platform-name strong,
html:not(:lang(zh)) .platform-name small,
html:not(:lang(zh)) .wechat-contact strong,
html:not(:lang(zh)) .support-context dd,
html:not(:lang(zh)) .spec-row-cost strong,
html:not(:lang(zh)) .kb-tag,
html:not(:lang(zh)) .kb-entry-update,
html:not(:lang(zh)) .expert-layer,
html:not(:lang(zh)) .kb-arrow-label {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 窄屏导航：多了语言切换器之后，品牌 + 切换器 + 联系销售 在 ≤400px 会挤到按钮折行。
   规则用 :has(.lang-switch) 限定，只作用于带切换器的导航（冻结的 HTML 原型不受影响）。 */
@media (max-width: 400px) {
  .nav:has(.lang-switch) {
    gap: 10px;
  }

  .nav:has(.lang-switch) .brand-logo {
    height: 22px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .sales-control {
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* 云服务兼容性表的“兼容”标签：多数语言的译法比中文长得多（Kompatibel、Tương thích…），在窄单元格里必然被裁。
   非中文页面只留 ✓ 记号，文字保留在无障碍树里（font-size: 0 不影响读屏）。中文页面维持原样。 */
html:not(:lang(zh)) .cloud-table .spec-ok {
  font-size: 0;
}

html:not(:lang(zh)) .cloud-table .spec-ok::before {
  margin-right: 0;
  font-size: 12px;
}

/* 极窄屏幕（≤400px）导航只显示品牌符号，把宽度让给语言切换器与联系销售；品牌名由链接的 aria-label 提供 */
.brand-mark {
  display: none;
  width: 26px;
  height: 26px;
}

@media (max-width: 400px) {
  .nav:has(.lang-switch) .brand-logo {
    display: none;
  }

  .nav:has(.lang-switch) .brand-mark {
    display: block;
  }

  .nav-actions .sales-control {
    min-width: 0;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Hero 大标题的“全球首创”一行：中文 4 个字与 “Harness CMS” 同号；其它文字（Das weltweit erste / Первая в мире /
   الأول في العالم…）在同号下要折成 2–3 行，把标题撑到 4 行。非 CJK 语言把这一行作为小一号的引题，
   “Harness CMS” 仍是视觉主体，标题总行数与中文一致。 */
html:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .title-cn {
  font-size: 0.5em;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.14em;
}

/* 区块大标题（A / B / C 三段与愿景）在手机宽度：中文 3 行的标题，拉丁 / 西里尔文在同号下要 5–8 行。
   非 CJK 语言把字号降一档（约 −17%），行数回到与中文相当；桌面宽度不变。 */
@media (max-width: 760px) {
  html:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .agent-showcase-title {
    font-size: clamp(28px, 8.6vw, 40px);
    line-height: 1.1;
  }

  html:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .agent-showcase-title-secondary {
    font-size: clamp(22px, 6.2vw, 34px);
  }
}

/* 繁体中文：优先台湾 / 香港系统字体，避免用大陆字形渲染繁体 */
html:lang(zh-TW) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei",
    "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", sans-serif;
}

/* 页脚「访问国际版」（仅大陆版显示；海外版用导航里的语言切换器） */
.footer-intl-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.footer-intl-link:hover,
.footer-intl-link:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
