/* Vionex marketing site — hand-written CSS, no frameworks, no external fonts. */

:root {
  --vx-primary: #0066e6;
  --vx-primary-hover: #0052cc;
  --vx-primary-soft: #e8f1ff;
  --vx-primary-line: #cfe0fb;
  --vx-accent: #00a3ff;
  --vx-text: #1f1f1f;
  --vx-text-2: #444746;
  --vx-text-3: #5f6368;
  --vx-border: #dadce0;
  --vx-border-soft: #e8eaed;
  --vx-surface: #ffffff;
  --vx-surface-2: #f8f9fa;
  --vx-surface-3: #f4f8ff;
  --vx-success: #188038;
  --vx-success-soft: #e6f4ea;
  --vx-warning: #b06000;
  --vx-danger: #d93025;
  --vx-dark: #0b1220;
  --vx-dark-2: #121d30;
  --vx-on-dark-2: #b8c3d6;
  --vx-on-dark-3: #9aa8bc;
  --vx-gradient: linear-gradient(135deg, #0066e6 0%, #00a3ff 100%);
  --vx-gradient-ai: linear-gradient(135deg, #1a2b6b 0%, #0066e6 55%, #00a3ff 100%);

  --vx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --vx-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --vx-radius-card: 24px;
  --vx-radius-md: 16px;
  --vx-radius-sm: 8px;
  --vx-shadow-hover: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 8px rgba(60, 64, 67, 0.1);
  --vx-shadow-pop: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 1px 2px rgba(60, 64, 67, 0.3);
  --vx-shadow-float: 0 1px 2px rgba(60, 64, 67, 0.08), 0 16px 40px -12px rgba(32, 48, 90, 0.22);

  --vx-header-h: 64px;
  --vx-subnav-h: 52px;
  --vx-gutter: 24px;
  --vx-code-bg: #0e1726;
  --vx-code-bar: #121d30;

  color-scheme: light;
}

@media (max-width: 599px) {
  :root { --vx-gutter: 16px; }
}

/* ---- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--vx-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--vx-text);
  background: var(--vx-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="zh-CN"] body { line-height: 1.7; }

img,
svg { display: block; max-width: 100%; }

a { color: var(--vx-primary); text-decoration: none; }
a:hover { color: var(--vx-primary-hover); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { min-width: 0; }

code,
pre { font-family: var(--vx-mono); }

:not(pre) > code {
  padding: 0.1em 0.4em;
  border: 1px solid var(--vx-border-soft);
  border-radius: 6px;
  background: var(--vx-surface-2);
  color: #1a2b4c;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.section--alt :not(pre) > code { background: #fff; }

::selection { background: #cfe0fb; color: var(--vx-text); }

:focus-visible {
  outline: 2px solid var(--vx-primary);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

[id] { scroll-margin-top: calc(var(--vx-header-h) + 16px); }
.subnav ~ [id],
.subnav ~ * [id] { scroll-margin-top: calc(var(--vx-header-h) + var(--vx-subnav-h) + 8px); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--vx-primary);
  color: #fff;
  font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(1240px + 2 * var(--vx-gutter));
  margin-inline: auto;
  padding-inline: var(--vx-gutter);
}

.icon { flex-shrink: 0; width: 24px; height: 24px; }

/* ---- Buttons & links ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline-offset: 3px; }
.btn--sm { height: 36px; padding: 0 18px; font-size: 0.875rem; }
.btn--lg { height: 48px; padding: 0 28px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--vx-primary); color: #fff; }
.btn--primary:hover {
  background: var(--vx-primary-hover);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 82, 204, 0.3), 0 1px 3px 1px rgba(0, 82, 204, 0.15);
}

.btn--secondary { border-color: var(--vx-border); background: #fff; color: var(--vx-primary); }
.btn--secondary:hover { border-color: var(--vx-primary-line); background: var(--vx-primary-soft); color: var(--vx-primary-hover); }

.btn--on-dark { border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #fff; }
.btn--on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vx-primary);
  font-weight: 500;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--vx-primary-hover); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--muted { color: var(--vx-text-2); }

.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--vx-border);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06), 0 2px 8px rgba(60, 64, 67, 0.06);
}
.site-header.has-subnav.is-scrolled { box-shadow: none; }

.site-header__bar { display: flex; align-items: center; gap: 8px; height: var(--vx-header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  margin-right: 20px;
  color: var(--vx-text);
}
.brand:hover { color: var(--vx-text); }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }

.primary-nav { flex: 1; min-width: 0; height: 100%; }
.primary-nav__list { display: flex; align-items: stretch; gap: 2px; height: 100%; }
.primary-nav__list > li { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--vx-text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover { color: var(--vx-text); }
.nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--vx-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link[aria-current="page"],
.nav-link.is-current { color: var(--vx-primary); }
.nav-link[aria-current="page"]::after,
.nav-link.is-current::after,
.nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link:focus-visible { outline-offset: -6px; border-radius: 10px; }
.nav-link__caret { width: 18px; height: 18px; transition: transform 0.2s ease; }
.nav-link[aria-expanded="true"] .nav-link__caret { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--vx-border);
  background: #fff;
  box-shadow: 0 16px 24px -12px rgba(60, 64, 67, 0.25), 0 4px 8px -4px rgba(60, 64, 67, 0.1);
  animation: vx-drop 0.18s ease-out;
}
.mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 260px);
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 36px;
}
.mega__title { margin-bottom: 8px; font-size: 1.375rem; font-weight: 500; }
.mega__text { margin-bottom: 16px; color: var(--vx-text-2); font-size: 0.9375rem; }
.mega__products { display: grid; gap: 6px; align-content: start; }
.mega-product {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  color: var(--vx-text);
  transition: background-color 0.15s ease;
}
.mega-product:hover { background: var(--vx-surface-2); color: var(--vx-text); }
.mega-product[aria-current="page"] { background: var(--vx-primary-soft); }
.mega-product__name { display: block; margin-bottom: 2px; font-size: 1rem; font-weight: 600; }
.mega-product__desc { display: block; color: var(--vx-text-2); font-size: 0.875rem; line-height: 1.5; }
.mega__aside { padding-left: 32px; border-left: 1px solid var(--vx-border-soft); }
.mega__label,
.api-fact__label {
  margin-bottom: 12px;
  color: var(--vx-text-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mega__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--vx-text-2);
  font-size: 0.9375rem;
}
.mega__links a:hover { color: var(--vx-primary); }
.mega__links .icon { width: 18px; height: 18px; color: var(--vx-text-3); }
.mega__links a:hover .icon { color: var(--vx-primary); }

@keyframes vx-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Product icon tiles */
.product-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--vx-gradient);
  box-shadow: 0 2px 6px rgba(0, 102, 230, 0.25);
  color: #fff;
}
.product-icon .icon { width: 24px; height: 24px; }
.product-icon--ai { background: var(--vx-gradient-ai); }
.product-icon--ocr { background: linear-gradient(135deg, #00a3ff 0%, #0066e6 60%, #0b3d91 100%); }
.product-icon--sm { width: 32px; height: 32px; border-radius: 9px; }
.product-icon--sm .icon { width: 18px; height: 18px; }
.product-icon--md { width: 40px; height: 40px; border-radius: 11px; }
.product-icon--md .icon { width: 22px; height: 22px; }
.product-icon--lg { width: 56px; height: 56px; border-radius: 16px; }
.product-icon--lg .icon { width: 30px; height: 30px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--vx-text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.header-link:hover { background: var(--vx-surface-2); color: var(--vx-text); }
.header-link--signin { color: var(--vx-primary); }
.header-link--signin:hover { background: var(--vx-primary-soft); color: var(--vx-primary-hover); }
.header-cta { margin-left: 6px; }

.lang-switch { position: relative; }
.lang-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--vx-text-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.lang-switch__button:hover,
.lang-switch__button[aria-expanded="true"] { background: var(--vx-surface-2); color: var(--vx-text); }
.lang-switch__button .icon { width: 18px; height: 18px; }
.lang-switch__button .lang-switch__caret { width: 16px; height: 16px; transition: transform 0.2s ease; }
.lang-switch__button[aria-expanded="true"] .lang-switch__caret { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 190px;
  padding: 8px 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--vx-shadow-pop);
  animation: vx-drop 0.15s ease-out;
}
.lang-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--vx-text);
  font-size: 0.9375rem;
}
.lang-switch__menu a:hover { background: var(--vx-surface-2); }
.lang-switch__menu a[aria-current] { color: var(--vx-primary); font-weight: 500; }
.lang-switch__menu .icon { width: 18px; height: 18px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--vx-text-2);
}
.menu-toggle:hover { background: var(--vx-surface-2); }
.menu-toggle__icon { display: flex; }
.menu-toggle__icon--close,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close { display: flex; }

