/* Gateway-only capabilities: open editorial rows and a readable request path. */
.qgw-capabilities {
  padding-top: clamp(48px, 6vw, 88px);
}
.qgw-heading {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  column-gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: 36px;
}
.qgw-eyebrow {
  color: #596374;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qgw-heading > .qgw-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}
.qgw-heading h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.qgw-heading > p:last-child {
  max-width: 380px;
  padding-bottom: 4px;
  color: #59616e;
  font-size: 17px;
  line-height: 1.65;
}
.qgw-connect {
  border-bottom: 1px solid #cbd1da;
}
.qgw-connect__diagram {
  background: #fafbfc;
  border: 1px solid #dde2e9;
}
.qgw-endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 24px;
}
.qgw-endpoint > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-width: 0;
}
.qgw-endpoint span {
  font-size: 11px;
  color: #677080;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qgw-endpoint code {
  color: #1e1f2b;
  font:
    13px/1.6 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.qgw-endpoint a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  padding-block: 6px;
}
.qgw-endpoint a:hover {
  color: #2a4bd7;
}
.qgw-endpoint svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .qgw-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .qgw-heading {
    margin-bottom: 40px;
    gap: 22px;
  }
  .qgw-heading > .qgw-eyebrow {
    margin-bottom: 0;
  }
  .qgw-endpoint {
    align-items: start;
  }
}

/* Original architectural drawing; line animation is independent of scroll. */
.qga {
  margin: 0;
  color: #1e1f2b;
}
.qga-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid #e2e6ed;
  font-size: 11px;
  letter-spacing: 0.035em;
}
.qga-toolbar > span:first-child {
  color: #677080;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.qga-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #485269;
  font: inherit;
}
.qga-toolbar button:hover {
  color: #2a4bd7;
}
.qga-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.qga-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 740px;
}
.qga-art {
  font-family: 'Alliance No.1', Arial, sans-serif;
}
.qga-platform {
  stroke: #aeb7c5;
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.qga-window {
  stroke: #aeb7c5;
  stroke-width: 1;
  stroke-linejoin: round;
}
.qga-models {
  stroke: #aeb7c5;
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.qga-label {
  fill: #252c3b;
  font-size: 19px;
}
.qga-heading {
  fill: #252c3b;
  font-size: 19px;
  letter-spacing: 0.03em;
}
.qga-kicker {
  fill: #778293;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.qga-detail {
  fill: #778293;
  font-size: 13px;
}
.qga-gateway-title {
  fill: #252c3b;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.qga-wire {
  fill: none;
  stroke: #b5bfce;
  stroke-width: 1;
}
.qga-packet {
  fill: none;
  stroke: #2a4bd7;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1.5 23.5;
  animation: qga-flow 9s linear infinite;
}
.qga.is-paused .qga-packet,
.qga.is-offscreen .qga-packet {
  animation-play-state: paused;
}
.qga figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px 26px;
  color: #677080;
  font-size: 12px;
  line-height: 1.6;
}
.qga-key {
  flex: 0 0 16px;
  height: 2px;
  background: #2a4bd7;
  align-self: center;
}
.qga-mobile-hint,
.qga-reduced {
  display: none;
}
@keyframes qga-flow {
  to {
    stroke-dashoffset: -100;
  }
}
@media (max-width: 760px) {
  .qga-toolbar {
    padding: 16px;
  }
  .qga .qga-mobile-hint {
    display: block;
    margin: 14px 16px 0;
    color: #677080;
    font-size: 11px;
  }
  .qga figcaption {
    justify-content: start;
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qga-packet {
    animation: none;
  }
  .qga-toolbar button {
    display: none;
  }
  .qga-reduced {
    display: inline;
    color: #677080;
  }
}

/* A single integration workspace, with the selected example kept in context. */
.qgw-integrations {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 7vw, 100px);
}
.qgw-integrations__intro h2 {
  margin-top: 20px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  scroll-margin-top: 120px;
}
.qgw-integrations__intro > p:not(.qgw-eyebrow) {
  max-width: 360px;
  margin-top: 24px;
  color: #59616e;
  font-size: 16px;
  line-height: 1.7;
}
.qgw-integrations__intro .q-text-link {
  margin-top: 28px;
}
.qgw-integrations__workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d6dce5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 48px -28px #28344d35;
}
.qgw-integrations__tabs {
  display: flex;
  gap: 24px;
  padding-inline: 28px;
  overflow-x: auto;
  border-bottom: 1px solid #e2e6ed;
  background: #f5f6f8;
}
.qgw-integrations__tabs button {
  flex-shrink: 0;
  padding: 20px 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #677080;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.qgw-integrations__tabs button[aria-selected='true'] {
  border-bottom-color: #2a4bd7;
  color: #2a4bd7;
}
.qgw-integrations__tabs button:focus-visible,
.qgw-integrations__panel:focus-visible {
  outline: 2px solid #2a4bd7;
  outline-offset: -4px;
}
.qgw-integrations__panel[hidden] {
  display: none;
}
.qgw-integrations__panel {
  min-height: 350px;
}
.qgw-integrations__description {
  padding: 28px 28px 24px;
}
.qgw-integrations__description h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
}
.qgw-integrations__description p {
  margin-top: 8px;
  color: #677080;
  font-size: 14px;
  line-height: 1.6;
}
.qgw-integrations__panel .qp-ui {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-top: 1px solid #eef0f4;
  border-radius: 0;
  box-shadow: none;
}
.qgw-integrations__panel .qp-code {
  font-size: 12px;
}
.qgw-integrations__footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #e2e6ed;
  padding: 18px 28px;
  color: #677080;
  font-size: 11px;
}
.qgw-integrations__footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2a4bd7;
}
.qgw-integrations__footer svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 900px) {
  .qgw-integrations {
    grid-template-columns: minmax(0, 1fr);
  }
  .qgw-integrations__intro > p:not(.qgw-eyebrow) {
    max-width: 520px;
  }
}
@media (max-width: 480px) {
  .qgw-integrations__tabs {
    gap: 20px;
    padding-inline: 18px;
  }
  .qgw-integrations__description,
  .qgw-integrations__footer {
    padding: 20px 18px;
  }
  .qgw-integrations__panel {
    min-height: 370px;
  }
}

