:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --muted: #f7f8fa;
  --muted-strong: #eef2f5;
  --text: #111317;
  --text-soft: #616873;
  --text-faint: #9299a3;
  --border: #e3e6ea;
  --primary: #35a6ec;
  --primary-strong: #168bd3;
  --primary-soft: #edf8ff;
  --orange: #f47c24;
  --orange-soft: #fff7ef;
  --green: #14a46f;
  --shadow: 0 12px 36px rgba(24, 35, 48, 0.08);
  --header-height: 64px;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111315;
  --surface: #171a1d;
  --muted: #141719;
  --muted-strong: #202429;
  --text: #f4f6f8;
  --text-soft: #a7afb9;
  --text-faint: #747e8a;
  --border: #2a3036;
  --primary: #45b1f2;
  --primary-strong: #259fE6;
  --primary-soft: #102938;
  --orange-soft: #2b1f16;
  --green: #31c68e;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  pointer-events: none;
  background: transparent;
  border-bottom: 0;
  transition: none;
}

.site-header.scrolled { height: 60px; }
.site-header.navigation-ready { transition: height 320ms cubic-bezier(.16, 1, .3, 1); }

.nav-shell {
  width: min(1280px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: auto;
  transition: none;
}

.site-header.navigation-ready .nav-shell { transition: width 320ms cubic-bezier(.16, 1, .3, 1), height 320ms cubic-bezier(.16, 1, .3, 1), margin 320ms cubic-bezier(.16, 1, .3, 1), padding 320ms cubic-bezier(.16, 1, .3, 1), border-radius 320ms cubic-bezier(.16, 1, .3, 1), background 320ms ease, box-shadow 320ms ease; }

.site-header.scrolled .nav-shell {
  width: min(832px, calc(100% - 24px));
  height: 48px;
  margin-top: 12px;
  padding: 0 6px 0 16px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 2px 16px -6px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .02);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; white-space: nowrap; }
.brand img { width: 27px; height: 27px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 2px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 6px 12px; border-radius: 8px; color: var(--text-soft); font-size: 13px; font-weight: 500; transition: color 160ms ease; }
.site-header.scrolled .desktop-nav a { font-size: 13px; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.desktop-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -20px; width: 15px; height: 2px; transform: translateX(-50%); background: var(--primary); }
.site-header.scrolled .desktop-nav a.active::after { bottom: -10px; }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-divider { width: 1px; height: 16px; margin: 0 6px; flex: 0 0 1px; background: color-mix(in srgb, var(--border) 72%, transparent); }
.action-menu { position: relative; display: flex; align-items: center; }

.icon-button, .menu-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
}
.icon-button:hover, .menu-button:hover { background: var(--muted-strong); }
.icon-button svg, .menu-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
html[data-theme='dark'] .sun-icon { display: none; }
html[data-theme='dark'] .moon-icon { display: block; }
.login-button { min-width: 52px; height: 32px; padding: 0 14px; border-radius: 8px; color: #fff; background: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; }
.login-button:hover { background: var(--primary-strong); }
.menu-button { display: none; }
.mobile-nav { display: none; }

.action-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 12px 36px rgba(24, 35, 48, .14);
  backdrop-filter: blur(20px);
  animation: panel-in 140ms ease-out;
}
html[data-theme='dark'] .action-panel { box-shadow: 0 16px 42px rgba(0, 0, 0, .42); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }

.language-panel { width: 176px; padding: 4px; }
.language-panel button {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.language-panel button:hover { background: var(--muted); }
.language-panel button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; opacity: 0; }
.language-panel button[aria-checked='true'] svg { opacity: 1; }

.notification-button { position: relative; }
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: 10px;
  color: #fff;
  background: #e5484d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.notification-panel { width: min(416px, calc(100vw - 16px)); padding: 12px; }
