:root {
  --graphite: #212b36; --ink: #0f1419; --hover: #454f5b;
  --green: #10b981; --green-ink: #0da271; --mint: rgba(16, 185, 129, 0.14); --green-50: #e7f8f2;
  --g100: #f9fafb; --g200: #f4f6f8; --g300: #dfe3e8; --g400: #c4cdd5; --g500: #919eab; --g600: #637381;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sh: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
  --pop: 0 0 2px 0 rgba(145, 158, 171, 0.24), -20px 20px 40px -4px rgba(145, 158, 171, 0.24);
  --code-bg: #121920;
}
html { scroll-behavior: smooth; }
body.api-page { background: var(--g200); overflow-x: clip; }
.hero.hero--ink.hero--strip { overflow: visible; padding: 8px 0 18px; z-index: 60; background: var(--ink) radial-gradient(600px 120px at 50% 0, rgba(16, 185, 129, 0.18), transparent 70%); }
.hero.hero--ink.hero--strip::before { display: none; }

.ap { font-family: "Manrope", sans-serif; color: var(--graphite); }
:where(.ap) :where(h1, h2, h3, h4, p, ol, ul, dl, dd, pre) { margin: 0; }
:where(.ap) :where(ol, ul) { padding: 0; list-style: none; }
:where(.ap) :where(img) { display: block; max-width: 100%; }
:where(.ap) :where(button) { font: inherit; }
:where(.ap) :where(code) { font-family: var(--mono); font-size: .9em; }
.ap * { scroll-margin-top: 96px; }

.ic { display: inline-flex; flex: none; width: 18px; height: 18px; }
.ic svg { width: 100%; height: 100%; }