.mobile-nav {
  max-height: calc(100vh - var(--vx-header-h));
  max-height: calc(100dvh - var(--vx-header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--vx-border);
  background: #fff;
}
.mobile-nav__inner { padding-top: 4px; padding-bottom: 28px; }
.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 4px;
  border-bottom: 1px solid var(--vx-border-soft);
  color: var(--vx-text);
  font-size: 1.0625rem;
  font-weight: 500;
}
.mobile-nav__link[aria-current] { color: var(--vx-primary); }
.mobile-nav__sub { padding: 6px 0 10px; border-bottom: 1px solid var(--vx-border-soft); }
.mobile-nav__group > .mobile-nav__link { border-bottom: 0; }
.mobile-nav__product {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 4px;
  color: var(--vx-text);
}
.mobile-nav__product[aria-current] .mobile-nav__product-name { color: var(--vx-primary); }
.mobile-nav__product-name { display: block; font-weight: 500; }
.mobile-nav__product-desc { display: block; color: var(--vx-text-2); font-size: 0.875rem; line-height: 1.45; }
.mobile-nav__lang {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  color: var(--vx-text-3);
}
.mobile-nav__lang .icon { width: 20px; height: 20px; }
.mobile-nav__lang a { color: var(--vx-text-2); font-weight: 500; }
.mobile-nav__lang a[aria-current] { color: var(--vx-primary); }
.mobile-nav__actions { display: grid; gap: 12px; padding-top: 4px; }

html.nav-open { overflow: hidden; }

@media (max-width: 1199px) {
  .lang-switch__current { display: none; }
}
@media (max-width: 1099px) {
  .header-link--console { display: none; }
  .nav-link { padding: 0 10px; }
  .nav-link::after { right: 10px; left: 10px; }
  .brand { margin-right: 12px; }
}
@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav,
  .lang-switch,
  .header-link { display: none; }
  .brand { margin-right: auto; }
  .header-cta { margin-left: 0; }
}
@media (min-width: 960px) {
  .mobile-nav { display: none !important; }
}