.notification-panel > header { padding: 0 4px 10px; display: flex; flex-direction: column; line-height: 1.45; }
.notification-panel > header strong { font-size: 14px; }
.notification-panel > header small { color: var(--text-soft); font-size: 12px; }
.notification-tabs { padding: 3px; border-radius: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--muted); }
.notification-tabs button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.notification-tabs button.active { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px rgba(20, 25, 32, .08); }
.notification-tabs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-content { min-height: 198px; max-height: min(52vh, 448px); margin-top: 8px; padding: 4px; overflow: auto; overscroll-behavior: contain; }
.notification-empty { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--text-soft); text-align: center; }
.notification-empty svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.45; }
.notification-empty strong { color: var(--text); font-size: 13px; font-weight: 600; }
.notice-copy { color: var(--text); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-item { padding: 13px 2px; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--border); }
.announcement-item:last-child { border-bottom: 0; }
.announcement-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--primary); }
.announcement-dot.error, .announcement-dot.danger, .announcement-dot.urgent { background: #e5484d; }
.announcement-dot.warning { background: #e6a700; }
.announcement-dot.success { background: var(--green); }
.announcement-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.announcement-body strong, .announcement-body p { margin: 0; overflow-wrap: anywhere; }
.announcement-body strong { font-size: 13px; }
.announcement-body p { font-size: 13px; white-space: pre-wrap; }
.announcement-body small { color: var(--text-soft); font-size: 11px; }
.notification-panel > footer { padding-top: 8px; display: flex; justify-content: flex-end; }
.panel-close { min-height: 32px; padding: 5px 13px; border: 1px solid var(--primary); border-radius: 7px; color: #fff; background: var(--primary); cursor: pointer; font-size: 12px; font-weight: 650; }
.panel-close:hover { background: var(--primary-strong); }

.auth-loading { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(90deg, var(--muted) 25%, var(--muted-strong) 50%, var(--muted) 75%); background-size: 200% 100%; animation: auth-shimmer 1.2s linear infinite; }
@keyframes auth-shimmer { to { background-position: -200% 0; } }
.account-button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; cursor: pointer; }
.account-button:hover { background: var(--muted-strong); }
.account-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #3986d8; font-size: 10px; font-weight: 750; line-height: 1; }
.account-avatar.large { width: 32px; height: 32px; flex: 0 0 32px; font-size: 12px; }
.account-panel { width: 224px; padding: 4px; }
.account-summary { padding: 7px 6px; display: flex; align-items: center; gap: 9px; }
.account-summary > div { min-width: 0; display: flex; flex: 1; flex-direction: column; line-height: 1.35; }
.account-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.account-summary small { min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--text-soft); font-size: 11px; }
.account-summary i { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.account-summary i::before { content: "·"; margin-right: 5px; }
.panel-separator { height: 1px; margin: 4px -4px; background: var(--border); }
.account-panel > a, .account-panel > button {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.account-panel > a:hover, .account-panel > button:hover { background: var(--muted); }
.account-panel > a svg, .account-panel > button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-panel > .sign-out-button { color: #d84045; }

.mobile-nav-tools, .mobile-login-button { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(850px, calc(100% - 32px));
  padding: 90px 0 110px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 5.15vw, 78px);
  line-height: 1.08;
  font-weight: 850;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-content > p { margin: 27px 0 28px; color: var(--text-soft); font-size: 19px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; }
.button {
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; border-color: var(--primary); background: var(--primary); }
.button.primary:hover { border-color: var(--primary-strong); background: var(--primary-strong); }
.button.secondary { background: var(--surface); }
.button.secondary:hover { border-color: #c8ced5; background: var(--muted); }

.api-address {
  width: max-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
  font-size: 12px;
}
.api-address code { color: var(--text); font-family: "Cascadia Code", Consolas, monospace; }
.api-address svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }

.hero-lines { position: absolute; inset: 0 0 80px; pointer-events: none; overflow: hidden; opacity: .65; }
.hero-lines i { position: absolute; display: block; height: 1px; background: #caebff; animation: line-drift 8s ease-in-out infinite alternate; }
.hero-lines i:nth-child(1) { width: 48%; left: -6%; top: 37%; transform: rotate(-10deg); }
.hero-lines i:nth-child(2) { width: 47%; right: -4%; top: 29%; transform: rotate(10deg); animation-delay: -2s; }
.hero-lines i:nth-child(3) { width: 39%; left: 34%; bottom: 19%; transform: rotate(7deg); animation-delay: -4s; }
.hero-lines i:nth-child(4) { width: 5px; height: 5px; left: 18%; top: 25%; border: 1px solid #8dd4ff; background: transparent; animation: square-float 5s ease-in-out infinite; }
html[data-theme='dark'] .hero-lines { opacity: .25; }

@keyframes line-drift { from { translate: -12px -6px; } to { translate: 16px 8px; } }
@keyframes square-float { 50% { transform: translate(12px, 14px) rotate(45deg); } }

.provider-strip { width: 100%; min-width: 0; border-top: 1px solid var(--border); background: var(--surface); }
.provider-marquee { width: min(1152px, 100%); min-width: 0; margin: 0 auto; padding: 24px 24px 40px; overflow: hidden; }
.provider-track { width: max-content; display: flex; align-items: center; color: var(--text); animation: marquee 36s linear infinite; will-change: transform; }
.provider-group { display: flex; flex: 0 0 auto; align-items: center; gap: 32px; padding-right: 32px; }
.provider-track span { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; white-space: nowrap; font-size: 14px; font-weight: 500; }
.model-mark { width: 36px; height: 36px; display: inline-grid; flex: 0 0 36px; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-style: normal; font-size: 17px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.model-mark.anthropic { color: #e7773c; font-size: 22px; }
.model-mark.gemini { color: #2f8ee5; }
.model-mark.xai { color: #fff; background: #090a0c; }
.model-mark.openai { color: #fff; background: #1699ef; }
.model-mark.deepseek { color: #4f6df5; font-size: 10px; font-weight: 800; }
.model-mark.qwen { color: #5e68e8; }
.model-mark.meta { color: #fff; background: #0866ff; }
.model-mark.mistral { color: #fff; background: #f15b2a; }
.model-mark.kimi { color: #fff; background: #1f6fff; }
.model-mark.zhipu { color: #fff; background: #3f72ff; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 92px 20px; }
.section.muted { background: var(--muted); }
.container { width: min(1160px, 100%); margin: 0 auto; }
.container.narrow { width: min(900px, 100%); }
.section-heading { margin-bottom: 46px; }
.section-heading.split { display: grid; grid-template-columns: 1fr minmax(260px, 390px); align-items: end; gap: 60px; }
.section-heading.centered { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(31px, 3vw, 43px); line-height: 1.2; font-weight: 820; }
.section-heading p { margin: 12px 0 0; color: var(--text-soft); font-size: 16px; }
.eyebrow { color: var(--primary); font-size: 13px; font-weight: 750; }

.client-feature { border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: .78fr 1.22fr; overflow: hidden; background: var(--surface); }
.client-copy { padding: 45px 42px; background: var(--orange-soft); border-right: 1px solid var(--border); }
.client-logo { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.client-logo img { width: 36px; height: 36px; }
.client-logo.small { color: var(--primary); font-size: 14px; }
.client-logo.small img { width: 22px; height: 22px; }
.mini-pill { width: max-content; margin-top: 26px; padding: 3px 8px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 11px; font-weight: 650; }
.mini-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.client-copy h3 { margin: 22px 0 8px; font-size: 26px; line-height: 1.3; }
.client-copy p { margin: 0; color: var(--text-soft); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.client-copy small { display: block; margin-top: 22px; color: var(--text-soft); }

.switch-window { margin: 30px; padding: 0 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.window-bar { height: 40px; margin: 0 -16px; padding: 16px; display: flex; gap: 6px; border-bottom: 1px solid var(--border); }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.switch-head { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.client-tabs { display: flex; gap: 8px; }
.client-tabs b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--muted); color: var(--text-soft); font-size: 9px; }
.client-tabs b:first-child { color: var(--orange); background: var(--orange-soft); }
.client-tabs b.add { color: #fff; background: var(--orange); font-size: 18px; }
.provider-row { min-height: 62px; margin-top: 10px; padding: 9px 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 8px; }
.provider-row.selected { border-color: var(--primary); background: var(--primary-soft); }
.provider-row > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--muted); font-size: 10px; font-weight: 700; }
.provider-row div { display: flex; flex-direction: column; line-height: 1.35; }
.provider-row div small { color: var(--primary); }
.provider-row em { color: var(--green); font-size: 11px; font-style: normal; }

.subheading { margin: 45px 0 18px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.subheading h3 { margin: 0; font-size: 23px; }
.subheading p { margin: 0; color: var(--text-soft); font-size: 13px; }
.client-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.client-previews article { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.client-previews article > header { height: 70px; padding: 13px 17px; display: flex; gap: 11px; align-items: center; }
.client-previews header > b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #15171a; }
.client-previews header > b.orange { background: #f16a1b; }
.client-previews header > b.blue { background: #2764e7; }
.client-previews header div { display: flex; flex-direction: column; line-height: 1.35; }
.client-previews header small { color: var(--text-soft); }
.terminal { height: 160px; padding: 18px; position: relative; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; }
.terminal.dark { color: #dcecff; background: #080a0c; }
.terminal span { display: flex; justify-content: space-between; }
.terminal i { color: #6eb8ff; font-style: normal; }
.terminal .avatar { position: absolute; top: 58px; left: 18px; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: #56aef3; background: #102238; }
.terminal u { display: block; height: 7px; margin: 26px 0 0 48px; border-radius: 4px; background: #41546e; text-decoration: none; }
.terminal u + u { width: 67%; margin-top: 8px; }
.terminal u + u + u { width: 42%; }
.terminal.code p { color: #d8e6f5; line-height: 1.8; }
.terminal.code em { color: #40c9ff; font-style: normal; }
.terminal.pale { color: #4a8dcb; background: #f1f9ff; }
html[data-theme='dark'] .terminal.pale { background: #101d25; }
.terminal.pale div { padding: 8px 12px; border: 1px solid #acdfff; border-radius: 16px; background: var(--surface); }
.terminal.pale u { margin-left: 0; background: #d2ebfa; }
.supported-clients { margin-top: 10px; min-height: 48px; padding: 11px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 11px; }
.supported-clients strong { margin-right: 8px; }
.supported-clients span { padding: 2px 8px; border: 1px solid var(--border); border-radius: 10px; }

.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.model-card { min-height: 260px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: inherit; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.model-card:hover { transform: translateY(-3px); border-color: #b9dff6; box-shadow: var(--shadow); }
.model-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent); outline-offset: 3px; }
.model-card-main { flex: 1; padding: 20px; }
.model-card-top { display: flex; justify-content: space-between; align-items: center; }
.vendor-pill { padding: 2px 8px; border: 1px solid var(--border); border-radius: 11px; font-size: 11px; }
.model-card h3 { margin: 21px 0 44px; font-size: 20px; overflow-wrap: anywhere; }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-pair small { display: block; color: var(--text-soft); }
.price-pair strong { font-family: "Cascadia Code", Consolas, monospace; }
.model-card-foot { min-height: 45px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-soft); font-size: 12px; }
.model-card-foot span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-loading, .catalog-empty, .catalog-error { grid-column: 1 / -1; min-height: 180px; padding: 30px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--text-soft); background: var(--surface); text-align: center; }
.catalog-loading span { width: 25px; height: 25px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.catalog-meta { min-height: 42px; display: flex; justify-content: space-between; align-items: end; color: var(--text-soft); font-size: 12px; }
.text-button { border: 0; background: transparent; color: var(--primary); cursor: pointer; }
.more-models { grid-column: 1 / -1; margin-top: 16px; text-align: center; }
.more-models a { color: var(--primary); font-weight: 700; }

.multimodal-grid { display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.multimodal-grid article { padding: 30px; }
.vision-panel { border-right: 1px solid var(--border); }
.feature-label { color: var(--primary); font-size: 12px; font-weight: 700; }
.multimodal-grid h3 { margin: 6px 0; font-size: 22px; }
.multimodal-grid p { margin: 0; color: var(--text-soft); }
.image-request { height: 300px; margin-top: 28px; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: 1fr 1.35fr; overflow: hidden; }
.image-request > div { padding: 16px; display: flex; flex-direction: column; }
.image-request > div:first-child { border-right: 1px solid var(--border); }
.image-request strong { color: var(--text-soft); font-size: 11px; }
.image-request code { margin-top: 20px; color: var(--text-soft); font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; line-height: 1.8; }
.image-output { background: var(--muted-strong); }
.image-output img { width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: .92; }
.media-stack { display: grid; grid-template-rows: 1fr 1fr; }
.media-stack article:first-child { border-bottom: 1px solid var(--border); }
.waveform { height: 72px; margin-top: 22px; display: flex; align-items: center; gap: 7px; }
.waveform i { width: 5px; height: 24%; border-radius: 4px; background: #66bff2; animation: wave 1.2s ease-in-out infinite alternate; }
.waveform i:nth-child(2), .waveform i:nth-child(8) { height: 60%; animation-delay: -.2s; }
.waveform i:nth-child(3), .waveform i:nth-child(7) { height: 90%; animation-delay: -.4s; }
.waveform i:nth-child(4), .waveform i:nth-child(6) { height: 48%; animation-delay: -.6s; }
.waveform i:nth-child(5) { height: 100%; animation-delay: -.8s; }
@keyframes wave { to { transform: scaleY(.62); } }
.status-flow { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.status-flow span { padding: 4px 10px; border: 1px solid var(--border); border-radius: 13px; font-size: 11px; }
.status-flow .done { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }

.metrics-board { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.board-title { min-height: 52px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.board-title strong { display: flex; align-items: center; gap: 8px; }
.board-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.board-title span { color: var(--text-soft); font-size: 12px; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.metric-row > div { min-height: 110px; padding: 18px; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.metric-row > div:last-child { border-right: 0; }
.metric-row small, .metric-row span { color: var(--text-soft); font-size: 11px; }
.metric-row strong { margin: 7px 0; font-family: "Cascadia Code", Consolas, monospace; font-size: 22px; }
.board-body { display: grid; grid-template-columns: .85fr 1.15fr; }
.chart-panel { padding: 17px; border-right: 1px solid var(--border); }
.chart-panel header, .recent-panel header { display: flex; align-items: start; justify-content: space-between; }
.chart-panel header div, .recent-panel header div { display: flex; flex-direction: column; }
.chart-panel header small, .recent-panel header small { color: var(--text-soft); }
.chart-panel header > span { color: var(--green); font-size: 11px; }
.bars { height: 190px; margin-top: 20px; padding: 10px 8px 0; display: flex; align-items: end; gap: 10px; border-bottom: 1px solid var(--border); background-image: repeating-linear-gradient(to bottom, transparent 0 45px, var(--border) 46px); }
.bars i { flex: 1; height: var(--h); max-width: 32px; border-radius: 8px 8px 0 0; background: #66bdf0; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 5px; color: var(--text-faint); font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; }
.recent-panel { padding: 17px; }
.recent-panel header > span { color: var(--text-soft); font-size: 11px; }
.request-table { margin-top: 12px; }
.request-table .tr { min-height: 48px; padding: 8px 4px; display: grid; grid-template-columns: 2fr .7fr .7fr .7fr; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; }
.request-table .tr:last-child { border-bottom: 0; }
.request-table .tr.head { min-height: 32px; color: var(--text-soft); font-family: inherit; }
.request-table .tr > span:first-child { display: flex; flex-direction: column; }
.request-table small { color: var(--text-faint); }

.gateway-section { padding-top: 120px; padding-bottom: 120px; }
.gateway-diagram { position: relative; min-height: 430px; margin-top: 30px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; place-items: center; }
.gateway-core { width: 210px; height: 150px; position: relative; z-index: 2; border: 1px solid var(--primary); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary-soft) 60%, transparent); }
.gateway-core img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 8px; }
.gateway-core small { color: var(--text-soft); }
.gateway-side { position: absolute; top: 88px; display: grid; gap: 28px; }
.gateway-side.left { left: 13%; }
.gateway-side.right { right: 13%; }
.gateway-side span { width: 130px; height: 52px; position: relative; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.gateway-side.left span::after, .gateway-side.right span::before { content: ""; position: absolute; top: 50%; width: clamp(30px, 8vw, 105px); height: 1px; background: var(--border); }
.gateway-side.left span::after { left: 100%; }
.gateway-side.right span::before { right: 100%; }
.gateway-tags { position: absolute; bottom: 55px; display: flex; gap: 8px; }
.gateway-tags span { padding: 3px 9px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 11px; }

.price-caption { min-height: 50px; display: flex; justify-content: space-between; align-items: center; }
.price-caption span { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.price-caption i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.price-caption a { font-size: 12px; font-weight: 700; }
.pricing-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.pricing-head, .pricing-row { min-height: 58px; padding: 10px 18px; display: grid; grid-template-columns: 2.3fr .8fr .8fr 1fr; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); }
.pricing-head { min-height: 42px; background: var(--muted); color: var(--text-soft); font-size: 11px; font-weight: 700; }
.pricing-row:last-of-type { border-bottom: 0; }
.pricing-model { min-width: 0; display: flex; align-items: center; gap: 11px; }
.pricing-model strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pricing-row > span { font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.pricing-endpoint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.pricing-more { min-height: 48px; display: grid; place-items: center; border-top: 1px solid var(--border); background: var(--muted); color: var(--primary); font-size: 12px; font-weight: 700; }
.pricing-table > .catalog-loading, .pricing-table > .catalog-empty, .pricing-table > .catalog-error { border: 0; border-radius: 0; }

.faq-section { padding-top: 120px; padding-bottom: 120px; }
.faq-list { margin-top: 55px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { min-height: 67px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 15px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--text-soft); font-size: 20px; font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -6px 0 22px; color: var(--text-soft); }

.cta-section { padding: 64px 20px; background: var(--primary-soft); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { margin: 8px 0; font-size: clamp(29px, 3vw, 40px); line-height: 1.25; }
.cta-inner p { margin: 0; color: var(--text-soft); }
footer { padding: 20px; background: var(--bg); }
.footer-inner { width: min(1120px, 100%); min-height: 54px; margin: 0 auto; padding: 14px 20px; border: 1px solid var(--border); border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text-soft); font-size: 12px; }
.footer-inner strong { color: var(--text-soft); }
.footer-inner a { color: color-mix(in srgb, var(--text) 70%, transparent); font-weight: 500; text-decoration: none; transition: color 150ms ease; }
.footer-inner a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 100; padding: 10px 16px; border-radius: 8px; color: #fff; background: #17191c; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-button { display: grid; }
  .mobile-nav { position: absolute; top: var(--header-height); left: 12px; right: 12px; max-height: calc(100svh - var(--header-height) - 12px); padding: 12px; grid-template-columns: repeat(2, 1fr); gap: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: auto; background: color-mix(in srgb, var(--surface) 97%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(20px); pointer-events: auto; }
  .site-header.scrolled .mobile-nav { top: 66px; }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text-soft); background: var(--muted); }
  .mobile-nav-tools { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-nav-tools button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); background: var(--surface); cursor: pointer; }
  .mobile-nav-tools svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-tools b { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; color: #fff; background: #e5484d; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
  .mobile-login-button { grid-column: 1 / -1; min-height: 42px; display: flex; align-items: center; justify-content: center; color: #fff !important; background: var(--primary) !important; font-weight: 650; }
  .section-heading.split { grid-template-columns: 1fr; gap: 12px; }
  .client-feature { grid-template-columns: 1fr; }
  .client-copy { border-right: 0; border-bottom: 1px solid var(--border); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .multimodal-grid { grid-template-columns: 1fr; }
  .vision-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .board-body { grid-template-columns: 1fr; }
  .chart-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .gateway-side.left { left: 4%; }
  .gateway-side.right { right: 4%; }
}

@media (max-width: 720px) {
  :root { --header-height: 58px; }
  .nav-shell { width: calc(100% - 24px); gap: 12px; padding: 0; }
  .site-header.scrolled .nav-shell { width: calc(100% - 24px); padding: 0 6px 0 12px; }
  .brand span { font-size: 14px; }
  .brand img { width: 24px; height: 24px; }
  .nav-actions { gap: 2px; }
  .nav-actions > .nav-divider, .nav-actions > [data-menu-root='language'] > .icon-button, .nav-actions > [data-menu-root='notifications'] > .icon-button, #login-link { display: none; }
  .nav-actions > [data-menu-root='language'], .nav-actions > [data-menu-root='notifications'] { position: static; }
  .language-panel { position: fixed; top: 66px; right: 12px; }
  .notification-panel { position: fixed; top: 66px; right: 8px; left: 8px; width: auto; }
  .site-header.scrolled .language-panel, .site-header.scrolled .notification-panel { top: 72px; }
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero-content { padding: 80px 0 76px; }
  .hero h1 { font-size: 36px; }
  .hero-content > p { margin: 20px 0 23px; font-size: 16px; }
  .api-address { font-size: 10px; }
  .provider-marquee { padding: 24px 16px 32px; }
  .section { padding: 68px 16px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 30px; }
  .client-copy { padding: 30px 24px; }
  .client-copy h3 { font-size: 23px; }
  .switch-window { margin: 16px; }
  .client-tabs b:nth-child(n+5) { display: none; }
  .provider-row { grid-template-columns: 34px 1fr; }
  .provider-row em { display: none; }
  .subheading { display: block; }
  .subheading p { margin-top: 8px; }
  .client-previews { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 230px; }
  .model-card h3 { margin-bottom: 32px; }
  .image-request { height: auto; min-height: 330px; grid-template-columns: 1fr; }
  .image-request > div:first-child { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--border); }
  .media-stack { grid-template-rows: auto auto; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric-row > div:nth-child(2) { border-right: 0; }
  .metric-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .request-table .tr { grid-template-columns: 1.5fr .6fr .6fr; }
  .request-table .tr span:last-child { display: none; }
  .gateway-section, .faq-section { padding-top: 80px; padding-bottom: 80px; }
  .gateway-diagram { min-height: 500px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
  .gateway-core { order: 1; width: 190px; }
  .gateway-side { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; }
  .gateway-side.left { order: 0; }
  .gateway-side.right { order: 2; }
  .gateway-side span { width: auto; height: 45px; font-size: 12px; }
  .gateway-side span::before, .gateway-side span::after { display: none; }
  .gateway-tags { position: static; order: 3; flex-wrap: wrap; justify-content: center; }
  .pricing-head, .pricing-row { grid-template-columns: 1.65fr .7fr .7fr; padding-left: 12px; padding-right: 12px; gap: 8px; }
  .pricing-head span:last-child, .pricing-row .pricing-endpoint { display: none; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { border-radius: 8px; flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
