:root {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #f4f8fa;
  --surface-strong: #eaf2f5;
  --ink: #102f3d;
  --ink-soft: #31505e;
  --muted: #6b838e;
  --line: #dce8ed;
  --line-strong: #bfd3dc;
  --ocean: #067fb9;
  --ocean-dark: #045e8a;
  --teal: #40c98b;
  --coral: #d97948;
  --amber: #c99830;
  --shadow: 0 12px 30px rgba(18, 61, 78, 0.08);
  --shell: min(1180px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

svg,
img,
canvas {
  display: block;
}

.content-shell,
.nav-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 232, 237, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  line-height: 1;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(6, 127, 185, 0.14);
}

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

.auth-link {
  min-width: 72px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ocean);
  border-radius: 6px;
  color: #ffffff;
  background: var(--ocean);
  box-shadow: 0 6px 16px rgba(6, 127, 185, 0.16);
  font-size: 14px;
  font-weight: 680;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.auth-link:hover {
  background: var(--ocean-dark);
  box-shadow: 0 8px 20px rgba(6, 127, 185, 0.22);
  transform: translateY(-1px);
}

.auth-link:focus-visible {
  outline: 2px solid rgba(6, 127, 185, 0.38);
  outline-offset: 3px;
}

.hero {
  padding: 68px 0 60px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 82px;
  font-weight: 780;
  line-height: 0.96;
}

.hero-statement {
  width: 100%;
  max-width: 960px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 40px;
  font-weight: 620;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-statement span {
  color: var(--ocean);
}

.mobile-break {
  display: none;
}

.hero-lede {
  width: 100%;
  max-width: 620px;
  min-width: 0;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.routing-stage {
  position: relative;
  width: min(1080px, 100%);
  margin: 58px auto 0;
  padding: 38px 52px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  box-shadow: 0 24px 64px rgba(18, 61, 78, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.routing-stage::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 72px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ocean);
  content: "";
  transform: translateX(-50%);
}

.route-board {
  min-height: 252px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(90px, 150px) 190px minmax(90px, 150px) minmax(190px, 1fr);
  align-items: center;
}

.endpoint-stack {
  height: 232px;
  display: grid;
  grid-template-rows: repeat(2, 110px);
  gap: 12px;
  align-self: center;
}

.topology-card {
  position: relative;
  min-width: 0;
  min-height: 110px;
  align-items: center;
  column-gap: 16px;
  padding: 15px 14px 15px 18px;
  border: 1px solid rgba(191, 211, 220, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(18, 61, 78, 0.045), inset 0 1px 0 #ffffff;
}

.source-stack .topology-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  grid-template-rows: 24px 1fr;
  grid-template-areas:
    "kind badge"
    "copy badge";
  text-align: left;
}

.target-stack .topology-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: 24px 1fr;
  grid-template-areas:
    "badge kind"
    "badge copy";
  padding-right: 18px;
  padding-left: 14px;
  text-align: left;
}

.route-kind {
  grid-area: kind;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
}

.source-stack .route-kind {
  justify-content: flex-start;
}

.topology-card-copy {
  grid-area: copy;
  min-width: 0;
  align-self: center;
}

.topology-card-copy strong,
.topology-card-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.topology-card-copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.25;
}

.topology-card-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.node-badge {
  position: relative;
  grid-area: badge;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  box-shadow: 0 5px 14px rgba(18, 61, 78, 0.055);
}

.brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-icon-openai,
.brand-icon-chatgpt {
  width: 28px;
  height: 28px;
}

.brand-icon-claude {
  width: 23px;
  height: 23px;
}

.brand-icon-claude-code {
  width: 29px;
  height: 29px;
  border-radius: 50%;
}

.node-badge::after {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 6px;
  height: 6px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.node-badge::before {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 2px;
  background: var(--line-strong);
  content: "";
  transform: translateY(-50%);
}

.source-stack .node-badge::after {
  right: -19px;
}

.source-stack .node-badge::before {
  right: -15px;
}

.target-stack .node-badge::after {
  left: -19px;
}

.target-stack .node-badge::before {
  left: -15px;
}

.provider-openai .node-badge,
.client-chatgpt .node-badge {
  color: var(--ocean);
}

.provider-claude .node-badge,
.client-claude .node-badge {
  color: var(--coral);
}

.signal-lines {
  width: 100%;
  height: 232px;
  align-self: center;
}

.signal-lines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-line,
.route-trace {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.route-line {
  stroke: var(--line-strong);
  stroke-width: 2.2;
}

.route-trace {
  stroke: var(--ocean);
  stroke-width: 4;
  stroke-dasharray: 4 22;
  stroke-linecap: round;
  animation: route-signal 2.8s linear infinite;
}

.trace-two {
  stroke: var(--teal);
  animation-delay: -1.2s;
  animation-duration: 3.2s;
}

.router-node {
  position: relative;
  z-index: 2;
  height: 232px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gateway-caption {
  margin-bottom: 6px;
  color: var(--ocean);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.gateway-mark {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.gateway-mark::before {
  position: absolute;
  inset: 3px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  content: "";
}

.globe {
  position: relative;
  width: 116px;
  height: 116px;
  overflow: hidden;
  border: 1px solid rgba(6, 127, 185, 0.14);
  border-radius: 50%;
  background: #0785bd;
  box-shadow: 0 14px 30px rgba(6, 127, 185, 0.18);
}

.globe-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.router-node strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 780;
  line-height: 1.1;
}

.router-node small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.pricing-section {
  padding: 18px 0 24px;
}

.pricing-inner {
  position: relative;
  width: min(1080px, 100%);
  margin-inline: auto;
  padding: 20px 30px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.pricing-inner::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 72px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ocean);
  content: "";
  transform: translateX(-50%);
}

.pricing-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.pricing-heading-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
  line-height: 1.2;
}

.currency-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.pricing-panel {
  margin-top: 12px;
}

.price-table {
  display: block;
  border-top: 1px solid var(--line);
}

.price-row {
  min-width: 0;
  min-height: 72px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(110px, 0.8fr));
  align-items: center;
  column-gap: 24px;
  background: transparent;
}

.price-row + .price-row {
  border-top: 1px solid var(--line);
}

.price-model {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-provider-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.price-provider-mark img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.price-provider-mark .claude-price-icon,
.claude-price-icon {
  width: 18px;
  height: 18px;
}

.price-model strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
  line-height: 1.25;
}

.price-cell {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.price-cell strong {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.rate-cell strong {
  color: var(--ocean-dark);
}

.price-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
}

.quick-links-section {
  padding: 0 0 70px;
}

.quick-links {
  width: min(1080px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-links {
  width: min(1080px, 100%);
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.2;
}

.quick-link {
  min-width: 0;
  min-height: 60px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  transition: color 160ms ease, background-color 160ms ease;
}

.quick-link + .quick-link {
  border-left: 1px solid var(--line);
}

.quick-link:hover {
  color: var(--ocean);
  background: #fbfdfe;
}

.quick-link:focus-visible {
  outline: 2px solid rgba(6, 127, 185, 0.4);
  outline-offset: -3px;
}

.quick-link-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--ocean);
}

.quick-link-icon svg {
  width: 18px;
  height: 18px;
}

.quick-link strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-link {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfe;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.contact-link:hover {
  color: var(--ocean);
  border-color: var(--line-strong);
  background: #ffffff;
}

.contact-link:focus-visible {
  outline: 2px solid rgba(6, 127, 185, 0.4);
  outline-offset: 3px;
}

.contact-link strong {
  color: var(--ocean-dark);
  font-size: 15px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@keyframes route-signal {
  to {
    stroke-dashoffset: -52;
  }
}

@media (max-width: 1020px) {
  .routing-stage {
    padding-inline: 30px;
  }

  .route-board {
    grid-template-columns: minmax(165px, 1fr) minmax(70px, 110px) 170px minmax(70px, 110px) minmax(165px, 1fr);
  }

  .topology-card-copy strong {
    font-size: 18px;
  }

}

@media (max-width: 760px) {
  :root {
    --shell: min(calc(100% - 32px), 680px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .hero {
    padding: 46px 0 48px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-statement {
    max-width: 600px;
    margin-top: 21px;
    font-size: 34px;
  }

  .mobile-break {
    display: block;
  }

  .hero-lede {
    max-width: min(100%, 560px);
    margin-top: 18px;
    font-size: 16px;
  }

  .routing-stage {
    margin-top: 62px;
    padding: 38px 20px 30px;
  }

  .route-board {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .router-node {
    order: 0;
    height: 222px;
  }

  .source-stack,
  .target-stack {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 18px;
  }

  .source-stack {
    order: 1;
    margin-top: 30px;
  }

  .target-stack {
    order: 2;
    margin-top: 24px;
  }

  .source-stack .topology-card,
  .target-stack .topology-card {
    min-height: 112px;
    padding: 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-rows: 24px 1fr;
    grid-template-areas:
      "kind badge"
      "copy badge";
    align-items: center;
    column-gap: 12px;
    text-align: left;
  }

  .source-stack .route-kind,
  .target-stack .route-kind {
    justify-content: flex-start;
  }

  .topology-card-copy {
    margin-top: 0;
    align-self: center;
  }

  .node-badge {
    width: 42px;
    height: 42px;
    margin: 0;
    background: #f8fbfc;
  }

  .node-badge::before,
  .node-badge::after {
    display: none;
  }

  .signal-lines {
    display: none;
  }

  .pricing-section {
    padding: 16px 0 22px;
  }

  .pricing-inner {
    padding: 20px 20px 12px;
  }

  .pricing-heading-row {
    align-items: baseline;
    gap: 12px;
  }

  .pricing-heading-row h2 {
    font-size: 22px;
  }

  .price-row {
    min-height: 70px;
    padding: 0 14px;
    grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(68px, 1fr));
    column-gap: 14px;
  }

  .quick-links-section {
    padding-bottom: 58px;
  }

  .quick-link {
    min-height: 58px;
    padding-inline: 10px;
    gap: 9px;
  }

  .quick-link strong {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-logo {
    width: 29px;
    height: 29px;
  }

  .nav-actions {
    gap: 12px;
  }

  .auth-link {
    min-height: 38px;
    min-width: 64px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-statement {
    max-width: min(100%, 382px);
    font-size: 29px;
    line-height: 1.24;
  }

  .hero-lede {
    max-width: min(100%, 382px);
    font-size: 15px;
    line-height: 1.7;
    word-break: break-all;
  }

  .routing-stage {
    margin-top: 50px;
    padding: 34px 14px 26px;
  }

  .source-stack,
  .target-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .source-stack .topology-card,
  .target-stack .topology-card {
    min-width: 0;
    min-height: 96px;
    padding: 14px 16px;
  }

  .topology-card-copy strong {
    font-size: 17px;
  }

  .topology-card-copy small {
    font-size: 11px;
  }

  .pricing-section {
    padding-bottom: 18px;
  }

  .pricing-inner {
    padding: 18px 14px 10px;
  }

  .pricing-heading-row h2 {
    font-size: 21px;
  }

  .pricing-panel {
    margin-top: 10px;
  }

  .price-table {
    display: block;
  }

  .price-row {
    min-height: 100px;
    padding: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
    column-gap: 16px;
  }

  .price-row + .price-row {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .price-provider-mark {
    width: 34px;
    height: 34px;
  }

  .price-model strong {
    font-size: 16px;
  }

  .price-model {
    grid-column: 1 / -1;
  }

  .price-cell strong {
    font-size: 14px;
  }

  .price-cell {
    gap: 7px;
  }

  .quick-links-section {
    padding-bottom: 48px;
  }

  .quick-link {
    min-height: 62px;
    padding: 8px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }

  .quick-link-icon {
    width: 16px;
    height: 16px;
  }

  .quick-link-icon svg {
    width: 16px;
    height: 16px;
  }

  .quick-link strong {
    font-size: 13px;
  }

  .contact-links {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    font-size: 12px;
  }

  .contact-link {
    min-width: 0;
    min-height: 52px;
    padding: 7px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .contact-link strong {
    max-width: 100%;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

}

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

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