/* Shared public navigation; homepage layout stays scoped to .api-home. */
html body.landing-page{--landing-gutter:clamp(22px,4.2vw,80px);--public-header-offset:84px;--public-nav-gutter:clamp(24px,5.5vw,100px);--accent:#0066ff;--mint:#0066ff;--action:#0066ff;--action-hover:#1b77ff;--action-pressed:#0056d6}
html body.landing-page .site-nav.wrap{position:sticky;top:8px;z-index:50;display:flex;align-items:center;justify-content:center;gap:24px;width:max-content;max-width:calc(100% - var(--public-nav-gutter)*2);min-height:50px;height:50px;padding:0 8px 0 16px;margin:8px auto -58px;background:#101113e8;border:1px solid #ffffff16;border-radius:10px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 8px 30px #0003;opacity:1;transform:translateY(0);transition:transform 850ms cubic-bezier(.4,0,.2,1),opacity 850ms cubic-bezier(.4,0,.2,1)}
html body.landing-page .site-nav.wrap.is-hidden{transform:translateY(calc(-100% - 10px));opacity:0;pointer-events:none}
html body.landing-page:not(.api-home) #main-content{padding-top:80px}
html body.landing-page .site-nav .brand{font-size:18px;font-weight:750;letter-spacing:-.6px;gap:7px;white-space:nowrap}
html body.landing-page .site-nav .brand-icon,html body.landing-page .site-nav .brand-icon img{width:21px;height:20px}
html body.landing-page .site-nav .brand-suffix{display:inline;margin-left:6px;font:9px/1.4 var(--mono);letter-spacing:.04em;color:var(--muted)}
html body.landing-page .site-nav .nav-links{display:flex;gap:2px;margin:0;padding:0 0 0 12px;border-left:1px solid #ffffff13;border-radius:0;background:transparent}
html body.landing-page .site-nav .nav-links>a,html body.landing-page .site-nav .nav-dropdown>summary{min-height:36px;padding:8px 12px;font:500 12px/20px var(--sans);border-radius:5px;background:transparent;color:#b9bdc7;transition:color .22s ease,background-color .22s ease}
html body.landing-page .site-nav :is(.nav-links>a,.login-link)[aria-current=page]{background:transparent;color:#fff;text-decoration:underline;text-decoration-color:#81b5ff;text-decoration-thickness:2px;text-underline-offset:5px}
html body.landing-page .site-nav .nav-dropdown[open]>summary{background:transparent;color:#fff}
@media(hover:hover){html body.landing-page .site-nav :is(.nav-links>a,.nav-dropdown>summary,.login-link,.public-menu-toggle):hover{background:#ffffff0b;color:#fff}}
html body.landing-page .site-nav .nav-actions{display:flex;align-items:center;gap:12px;margin:0;padding-left:12px;border-left:1px solid #ffffff13}
html body.landing-page .site-nav .nav-actions .button{min-height:34px;padding:8px 12px;border:1px solid transparent;border-radius:5px;font-size:11px;background:#0066ff;color:#fff}
html body.landing-page .site-nav .login-link{display:inline-flex;align-items:center;min-height:36px;padding-inline:8px;border-radius:5px;font-size:12px;color:#b9bdc7}
html body.landing-page .site-nav .nav-links>.mobile-login-link{display:none}
html body.landing-page .nav-dropdown-panel{top:calc(100% + 16px);background:#101113f5;border-color:#ffffff16;border-radius:10px;box-shadow:0 12px 36px #0005;animation:none;backdrop-filter:blur(18px)}
html body.landing-page .public-menu-lines{display:flex;flex-direction:column;gap:6px;width:18px}
html body.landing-page .public-menu-lines i{display:block;height:1px;width:18px;background:currentColor;transition:transform .25s}
html body.landing-page .public-menu-toggle[aria-expanded=true] i:first-child{transform:translateY(3.5px) rotate(45deg)}
html body.landing-page .public-menu-toggle[aria-expanded=true] i:last-child{transform:translateY(-3.5px) rotate(-45deg)}
html body.api-home{--line-soft:#ffffff14;--line:#ffffff1a;--radius:8px;--radius-lg:10px;--muted:#a3a6af}
html body.api-home .wrap{width:min(1440px,calc(100% - var(--landing-gutter)*2));max-width:none;margin-inline:auto;padding-inline:0}
html body.api-home .hero.hero-code.wrap{width:100%;margin:0;min-height:740px;min-height:max(720px,90svh);padding:160px var(--landing-gutter) 130px;display:block}
html body.api-home .hero-code .hero-content{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);column-gap:clamp(32px,6vw,100px);align-items:start;width:100%;max-width:1440px;margin:auto;padding:0;text-align:left}
html body.api-home .hero-code h1{grid-column:1;grid-row:1;font-size:clamp(58px,6.2vw,104px);font-weight:550;line-height:1.04;letter-spacing:-.065em;margin:0;text-align:left}
html body.api-home .hero-code h1 span{color:#81b5ff}
html body.api-home .hero-code .hero-copy{grid-column:1;grid-row:2;max-width:49ch;padding:0;margin:26px 0 0;font-size:14px;line-height:1.9;color:#b9bac2;text-align:left}
html body.api-home .hero-code .hero-actions{grid-column:1;grid-row:3;justify-content:flex-start;gap:24px;margin-top:30px}
html body.api-home .button{border-radius:5px;min-height:44px;padding:12px 18px;font-size:12px;letter-spacing:0;transform:none}
html body.api-home .button.black,html body.api-home .button.mint{background:#0066ff;color:#fff;border:1px solid transparent}
html body.api-home .button.text-cta{padding-inline:0;background:transparent;color:var(--ink)}
html body.api-home .hero-request{grid-column:2;grid-row:1/4;align-self:center;width:100%;max-width:540px;margin:24px 0 0;background:#101113e8;border:1px solid #ffffff1a;border-radius:10px;box-shadow:0 25px 70px #0003;backdrop-filter:blur(12px)}
html body.api-home .request-heading{padding:22px 24px;border-bottom:1px solid var(--line-soft);font-size:9px}
html body.api-home .request-code{padding:26px 22px;column-gap:12px;row-gap:16px}
html body.api-home .request-code code{font-size:clamp(10px,.8vw,12px);overflow-wrap:anywhere;white-space:pre-wrap}
html body.api-home .request-footnote{padding:18px 24px;font-size:10px;border-top:1px solid var(--line-soft)}
html body.api-home .hero-corners{display:none}
html body.api-home .hero-code .code-atmosphere:after{background:linear-gradient(90deg,#0a0a0bd9 0%,#0a0a0b88 46%,transparent 80%),linear-gradient(0deg,var(--bg),transparent 25%,transparent 85%,var(--bg))}
html body.api-home .hero-shape-waves{opacity:.6}
html body.api-home .hero-code .hero-bottom{font:9px/1.7 var(--mono);letter-spacing:.04em;color:var(--muted);background:transparent;border-top:1px solid var(--line-soft);padding-top:24px;bottom:28px}
html body.api-home .hero-code .scene-controls{bottom:78px}
html body.api-home .endpoint-band{background:var(--bg);border-block:1px solid var(--line-soft)}
html body.api-home .endpoint-band .wrap{padding-block:24px}
html body.api-home .section{padding-block:100px 0}
html body.api-home .section-heading{margin-bottom:36px}
html body.api-home h2{font-size:clamp(34px,3.7vw,60px);font-weight:550;line-height:1.12;letter-spacing:-.05em;text-transform:none}
html body.api-home .eyebrow{font:10px/1.7 var(--mono);letter-spacing:.055em;color:var(--muted);margin-bottom:18px}
html body.api-home .panel,html body.api-home .model-card,html body.api-home .comparison{border:1px solid var(--line-soft);border-radius:10px;background:#131417;box-shadow:none}
html body.api-home .pricing-layout { gap: clamp(12px, 2vw, 24px); }
html body.api-home .pricing-layout > .panel { min-width: 0; padding: clamp(18px, 2.4vw, 34px); }
.api-home .pricing-layout :is(.calculator, .connection-panel) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}
html body.api-home .pricing-layout .panel h3 {
  margin: 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.25;
}
.api-home .calculator-field > label { display: block; margin: 0 0 8px; font-size: 12px; }
.api-home .calculator .currency-input { border-color: #2d3035; }
html body.api-home .calculator .currency-input > #calc-amount {
  appearance: textfield;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.api-home .calculator #calc-amount::-webkit-inner-spin-button,
.api-home .calculator #calc-amount::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.api-home .calculator .package-buttons { margin: 10px 0 0; }
.api-home .calculator .package-buttons button { padding-inline: 6px; }
.api-home .calculator .package-buttons button[aria-pressed="true"] {
  background: #2b2e33;
  border-color: #555b64;
  color: #f4f4f5;
}
html body.api-home .calculator .credit-result {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #101114;
}
.api-home .calculator .credit-result > span { color: #a9adb5; font-size: 11px; letter-spacing: 0; }
.api-home .credit-result output { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.api-home .credit-result output strong { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.api-home .credit-result output > span { color: #a9adb5; font-size: 12px; }
.api-home .calculator #calculator-note { margin: 0; font-size: 12px; }
.api-home .connection-heading p { margin: 7px 0 0; font-size: 13px; }
.api-home .pricing-layout .connection-summary {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 12px;
  list-style: none;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #101114;
}
.api-home .connection-summary li { display: flex; align-items: center; gap: 11px; padding: 10px 0; }
.api-home .connection-summary li + li { border-top: 1px solid var(--line-soft); }
.api-home .connection-feature-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 6px;
  color: #c0c4cb;
  background: #202226;
}
.api-home .connection-summary li strong { display: block; font-size: 13px; font-weight: 600; }
.api-home .connection-summary li div > span { display: block; color: #a9adb5; font-size: 12px; }
html body.api-home .pricing-layout .connection-action {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid #34383d;
  background: #1b1d20;
  color: #ececee;
}
@media (hover: hover) {
  html body.api-home .pricing-layout .connection-action:hover { background: #272a2e; }
}
@media (max-width: 360px) {
  .api-home .calculator .package-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html body.api-home .panel h3,html body.api-home .model-card h3{font-weight:550;letter-spacing:-.04em}
html body.api-home .catalog-tools{border:1px solid var(--line-soft);border-radius:10px;background:#101113}
html body.api-home .model-card{padding:28px}
html body.api-home .developer-section{margin-top:100px;padding-block:90px;background:#101113;border-block:1px solid var(--line-soft)}
html body.api-home .developer-grid{gap:clamp(32px,6vw,100px)}
html body.api-home .developer-grid h2{font-size:clamp(36px,4vw,64px)}
html body.api-home .developer-grid p{font-size:14px;line-height:1.9}
html body.api-home .mint-text{color:#81b5ff}
html body.api-home .steps{margin-top:36px;border:0;gap:0}
html body.api-home .steps article{padding:26px 24px;border:0;border-top:1px solid var(--line-soft);background:transparent}
html body.api-home .steps article:first-child{padding-left:0}
html body.api-home .steps h3{font-size:21px;font-weight:550}
html body.api-home .faq{padding-bottom:100px;gap:clamp(30px,7vw,120px)}
html body.api-home .faq-list details{border-color:var(--line-soft);border-radius:0;background:transparent}
html body.api-home .brand-footer{margin-top:0;background:var(--bg);border-top:1px solid var(--line-soft)}
html body.api-home .brand-footer .footer-wordmark{font-weight:750;letter-spacing:-.065em;color:#1d1f23}
@media(hover:hover){html body.api-home .button.black:hover,html body.api-home .button.mint:hover,html body.landing-page .site-nav .nav-actions .button:hover{background:#1b77ff}html body.api-home .button.text-cta:hover{color:#81b5ff;background:transparent}}
@media(max-width:980px){
 html body.landing-page .site-nav.wrap{gap:10px;width:min(360px,calc(100% - var(--public-nav-gutter)*2));justify-content:space-between;padding-inline:14px 5px}
 html body.landing-page .site-nav .nav-links{display:none;position:absolute;top:calc(100% + 12px);left:0;right:0;max-height:calc(100dvh - 90px);overflow-y:auto;margin:0;padding:8px;border:1px solid #ffffff16;border-radius:10px;background:#101113f5;box-shadow:0 12px 36px #0005;backdrop-filter:blur(18px)}
 html body.landing-page .site-nav .nav-links.open{display:flex;flex-direction:column;align-items:stretch;gap:2px}
 html body.landing-page .nav-links>a,html body.landing-page .nav-dropdown>summary{justify-content:space-between;min-height:44px;padding:12px 14px;font-size:14px}
 html body.landing-page .nav-dropdown-panel{position:static;width:100%;min-width:0;max-width:none;margin:0 0 6px;border:0;background:#ffffff04;box-shadow:none;backdrop-filter:none}
 html body.landing-page .nav-dropdown-panel .dropdown-caption,html body.landing-page .nav-dropdown-panel .dropdown-footer{display:none}
 html body.landing-page .site-nav .nav-actions{margin-left:auto;padding-left:0;border-left:0}
 html body.landing-page .site-nav .login-link{display:none}
 html body.landing-page .site-nav .nav-links>.mobile-login-link{display:flex}
 html body.landing-page .public-menu-toggle{display:flex;align-items:center;justify-content:center;order:3;width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent;border-radius:6px;color:var(--ink)}
 html body.api-home .hero.hero-code.wrap{min-height:0;padding-top:132px;padding-bottom:120px}
 html body.api-home .hero-code .hero-content{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:32px}
 html body.api-home .hero-code h1{font-size:clamp(48px,6.4vw,68px)}
 html body.api-home .hero-code .hero-copy{font-size:13px}
 html body.api-home .hero-code .hero-actions{flex-wrap:wrap;gap:12px 20px}
 html body.api-home .request-heading,html body.api-home .request-footnote{padding-inline:16px}
 html body.api-home .request-code{padding:22px 14px}
}
@media(max-width:760px){
 html body.landing-page{--landing-gutter:22px;--public-header-offset:82px}

 html body.landing-page .site-nav .brand{font-size:18px}
 html body.landing-page .site-nav .brand-suffix{display:none}
 html body.api-home .hero.hero-code.wrap{padding:118px var(--landing-gutter) 136px}
 html body.api-home .hero-code .hero-content{display:block}
 html body.api-home .hero-code h1{font-size:clamp(46px,10vw,68px)}
 html body.api-home .hero-code .hero-copy{margin-top:22px;font-size:13px}
 html body.api-home .hero-code .hero-copy br{display:none}
 html body.api-home .hero-request{max-width:none;margin-top:42px}
 html body.api-home .request-code code{font-size:11px}
 html body.api-home .hero-code .hero-bottom{bottom:24px;gap:8px 16px;font-size:8px;left:22px;right:22px}
 html body.api-home .hero-code .scene-controls{bottom:88px;left:22px;right:22px}
 html body.api-home .section{padding-top:72px}
 html body.api-home .developer-section{margin-top:72px;padding-block:64px}
 html body.api-home .developer-grid{gap:32px}
 html body.api-home .steps{grid-template-columns:1fr 1fr}
 html body.api-home .steps article{padding:24px 12px 24px 0}
 html body.api-home .faq{padding-bottom:72px}
}
@media(max-width:480px){html body.landing-page{--public-nav-gutter:22px}html body.landing-page .site-nav.wrap{top:6px;margin-top:6px;margin-bottom:-56px}}
@media(max-width:360px){html body.landing-page{--landing-gutter:16px}html body.landing-page .site-nav.wrap{gap:8px}html body.landing-page .site-nav .nav-actions{gap:8px}html body.landing-page .site-nav .nav-actions .button{padding:8px 10px}html body.api-home .hero-code h1{font-size:43px}html body.api-home .request-code code{font-size:10px}}
@media(prefers-reduced-motion:reduce){html body.landing-page .site-nav.wrap,html body.landing-page .site-nav :is(.nav-links>a,.nav-dropdown>summary,.login-link),html body.landing-page .public-menu-lines i{transition:none}}
