:root {
  color-scheme: dark;
  --lx-sub-bg: #05060a;
  --lx-sub-surface: rgba(13, 15, 24, 0.82);
  --lx-sub-line: rgba(255, 255, 255, 0.08);
  --lx-sub-text: #e2e8f0;
  --lx-sub-muted: #94a3b8;
  --lx-sub-violet: #a78bfa;
}

html,
body {
  background: var(--lx-sub-bg) !important;
  color: var(--lx-sub-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
  margin: 0 !important;
}

/* Retire the page-specific headers without touching their scripts. */
body > .lxnav,
body > .pricing-nav,
body > .legal-nav,
#site-header {
  display: none !important;
}

.lx-unified-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--lx-sub-line);
  background: rgba(5, 6, 10, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  line-height: 1.2;
}

.lx-unified-header,
.lx-unified-header * {
  box-sizing: border-box;
}

.lx-unified-header__inner {
  position: relative;
  width: min(100% - 40px, 1280px);
  min-height: 72px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1101px) {
  .lx-unified-header__nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
  }

  .lx-unified-header__actions {
    grid-column: 3;
    justify-self: end;
  }
}

.lx-unified-header a {
  text-decoration: none;
}

.lx-unified-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  white-space: nowrap;
  line-height: 1;
}

.lx-unified-header__brand img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 9px;
  object-fit: cover;
}

.lx-unified-header__nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lx-unified-header__nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.lx-unified-header__nav a:hover,
.lx-unified-header__nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lx-unified-header__cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(88, 80, 236, 0.22);
  line-height: 1;
}

.lx-unified-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lx-unified-header .lx-language-selector {
  position: relative;
  inset: auto;
  z-index: 10;
  display: block;
  font-family: inherit;
}

body > .lx-language-selector {
  display: none !important;
}

.lx-unified-header .lx-language-trigger {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #e2e8f0;
  font: 650 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.lx-unified-header .lx-language-trigger:hover,
.lx-unified-header .lx-language-trigger:focus-visible,
.lx-unified-header .lx-language-selector.is-open .lx-language-trigger {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.10);
  outline: none;
}

