.product-section {
  padding-block: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.product-video,
.product-privacy {
  background: color-mix(in srgb, var(--surface) 44%, var(--canvas));
}

.product-split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  column-gap: clamp(32px, 7vw, 112px);
  row-gap: 32px;
}

.section-heading {
  max-width: 760px;
}

.product-section .section-heading .eyebrow {
  margin: 0 0 14px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 3.15vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
  word-spacing: .065em;
  text-wrap: balance;
}

.section-heading h2 span { display: block; }

:lang(zh-CN) .section-heading h2 {
  letter-spacing: -.035em;
  line-height: 1.23;
}

.section-lead {
  max-width: 61ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.section-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  min-height: 44px;
  padding-block: 11px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--muted);
}

.section-heading + .section-link { margin-top: 15px; }
.section-link:hover { text-decoration-color: var(--accent); }
.section-link span { text-decoration: none; }

.section-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 25px #1616160a;
}

html[data-theme="dark"] .section-panel { box-shadow: 0 8px 25px #00000025; }

.section-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.section-model-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.section-model-choice { position: relative; min-width: 0; }

.section-model-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.section-model-choice label {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 44px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: clamp(.72rem, 1.2vw, .875rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.section-model-choice label:hover {
  border-color: var(--line);
  color: var(--text);
}

.section-model-choice input:checked + label {
  border-color: var(--control, #707178);
  background: var(--canvas);
  box-shadow: inset 0 -2px var(--accent);
  color: var(--text);
}

.section-model-choice input:focus-visible + label,
.section-sdk pre:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.section-model-context {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 17px 20px 13px;
  font-size: .875rem;
}

.section-model-context strong { color: var(--text); }
.section-model-context span { color: var(--muted); font-size: .79rem; }

.section-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.35;
}

.section-table th,
.section-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}

.section-table thead th {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  vertical-align: bottom;
}

.section-table tr > :first-child { width: 46%; padding-left: 20px; }
.section-table tr > :not(:first-child) { text-align: right; }
.section-table tr > :last-child { padding-right: 20px; }
.section-table tbody th { font-weight: 550; }
.section-table tbody th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
}

.section-price {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section-panel-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}

.section-video-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: 20px;
  margin-top: 32px;
}

.section-video-flow {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(137deg, var(--surface), var(--canvas));
  scroll-margin-top: 72px;
}

.section-video-flow h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 650;
}

.section-video-flow ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-video-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.section-video-flow li:not(:last-child)::before {
  position: absolute;
  top: 7px;
  bottom: -23px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.section-pipeline-dot,
.section-flow-node {
  position: relative;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 1px solid var(--control, #707178);
  border-radius: 50%;
  background: var(--surface);
}

.section-video-flow li:last-child .section-pipeline-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.section-video-flow li strong {
  display: block;
  color: var(--text);
  font-size: .875rem;
}

.section-video-flow li p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.section-video-rates {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-video-rates thead tr:first-child th { border-top: 0; }
.section-video-rates thead th { padding-top: 17px; }

.section-video-footer,
.section-infrastructure-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
}

.section-video-footer { margin-top: 16px; align-items: center; }

.section-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-capabilities li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .805rem;
  font-weight: 550;
}

.section-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 0;
  border-block: 1px solid var(--line);
}

.section-metric {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 3vw, 36px);
}

.section-metric:first-child { padding-left: 0; }
.section-metric + .section-metric { border-left: 1px solid var(--line); }
.section-metric dt { color: var(--text); font-size: .95rem; font-weight: 650; }
.section-metric dd { margin: 0; }

.section-metric .section-metric-value {
  grid-row: 1;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.section-metric-detail,
.section-benchmark-note {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.section-benchmark-note { margin: 16px 0 0; font-size: .75rem; }

.section-privacy-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  list-style: none;
  scroll-margin-top: 72px;
}

.section-privacy-flow li {
  position: relative;
  min-width: 0;
  padding: 15px clamp(8px, 2vw, 24px) 10px;
}

.section-privacy-flow li:not(:last-child)::before {
  position: absolute;
  top: 24px;
  right: -25px;
  left: clamp(8px, 2vw, 24px);
  height: 1px;
  background: var(--line);
  content: "";
}

.section-flow-node {
  display: block;
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px var(--surface);
}

.section-privacy-flow li:nth-child(2) .section-flow-node {
  border-color: var(--accent);
  background: var(--accent);
}

.section-privacy-flow strong { color: var(--text); font-size: 1rem; }

.section-privacy-flow p {
  max-width: 31ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.product-docs .section-capabilities { margin-top: 20px; }

.product-docs .section-claim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 24px;
  white-space: normal;
}

.section-sdk {
  margin: 0;
  scroll-margin-top: 72px;
}

.section-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: .875rem;
  font-weight: 650;
}

.section-code-header .section-copy-button {
  min-height: 36px;
  padding: 6px 10px;
  font-size: .8rem;
}

