:root {
  --color-canvas: #f4f6f7;
  --color-surface: #ffffff;
  --color-ink: #101416;
  --color-muted: #59656c;
  --color-line: #d8dfe2;
  --color-brand: #b8e0f1;
  --color-brand-strong: #1f678b;
  --color-success: #2d8251;
  --color-success-soft: #dceee3;
  --shadow-offset: 10px 10px 0 rgba(184, 224, 241, 0.9);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --space-page: 32px;
  --content-width: 1160px;
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--color-canvas);
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-canvas);
  color: var(--color-ink);
}

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

a,
button {
  cursor: pointer;
  touch-action: manipulation;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-brand-strong);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-surface);
  transform: translateY(-160%);
}

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

.shell {
  width: min(calc(100% - (var(--space-page) * 2)), var(--content-width));
  min-width: 0;
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid var(--color-line);
  background: rgba(244, 246, 247, 0.96);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-surface);
  object-fit: cover;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand-name {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.1;
}

.brand-meta,
.mono-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
}

.brand-meta {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 750;
}

.nav-action {
  min-height: 44px;
  padding: 0 12px;
  color: var(--color-muted);
  font-size: 13px;
}

.header-action {
  gap: 9px;
  padding-inline: 16px;
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-surface);
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #65bd84;
  animation: status-pulse 2.8s ease-in-out infinite;
}

main {
  display: grid;
  grid-template-rows: minmax(408px, 1fr) auto auto;
  min-height: 0;
}

.hero {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: 48px;
}

.hero-copy {
  min-width: 0;
  max-width: 640px;
  animation: reveal-up 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  display: flex;
  width: fit-content;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-soft);
  animation: live-breathe 2.8s ease-in-out infinite;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 820;
  line-height: 1.05;
}

.hero-slogan {
  max-width: 570px;
  margin: 18px 0 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.35;
}

.mobile-hero-text {
  display: none;
}

.hero-description {
  max-width: 600px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-width: 136px;
  min-height: 48px;
  gap: 12px;
  padding: 0 20px;
  border-color: var(--color-ink);
  font-size: 14px;
  transition: color 180ms ease-out, background-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.button-primary {
  background: var(--color-ink);
  color: var(--color-surface);
}

.button-secondary {
  background: var(--color-surface);
}

.button-primary:hover {
  background: #263033;
  box-shadow: 4px 4px 0 var(--color-brand);
  transform: translate(-2px, -2px);
}

.button-secondary:hover {
  background: var(--color-brand);
  box-shadow: 4px 4px 0 var(--color-ink);
  transform: translate(-2px, -2px);
}

.arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.model-line {
  display: flex;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.model-separator {
  width: 18px;
  height: 1px;
  background: #a9b2b6;
}

.gateway-visual {
  width: 100%;
  max-width: 380px;
  justify-self: end;
  padding: 24px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-md);
  background: var(--color-ink);
  box-shadow: var(--shadow-offset);
  color: #d7dcde;
  scroll-margin-top: 24px;
  animation: reveal-up 620ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gateway-topline {
  display: flex;
  padding-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #333d40;
  font-size: 11px;
  font-weight: 700;
}

.gateway-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8ed7a8;
}

.gateway-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #65bd84;
  content: "";
}

.endpoint {
  margin-top: 22px;
}

.endpoint-method {
  color: #9fcfe4;
  font-size: 12px;
  font-weight: 750;
}

.endpoint-copy {
  display: grid;
  width: 100%;
  min-height: 68px;
  margin-top: 8px;
  padding: 12px 13px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #3b474a;
  border-radius: var(--radius-sm);
  background: #151b1d;
  color: var(--color-surface);
  text-align: left;
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.endpoint-copy:hover {
  border-color: #8ac8e3;
  background: #1b2325;
}

.endpoint-copy:active {
  background: #202a2d;
}

.endpoint-copy:focus-visible {
  outline-color: #9fcfe4;
}

.endpoint-copy code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.copy-action {
  display: inline-flex;
  min-width: 51px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #9fcfe4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.copy-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.check-icon {
  display: none;
}

.endpoint-copy.is-copied {
  border-color: #65bd84;
  background: #17221b;
}

.endpoint-copy.is-copied .copy-icon {
  display: none;
}

.endpoint-copy.is-copied .check-icon {
  display: block;
}

.endpoint-copy.is-copied .copy-action {
  color: #8ed7a8;
}

.copy-feedback {
  min-height: 16px;
  margin: 6px 0 -2px;
  color: #8ed7a8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.gateway-flow {
  display: grid;
  grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
  margin-top: 8px;
  padding: 11px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid #303b3e;
  border-radius: var(--radius-sm);
  background: #151b1d;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #89969b;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.flow-step::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #556267;
  content: "";
}

.flow-step-active {
  color: #b9dff0;
}

.flow-step-active::before {
  background: #8ac8e3;
  box-shadow: 0 0 0 3px rgba(138, 200, 227, 0.12);
  animation: route-pulse 2.4s ease-in-out infinite;
}

.flow-line {
  height: 1px;
  background: #3b474a;
}

.gateway-bottom {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid #333d40;
}

.gateway-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.gateway-fact {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid #333d40;
  font-size: 11px;
  line-height: 1.4;
}

.gateway-fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.gateway-fact dt {
  color: #7f8b90;
  font-size: 10px;
}

.gateway-fact dd {
  margin: 0;
  color: #d7dcde;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.capability-band {
  padding-block: 10px 0;
  background: var(--color-canvas);
}

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

.capability {
  min-width: 0;
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(16, 20, 22, 0.03);
}

.capability-index {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-brand-strong);
  font-size: 10px;
  font-weight: 800;
}