.qgw-integrations {
  margin-block: 48px;
  padding: clamp(24px, 4vw, 48px);
  background: #fafbfc;
  border: 1px solid #dde2e9;
  border-radius: 0;
}
.qgw-integrations__workspace {
  border: 1px solid #aeb7c5;
  border-radius: 2px;
  box-shadow: none;
  position: relative;
}
.qgw-integrations__workspace::after {
  content: '';
  display: block;
  height: 8px;
  border-top: 1px solid #aeb7c5;
  background: repeating-linear-gradient(45deg, #fff 0 3px, #d7dce5 3px 4px);
}
.qgw-integrations__tabs,
.qgw-integrations__footer {
  background: #fafbfc;
}
.qgw-integrations__intro .qgw-eyebrow {
  color: #778293;
}
@media (max-width: 900px) {
  .qgw-integrations {
    width: calc(100% - 32px);
  }
}

/* Gateway editorial composition. */
.qgw-hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: center;
  padding-top: 160px;
  padding-bottom: 64px;
}
.qgw-breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #59616e;
}
.qgw-breadcrumb a:hover {
  color: #2a4bd7;
}
.qgw-hero__copy h1 {
  font-size: clamp(40px, 4.3vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.qgw-hero__copy > p:not(.qgw-eyebrow) {
  max-width: 390px;
  font-size: 17px;
  line-height: 1.65;
  color: #59616e;
}
.qgw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.qgw-hero__visual {
  margin: 0;
  min-width: 0;
}
.qgw-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.qgw-hero__visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  color: #677080;
  font-size: 10px;
  letter-spacing: 0.03em;
}
.qgw-system {
  border-top: 1px solid #cbd1da;
  padding-top: 32px;
}
.qgw-system__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 64px;
  align-items: end;
  margin-bottom: 32px;
}
.qgw-system__intro .qgw-eyebrow {
  grid-column: 1 / -1;
}
.qgw-system__intro h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.qgw-system__intro > p:last-child {
  max-width: 450px;
  color: #59616e;
  font-size: 16px;
  line-height: 1.65;
}
.qgw-system .qgw-hero-animation {
  width: 100%;
  max-width: 1100px;
  padding: 0;
  margin: 0 auto;
  border: 1px solid #dce2eb;
  background: #fafbfc;
}
.qgw-hero-animation .qgw-endpoint {
  padding: 20px 28px;
  border-top: 1px solid #dce2eb;
}
.qgw-capabilities {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid #cbd1da;
}
.qgw-heading {
  margin-bottom: 48px;
}
.qgw-heading h2 {
  font-size: clamp(32px, 3.5vw, 48px);
}
.qgw-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: stretch;
  padding-left: 8%;
}
.qgw-editorial__art {
  position: relative;
  margin: 0;
  background: #e9edf3;
  min-height: 0;
}
.qgw-editorial__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qgw-editorial__art figcaption {
  display: none;
}
.qgw-editorial__points article {
  display: block;
  padding: 28px 0;
  border-top: 1px solid #cbd1da;
  scroll-margin-top: 130px;
}
.qgw-editorial__points article:first-child {
  padding-top: 0;
  border-top: 0;
}
.qgw-editorial__points article > span {
  padding-top: 5px;
}
.qgw-editorial__points h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.qgw-editorial__points p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: #59616e;
}
.qgw-editorial__points .q-text-link {
  margin-top: 18px;
  font-size: 13px;
}
.qgw-page .qgw-integrations {
  margin-block: 80px;
  background: #edf0f5;
  border: 0;
  padding: clamp(28px, 5vw, 64px);
}
.qgw-page .qp-outcomes {
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: 0;
  border-top: 1px solid #cbd1da;
}
.qgw-page .qp-outcomes h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  margin-bottom: 48px;
}
@media (max-width: 850px) {
  .qgw-hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    padding-bottom: 48px;
    gap: 36px;
  }

  .qgw-hero__copy > p:not(.qgw-eyebrow) {
    max-width: 520px;
  }
  .qgw-hero__visual img {
    aspect-ratio: 2 / 1;
  }
  .qgw-system__intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .qgw-editorial {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 0;
  }
  .qgw-editorial__art {
    position: static;
  }
  .qgw-editorial__art img {
    position: static;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .qgw-capabilities {
    margin-top: 48px;
  }
  .qgw-page .qgw-integrations {
    margin-block: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qgw-editorial__art {
    position: static;
  }
}

@media (max-width: 480px) {
  .qgw-editorial__points article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