.ap-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.ap-hero__glow { position: absolute; left: 50%; top: 46%; z-index: -1; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 60%); pointer-events: none; }
.ap-hero__beams { position: absolute; left: -10%; right: -10%; top: 90px; bottom: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(45deg, transparent 0 30%, rgba(255, 255, 255, 0.16) 30% 33.5%, transparent 33.5% 35.5%, rgba(255, 255, 255, 0.1) 35.5% 37%, transparent 37% 60%, rgba(255, 255, 255, 0.13) 60% 72%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); filter: blur(3px); }
.ap-hero__in { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 1200px; margin: 0 auto; padding: 88px 24px 48px; text-align: center; }
.ap-h1 { max-width: 980px; font-size: clamp(38px, 4.8vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.ap-h1 em { font-style: normal; }
.ap-h1 em .w i { color: var(--green); }
.ap-h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.ap-h1 .w i { display: inline-block; font-style: normal; transform: translateY(112%); transition: transform .75s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.ap-hero.in .ap-h1 .w i { transform: none; }
.ap-sub { max-width: 640px; margin-top: 22px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }
.ap-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.ap-curve { position: relative; z-index: 2; height: 56px; margin-top: -1px; border-radius: 56px 56px 0 0; background: var(--g200); }
.ap [data-hv] { opacity: 0; transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.ap [data-hv="up"] { transform: translateY(32px); }
.ap-hero.in [data-hv] { opacity: 1; transform: none; }

.ap-marq { position: relative; overflow: hidden; padding: 8px 0 72px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ap-marq__track { display: flex; gap: 12px; width: max-content; animation: ap-marq 44s linear infinite; }
.ap-marq__track span { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.ap-marq__track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@keyframes ap-marq { to { transform: translateX(-50%); } }

.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 15px/1 "Manrope", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.ap-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ap-btn--green { background: var(--green); color: #fff; }
.ap-btn--green:hover { background: var(--green-ink); }
.ap-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.ap-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.ap-body { padding-bottom: 24px; }
.ap-sec { padding-top: 112px; }
.ap-sec:first-child { padding-top: 40px; }
.ap-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ap-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 48px; text-align: center; }
.ap-tagd { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--graphite); color: #fff; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ap-head .ap-tagd { margin-bottom: 24px; }
.ap-h2 { font-size: clamp(30px, 3.5vw, 46px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; color: var(--graphite); }
.ap-head .ap-h2 { max-width: 820px; }
.ap-head p { max-width: 620px; margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--g600); }
.ap p code, .ap li code { padding: 1px 6px; border-radius: 6px; background: rgba(145, 158, 171, 0.16); color: var(--graphite); font-size: .86em; }
.ap-card { background: #fff; border-radius: 24px; box-shadow: var(--sh); }
.ap-path { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--g200); font: 500 12.5px/1 var(--mono); color: var(--graphite); white-space: nowrap; }
.ap-path b { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--green-50); color: var(--green-ink); font-weight: 500; font-size: 11px; letter-spacing: .06em; }
.ap [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.ap [data-r].in { opacity: 1; transform: none; }

.ap-flow { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr) 90px minmax(0, 1fr); align-items: center; }
.ap-node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 28px 20px; text-align: center; }
.ap-node img { width: 112px; height: 112px; margin: -6px 0 6px; object-fit: contain; }
.ap-node b { font-size: 18px; }
.ap-node > span { font-size: 13.5px; color: var(--g600); }
.ap-node--dark { background: var(--graphite) radial-gradient(260px 160px at 50% 0, rgba(16, 185, 129, 0.22), transparent 70%); box-shadow: 0 24px 48px -24px rgba(15, 20, 25, 0.55); color: #fff; }
.ap-node--dark > span { color: rgba(255, 255, 255, 0.6); }
.ap-node--dark img { filter: drop-shadow(0 16px 22px rgba(16, 185, 129, 0.28)); }
.ap-dests { display: grid; grid-template-columns: repeat(2, 38px); gap: 8px; margin-bottom: 8px; }
.ap-dests .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--green-50); color: var(--green-ink); }
.ap-pipe { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--g400) 0 6px, transparent 6px 12px); }
.ap-pipe i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--mint); animation: ap-pipe 2.4s linear infinite; }
.ap-pipe i:nth-child(2) { animation-delay: -.8s; }
.ap-pipe i:nth-child(3) { animation-delay: -1.6s; }
@keyframes ap-pipe { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

.ap-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-masonry .feature-card__chips li { font-family: var(--mono); font-weight: 500; font-size: 12px; }

.ap-steps { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.ap-nav { position: sticky; top: 104px; padding: 14px; border-radius: 28px; background: #fff; box-shadow: var(--sh); }
.ap-nav__list { display: grid; gap: 4px; }
.ap-nav__list li { position: relative; --p: 0; }
.ap-nav__list li:not(:last-child)::before, .ap-nav__list li:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 52px; bottom: -10px; width: 2px; border-radius: 2px; background: var(--g300); }
.ap-nav__list li:not(:last-child)::after { background: var(--green); transform: scaleY(var(--p)); transform-origin: top; transition: transform .25s linear; }
.ap-nav__list a { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 18px; color: var(--g600); text-decoration: none; transition: background-color .3s, color .3s; }
.ap-nav__list a:hover { background: var(--g100); color: var(--graphite); }
.ap-nav__dot { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--g300); color: var(--g500); transition: background-color .35s, box-shadow .35s, color .35s; }
.ap-nav__dot b { font: 500 12px/1 var(--mono); }
.ap-nav__dot .ic { position: absolute; width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .35s var(--ease); }
.ap-nav__txt { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.ap-nav__txt small { font: 500 11.5px/1.3 var(--mono); color: var(--g500); }
.ap-nav__list li.on .ap-nav__dot { background: var(--green); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.16); color: #fff; }
.ap-nav__list li.on a { color: var(--graphite); }
.ap-nav__list li.on small { color: var(--green-ink); }
.ap-nav__list li.done .ap-nav__dot { background: var(--graphite); box-shadow: none; color: #fff; }
.ap-nav__list li.done .ap-nav__dot b { opacity: 0; }
.ap-nav__list li.done .ap-nav__dot .ic { opacity: 1; transform: none; }
.ap-nav__list li.done a { color: var(--graphite); }
.ap-nav__foot { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 14px 16px; border-radius: 18px; background: var(--g200); font-size: 13px; line-height: 1.5; color: var(--g600); }
.ap-nav__foot .ic { margin-top: 1px; color: var(--green-ink); }
.ap-panels { display: grid; gap: 20px; min-width: 0; }
.ap-panel { position: relative; overflow: hidden; min-width: 0; padding: 36px; border-radius: 28px; background: #fff; box-shadow: var(--sh); }
.ap-panel__n { position: absolute; top: 18px; right: 26px; font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--g200); pointer-events: none; user-select: none; }
.ap-panel__k { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--green-50); color: var(--green-ink); font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ap-panel h3 { position: relative; margin-top: 16px; font-size: 28px; letter-spacing: -0.03em; }
.ap-panel > p { position: relative; max-width: 620px; margin: 10px 0 24px; color: var(--g600); line-height: 1.6; }
.ap-app { display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; border-radius: 18px; background: var(--g200); }
.ap-app__side { display: grid; align-content: start; gap: 4px; padding: 16px 10px; }
.ap-app__side span { padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--g600); }
.ap-app__side span.on { background: var(--graphite); color: #fff; }
.ap-app__main { display: grid; gap: 8px; min-width: 0; padding: 16px; }
.ap-app__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.ap-app__head b { font-size: 16px; }
.ap-app__btn { margin-left: auto; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; animation: ap-pulse 2.4s ease infinite; }
@keyframes ap-pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); } }
.ap-app__row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: #fff; font-size: 13.5px; }
.ap-app__row code { overflow: hidden; color: var(--g600); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ap-app__row i { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--green-ink); }
.ap-panel__note { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--g200); font-size: 14px; color: var(--g600); }
.ap-panel__note .ic { color: var(--green-ink); }

