:root {
  --nv-bg: #05060a;
  --nv-surface: rgba(255, 255, 255, .035);
  --nv-surface-strong: rgba(255, 255, 255, .06);
  --nv-border: rgba(255, 255, 255, .09);
  --nv-text: #f8fafc;
  --nv-muted: #94a3b8;
  --nv-accent: #ff6a1a;
  --nv-accent-2: #a78bfa;
}

html { background: var(--nv-bg); scroll-behavior: smooth; }
body { min-width: 0; margin: 0; background: var(--nv-bg); color: var(--nv-text); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 5%, rgba(124, 58, 237, .13), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(255, 106, 26, .09), transparent 28rem),
    #05060a;
}

.nv-template-ready > .lxnav,
.nv-template-ready > .pricing-nav,
.nv-template-ready #site-header,
.nv-template-ready > .lx-language-selector,
.nv-template-ready > .lxfoot,
.nv-template-ready > .lx-footer,
.nv-template-ready > div > .flex > .lx-footer { display: none !important; }

.nv-shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--nv-border);
  background: rgba(5, 6, 10, .82);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.nv-shell-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.nv-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  text-decoration: none !important;
}
.nv-shell-brand__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #ff7b2f, #ff3d0f);
  box-shadow: 0 8px 24px rgba(255, 81, 20, .25);
}
.nv-shell-brand__mark svg { width: 15px; height: 15px; }
.nv-shell-nav { display: flex; justify-content: center; gap: 4px; }
.nv-shell-nav a {
  padding: 9px 13px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .66) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color .18s ease, background .18s ease;
}
.nv-shell-nav a:hover,
.nv-shell-nav a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, .075);
}
.nv-shell-actions { display: flex; align-items: center; gap: 8px; }
.nv-shell-login,
.nv-shell-open {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.nv-shell-login { color: rgba(255, 255, 255, .78) !important; border: 1px solid var(--nv-border); }
.nv-shell-open { color: #fff !important; background: linear-gradient(135deg, #ff6a1a, #ff3d0f); }
.nv-shell-menu { display: none; }

.nv-shell-footer {
  margin-top: 48px;
  border-top: 1px solid var(--nv-border);
  background: rgba(5, 6, 10, .72);
  color: rgba(255, 255, 255, .48);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}
.nv-shell-footer__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nv-shell-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.nv-shell-footer a { color: rgba(255, 255, 255, .62) !important; text-decoration: none !important; }
.nv-shell-footer a:hover { color: #fff !important; }

/* The About page is the visual baseline for all simple secondary pages. */
.legal-container {
  width: min(820px, calc(100% - 40px));
  max-width: none !important;
  padding: 72px 0 80px !important;
}
.legal-container h1,
.pricing-hero h1 {
  margin: 0 0 8px !important;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.legal-container .subtitle { margin: 0 0 36px !important; }
.legal-container h2 { scroll-margin-top: 92px; }
.model-card,
.contact-card,
.company-info {
  background: var(--nv-surface) !important;
  border-color: var(--nv-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .12);
}
.model-card,
.contact-card { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.model-card:hover,
.contact-card:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, .28) !important; background: var(--nv-surface-strong) !important; }

.pricing-hero {
  width: min(820px, calc(100% - 40px));
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 0 24px !important;
  text-align: left !important;
}
.pricing-hero h1 {
  color: transparent !important;
  background: linear-gradient(90deg, #a78bfa, #f472b6, #fb923c) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
}
.pricing-hero > p:not(.nv-page-subtitle) {
  max-width: none !important;
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}
.pricing-hero + section,
.packs-section { position: relative; }
.pack-card,
.free-tier { border-radius: 18px !important; }

.lx-api-page,
.lx-careers-page {
  background: #05060a !important;
  background-image: none !important;
  color: #e2e8f0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}
.lx-api-page::before,
.lx-api-page::after,
.lx-careers-page::before,
.lx-careers-page::after { display: none !important; }
.lx-api-page .lx-api-glow,
.lx-careers-page .lx-about-glow { display: none !important; }
.lx-api-page .container,
.lx-careers-page .container {
  width: min(820px, calc(100% - 40px)) !important;
  max-width: 820px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
.lx-api-hero,
.lx-careers-page .lx-about-hero {
  min-height: 0 !important;
  padding: 72px 0 24px !important;
  background: transparent !important;
}
.lx-api-shell,
.lx-careers-page .lx-about-hero-shell {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.lx-api-copy,
.lx-careers-page .lx-about-copy {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}
.lx-api-title,
.lx-careers-page .lx-about-title {
  max-width: none !important;
  margin: 0 0 8px !important;
  color: transparent !important;
  background: linear-gradient(90deg, #a78bfa, #f472b6, #fb923c) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
  line-height: 1.08 !important;
}
.nv-page-subtitle {
  margin: 0 0 36px !important;
  color: #94a3b8 !important;
  font-size: .95rem !important;
  line-height: 1.6 !important;
}
.lx-api-lead,
.lx-careers-page .lx-about-lead {
  max-width: none !important;
  margin: 0 0 20px !important;
  color: #cbd5e1 !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}
.lx-api-chip-row,
.lx-careers-page .lx-about-chip-row {
  margin-top: 24px !important;
  gap: 8px !important;
}
.lx-api-chip,
.lx-careers-page .lx-about-chip {
  padding: 6px 11px !important;
  border: 1px solid var(--nv-border) !important;
  border-radius: 999px !important;
  background: var(--nv-surface) !important;
  color: #94a3b8 !important;
  font-size: .78rem !important;
}
.lx-api-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 24px !important;
}
.lx-api-actions > a {
  width: auto !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: .85rem !important;
}
.lx-api-hero-card,
.lx-careers-page .lx-about-hero-card { display: none !important; }
.lx-api-section,
.lx-careers-page .lx-about-section {
  padding: 30px 0 !important;
  background: transparent !important;
}
.lx-api-section + .lx-api-section,
.lx-careers-page .lx-about-section + .lx-about-section {
  border-top: 0 !important;
}
.lx-api-section-intro,
.lx-careers-page .lx-about-section-intro {
  max-width: none !important;
  margin: 0 0 24px !important;
  text-align: left !important;
}
.lx-api-section-kicker,
.lx-careers-page .lx-about-section-kicker {
  display: block !important;
  margin-bottom: 8px !important;
  color: #a78bfa !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.lx-api-section-title,
.lx-careers-page .lx-about-section-title {
  margin: 0 0 14px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  color: #f1f5f9 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  line-height: 1.3 !important;
}
.lx-api-section-copy,
.lx-careers-page .lx-about-section-copy {
  max-width: none !important;
  color: #94a3b8 !important;
  font-size: .95rem !important;
  line-height: 1.7 !important;
}
.lx-api-step-grid,
.lx-api-pricing-grid,
.lx-api-use-case-grid,
.lx-careers-page .grid {
  gap: 16px !important;
}
.lx-api-step-card,
.lx-api-use-case-card,
.lx-api-pricing-card,
.lx-api-explorer,
.lx-careers-role-card,
.lx-careers-group {
  border-color: var(--nv-border) !important;
  border-radius: 16px !important;
  background: var(--nv-surface) !important;
  box-shadow: none !important;
}
.lx-careers-group {
  padding: 20px !important;
  margin-bottom: 16px !important;
}
.lx-careers-group-stack { gap: 16px !important; }
.lx-careers-role-card { padding: 20px !important; }

@media (max-width: 860px) {
  .nv-shell-header__inner { width: min(100% - 28px, 1180px); min-height: 62px; grid-template-columns: 1fr auto; gap: 12px; }
  .nv-shell-nav,
  .nv-shell-login { display: none; }
  .nv-shell-actions { gap: 7px; }
  .nv-shell-open { min-height: 36px; padding-inline: 12px; }
  .nv-shell-menu {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--nv-border);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
  }
  .nv-shell-menu svg { width: 18px; height: 18px; }
  .nv-shell-header.is-open .nv-shell-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--nv-border);
    background: rgba(5, 6, 10, .97);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
  }
  .nv-shell-header.is-open .nv-shell-nav a { padding: 11px 12px; }
  .nv-shell-footer__inner { width: min(100% - 28px, 1180px); }
}

@media (max-width: 540px) {
  .nv-shell-brand { font-size: 15px !important; }
  .nv-shell-open { display: none; }
  .legal-container { width: min(100% - 28px, 820px); padding-top: 48px !important; }
  .legal-container h1 { font-size: clamp(2rem, 9vw, 2.35rem) !important; }
  .legal-container .subtitle { margin-bottom: 28px !important; }
  .stats-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .pricing-hero { width: min(100% - 28px, 820px); padding-top: 48px !important; }
  .pricing-hero h1 { font-size: clamp(2rem, 9vw, 2.35rem) !important; }
  .lx-api-page .container,
  .lx-careers-page .container { width: min(100% - 28px, 820px) !important; }
  .lx-api-hero,
  .lx-careers-page .lx-about-hero { padding-top: 48px !important; }
  .lx-api-title,
  .lx-careers-page .lx-about-title { font-size: clamp(2rem, 9vw, 2.35rem) !important; }
  .nv-page-subtitle { margin-bottom: 28px !important; }
  .lx-api-section,
  .lx-careers-page .lx-about-section { padding-block: 24px !important; }
  .nv-shell-footer { margin-top: 36px; }
  .nv-shell-footer__inner { min-height: 92px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
}