/* ---- In-page navigation --------------------------------------------------- */

.subnav {
  position: sticky;
  top: var(--vx-header-h);
  z-index: 50;
  border-bottom: 1px solid var(--vx-border);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.subnav__inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: var(--vx-subnav-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  padding: 0 14px;
  color: var(--vx-text-2);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.subnav a:first-child { margin-left: -14px; }
.subnav a:hover { color: var(--vx-text); }
.subnav a.is-active { color: var(--vx-primary); }
.subnav a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--vx-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.subnav a.is-active::after { transform: scaleX(1); }
.subnav a:focus-visible { outline-offset: -6px; border-radius: 8px; }

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--vx-surface-3) 0%, #fff 100%);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero__inner--single { grid-template-columns: minmax(0, 780px); }
.hero--compact .hero__inner { padding-top: 72px; padding-bottom: 80px; }
.hero__copy { max-width: 620px; }
.hero__inner--single .hero__copy { max-width: 780px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--vx-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow--crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--vx-text-3); font-weight: 500; }
.eyebrow--crumb a { color: var(--vx-primary); }
.eyebrow--crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero__title {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 1.45rem + 3.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 580px;
  margin-bottom: 32px;
  color: var(--vx-text-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--vx-text-2); font-size: 0.9375rem; }
.hero__note .icon { width: 20px; height: 20px; color: var(--vx-success); }

html[lang="zh-CN"] .hero__title,
html[lang="zh-CN"] .section-title,
html[lang="zh-CN"] .cta-band__title { letter-spacing: 0; }
html[lang="zh-CN"] .hero__title { line-height: 1.2; }

/* Pricing hero summary */
.hero__aside { justify-self: end; width: 100%; max-width: 420px; }
.summary-card {
  padding: 28px 32px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--vx-shadow-float);
}
.summary-card__title { margin-bottom: 18px; font-size: 1.0625rem; font-weight: 600; }
.summary-list { display: grid; gap: 14px; }
.summary-list li { display: flex; align-items: flex-start; gap: 12px; }
.summary-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--vx-success); }

/* Hero illustration (decorative product windows) */
.hero__visual { position: relative; }
.hero-mock { position: relative; min-height: 440px; }
.mock-window {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--vx-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--vx-shadow-float);
}
/* The overview hero layers the windows of two products: the first top left,
   the second bottom right. */
.hero-mock:not(.hero-mock--single) > .mock-window:first-child { top: 0; left: 0; width: 76%; }
.hero-mock:not(.hero-mock--single) > .mock-window:nth-child(2) { right: 0; bottom: 0; width: 70%; }
.mock-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--vx-border-soft);
  background: var(--vx-surface-2);
  color: var(--vx-text-2);
  font-size: 0.8125rem;
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--vx-border); }
.mock-window__title { flex: 1; overflow: hidden; font-family: var(--vx-mono); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.mock-method { margin-right: 4px; color: var(--vx-success); font-weight: 700; }
.mock-window__body { padding: 18px 20px 20px; }
.mock-source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--vx-border);
  font-size: 1.125rem;
  font-weight: 500;
}
.mock-lang {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--vx-primary-soft);
  color: var(--vx-primary);
  font: 600 0.75rem/1 var(--vx-mono);
}
.mock-targets { display: grid; gap: 10px; }
.mock-targets li { display: flex; align-items: center; gap: 12px; color: var(--vx-text); }
.mock-targets .mock-lang { background: var(--vx-surface-2); color: var(--vx-text-2); }
.mock-model { display: inline-flex; align-items: center; gap: 6px; color: var(--vx-text); font: 600 0.75rem/1 var(--vx-mono); }
.mock-model .icon { width: 16px; height: 16px; color: var(--vx-primary); }
.mock-status { padding: 4px 8px; border-radius: 999px; background: var(--vx-success-soft); color: var(--vx-success); font: 700 0.6875rem/1 var(--vx-mono); }
.mock-chat { display: grid; gap: 10px; padding: 18px 18px 20px; }
.mock-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.9375rem; line-height: 1.5; }
.mock-bubble--user { justify-self: end; border-bottom-right-radius: 6px; background: var(--vx-primary); color: #fff; }
.mock-bubble--ai { border-bottom-left-radius: 6px; background: var(--vx-surface-2); color: var(--vx-text); }
.mock-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--vx-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px -8px rgba(32, 48, 90, 0.3);
  color: var(--vx-text);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.mock-chip .icon { width: 18px; height: 18px; color: var(--vx-primary); }
.mock-chip--bill { bottom: 28px; left: 0; }
.mock-chip--key { top: 92px; right: 0; }
.mock-chip--detect { right: 24px; bottom: 0; }
.mock-chip--stream { bottom: 0; left: 24px; font-family: var(--vx-mono); }
.hero-mock--single { min-height: 0; padding-bottom: 22px; }
.hero-mock--single .mock-window { position: relative; width: 100%; }

/* OCR window: a scanned page with detected words and the extracted text */
.mock-ocr { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding: 18px; }
.mock-ocr__page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px 20px;
  border: 1px solid var(--vx-border);
  border-radius: 10px;
  background: #fffdf7;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transform: rotate(-1.2deg);
}
.mock-ocr__word {
  padding: 2px 6px;
  border: 1.5px dashed rgba(0, 102, 230, 0.6);
  border-radius: 4px;
  background: rgba(0, 102, 230, 0.06);
  color: var(--vx-text);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.mock-ocr__word--title { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.04em; }
.mock-ocr__word--hand { font-family: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif; font-size: 1.0625rem; font-weight: 400; }
.mock-ocr__line { width: 100%; height: 6px; border-radius: 3px; background: var(--vx-border-soft); }
.mock-ocr__line--short { width: 58%; }
.mock-ocr__line--mid { width: 82%; }
.mock-ocr__result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--vx-code-bg);
}
.mock-ocr__result .mock-lang {
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  background: rgba(0, 163, 255, 0.16);
  color: #7cc4ff;
  font-size: 0.625rem;
  text-overflow: ellipsis;
}
code.mock-ocr__text {
  padding: 0;
  border: 0;
  background: none;
  color: #a5e3b5;
  font: 0.75rem/1.7 var(--vx-mono);
  overflow-wrap: normal;
}
@media (max-width: 479px) {
  .mock-ocr { grid-template-columns: minmax(0, 1fr); }
  .mock-ocr__page { transform: none; }
  /* Layered in the overview hero, the scanned page alone leaves room for the other window. */
  .hero-mock:not(.hero-mock--single) .mock-ocr__result { display: none; }
}