.capability h2 {
  margin: 10px 0 5px;
  font-size: 15px;
  line-height: 1.25;
}

.capability p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.recommendation-band {
  padding-block: 12px 18px;
  background: var(--color-canvas);
  scroll-margin-top: 24px;
}

.recommendation-inner {
  display: grid;
  min-height: 112px;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(16, 20, 22, 0.03);
}

.recommendation-logo {
  display: block;
  width: 96px;
  height: 96px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 6px 6px 0 var(--color-brand);
  object-fit: cover;
}

.recommendation-copy {
  min-width: 0;
}

.recommendation-label {
  margin: 0 0 7px;
  color: var(--color-brand-strong);
  font-size: 10px;
  font-weight: 800;
}

.recommendation-copy h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.recommendation-copy > p:last-child {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.recommendation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommendation-action {
  display: inline-flex;
  min-width: 126px;
  min-height: 48px;
  padding-inline: 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-md);
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 14px;
  font-weight: 750;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.recommendation-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.recommendation-action:hover {
  background: #263033;
  box-shadow: 4px 4px 0 var(--color-brand);
  transform: translate(-2px, -2px);
}

.recommendation-action-secondary {
  background: var(--color-surface);
  color: var(--color-ink);
}

.recommendation-action-secondary:hover {
  background: var(--color-brand);
  box-shadow: 4px 4px 0 var(--color-ink);
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-canvas);
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--color-success-soft);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(220, 238, 227, 0.32);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.48;
  }
}

@keyframes route-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(138, 200, 227, 0.12);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(138, 200, 227, 0.03);
  }
}

@media (max-width: 900px) {
  :root {
    --space-page: 24px;
  }

  main {
    grid-template-rows: auto auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    padding-block: 48px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-slogan {
    font-size: 21px;
  }

  .gateway-visual {
    padding: 20px;
  }

  .copy-label {
    display: none;
  }

  .copy-action {
    min-width: 16px;
  }
}

@media (max-width: 720px) {
  :root {
    --space-page: 18px;
  }

  .site-header,
  .header-inner {
    min-height: 64px;
  }

  .nav-link {
    display: none;
  }

  .header-action {
    padding-inline: 14px;
  }

  .hero-inner {
    display: contents;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  .hero {
    display: contents;
  }

  .hero-copy {
    order: 1;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    padding: 30px 0 0;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
    font-size: 11px;
  }

  h1 {
    font-size: 44px;
    line-height: 1.05;
  }

  .hero-slogan {
    max-width: 320px;
    margin-top: 16px;
    margin-inline: auto;
    font-size: 22px;
    line-height: 1.35;
  }

  .desktop-hero-text {
    display: none;
  }

  .mobile-hero-text {
    display: inline;
  }

  .hero-description {
    max-width: 320px;
    margin-top: 12px;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 10px;
    width: 100%;
    max-width: 276px;
    margin-top: 26px;
    margin-inline: auto;
  }

  .button {
    min-width: 0;
    padding-inline: 16px;
  }

  .model-line {
    display: none;
  }

  .gateway-visual {
    order: 3;
    width: calc(100% - (var(--space-page) * 2));
    max-width: 330px;
    margin: 24px auto 36px;
    justify-self: center;
    box-shadow: 7px 7px 0 rgba(184, 224, 241, 0.9);
  }

  .capability-band {
    order: 2;
    padding-block: 26px 0;
    background: transparent;
  }

  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 360px;
  }

  .capability {
    display: flex;
    min-height: 82px;
    padding: 12px 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 2px 8px rgba(16, 20, 22, 0.045);
  }

  .capability-index {
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(184, 224, 241, 0.44);
    line-height: 1;
  }

  .capability-number {
    font-size: 10px;
  }

  .capability-code {
    display: none;
  }

  .capability h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
  }

  .capability p {
    display: none;
  }

  .recommendation-band {
    order: 4;
    padding-block: 0 24px;
  }

  .recommendation-inner {
    max-width: 330px;
    min-height: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px 16px;
    padding: 16px;
  }

  .recommendation-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    box-shadow: 5px 5px 0 var(--color-brand);
  }

  .recommendation-label {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .recommendation-copy h2 {
    font-size: 20px;
  }

  .recommendation-copy > p:last-child {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  .recommendation-actions {
    width: 100%;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .recommendation-action {
    min-width: 0;
    min-height: 48px;
    padding-inline: 14px;
  }

  .site-footer {
    border-top: 0;
  }

  .footer-inner {
    min-height: 92px;
    padding-block: 12px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}

@media (max-width: 390px) {
  .brand-meta {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .gateway-fact {
    padding-left: 12px;
  }

  .endpoint-copy code {
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .header-action {
    padding-inline: 11px;
  }

  .brand {
    gap: 9px;
  }

  .gateway-visual {
    padding: 18px;
  }

  .flow-step {
    font-size: 8px;
  }

  .recommendation-inner {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 14px;
  }

  .recommendation-logo {
    width: 64px;
    height: 64px;
  }

  .recommendation-actions {
    gap: 8px;
  }

  .recommendation-action {
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
