@font-face {
  font-family: Manrope;
  src: url("Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #0c0f21;
  --ink: #f5f4ff;
  --muted: #b5b6d0;
  --line: #32364f;
  --relay: #bfafff;
}
body.relay-page { background: var(--bg); color: var(--ink); overflow-x: clip; }
.relay-page main, .relay-page .site-footer {
  width: min(1232px, calc(100% - 48px)); max-width: none; margin-inline: auto; padding-inline: 0;
}
.relay-page .ambient-circuit { display: none; }
.relay-page .site-header {
  position: relative; top: auto; z-index: 6; height: 56px; min-height: 0;
  display: flex; align-items: center; gap: 22px; flex-wrap: nowrap;
  padding: 0 clamp(18px, 2vw, 36px); border: 0; border-bottom: 1px solid #292d47;
  background: var(--bg); font: 620 13px/1.2 Manrope, Arial, sans-serif;
}
.relay-page .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 740 19px/1 Manrope, sans-serif; letter-spacing: -.85px; }
.site-header .brand { margin-right: auto; }
.site-header .brand img { display: block; width: 33px; height: 20px; }
.relay-search {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; width: 190px; padding: 0 10px;
  border: 1px solid #343852; border-radius: 6px; color: #c1bfd4; background: #171b32; white-space: nowrap;
}
.relay-search svg, .relay-menu-toggle svg, .learn-api svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.relay-search kbd { margin-left: auto; padding: 2px 4px; color: #b4b3ce; border-radius: 3px; background: #272b45; font: 10px/1.15 var(--mono); }
.relay-page #cabinet-nav { display: flex; align-items: center; flex: none; height: 100%; width: auto; gap: 22px; padding: 0; margin: 0; border: 0; }
.relay-page #cabinet-nav a { display: inline-flex; align-items: center; height: 100%; padding: 0; background: none; color: #c1bfd4; font: 620 13px Manrope, sans-serif; white-space: nowrap; }
.relay-page #cabinet-nav a::after { display: none; }
.relay-page #cabinet-nav a:is(:hover,[aria-current]), .relay-search:hover { color: white; }
.relay-page .header-links { display: flex; flex: none; align-items: center; padding: 0; margin: 0; }
.relay-page .header-links .cabinet-link, .relay-actions .take-key {
  display: inline-flex; align-items: center; justify-content: center; border: 0;
  color: #201932; background: var(--relay); border-radius: 6px;
}
.relay-page .header-links .cabinet-link { height: 32px; padding: 0 14px; font: 650 13px Manrope, sans-serif; }
.relay-page .header-links .cabinet-link:hover, .relay-actions .take-key:hover { background: #d4c6ff; color: #211935; }
.relay-menu-toggle { display: none; }

#overview.relay-cover { position: relative; isolation: isolate; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; }
.relay-cover .relay-hero { position: relative; min-height: clamp(535px,75svh,700px); display: flex; align-items: center; }
.relay-copy { position: relative; z-index: 2; width: min(540px, 47%); padding: 24px 0 64px; pointer-events: none; }
.relay-copy h1, .relay-copy > p, .relay-facts { pointer-events: auto; }
.relay-page .relay-copy h1 { margin: 0; max-width: none; color: #f5f4ff; font: 790 clamp(54px,5.1vw,76px)/1.035 Manrope, Golos, sans-serif; letter-spacing: -.063em; }
.relay-copy > p { max-width: 440px; margin: 20px 0 0; color: #b9b9cf; font: 510 16px/1.62 Manrope, Golos, sans-serif; letter-spacing: -.015em; }
.relay-copy > p a { display:inline-block; color:#d4caff; text-decoration:underline; text-decoration-color:#726793; text-underline-offset:4px; }
.relay-copy > p a:hover { color:#f4efff; text-decoration-color:currentColor; }
.relay-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.relay-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 24px; font: 650 14px/1.25 Manrope, Golos, sans-serif; border-radius: 6px; white-space: nowrap; pointer-events: auto; }
.relay-actions .learn-api { border: 1px solid #444764; background: #171a30; color: #eeedf9; }
.relay-actions .learn-api:hover { background: #22263e; border-color: #777593; }
.learn-api svg { width: 15px; height: 15px; color: #bfbed3; }
.relay-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 18px 0 0; }
.relay-facts div { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.relay-facts dd { margin: 0; color: #f4f2ff; font: 790 18px/1.3 Manrope, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.relay-facts dt { margin-top: 2px; color: #b3b3cb; font: 580 12px/1.35 Manrope, sans-serif; }

.relay-illustration {
  position: absolute; z-index: 0; inset: 0 auto 0 50%; transform: translateX(-50%);
  width: calc(100vw - var(--scrollbar-space, 0px)); overflow: hidden; isolation: isolate; pointer-events: none;
  background: #0c0f21 url("orbit-mist.webp?v=ink17") center / 100% 100% no-repeat;
}
.relay-illustration::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,#0c0f2183 0%,#0c0f2161 22%,transparent 58%),
    linear-gradient(180deg,#0c0f21cd,transparent 13%,transparent 78%,#0c0f21 100%);
}
.model-galaxy { position: absolute; inset: 0; width: 100%; height: 100%; }
.galaxy-core {
  position: absolute; z-index: 2; left: var(--galaxy-x,68%); top: var(--galaxy-y,44%);
  width: clamp(170px,16vw,294px); aspect-ratio: 8/5; transform: translate(-50%,-50%); pointer-events: none;
}
.galaxy-core .relay-object, .orbit-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.orbit-film, .show-orbit-film .relay-object { visibility: hidden; }
.show-orbit-film .orbit-film { visibility: visible; }
.galaxy-core .relay-object { animation: zg-poster-turn 8s ease-in-out infinite; animation-play-state: paused; }
.relay-illustration[data-moving=true]:not(.show-orbit-film) .relay-object { animation-play-state: running; }
@keyframes zg-poster-turn {
  0%,100% { transform: perspective(520px) rotateY(0deg) rotateX(0deg); }
  25% { transform: perspective(520px) rotateY(10deg) rotateX(-2deg); }
  75% { transform: perspective(520px) rotateY(-10deg) rotateX(2deg); }
}
.galaxy-family {
  position: absolute; z-index: 3; top: 0; left: 0; width: 25px; height: 25px;
  display: grid; place-items: center; border-radius: 50%; background: #151930; color: var(--family-tone);
  border: 1px solid #4c506e; box-shadow: 0 0 0 3px #11142ba8,0 2px 8px #0007; will-change: transform;
  padding: 0; cursor: pointer; pointer-events: auto; touch-action: manipulation;
}
.galaxy-family[hidden] { display: none; }
.galaxy-family svg { width: 15px; height: 15px; }
.galaxy-family-name {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  padding: 1px 4px 2px; border-radius: 4px; color: #dbdaee; background: #15172bdd;
  font: 645 11px/1.2 Manrope,Golos,sans-serif; white-space: nowrap; pointer-events: none;
}
.galaxy-family:is(:hover,:focus-visible,.is-inspected) .galaxy-family-name { color: white; background: #38324e; }
.galaxy-model {
  position: absolute; z-index: 4; top: 0; left: 0; width: 26px; height: 26px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none;
  cursor: pointer; pointer-events: auto; touch-action: manipulation;
}
.galaxy-model-dot {
  display: block; position: relative; width: var(--point-size,5px); height: var(--point-size,5px);
  border-radius: 50%; background: color-mix(in srgb,var(--family-tone) 48%,#f3efff);
  box-shadow: 0 0 5px 1px color-mix(in srgb,var(--family-tone) 59%,transparent);
  pointer-events: none; animation: model-twinkle 3.7s ease-in-out infinite paused;
}
.relay-illustration[data-moving=true] .galaxy-model-dot { animation-play-state: running; }
@keyframes model-twinkle {
  0%,100% { opacity: .48; transform: scale(.87); }
  48% { opacity: 1; transform: scale(1.18); }
}
.galaxy-model-dot::after {
  content: ""; position: absolute; inset: -5px; border: 1px solid #c6adff; border-radius: 50%; opacity: 0;
}
.galaxy-model:is([aria-expanded=true],:focus-visible) .galaxy-model-dot { background: #efe9ff; animation: none; opacity: 1; }
.galaxy-model:is([aria-expanded=true],:focus-visible) .galaxy-model-dot::after { opacity: .9; }
.galaxy-model-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.galaxy-model-card { position: fixed; top: 0; left: 0; z-index: 1000; width: max-content; max-width: min(280px,calc(100vw - 24px)); box-sizing: border-box; padding: 9px 13px; border: 1px solid #6e638e; border-radius: 8px; color: #f2eefe; background: #282139; box-shadow: 0 5px 20px #0006; }
.galaxy-card-title { display: block; margin: 0; font: 650 13px/20px Manrope, Golos, sans-serif; overflow-wrap: anywhere; }
.galaxy-model-card[hidden] { display: none; }
.galaxy-motion {
  position: absolute; right: max(18px,3vw); bottom: 15px; z-index: 5; pointer-events: auto;
  display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #4c4b69; border-radius: 50%;
  color: #c1bfd7; background: #18192cde; font: 12px/1 Arial, sans-serif;
}
.galaxy-motion:hover { color: white; border-color: #9283ad; }
.relay-integrations { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; min-height: clamp(120px,19svh,185px); padding: 30px 0; }
.relay-integrations a { display: inline-flex; align-items: center; gap: 8px; color: #acadca; font: 750 clamp(17px,1.4vw,23px)/1.2 Manrope, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.relay-integrations a:hover { color: #f2f1ff; }
.relay-integrations svg { width: 25px; height: 25px; fill: currentColor; }
.relay-integrations .jet-sign { padding-bottom: 1px; border-bottom: 2px solid; font: 820 13px/1 Manrope,sans-serif; letter-spacing: -.06em; }
.relay-page :is(a,button,input,select,summary):focus-visible { outline: 2px solid #c8b8ff; outline-offset: 3px; }
.relay-page ::selection { background: #bfafff; color: #201932; }
#relay-diagram { scroll-margin-top: 20px; }
.api-address label { display: flex; align-items: center; gap: 12px; color: #bbbad2; }
.api-address select { max-width: 100%; padding: 5px 9px; color: var(--ink); border: 1px solid #4b4d6c; border-radius: 5px; background: #1b1e35; }
@media (prefers-reduced-motion:no-preference) {
  .galaxy-model-card:not([hidden]) { animation: show-model-name 140ms ease-out; }
  .galaxy-family-name { transition: opacity 110ms ease; }
}
@keyframes show-model-name { from { opacity: 0; translate: 0 2px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .relay-illustration:not([data-moving=true]) .galaxy-model-dot { animation: none; opacity: .9; }
}
@media (max-width:1050px) {
  .relay-page .site-header, .relay-page #cabinet-nav { gap: 15px; }
  .relay-search { width: 146px; }
  .relay-search kbd { display: none; }
  .relay-page .relay-copy h1 { font-size: clamp(46px,5.6vw,59px); }
}
@media (max-width:1060px) {
  .galaxy-family { display:flex; align-items:center; gap:3px; width:max-content; min-height:22px; height:22px; padding:0 5px; border-radius:6px; background:#1a1d32; box-shadow:0 1px 4px #0c0f2180; }
  .galaxy-family svg { width:12px; height:12px; }
  .galaxy-family-name { position:static; padding:0; transform:none; line-height:1; font-size:10px; background:transparent; }
  .galaxy-family:is(:hover,:focus-visible,.is-inspected) .galaxy-family-name { background:transparent; }
}
@media (max-width:900px) {
  .relay-page main, .relay-page .site-footer { width: calc(100% - 32px); }
  .relay-page .site-header { height: 48px; gap: 12px; padding: 0 16px; }
  .site-header .brand { font-size: 17px; }
  .site-header .brand img { width: 30px; height: 19px; }
  .relay-search { justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; }
  .relay-search span, .relay-search kbd { display: none; }
  .relay-page .header-links .cabinet-link { height: 31px; padding: 0 12px; }
  .relay-menu-toggle { display: grid; place-items: center; width: 30px; height: 34px; padding: 0; border: 0; color: #dedff1; background: transparent; }
  .relay-page #cabinet-nav { position: absolute; top: 48px; right: 12px; z-index: 7; display: none; width: 182px; height: auto; padding: 5px; border: 1px solid #4a4a65; border-radius: 8px; background: #171b32; box-shadow: 0 12px 32px #0006; }
  .relay-page .site-header[data-open] #cabinet-nav { display: grid; gap: 0; }
  .relay-page #cabinet-nav a { min-height: 40px; padding: 0 10px; }
  .relay-cover .relay-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .relay-illustration { position: relative; order: -1; align-self: center; inset: auto; transform: none; height: clamp(320px,92vw,419px); flex: none; }
  .relay-illustration::after { background: linear-gradient(180deg,#0c0f2175,transparent 15%,transparent 76%,#0c0f21); }
  .galaxy-core { left: var(--galaxy-x,50%); width: clamp(87px,24vw,151px); }
  .galaxy-model { width: 24px; height: 24px; }
  .galaxy-motion { right: 10px; bottom: 6px; width: 28px; height: 28px; }
  .relay-copy { width: 100%; max-width: 540px; padding: 28px 0 0; }
  .relay-page .relay-copy h1 { font-size: clamp(38px,8.8vw,57px); letter-spacing: -.054em; }
  .relay-copy > p { margin-top: 18px; font-size: 16px; }
  .relay-actions { margin-top: 18px; gap: 9px; }
  .relay-actions a { padding: 0 clamp(13px,4.4vw,22px); }
  .relay-integrations { justify-content: flex-start; min-height: 0; gap: 18px 28px; padding: 44px 0 32px; }
  .relay-integrations a { font-size: 16px; }
  .relay-integrations svg { width: 20px; height: 20px; }
}