@media (min-width: 960px) {
  .hero-mock:not(.hero-mock--single) { min-height: 500px; }
  .hero-mock:not(.hero-mock--single) > .mock-window:first-child { width: 72%; }
  .hero-mock:not(.hero-mock--single) > .mock-window:nth-child(2) { width: 66%; }
}
@media (max-width: 1199px) {
  .mock-chip--bill { display: none; }
}
@media (max-width: 959px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 56px; padding-bottom: 64px; }
  .hero--compact .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .hero__aside { justify-self: stretch; max-width: none; }
  .hero-mock { max-width: 560px; min-height: 440px; }
  .hero-mock:not(.hero-mock--single) > .mock-window:nth-child(2) { width: 66%; }
}
@media (max-width: 599px) {
  .hero-mock { min-height: 500px; }
  .hero-mock:not(.hero-mock--single) > .mock-window:first-child { width: 90%; }
  .hero-mock:not(.hero-mock--single) > .mock-window:nth-child(2) { width: 84%; }
  .mock-chip--bill,
  .mock-chip--key { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---- Sections ------------------------------------------------------------ */

.section { padding-block: 96px; }
.section--tight { padding-block: 72px; }
.section--alt { background: var(--vx-surface-2); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: none;
}
.section-head--row > div { max-width: 760px; }
.section-head--row > .link-arrow { flex-shrink: 0; margin-bottom: 4px; }

.section-title {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head > .section-title:last-child { margin-bottom: 0; }
.section-title--icon { display: flex; align-items: center; gap: 16px; }
.section-lead { color: var(--vx-text-2); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.feature__text,
.step__text,
.product-card__text,
.model-card__desc,
.faq__a { text-wrap: pretty; }

.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.section-actions--center { justify-content: center; }

@media (max-width: 959px) {
  .section { padding-block: 72px; }
  .section--tight { padding-block: 56px; }
}
@media (max-width: 599px) {
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 36px; }
  .section-lead { font-size: 1.0625rem; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

/* ---- Lists, cards & features --------------------------------------------- */

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--vx-primary); }

/* One column per card, however many products are listed. */
.product-grid { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 24px; }
.product-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--vx-shadow-hover); }
.product-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-card__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.product-card__title a { color: var(--vx-text); }
.product-card__title a:hover { color: var(--vx-primary); }
.product-card__kicker { margin-top: 2px; color: var(--vx-text-3); font-size: 0.875rem; }
.product-card__text { margin-bottom: 22px; color: var(--vx-text-2); }
.product-card .check-list { margin-bottom: 28px; }
.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--vx-border-soft);
}