.section-sdk pre {
  max-width: 100%;
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.7;
  tab-size: 4;
}

.section-sdk code { font-family: ui-monospace, Consolas, "Liberation Mono", monospace; }
.section-sdk code span { display: inline-block; min-width: 100%; }

.section-code-changed {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: inset 2px 0 var(--accent);
}

.section-copy-status {
  margin: 0;
  color: var(--text);
  font-size: .78rem;
  line-height: 1.45;
}
.section-copy-status:not(:empty) {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .product-split { grid-template-columns: minmax(0, 1fr); }
  .section-video-layout { grid-template-columns: minmax(0, 1fr); }
  .section-infrastructure-top { align-items: flex-start; }
}

@media (max-width: 540px) {
  .product-section {
    padding-block: 56px;
    scroll-margin-top: 60px;
  }

  .product-split { row-gap: 24px; }
  .section-heading h2 { text-wrap: wrap; }
  .section-heading h2 span { display: inline; }
  .section-lead { font-size: .95rem; }

  .section-model-context,
  .section-panel-note { padding-inline: 12px; }

  .section-table { font-size: .8rem; }
  .section-table th,
  .section-table td { padding: 12px 7px; }
  .section-table tr > :first-child { padding-left: 12px; }
  .section-table tr > :last-child { padding-right: 12px; }

  .section-video-layout { gap: 12px; margin-top: 24px; }
  .section-video-footer { margin-top: 12px; }

  .section-metrics {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }

  .section-metric { padding: 16px 0; }
  .section-metric + .section-metric {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-privacy-flow {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
    padding: 16px;
  }

  .section-privacy-flow li { padding: 9px 0 15px 26px; }
  .section-privacy-flow li:not(:last-child)::before {
    inset: 18px auto -16px 5px;
    width: 1px;
    height: auto;
  }

  .section-flow-node {
    position: absolute;
    top: 11px;
    left: 0;
    margin: 0;
    box-shadow: 0 0 0 3px var(--surface);
  }

  .section-sdk pre { padding: 16px; font-size: .8rem; }
}
.section-integration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
  margin-top: 1.25rem;
}
.section-integration-actions .section-claim { margin-top: 0; }

.infrastructure-support {
  --logo-slot: 144px;
  --logo-slot-wide: 164px;
  --logo-slot-height: 76px;
  --logo-gap: 64px;
  --logo-fade: 7%;
  padding-block: 64px 68px;
  border-block: 1px solid var(--line);
  background: var(--canvas);
  color: var(--text);
  text-align: center;
}

.infrastructure-support + .product-section { border-top: 0; }

.infrastructure-support h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.infrastructure-logo-window {
  margin-top: 42px;
  padding-block: 12px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 var(--logo-fade), #000 calc(100% - var(--logo-fade)), transparent);
}

.infrastructure-logo-window:focus-visible {
  outline: 2px solid var(--control);
  outline-offset: -2px;
}

.infrastructure-logo-track {
  display: flex;
  width: max-content;
  animation: infrastructure-logo-scroll 56s linear infinite;
}

.infrastructure-logo-window:focus-visible .infrastructure-logo-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .infrastructure-logo-window:hover .infrastructure-logo-track { animation-play-state: paused; }
}

.infrastructure-logo-group {
  display: flex;
  flex: none;
  gap: var(--logo-gap);
  margin: 0;
  padding: 0 var(--logo-gap) 0 0;
  list-style: none;
}

.infrastructure-logo {
  display: grid;
  width: var(--logo-slot);
  height: var(--logo-slot-height);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.infrastructure-logo-wide { width: var(--logo-slot-wide); }

.infrastructure-logo img {
  width: var(--logo-width);
  height: var(--logo-height);
  object-fit: contain;
}

:root[data-theme="light"] .infrastructure-logo-dark,
:root:not([data-theme="light"]) .infrastructure-logo-light {
  display: none;
}

:root:not([data-theme="light"]) .infrastructure-logo-reverse {
  filter: brightness(0) invert(1);
}

@keyframes infrastructure-logo-scroll {
  /* Each group includes the trailing gap, so half the track is one full repeat. */
  to { transform: translateX(-50%); }
}

@media (max-width: 680px) {
  .infrastructure-support {
    --logo-slot: 120px;
    --logo-slot-wide: 144px;
    --logo-slot-height: 68px;
    --logo-gap: 36px;
    --logo-fade: 5%;
    padding-block: 48px;
  }

  .infrastructure-support-content { width: calc(100% - 32px); }

  .infrastructure-logo-window {
    margin-top: 26px;
    margin-inline: -8px;
  }

  .infrastructure-logo img {
    max-width: 90%;
    max-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .infrastructure-logo-window { mask-image: none; }

  .infrastructure-logo-track {
    width: min(100%, 760px);
    margin-inline: auto;
    animation: none;
  }

  .infrastructure-logo-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .infrastructure-logo-group[aria-hidden] { display: none; }
}