.ap-code { position: relative; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--code-bg); color: rgba(255, 255, 255, 0.86); box-shadow: none; text-align: left; }
.ap-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 10px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ap-code__bar--tabs { padding-left: 8px; }
.ap-code__file { overflow: hidden; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); white-space: nowrap; text-overflow: ellipsis; }
.ap-code__right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ap-code pre { overflow-x: auto; padding: 18px 20px 22px; font: 400 13px/1.7 var(--mono); white-space: pre; tab-size: 2; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.ap-code pre.typing::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--green); animation: ap-blink 1s steps(2) infinite; }
@keyframes ap-blink { 50% { opacity: 0; } }
.ap-copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); font: 600 12px/1 "Manrope", sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.ap-copy-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.ap-copy-btn .ic { width: 14px; height: 14px; }
.ap-copy-btn.done { background: var(--green); color: #fff; }
.ap-tabs { position: relative; display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.ap-tabs button { position: relative; z-index: 1; height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.6); font: 600 12.5px/1 "Manrope", sans-serif; cursor: pointer; transition: color .25s ease; white-space: nowrap; }
.ap-tabs button:hover { color: #fff; }
.ap-tabs button.on { color: var(--graphite); }
.ap-tabs__ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: #fff; transition: transform .4s var(--ease), width .4s var(--ease); }
.ap .t-c { color: #6b7885; }
.ap .t-s { color: #8fe3c1; }
.ap .t-k { color: var(--green); }
.ap .t-n { color: #f1f5f4; font-weight: 500; }
.ap .t-p { color: #c4cdd5; }
.ap .t-f { color: #6ee7b7; }

.ap-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 88px 32px; border-radius: 32px; background: #fff; box-shadow: var(--sh); color: var(--graphite); text-align: center; isolation: isolate; }
.ap-cta .ap-h2 { max-width: 760px; }
.ap-cta p { max-width: 560px; margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--g600); }
.ap-cta .ap-btn--ghost { color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--g300); }
.ap-cta .ap-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.ap-cta img { position: absolute; z-index: -1; height: auto; pointer-events: none; }
.ap-cta__a { width: 280px; left: -70px; bottom: -90px; }
.ap-cta__b { width: 240px; right: -50px; top: -70px; }

@media (max-width: 1100px) {
  .ap-steps { grid-template-columns: 1fr; gap: 20px; }
  .ap-nav { display: none; }
}
@media (max-width: 960px) {
  .ap-flow { grid-template-columns: 1fr; justify-items: stretch; gap: 0; }
  .ap-pipe { width: 2px; height: 48px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--g400) 0 6px, transparent 6px 12px); }
  .ap-pipe i { left: -4px !important; top: 0; animation-name: ap-pipe-v; }
  @keyframes ap-pipe-v { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
  .ap-masonry { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ap-hero__in { padding: 64px 16px 36px; }
  .ap-sub { font-size: 16px; }
  .ap-marq { padding-bottom: 56px; }
  .ap-marq__track span { height: 42px; padding: 0 18px; font-size: 14px; }
  .ap-sec { padding-top: 80px; }
  .ap-wrap { padding: 0 16px; }
  .ap-panel { padding: 24px 20px; border-radius: 24px; }
  .ap-panel__n { top: 14px; right: 18px; font-size: 64px; }
  .ap-panel h3 { font-size: 23px; }
  .ap-app { grid-template-columns: 1fr; }
  .ap-app__side { display: flex; overflow-x: auto; }
  .ap-code pre { padding: 16px; font-size: 12px; }
  .ap-code__bar--tabs .ap-code__file { display: none; }
  .ap-code__bar--tabs .ap-copy-btn { width: 32px; padding: 0; justify-content: center; }
  .ap-code__bar--tabs .ap-copy-btn span { display: none; }
  .ap-tabs button { padding: 0 11px; }
  .ap-cta { padding: 64px 20px 72px; border-radius: 24px; }
  .ap-cta__a { width: 120px; left: -64px; bottom: -78px; }
  .ap-cta__b { width: 100px; right: -46px; top: -58px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-marq__track, .ap-pipe i, .ap-app__btn, .ap-code pre.typing::after { animation: none !important; }
  .ap-pipe i:not(:first-child) { display: none; }
}