.feature-grid { display: grid; gap: 40px 32px; }
.feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--vx-primary-soft);
  color: var(--vx-primary);
}
.feature__title { margin-bottom: 8px; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.feature__text { color: var(--vx-text-2); font-size: 0.9375rem; line-height: 1.65; }
.feature--card {
  padding: 28px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.feature--card:hover { box-shadow: var(--vx-shadow-hover); }

@media (max-width: 1023px) {
  .feature-grid--4,
  .feature-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .product-card { padding: 28px; }
}
@media (max-width: 959px) {
  .product-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .feature-grid--4,
  .feature-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature-grid--4 { gap: 32px; }
  .feature--card { padding: 24px; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; }
.step__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--vx-gradient);
  box-shadow: 0 0 0 6px #fff;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 21px;
  right: -26px;
  left: 60px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--vx-border) 55%, transparent 55%);
  background-size: 10px 2px;
}
.step__title { margin-bottom: 8px; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.step__text { color: var(--vx-text-2); font-size: 0.9375rem; }

@media (max-width: 959px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .step::before { display: none; }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .step__num { grid-row: span 2; margin: 0; }
}

/* Split layout (text + code) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; }
.split__text .section-lead { margin-bottom: 24px; }
.split__text .check-list { margin-bottom: 28px; }
@media (max-width: 959px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Stats */
/* One column per card, however many products are listed. */
.stat-grid { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 24px; }
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  background: #fff;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--vx-gradient);
}
.stat-card__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--vx-text-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.stat-card__kicker .icon { width: 18px; height: 18px; color: var(--vx-primary); }
.stat-card__value {
  margin-bottom: 6px;
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-card__label { font-weight: 500; }
.stat-card__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--vx-border-soft);
  color: var(--vx-text-3);
  font-size: 0.875rem;
}
@media (max-width: 899px) {
  .stat-grid { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
}

/* ---- Code blocks --------------------------------------------------------- */

.code-block {
  overflow: hidden;
  border-radius: var(--vx-radius-md);
  background: var(--vx-code-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 28px -14px rgba(11, 18, 32, 0.55);
  color: #e3e8ef;
}
.code-block + .code-block { margin-top: 16px; }
.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--vx-code-bar);
}
.code-tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs__tab {
  position: relative;
  flex-shrink: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--vx-on-dark-3);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.code-tabs__tab:hover { color: #e3e8ef; }
.code-tabs__tab[aria-selected="true"] { color: #fff; }
.code-tabs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--vx-accent);
}
.code-tabs__tab:focus-visible { outline: 2px solid var(--vx-accent); outline-offset: -8px; border-radius: 10px; }
.code-block__title { padding-left: 8px; color: var(--vx-on-dark-3); font-size: 0.8125rem; font-weight: 500; }
.code-block__copy {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #c8d2e0;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.code-block__copy:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.code-block__copy:focus-visible { outline-color: var(--vx-accent); }
.code-block__copy .icon { width: 16px; height: 16px; }
.code-block__copy.is-copied { border-color: rgba(126, 226, 184, 0.45); color: #7ee2b8; }
.code-block pre {
  margin: 0;
  padding: 20px 24px 22px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  tab-size: 2;
}
.code-block pre:focus-visible { outline: 2px solid var(--vx-accent); outline-offset: -2px; }
.code-block code { white-space: pre; }
.tok-k { color: #c792ea; }
.tok-s { color: #a5e3b5; }
.tok-n { color: #f78c6c; }
.tok-c { color: #8391a7; font-style: italic; }
.tok-f { color: #ffcb6b; }
.tok-p { color: #89ddff; }
.tok-fn { color: #82aaff; }

/* ---- Quickstart ---------------------------------------------------------- */

.api-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
.api-fact {
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-md);
  background: #fff;
}
.api-fact__label { display: block; margin-bottom: 8px; }
.api-fact__value { display: block; font-size: 0.9375rem; overflow-wrap: anywhere; }
.api-fact__value code { white-space: nowrap; }
code.api-fact__value { padding: 0; border: 0; background: none; color: var(--vx-text); font-size: 0.875rem; }

.quick-steps { display: grid; gap: 64px; counter-reset: vx-step; }
.quick-step {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: 48px;
  counter-increment: vx-step;
}
.quick-step__title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.25rem; font-weight: 600; }
.quick-step__title::before {
  content: counter(vx-step);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vx-primary-soft);
  color: var(--vx-primary);
  font-size: 0.9375rem;
  font-weight: 600;
}
.quick-step__text p { margin-bottom: 12px; color: var(--vx-text-2); }
.quick-step__text .quick-step__hint { color: var(--vx-text-3); font-size: 0.875rem; }
.quick-step__code { min-width: 0; }

.endpoints { margin-top: 72px; }
.endpoints__title { margin-bottom: 16px; font-size: 1.25rem; font-weight: 600; }

@media (max-width: 959px) {
  .api-facts { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
  .quick-step { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .quick-steps { gap: 48px; }
}

/* ---- Tables -------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-md);
  background: #fff;
}
.price-table,
.compare-table,
.endpoint-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.price-table th,
.price-table td,
.compare-table th,
.compare-table td,
.endpoint-table th,
.endpoint-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--vx-border-soft);
  text-align: left;
  vertical-align: top;
}
.price-table thead th,
.endpoint-table thead th {
  border-bottom: 1px solid var(--vx-border);
  background: var(--vx-surface-2);
  color: var(--vx-text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.th-sub { display: block; margin-top: 2px; color: var(--vx-text-3); font-size: 0.75rem; font-weight: 400; }
.price-table tbody:not(:last-child) tr:last-child > * { border-bottom-color: var(--vx-border); }
.price-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.price-table__group th {
  padding-top: 18px;
  padding-bottom: 10px;
  color: var(--vx-text);
  font-size: 0.9375rem;
  font-weight: 600;
}
.price-table--models .price-table__group th {
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--vx-surface-3);
  color: var(--vx-primary-hover);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.price-table--tiers td:first-child { color: var(--vx-text-2); }
.price-table--tiers td:last-child { width: 45%; }
.price-table .price { color: var(--vx-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.price-table .per { color: var(--vx-text-3); }
.price-free {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--vx-success-soft);
  color: #137333;
  font-size: 0.8125rem;
  font-weight: 600;
}
.price-note { display: block; margin-top: 4px; color: var(--vx-text-3); font-size: 0.8125rem; font-weight: 400; }
.price-table__change td { background: var(--vx-surface-3); color: var(--vx-text-2); font-size: 0.875rem; }
.price-change-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; color: var(--vx-text); font-weight: 600; }
.price-change-label .icon { width: 16px; height: 16px; color: var(--vx-primary); }
.price-change-tier { display: inline-block; margin-right: 16px; }

.price-table--models th[scope="col"]:not(:first-child) { width: 21%; }
.model-cell { font-weight: 400; }
.model-cell__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--vx-text); font-weight: 600; }
code.model-cell__id {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vx-text-3);
  font-size: 0.75rem;
}
.price-lines { display: grid; gap: 6px; }
.price-lines li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.price-lines__label { color: var(--vx-text-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.price-lines__value { color: var(--vx-text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-arrow { color: var(--vx-text-3); font-weight: 400; }
.price-next { color: var(--vx-warning); }
.price-lines__from { flex-basis: 100%; color: var(--vx-warning); font-size: 0.75rem; }
.price-na { color: var(--vx-text-3); }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.badge--preview { border: 1px solid var(--vx-primary-line); background: var(--vx-primary-soft); color: var(--vx-primary-hover); }
.badge--muted { border: 1px solid var(--vx-border); background: var(--vx-surface-2); color: var(--vx-text-3); }

.table-foot { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--vx-text-3); font-size: 0.875rem; }
.table-foot .icon { width: 18px; height: 18px; margin-top: 2px; }

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--vx-primary-line);
  border-radius: var(--vx-radius-md);
  background: var(--vx-primary-soft);
}
.callout__text { font-weight: 500; }
.callout__text--icon { display: flex; align-items: flex-start; gap: 12px; max-width: 860px; }
.callout__text--icon .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--vx-primary); }

.note-list { display: grid; gap: 10px; margin-top: 20px; }
.note-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--vx-text-2); }
.note-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--vx-success); }
.note-list--compact { gap: 8px; margin-top: 14px; font-size: 0.9375rem; }
.note-list--compact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--vx-primary); }

.table-foot--example {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px dashed var(--vx-border);
  border-radius: 12px;
  background: #fff;
  color: var(--vx-text-2);
}
.table-foot--example .icon { color: var(--vx-primary); }

.compare-table { min-width: 860px; }
.compare-table tbody th { width: 16%; }
.compare-table thead th { background: var(--vx-surface-2); font-size: 1rem; font-weight: 600; }
.compare-table thead td { background: var(--vx-surface-2); }
.compare-table thead a { color: var(--vx-text); }
.compare-table thead a:hover { color: var(--vx-primary); }
.compare-table tbody th { width: 20%; font-size: 0.9375rem; font-weight: 600; }
.compare-table td { color: var(--vx-text-2); }
.compare-table tr:last-child > *,
.endpoint-table tr:last-child > * { border-bottom: 0; }
.compare-table .price { color: var(--vx-text); font-weight: 600; }

.method {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--vx-success-soft);
  color: #137333;
  font: 600 0.75rem/1.6 var(--vx-mono);
}
.endpoint-table td:nth-child(2) code { white-space: nowrap; }
.endpoint-table td:last-child { color: var(--vx-text-2); }

/* Model table becomes stacked cards on small screens */
@media (max-width: 719px) {
  .price-table--models thead { display: none; }
  .price-table--models,
  .price-table--models tbody,
  .price-table--models tr,
  .price-table--models .price-table__group th { display: block; }
  .price-table--models tr:not(.price-table__group) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 12px;
    padding: 16px;
    border-bottom: 1px solid var(--vx-border-soft);
  }
  .price-table--models tbody:last-child tr:last-child { border-bottom: 0; }
  .price-table--models th[scope="row"],
  .price-table--models td { display: block; width: auto; padding: 0; border: 0; }
  .price-table--models th[scope="row"] { grid-column: 1 / -1; margin-bottom: 6px; }
  .price-table--models td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--vx-text-3);
    font-size: 0.75rem;
  }
  .price-table--models .price-lines__value { white-space: normal; }
  .price-table--models .price-next { white-space: nowrap; }
  .price-table--tiers td:last-child { width: auto; }
  .price-table--tiers th,
  .price-table--tiers td { padding: 12px 16px; }
  .price-table--models .price-table__group th { padding-right: 16px; padding-left: 16px; }
}

/* ---- Showcase (products) ------------------------------------------------- */

.showcase-list { display: grid; gap: 112px; }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
/* Showcases alternate sides, whichever products are listed. */
.showcase:nth-child(even) .showcase__media { order: -1; }
.showcase__text .product-icon { margin-bottom: 24px; }
.showcase__text .section-lead { margin-bottom: 24px; }
.showcase__text .check-list { margin-bottom: 32px; }
.showcase__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lang-cloud,
.model-stack {
  padding: 32px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  background: linear-gradient(160deg, var(--vx-surface-3) 0%, #fff 65%);
  box-shadow: var(--vx-shadow-float);
}
.lang-cloud__title,
.model-stack__title { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 600; }
.lang-cloud__title .icon,
.model-stack__title .icon { width: 20px; height: 20px; color: var(--vx-primary); }
.lang-cloud__list { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-cloud__list li {
  padding: 7px 14px;
  border: 1px solid var(--vx-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
  font-size: 0.9375rem;
}
.lang-cloud__list li:nth-child(3n + 1) { border-color: var(--vx-primary-line); background: var(--vx-primary-soft); color: #0b3d91; }
.lang-cloud__list .lang-cloud__more { border-style: dashed; background: transparent; box-shadow: none; color: var(--vx-text-3); }
.model-stack ul { display: grid; gap: 10px; }
.model-stack__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--vx-border);
  border-radius: 14px;
  background: #fff;
}
.model-stack__name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.model-stack__meta { color: var(--vx-text-3); font-size: 0.8125rem; white-space: nowrap; }

@media (max-width: 959px) {
  .showcase-list { gap: 72px; }
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .showcase:nth-child(even) .showcase__media { order: 0; }
}
@media (max-width: 479px) {
  .lang-cloud,
  .model-stack { padding: 22px; }
  .model-stack__item { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---- Models (AI page) ---------------------------------------------------- */

.model-family + .model-family { margin-top: 48px; }
.model-family__title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 1.25rem; font-weight: 600; }
.model-family__title::after { content: ""; flex: 1; height: 1px; background: var(--vx-border); }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.model-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--vx-border);
  border-radius: 20px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.model-card:hover { box-shadow: var(--vx-shadow-hover); }
.model-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.model-card__name { font-size: 1.125rem; font-weight: 600; }
code.model-card__id { align-self: flex-start; margin-bottom: 14px; font-size: 0.75rem; }
.model-card__desc { margin-bottom: 20px; color: var(--vx-text-2); font-size: 0.9375rem; }
.model-card__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: auto;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--vx-border-soft);
}
.model-card__specs dt { color: var(--vx-text-3); font-size: 0.75rem; }
.model-card__specs dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.model-card__foot { color: var(--vx-text-3); font-size: 0.75rem; }
.model-card__change { color: var(--vx-warning); }

@media (max-width: 1023px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .model-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Languages (translation page) ---------------------------------------- */

.lang-details { border: 1px solid var(--vx-border); border-radius: var(--vx-radius-md); background: #fff; }
.lang-details__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: var(--vx-radius-md);
  color: var(--vx-primary);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.lang-details__summary::-webkit-details-marker { display: none; }
.lang-details__summary:hover { background: var(--vx-surface-2); }
.lang-details__summary .icon { width: 20px; height: 20px; transition: transform 0.2s ease; }
.lang-details[open] .lang-details__summary { border-bottom: 1px solid var(--vx-border-soft); border-radius: var(--vx-radius-md) var(--vx-radius-md) 0 0; }
.lang-details[open] .lang-details__summary .icon { transform: rotate(180deg); }
.lang-list { padding: 16px 24px 24px; column-gap: 40px; columns: 4 200px; }
.lang-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--vx-border-soft);
  font-size: 0.9375rem;
  break-inside: avoid;
}
code.lang-list__code { padding: 0; border: 0; background: none; color: var(--vx-text-3); font-size: 0.75rem; }

/* ---- Billing flow (pricing) ---------------------------------------------- */

.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-md);
  background: #fff;
}
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--vx-text-3);
  border-right: 2px solid var(--vx-text-3);
  transform: translateY(-50%) rotate(45deg);
}
.flow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--vx-primary-soft);
  color: var(--vx-primary);
}
.flow__icon .icon { width: 20px; height: 20px; }
.flow__body { display: flex; flex-direction: column; gap: 4px; }
.flow__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.flow__text { color: var(--vx-text-3); font-size: 0.8125rem; line-height: 1.45; }
.flow__step--end { border-color: var(--vx-dark); background: var(--vx-dark); }
.flow__step--end .flow__title { color: #fff; }
.flow__step--end .flow__text { color: var(--vx-on-dark-2); }
.flow__step--end .flow__icon { background: rgba(255, 255, 255, 0.12); color: #fff; }

@media (max-width: 1099px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow__step:nth-child(4)::after { display: none; }
}
@media (max-width: 639px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .flow__step { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .flow__step:not(:last-child)::after,
  .flow__step:nth-child(4)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -10px;
    left: 31px;
    transform: rotate(135deg);
  }
}

/* ---- Calculator ---------------------------------------------------------- */

.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 32px; }
.calc__inputs { display: grid; gap: 24px; min-width: 0; }
.calc-card {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-card);
  background: #fff;
}
.calc-card__legend {
  display: flex;
  float: left;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.calc-card__legend + * { clear: both; }

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field + .field,
.field + .field-grid,
.field-grid + .field { margin-top: 22px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid > .field { margin-top: 0; }
/* Labels, inputs and hints line up across a row even when labels wrap. */
@supports (grid-template-rows: subgrid) {
  .field-grid > .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; }
  .field-grid > .field > .field__label { align-self: end; }
}
.field__label { color: var(--vx-text); font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.field__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-sm);
  background: #fff;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input:hover { border-color: #bdc1c6; }
.field__input:focus { border-color: var(--vx-primary); outline: none; box-shadow: 0 0 0 3px rgba(0, 102, 230, 0.18); }
.field__input[aria-invalid="true"] { border-color: var(--vx-danger); box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12); }
.field__hint { min-height: 1.4em; color: var(--vx-text-3); font-size: 0.8125rem; line-height: 1.4; }
.field__hint.is-error { color: var(--vx-danger); }
.field__hint.is-value { color: var(--vx-text-2); }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 42px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.select-wrap .select-wrap__icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 20px;
  height: 20px;
  color: var(--vx-text-3);
  transform: translateY(-50%);
  pointer-events: none;
}
.input-suffix { position: relative; max-width: 200px; }
.input-suffix .field__input { padding-right: 36px; }
.input-suffix__unit { position: absolute; top: 50%; right: 14px; color: var(--vx-text-3); transform: translateY(-50%); }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--vx-border);
  border-radius: 999px;
  background: var(--vx-surface-2);
}
.segmented__option { position: relative; display: inline-flex; }
.segmented__option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented__option span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--vx-text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  pointer-events: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.segmented__option:hover span { color: var(--vx-text); }
.segmented__option input:checked + span {
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2), 0 1px 3px 1px rgba(60, 64, 67, 0.1);
  color: var(--vx-primary);
}
.segmented__option input:focus-visible + span { outline: 2px solid var(--vx-primary); outline-offset: 2px; }