.lx-language-trigger__code { color: #a78bfa; font-size: 11px; font-weight: 800; }
.lx-language-globe, .lx-language-chevron { color: #94a3b8; }

.lx-unified-header .lx-language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 190px;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(10, 11, 18, 0.98);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease;
}

.lx-unified-header .lx-language-menu[hidden] { display: none; }
.lx-unified-header .lx-language-selector.is-open .lx-language-menu { opacity: 1; transform: translateY(0); }

.lx-unified-header .lx-language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #cbd5e1;
  font: 550 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.lx-unified-header .lx-language-option:hover,
.lx-unified-header .lx-language-option.is-selected {
  color: #fff;
  background: rgba(167, 139, 250, 0.14);
}

.lx-unified-header .lx-opt-code { color: #94a3b8; font-size: 10px; font-weight: 800; }

/* One content rhythm for every supporting page. */
.legal-container,
body > .wrap {
  width: min(100% - 40px, 800px);
  max-width: 800px !important;
  margin-inline: auto !important;
  padding: clamp(56px, 7vw, 80px) 0 clamp(64px, 8vw, 96px) !important;
}

/* Shared type scale and vertical rhythm for every supporting page. */
.legal-container > h1,
body > .wrap > h1,
.pricing-hero h1,
.lx-api-title,
.lx-careers-page .lx-about-title {
  margin: 0 0 14px !important;
  max-width: none !important;
  font-size: clamp(38px, 4.4vw, 52px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  background: linear-gradient(90deg, #a78bfa, #f472b6, #fb923c) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.legal-container > .subtitle,
body > .wrap > .sub,
.pricing-hero > p {
  margin-bottom: 48px !important;
}

.legal-container h2,
body > .wrap h2 {
  margin-top: 44px !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
}

.pricing-hero {
  padding: clamp(56px, 7vw, 80px) 20px 48px !important;
}

.packs-section,
.faq-section {
  padding-top: 48px !important;
  padding-bottom: 64px !important;
}

body > .pricing-hero .container,
body > .packs-section .container,
body > .faq-section .container-sm {
  width: min(100% - 40px, 1120px) !important;
  padding-inline: 0 !important;
}

.lx-api-page,
.lx-careers-page {
  background: #05060a !important;
}

.lx-api-page .container,
.lx-careers-page .container {
  width: min(100% - 40px, 800px) !important;
  max-width: 800px !important;
  padding-inline: 0 !important;
}

.lx-api-shell,
.lx-api-explorer,
.lx-about-hero-shell {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
}

body.lx-header-lifted .lx-api-hero,
body.lx-header-lifted .lx-about-hero {
  padding-top: clamp(56px, 7vw, 80px) !important;
}

.lx-api-hero,
.lx-about-hero {
  padding-bottom: 48px !important;
}

.lx-api-title,
.lx-about-title {
  max-width: none;
}

.lx-api-section,
.lx-careers-page .lx-about-section {
  padding-block: 48px !important;
}

.lx-api-hero-card,
.lx-api-step-card,
.lx-api-capability-button,
.lx-api-detail,
.lx-api-highlight-card,
.lx-api-pricing-card,
.lx-api-cta-card,
.lx-careers-page .lx-about-card,
.lx-careers-page .lx-about-hero-card {
  border-radius: 18px !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none !important;
}

.lx-careers-group-stack {
  gap: 44px !important;
}

.lx-careers-group {
  gap: 18px !important;
}

.lx-api-page::before,
.lx-about-page::before,
.lx-api-glow,
.lx-about-glow {
  display: none !important;
}

.lx-api-step-grid,
.lx-api-pricing-highlights,
.lx-careers-page .grid {
  gap: 16px !important;
}

/* Shared visual baseline inspired by the Privacy and Terms pages. */
.legal-container,
.container,
.lx-api-page,
.lx-careers-page {
  color: var(--lx-sub-text);
}

.legal-container h1,
.pricing-hero h1 {
  background: linear-gradient(90deg, #a78bfa, #f472b6, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 1100px) {
  .lx-unified-header__inner {
    width: min(100% - 28px, 1280px);
    min-height: auto;
    padding-block: 11px 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }

  .lx-unified-header__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .lx-unified-header__nav::-webkit-scrollbar {
    display: none;
  }

  .lx-unified-header__nav a {
    padding: 9px 11px;
  }

  .lx-unified-header__brand {
    grid-column: 1;
    grid-row: 1;
    width: max-content !important;
    max-width: 100%;
  }

  .lx-unified-header__cta {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    justify-self: end;
  }

  .lx-unified-header__actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 420px) {
  .lx-unified-header__inner {
    width: min(100% - 20px, 1280px);
  }

  .lx-unified-header__brand {
    font-size: 16px;
  }

  .lx-unified-header__brand img {
    width: 30px;
    height: 30px;
  }

  .lx-unified-header__cta {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .lx-unified-header__actions {
    gap: 7px;
  }

  .lx-unified-header .lx-language-trigger { width: 48px; height: 38px; justify-content: center; padding: 0; }
  .lx-unified-header .lx-language-trigger__label,
  .lx-unified-header .lx-language-globe,
  .lx-unified-header .lx-language-chevron { display: none; }
  .lx-unified-header .lx-language-menu { right: 0; width: 176px; }

  .lx-api-page .container,
  .lx-careers-page .container,
  .legal-container {
    width: min(100% - 28px, 800px) !important;
  }

  .lx-api-section,
  .lx-careers-page .lx-about-section {
    padding-block: 36px !important;
  }

  .legal-container > h1,
  body > .wrap > h1,
  .pricing-hero h1,
  .lx-api-title,
  .lx-careers-page .lx-about-title {
    font-size: clamp(32px, 10vw, 40px) !important;
  }
}
