@font-face {
  font-family: Geist;
  src: url('../fonts/geist.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #04060b;
  --bg-soft: #090e17;
  --panel: #0b111b;
  --panel-2: #101827;
  --line: rgba(133, 159, 198, .13);
  --line-strong: rgba(148, 178, 216, .24);
  --text: #cbd2de;
  --muted: #939eaf;
  --dim: #778499;
  --lime: #168fff;
  --lime-deep: #0871d4;
  --cyan: #50bbef;
  --violet: #9471e9;
  --radius: 16px;
  --radius-sm: 11px;
  --max: 1120px;
  --font-display: Geist, 'Segoe UI', sans-serif;
  --font-body: Geist, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', Consolas, monospace;
}

html { scroll-padding-top: 94px; }
body { font-size: 15px; line-height: 1.65; }
body::before {
  background: radial-gradient(ellipse 70% 30% at 50% 2%, rgba(6, 37, 68, .17), transparent 80%);
  mask-image: none;
}
::selection { background: #095d9d; color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid #48adff; outline-offset: 3px; }
h1, h2, h3, h4 { letter-spacing: -.045em; }
.container { width: min(var(--max), calc(100% - 48px)); }
.section { padding: 94px 0; }
.section--tight { padding: 62px 0; }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(30px, 3.8vw, 43px); font-weight: 570; letter-spacing: -.052em; margin: 13px 0 10px; }
.section__head p { font-size: 16px; }
.section__label { color: #318df6; font-size: 11px; font-weight: 700; letter-spacing: .15em; }

/* Quiet, transparent navigation inspired by the model page. */
.nav { background: rgba(4, 6, 11, .84); border-bottom-color: rgba(133, 159, 198, .09); }
.nav__inner { height: 66px; }
.logo { gap: 9px; font-size: 15px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.logo__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: transparent; border: 1.7px solid #e3e9f2;
  color: transparent !important; font-size: 0;
}
.logo__mark::before { content: '↗'; color: #e3e9f2; font-size: 20px; font-family: Arial, sans-serif; line-height: 1; }
.nav__links { gap: 22px; }
.nav__links a { font-size: 13px; color: #8792a4; }
.nav__links a:hover, .nav__links a.is-active { color: #e1e6ee; }
.nav__menu { gap: 24px; }
.nav__actions { gap: 9px; }
.btn { font-family: var(--font-display); font-size: 14px; font-weight: 550; transition: transform .2s, border-color .2s, color .2s, background .2s, box-shadow .2s; }
.btn--primary {
  color: #80c9ff; background: rgba(0, 57, 100, .2);
  border-color: #086db6; box-shadow: none;
}
.btn--primary:hover { color: #fff; background: #075994; border-color: #0d96ff; box-shadow: 0 8px 34px rgba(0, 133, 255, .14); }
.nav__actions .btn--primary { color: #edf8ff; background: #0879d4; border-color: #198fee; }
.nav__actions .btn--primary:hover { background: #139bff; }
.btn--ghost { background: rgba(10, 19, 31, .66); border-color: var(--line-strong); color: #b7c0ce; }
.btn--ghost:hover { background: rgba(22, 44, 67, .8); border-color: #497aa5; color: #e5f2ff; }
.btn--tg { background: #0c81cb; border: 1px solid #349edf; }
.btn--tg:hover { background: #149add; box-shadow: 0 12px 28px rgba(0, 136, 232, .18); }
.btn--sm { padding: 8px 17px; font-size: 13px; min-height: 36px; }

/* Homepage: centered editorial headline, perspective lights behind the code sample. */
.hero--home { min-height: 900px; padding: 118px 0 95px; background: #04060b; isolation: isolate; }
.hero--home .hero__content { z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__motion { position: absolute; inset: 21% 0 0; z-index: 0; pointer-events: none; overflow: visible; opacity: .92; transform: translateY(-390px); }
.hero__motion canvas { display: block; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, #04060b 16%, rgba(4,6,11,.8) 29%, rgba(4,6,11,.25) 43%, rgba(4,6,11,.12) 64%, rgba(4,6,11,.58) 100%); }
.hero--home .eyebrow { border: 0; background: transparent; color: #8d9aaf; font-family: var(--font-display); text-transform: none; font-size: 13px; font-weight: 500; letter-spacing: 0; padding: 0; }
.eyebrow__spark { color: #5c7eff; font-size: 19px; }
.eyebrow__badge { color: #36a7ff; background: #072742; padding: 3px 11px; border-radius: 20px; font-size: 11px; margin-left: 3px; }
.hero--home h1 { margin: 23px 0 17px; max-width: 1050px; color: #c8ced9; font-size: clamp(45px, 6.2vw, 84px); font-weight: 540; line-height: 1.08; letter-spacing: -.062em; }
.hero--home h1 em { background: linear-gradient(98deg, #cbd3e7 5%, #76bff4 55%, #4e9ff0 100%); -webkit-background-clip: text; background-clip: text; }
.hero--home .hero__sub { max-width: 680px; margin: 8px auto 25px; color: #9da6b7; font-size: 18px; line-height: 1.55; }
.hero--home .hero__cta { justify-content: center; margin: 0 0 22px; gap: 10px; }
.hero--home .hero__cta .btn { padding: 10px 21px; min-height: 42px; }
.hero--home .hero__meta { justify-content: center; gap: 9px 25px; color: #7c889c; font-family: var(--font-display); font-size: 12px; }
.dot { background: #18bba4; box-shadow: 0 0 0 0 rgba(24, 187, 164, .42); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(24,187,164,.4); } 70% { box-shadow: 0 0 0 8px rgba(24,187,164,0); } 100% { box-shadow: 0 0 0 0 rgba(24,187,164,0); } }
.hero__terminal { width: min(100%, 835px); margin: 66px auto 0; text-align: left; transform: none; }
.terminal { background: rgba(8, 13, 23, .88); border-color: #26364a; box-shadow: 0 26px 90px rgba(0,0,0,.55), 0 0 70px rgba(0,111,207,.06); backdrop-filter: blur(16px); }
.terminal__bar { padding: 10px 16px; min-height: 48px; background: rgba(23, 35, 52, .63); }
.terminal__bar .terminal__lights { display: inline-flex; gap: 6px; }
.terminal__lights i { width: 8px; height: 8px; background: #65778e !important; }
.terminal__title { margin: 0 auto 0 11px !important; color: #b8c4d5 !important; letter-spacing: 0 !important; }
.terminal__bar .copy-btn { border-radius: 7px; white-space: nowrap; }
.terminal pre { padding: 23px 28px; font-size: 12px; color: #bac8d9; line-height: 1.75; }
.terminal__status { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 10px 18px; font-family: var(--font-mono); font-size: 11px; color: #8391a4; }
.terminal__status span:first-child { display: flex; gap: 8px; align-items: center; }
.terminal__status .dot { width: 6px; height: 6px; }
.t-cmd, .t-ok { color: #39b9ff; }
.t-key { color: #80bbff; }
.t-str { color: #b7d1f5; }

/* Content density, stat rail and cards. */
.strip { background: rgba(9, 15, 25, .93); border-block-color: var(--line); padding: 29px 0; }
.strip__grid { gap: 0; }
.stat { padding: 0 15px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(25px, 2.8vw, 36px); font-weight: 550; letter-spacing: -.055em; }
.stat__num b { color: #8cc7f1; font-weight: 580; }
.stat__label { font-size: 11px; letter-spacing: .08em; }
.card, .step, .plan, .faq__item { background: linear-gradient(145deg, #0e1623, #0a1019); border-color: var(--line); }
.card:hover, .plan:hover { border-color: rgba(53, 150, 236, .5); transform: translateY(-3px); }
.card__icon { color: #69b9f4; background: #10253c; border-color: #25425c; border-radius: 11px; }
/* Small, independent motions make the card symbols feel alive without moving the text. */
.card__icon { position: relative; isolation: isolate; overflow: hidden; box-shadow: 0 0 18px rgba(22, 143, 255, .08); }
.card__icon::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 85%, rgba(80, 187, 239, .35), transparent 68%); opacity: .35; animation: icon-glow 3.6s ease-in-out infinite; }
.hero__feature-preview { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.hero__feature-item { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 6px; border: 1px solid #25415b; border-radius: 999px; background: rgba(8, 21, 36, .84); color: #b8c9dc; font-size: 12px; white-space: nowrap; backdrop-filter: blur(10px); }
.hero__feature-item .card__icon { width: 33px; height: 33px; margin: 0; border-radius: 50%; font-size: 19px; }
.hero__terminal { margin-top: 30px; }
.card:hover .card__icon { border-color: #398acc; box-shadow: 0 0 24px rgba(22, 143, 255, .25); }
.card:hover .card__icon::before { opacity: .8; }
@keyframes icon-glow { 50% { opacity: .85; } }
.card h3, .step h3 { font-weight: 570; }
.step::before { color: #69b8f9; background: #102338; border-color: #255b87; }
.endpoints, .code, .field, .table-wrap { background: #0b111b; border-color: var(--line); }
.method--get { color: #6ac2ff; background: #0b2942; border-color: #245b87; }
.endpoint:hover { background: #111c2a; }
.plan--featured { background: radial-gradient(100% 80% at 50% 0%, rgba(13, 92, 165, .18), transparent 72%), #0b111b; border-color: #2276bb; box-shadow: inset 0 1px rgba(82, 176, 250, .12); }
.plan__badge { color: #b6e1ff; background: #0b3960; border: 1px solid #1978bd; font-size: 10px; }
.plan li::before { color: #55b8ff; }
.tgband, .ghband, .cta-final, .tgcard { background: radial-gradient(110% 120% at 10% 0%, rgba(8, 67, 117, .23), transparent 65%), #0b111b; border-color: #234362; border-radius: 17px; }
.ghband { background: radial-gradient(100% 130% at 100% 0%, rgba(57, 42, 121, .24), transparent 70%), #0b111b; }
.ghband__meta span { border-color: var(--line); }
.faq__item:hover { border-color: #27445f; }
.faq__q { font-weight: 540; }
.faq__q::after { color: #5db6ff; }
.footer { background: #060a10; border-color: var(--line); }
.footer ul a:hover { color: #66bdff; }
.copy-btn { border-radius: 7px; }
.copy-btn:hover { border-color: #3875a9; }
.copy-btn.is-copied { color: #c7ecff; background: #0b527d; border-color: #278ace; }
.docs__nav a:hover, .docs__nav a.is-active { border-left-color: #318df6; color: #86c9ff; }
.docs__content h2 { font-weight: 570; }
.callout { background: #0c1b2a; border-color: #1c547d; }
.callout--info { background: #0c1b2a; border-color: #276785; }
.tgcard__avatar { background: linear-gradient(135deg, #087ac4, #62c5ef); box-shadow: 0 12px 38px rgba(13, 131, 215, .15); }
.tgcard__handle { border-color: #245779; background: #0a1724; }
.page-hero { padding: 96px 0 30px; background: radial-gradient(ellipse 50% 90% at 50% 100%, rgba(9, 50, 88, .21), transparent 85%); }
.page-hero .eyebrow, .docs__content .eyebrow { color: #75bfff; background: #0d273d; border-color: #1c557f; letter-spacing: .12em; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 570; letter-spacing: -.06em; }
.docs__content h1 { font-weight: 570; }
[data-reveal] { transform: translateY(14px); }

@media (max-width: 980px) {
  .hero--home { min-height: 0; padding: 100px 0 76px; }
  .hero--home h1 { font-size: clamp(43px, 7vw, 70px); }
  .docs__nav a:hover, .docs__nav a.is-active { border-left-color: transparent; border-bottom-color: #318df6; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .nav__inner { height: 64px; }
  .nav__menu { top: 64px; padding: 18px; background: rgba(7, 13, 22, .98); box-shadow: 0 18px 30px rgba(0,0,0,.45); }
  .nav__actions .btn { width: 100%; }
  .hero--home { padding: 84px 0 62px; }
  .hero--home h1 { font-size: clamp(39px, 8vw, 58px); overflow-wrap: anywhere; }
  .hero--home .hero__sub { font-size: 16px; }
  .hero__motion { inset: 30% 0 0; transform: translateY(-270px); }
  .hero__veil { background: linear-gradient(to bottom, #04060b 22%, rgba(4,6,11,.72) 38%, rgba(4,6,11,.22) 60%, #04060b 100%); }
  .hero--home .hero__meta { gap: 8px 15px; }
  .hero__terminal { margin-top: 55px; }
  .terminal pre { font-size: 11px; padding: 19px; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); row-gap: 23px; }
  .stat:nth-child(3) { border-left: 0; }
  .tgband, .ghband { padding: 30px 24px; }
  .docs__nav { flex-wrap: nowrap; overflow-x: auto; }
  .docs__nav a { white-space: nowrap; }
}
@media (max-width: 480px) {
  .logo { font-size: 13px; }
  .hero--home h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero--home .hero__cta { width: 100%; }
  .hero--home .hero__cta .btn { width: 100%; }
  .hero__meta span { font-size: 11px; }
  .hero__feature-preview { gap: 6px; }
  .hero__feature-item { gap: 5px; padding: 4px 7px 4px 4px; font-size: 10px; }
  .hero__feature-item .card__icon { width: 27px; height: 27px; font-size: 16px; }
  .terminal__title { font-size: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .terminal__bar .copy-btn { font-size: 10px; padding: 5px 8px; }
  .strip__grid { gap: 15px 0; }
  .stat__num { font-size: 25px; }
  .stat__label { font-size: 9px; }
  .tgcard { padding: 34px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .dot { animation: none; transition: none; }
}