.calc__summary { position: sticky; top: calc(var(--vx-header-h) + var(--vx-subnav-h) + 24px); min-width: 0; }
.calc-summary {
  padding: 28px;
  border-radius: var(--vx-radius-card);
  background: var(--vx-dark);
  box-shadow: 0 24px 48px -24px rgba(11, 18, 32, 0.6);
  color: #fff;
}
.calc-summary__label { margin-bottom: 4px; color: var(--vx-on-dark-2); font-size: 0.9375rem; }
.calc-summary__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.calc-summary__total output {
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.calc-summary__period { color: var(--vx-on-dark-2); }
.calc-lines { margin-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.calc-line { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.calc-line__main { display: flex; justify-content: space-between; gap: 16px; font-size: 0.875rem; }
.calc-line__name { color: #e3e8ef; }
.calc-line__amount { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-line__detail { margin-top: 2px; color: var(--vx-on-dark-3); font-size: 0.75rem; }
.calc-line--empty { color: var(--vx-on-dark-3); font-size: 0.875rem; }
.calc-summary__note { margin-bottom: 20px; color: var(--vx-on-dark-3); font-size: 0.75rem; }
.calc-summary__actions { display: grid; gap: 10px; }
.calc-summary .btn--secondary { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: #fff; }
.calc-summary .btn--secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.calc-summary :focus-visible { outline-color: #fff; }

@media (max-width: 959px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__summary { position: static; }
}
@media (max-width: 699px) {
  .field-grid,
  .field-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .calc-card { padding: 22px; }
}

/* ---- FAQ ----------------------------------------------------------------- */

.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 64px; }
.faq-layout__head { position: sticky; top: calc(var(--vx-header-h) + var(--vx-subnav-h) + 32px); margin-bottom: 0; }
.faq-layout__head .section-lead { margin-bottom: 20px; }
.faq { border-top: 1px solid var(--vx-border); }
.faq__item { border-bottom: 1px solid var(--vx-border); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  color: var(--vx-text);
  font-size: 1.0625rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--vx-primary); }
.faq__icon { width: 22px; height: 22px; color: var(--vx-text-3); transition: transform 0.2s ease, color 0.2s ease; }
.faq__item[open] .faq__icon { color: var(--vx-primary); transform: rotate(45deg); }
.faq__a { max-width: 720px; padding: 0 4px 24px; color: var(--vx-text-2); }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 959px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-layout__head { position: static; }
}

/* ---- CTA band ------------------------------------------------------------ */

.cta-band { position: relative; overflow: hidden; background: var(--vx-dark); color: #fff; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 88% 10%, rgba(0, 163, 255, 0.28), transparent 70%),
    radial-gradient(520px 300px at 8% 115%, rgba(0, 102, 230, 0.38), transparent 70%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.cta-band__title {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cta-band__text { color: var(--vx-on-dark-2); font-size: 1.125rem; }
.cta-band__actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 12px; }
.cta-band :focus-visible { outline-color: #fff; }

@media (max-width: 899px) {
  .cta-band__inner { flex-direction: column; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
}

/* ---- Footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--vx-border); background: var(--vx-surface-2); color: var(--vx-text-2); font-size: 0.9375rem; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.site-footer__tagline { margin: 16px 0 12px; }
.site-footer__email { display: inline-flex; align-items: center; gap: 8px; color: var(--vx-text-2); overflow-wrap: anywhere; }
.site-footer__email .icon { width: 18px; height: 18px; }
.site-footer__email:hover { color: var(--vx-primary); }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__heading { margin-bottom: 16px; color: var(--vx-text); font-size: 0.875rem; font-weight: 600; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { color: var(--vx-text-2); }
.site-footer__col a:hover { color: var(--vx-primary); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--vx-border);
  color: var(--vx-text-3);
  font-size: 0.875rem;
}
.site-footer__lang { display: flex; align-items: center; gap: 16px; }
.site-footer__lang .icon { width: 18px; height: 18px; }
.site-footer__lang a { color: var(--vx-text-2); }
.site-footer__lang a:hover { color: var(--vx-primary); }
.site-footer__lang a[aria-current] { color: var(--vx-text); font-weight: 600; }

@media (max-width: 959px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 599px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

/* ---- 404 ----------------------------------------------------------------- */

.notfound__code {
  margin-bottom: 12px;
  background: var(--vx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--vx-primary);
  -webkit-text-fill-color: transparent;
  font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.notfound__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; }

/* ---- Motion & progressive enhancement ------------------------------------ */

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

@media (scripting: none) {
  .code-block__panel[hidden] { display: block !important; }
  .code-block__panel + .code-block__panel { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .code-tabs,
  .code-block__copy { display: none; }
  .nav-item:hover .mega,
  .nav-item:focus-within .mega,
  .lang-switch:hover .lang-switch__menu,
  .lang-switch:focus-within .lang-switch__menu { display: block !important; }
  .menu-toggle { display: none !important; }
  .calc { display: none; }
}
@media (scripting: none) and (max-width: 959px) {
  .mobile-nav[hidden] { display: block !important; max-height: none; }
}

@media print {
  .site-header,
  .subnav,
  .cta-band,
  .site-footer__nav,
  .code-block__copy,
  .hero-art,
  .hero__visual { display: none !important; }
  .code-block__panel[hidden] { display: block !important; }
  .section { padding-block: 24px; }
}
