/* ==========================================================================
   Lumanex Design System — v1.0
   --------------------------------------------------------------------------
   Navy (#0B2545) + Cyan (#00C2FF) telco palette
   WCAG AA contrasts verified:
     - white on navy #0B2545              ≈ 15:1   ✅ AAA
     - #475569 (text-muted) on white      ≈  8:1   ✅ AAA
     - #00C2FF (cyan) with #0B2545 text   ≈  5:1   ✅ AA normal
     - #11294D on #E6FAFF (cyan-50)       ≈ 12:1   ✅ AAA
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Primary — Navy */
  --lx-primary-50:  #EEF3FB;
  --lx-primary-100: #D6E2F3;
  --lx-primary-200: #AEC3E5;
  --lx-primary-300: #7EA0D3;
  --lx-primary-400: #4F7BBB;
  --lx-primary-500: #2B5A9E;
  --lx-primary-600: #1B3A6B;
  --lx-primary-700: #11294D;
  --lx-primary-800: #0B2545;
  --lx-primary-900: #061735;

  /* Accent — Cyan */
  --lx-accent-50:  #E6FAFF;
  --lx-accent-100: #BFF1FF;
  --lx-accent-200: #80E3FF;
  --lx-accent-300: #40D3FF;
  --lx-accent-400: #00C2FF;
  --lx-accent-500: #00A3D9;
  --lx-accent-600: #0086B3;

  /* Neutrals — Slate */
  --lx-bg:            #F8FAFC;
  --lx-surface:       #FFFFFF;
  --lx-surface-2:     #F1F5F9;
  --lx-border:        #E2E8F0;
  --lx-border-strong: #CBD5E1;
  --lx-text:          #0F172A;
  --lx-text-muted:    #475569;
  --lx-text-dim:      #94A3B8;
  --lx-text-invert:   #F8FAFC;

  /* States */
  --lx-success:    #10B981;
  --lx-success-bg: #ECFDF5;
  --lx-warning:    #D97706;
  --lx-warning-bg: #FFFBEB;
  --lx-danger:     #DC2626;
  --lx-danger-bg:  #FEF2F2;
  --lx-info:       #2563EB;
  --lx-info-bg:    #EFF6FF;

  /* Radii — kept small for institutional feel */
  --lx-radius-sm:   2px;
  --lx-radius:      4px;
  --lx-radius-lg:   6px;
  --lx-radius-full: 9999px;

  /* Shadows */
  --lx-shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 1px rgba(11, 37, 69, .04);
  --lx-shadow:    0 4px 12px rgba(11, 37, 69, .08), 0 2px 4px rgba(11, 37, 69, .04);
  --lx-shadow-lg: 0 20px 40px -12px rgba(11, 37, 69, .18);
  --lx-shadow-glow: 0 0 0 1px rgba(0, 194, 255, .35), 0 10px 30px -10px rgba(0, 194, 255, .4);

  /* Focus ring */
  --lx-focus-ring: 0 0 0 3px rgba(0, 194, 255, .4);

  /* Spacing scale (4px base) */
  --lx-space-1:  4px;
  --lx-space-2:  8px;
  --lx-space-3:  12px;
  --lx-space-4:  16px;
  --lx-space-5:  20px;
  --lx-space-6:  24px;
  --lx-space-8:  32px;
  --lx-space-10: 40px;
  --lx-space-12: 48px;
  --lx-space-16: 64px;
  --lx-space-20: 80px;
  --lx-space-24: 96px;

  /* Typography */
  --lx-font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lx-font-serif: "Source Serif 4", "Source Serif Pro", "Times New Roman", Georgia, serif;
  --lx-font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --lx-text-xs:   0.75rem;
  --lx-text-sm:   0.875rem;
  --lx-text-base: 1rem;
  --lx-text-lg:   1.125rem;
  --lx-text-xl:   1.25rem;
  --lx-text-2xl:  1.5rem;
  --lx-text-3xl:  1.875rem;
  --lx-text-4xl:  2.25rem;
  --lx-text-5xl:  3rem;
  --lx-text-6xl:  3.75rem;

  /* Layout */
  --lx-container-max: 1200px;
  --lx-container-pad: clamp(16px, 4vw, 32px);

  /* Motion */
  --lx-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --lx-duration: 200ms;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  font-family: var(--lx-font-sans);
  font-size: var(--lx-text-base);
  line-height: 1.6;
  color: var(--lx-text);
  background: var(--lx-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1, "cv11" 1;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--lx-text);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a {
  color: var(--lx-primary-600);
  text-decoration: none;
  transition: color var(--lx-duration) var(--lx-ease);
}
a:hover { color: var(--lx-primary-800); }

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

button { font-family: inherit; cursor: pointer; }

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.lx-font-mono { font-family: var(--lx-font-mono); font-variant-numeric: tabular-nums; }
.lx-tabular   { font-variant-numeric: tabular-nums; }

/* ---------- 3. Accessibility utilities ---------- */
.lx-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lx-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--lx-primary-800);
  color: var(--lx-text-invert);
  border-radius: var(--lx-radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--lx-shadow);
}
.lx-skip-link:focus,
.lx-skip-link:focus-visible {
  left: 12px;
  outline: none;
  color: var(--lx-text-invert);
}

*:focus-visible {
  outline: none;
  box-shadow: var(--lx-focus-ring);
  border-radius: var(--lx-radius-sm);
}

/* ---------- 4. Layout primitives ---------- */
.lx-container {
  width: 100%;
  max-width: var(--lx-container-max);
  margin-inline: auto;
  padding-inline: var(--lx-container-pad);
}

.lx-container--wide { max-width: 1400px; }

.lx-section {
  padding-block: clamp(48px, 8vw, 96px);
}

.lx-section--sm { padding-block: clamp(32px, 5vw, 56px); }

.lx-section--alt { background: var(--lx-surface-2); }

.lx-section--brand {
  background: var(--lx-primary-800);
  color: var(--lx-text-invert);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lx-section--brand h1,
.lx-section--brand h2 {
  color: var(--lx-text-invert);
  font-family: var(--lx-font-serif);
  font-weight: 400;
}
.lx-section--brand h3 { color: var(--lx-text-invert); }

.lx-grid { display: grid; gap: var(--lx-space-6); }
.lx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.lx-stack > * + * { margin-top: var(--lx-space-4); }
.lx-stack-lg > * + * { margin-top: var(--lx-space-8); }

/* ---------- 5. Header & Navigation ---------- */
.lx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--lx-border);
}

.lx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--lx-space-4);
}

.lx-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--lx-space-2);
}
.lx-logo img {
  height: 40px;
  width: auto;
  max-width: none;
}

.lx-nav {
  display: none;
  align-items: center;
  gap: var(--lx-space-1);
}
.lx-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--lx-radius-sm);
  color: var(--lx-text-muted);
  font-size: var(--lx-text-sm);
  font-weight: 500;
  transition: color var(--lx-duration) var(--lx-ease), background var(--lx-duration) var(--lx-ease);
}
.lx-nav a:hover,
.lx-nav a[aria-current="page"] {
  color: var(--lx-primary-800);
  background: var(--lx-accent-50);
}

.lx-nav__divider {
  width: 1px;
  height: 24px;
  background: var(--lx-border);
  margin-inline: var(--lx-space-2);
}

.lx-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius-sm);
  background: var(--lx-surface);
  color: var(--lx-primary-800);
  font-size: 20px;
  transition: background var(--lx-duration) var(--lx-ease);
}
.lx-hamburger:hover { background: var(--lx-surface-2); }

.lx-mobile-menu {
  display: none;
  padding: var(--lx-space-4) 0 var(--lx-space-6);
  border-top: 1px solid var(--lx-border);
  background: var(--lx-surface);
}
.lx-mobile-menu[aria-hidden="false"] { display: block; }
.lx-mobile-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--lx-radius-sm);
  color: var(--lx-text);
  font-weight: 500;
}
.lx-mobile-menu a:hover { background: var(--lx-accent-50); color: var(--lx-primary-800); }
.lx-mobile-menu .lx-btn { margin-top: var(--lx-space-3); width: 100%; }

@media (min-width: 768px) {
  .lx-nav { display: inline-flex; }
  .lx-hamburger { display: none; }
  .lx-mobile-menu { display: none !important; }
}

/* ---------- 6. Buttons ---------- */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lx-space-2);
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--lx-radius);
  font-size: var(--lx-text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--lx-duration) var(--lx-ease),
              color      var(--lx-duration) var(--lx-ease),
              box-shadow var(--lx-duration) var(--lx-ease),
              transform  var(--lx-duration) var(--lx-ease),
              border-color var(--lx-duration) var(--lx-ease);
  white-space: nowrap;
  line-height: 1;
}
.lx-btn:disabled,
.lx-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.lx-btn--primary {
  background: var(--lx-accent-400);
  color: var(--lx-primary-900);
  box-shadow: 0 6px 20px -8px rgba(0, 194, 255, .55);
}
.lx-btn--primary:hover:not(:disabled) {
  background: var(--lx-accent-300);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgba(0, 194, 255, .7);
  color: var(--lx-primary-900);
}

.lx-btn--secondary {
  background: var(--lx-primary-800);
  color: var(--lx-text-invert);
}
.lx-btn--secondary:hover:not(:disabled) {
  background: var(--lx-primary-700);
  transform: translateY(-1px);
  color: var(--lx-text-invert);
}

.lx-btn--ghost {
  background: transparent;
  color: var(--lx-primary-800);
  border-color: var(--lx-border-strong);
}
.lx-btn--ghost:hover:not(:disabled) {
  background: var(--lx-surface-2);
  border-color: var(--lx-primary-800);
}

.lx-btn--on-dark {
  background: transparent;
  color: var(--lx-text-invert);
  border-color: rgba(255, 255, 255, 0.3);
}
.lx-btn--on-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--lx-text-invert);
}

/* On-dark primary: white solid, refined — used for hero CTAs */
.lx-btn--on-dark-primary {
  background: var(--lx-text-invert);
  color: var(--lx-primary-800);
  border-color: transparent;
}
.lx-btn--on-dark-primary:hover:not(:disabled) {
  background: var(--lx-primary-50);
  color: var(--lx-primary-800);
  transform: translateY(-1px);
}

.lx-btn--link {
  background: transparent;
  color: var(--lx-primary-600);
  padding: 6px 8px;
  min-height: auto;
}
.lx-btn--link:hover:not(:disabled) { color: var(--lx-primary-800); text-decoration: underline; }

.lx-btn--sm { padding: 8px 14px; font-size: var(--lx-text-xs); min-height: 36px; }
.lx-btn--lg { padding: 16px 28px; font-size: var(--lx-text-base); min-height: 52px; }
.lx-btn--block { width: 100%; }

.lx-btn[aria-busy="true"] {
  pointer-events: none;
  position: relative;
}
.lx-btn[aria-busy="true"] .lx-btn__label { opacity: 0; }
.lx-btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: lx-spin 0.7s linear infinite;
}
@keyframes lx-spin { to { transform: rotate(360deg); } }

/* ---------- 7. Cards ---------- */
.lx-card {
  background: var(--lx-surface);
  border: 1px solid var(--lx-border);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: none;
  transition: box-shadow var(--lx-duration) var(--lx-ease),
              border-color var(--lx-duration) var(--lx-ease);
}
.lx-card:hover {
  box-shadow: 0 4px 16px -6px rgba(11, 37, 69, .14);
  border-color: var(--lx-border-strong);
}

.lx-card--featured {
  border-color: var(--lx-primary-700);
  box-shadow: 0 8px 24px -12px rgba(11, 37, 69, .22);
  position: relative;
}
.lx-card--featured::before {
  content: "Consigliato";
  position: absolute;
  top: -1px;
  left: 24px;
  transform: translateY(-50%);
  background: var(--lx-primary-800);
  color: var(--lx-text-invert);
  font-family: var(--lx-font-sans);
  font-size: var(--lx-text-xs);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lx-card--muted { background: var(--lx-surface-2); }

.lx-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 2px;
  background: transparent;
  color: var(--lx-primary-700);
  border: 1px solid var(--lx-border);
  font-size: 18px;
  margin-bottom: var(--lx-space-5);
}
.lx-card:hover .lx-card__icon {
  border-color: var(--lx-primary-600);
  color: var(--lx-primary-800);
}
.lx-card__title {
  font-family: var(--lx-font-serif);
  font-size: var(--lx-text-xl);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--lx-space-3);
  color: var(--lx-text);
  letter-spacing: -0.005em;
}
.lx-card__body {
  font-size: var(--lx-text-sm);
  color: var(--lx-text-muted);
  line-height: 1.7;
}

/* ---------- 8. Forms ---------- */
.lx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lx-field__label {
  font-size: var(--lx-text-sm);
  font-weight: 600;
  color: var(--lx-text);
}
.lx-field__label .lx-required { color: var(--lx-danger); margin-left: 2px; }

.lx-input-wrap { position: relative; }
.lx-input-wrap .lx-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lx-text-dim);
  pointer-events: none;
  font-size: 16px;
}

.lx-input,
.lx-select,
.lx-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--lx-surface);
  border: 1.5px solid var(--lx-border);
  border-radius: var(--lx-radius);
  font-size: var(--lx-text-base);
  color: var(--lx-text);
  transition: border-color var(--lx-duration) var(--lx-ease),
              box-shadow var(--lx-duration) var(--lx-ease),
              background var(--lx-duration) var(--lx-ease);
  min-height: 48px;
}
.lx-input-wrap .lx-input { padding-left: 42px; }

.lx-input::placeholder,
.lx-textarea::placeholder { color: var(--lx-text-dim); }

.lx-input:hover,
.lx-select:hover,
.lx-textarea:hover { border-color: var(--lx-border-strong); }

.lx-input:focus-visible,
.lx-select:focus-visible,
.lx-textarea:focus-visible {
  outline: none;
  border-color: var(--lx-accent-400);
  box-shadow: var(--lx-focus-ring);
}

.lx-input[aria-invalid="true"],
.lx-select[aria-invalid="true"],
.lx-textarea[aria-invalid="true"] {
  border-color: var(--lx-danger);
  background: var(--lx-danger-bg);
}

.lx-textarea { min-height: 120px; resize: vertical; }

.lx-field__hint {
  font-size: var(--lx-text-xs);
  color: var(--lx-text-muted);
}
.lx-field__error {
  font-size: var(--lx-text-xs);
  color: var(--lx-danger);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lx-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--lx-space-2);
  font-size: var(--lx-text-sm);
  color: var(--lx-text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.lx-checkbox input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--lx-accent-400);
}

/* ---------- 9. Alerts (loading / empty / error / success / info) ---------- */
.lx-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--lx-space-3);
  padding: var(--lx-space-4) var(--lx-space-5);
  border-radius: var(--lx-radius);
  border: 1px solid transparent;
  font-size: var(--lx-text-sm);
}
.lx-alert__icon {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
}
.lx-alert__title {
  font-weight: 700;
  color: var(--lx-text);
  font-size: var(--lx-text-base);
  line-height: 1.3;
}
.lx-alert__body {
  color: var(--lx-text-muted);
  margin-top: 2px;
}

.lx-alert--success { background: var(--lx-success-bg); border-color: #A7F3D0; }
.lx-alert--success .lx-alert__icon { background: var(--lx-success); color: #fff; }

.lx-alert--warning { background: var(--lx-warning-bg); border-color: #FDE68A; }
.lx-alert--warning .lx-alert__icon { background: var(--lx-warning); color: #fff; }

.lx-alert--danger  { background: var(--lx-danger-bg);  border-color: #FECACA; }
.lx-alert--danger  .lx-alert__icon { background: var(--lx-danger); color: #fff; }

.lx-alert--info    { background: var(--lx-info-bg);    border-color: #BFDBFE; }
.lx-alert--info    .lx-alert__icon { background: var(--lx-info); color: #fff; }

.lx-alert--loading { background: var(--lx-accent-50); border-color: var(--lx-accent-200); }
.lx-alert--loading .lx-alert__icon {
  background: transparent;
  color: var(--lx-accent-500);
}
.lx-alert--loading .lx-alert__icon::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: lx-spin 0.7s linear infinite;
}

/* ---------- 10. Empty state ---------- */
.lx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--lx-space-12) var(--lx-space-6);
  color: var(--lx-text-muted);
}
.lx-empty__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--lx-surface-2);
  color: var(--lx-text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--lx-space-4);
}
.lx-empty__title {
  color: var(--lx-text);
  font-size: var(--lx-text-xl);
  margin-bottom: var(--lx-space-2);
}

/* ---------- 11. Skeleton ---------- */
.lx-skeleton {
  display: block;
  background: linear-gradient(90deg, var(--lx-surface-2) 0%, #E8EDF3 50%, var(--lx-surface-2) 100%);
  background-size: 200% 100%;
  animation: lx-shimmer 1.4s infinite linear;
  border-radius: var(--lx-radius-sm);
  min-height: 12px;
}
@keyframes lx-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 12. Badge / Pill ---------- */
.lx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--lx-radius-full);
  font-size: var(--lx-text-xs);
  font-weight: 600;
  line-height: 1.4;
  background: var(--lx-surface-2);
  color: var(--lx-text-muted);
}
.lx-badge--brand   { background: var(--lx-accent-50);  color: var(--lx-primary-700); }
.lx-badge--success { background: var(--lx-success-bg); color: #065F46; }
.lx-badge--warning { background: var(--lx-warning-bg); color: #92400E; }
.lx-badge--danger  { background: var(--lx-danger-bg);  color: #991B1B; }
.lx-badge--info    { background: var(--lx-info-bg);    color: #1E40AF; }
.lx-badge--outline { background: transparent; border: 1px solid var(--lx-border-strong); color: var(--lx-text-muted); }

/* ---------- 13. Stat / KPI ---------- */
.lx-stat {
  text-align: center;
  padding: var(--lx-space-5);
  border-radius: var(--lx-radius);
}
.lx-stat__value {
  font-family: var(--lx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: inherit;
}
.lx-stat__unit  { font-size: var(--lx-text-base); opacity: .8; }
.lx-stat__label { font-size: var(--lx-text-sm); opacity: .75; margin-top: 4px; }

.lx-stat--on-dark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  color: var(--lx-text-invert);
  padding: var(--lx-space-6) var(--lx-space-5);
}
.lx-stat--on-dark .lx-stat__value { font-weight: 500; }
.lx-stat--on-dark .lx-stat__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--lx-text-xs);
  opacity: .7;
  margin-top: var(--lx-space-2);
}

/* ---------- 14. Breadcrumb ---------- */
.lx-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 0;
  margin: 0;
  font-size: var(--lx-text-sm);
  color: var(--lx-text-muted);
}
.lx-breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.lx-breadcrumb li + li::before {
  content: "/";
  color: var(--lx-text-dim);
}
.lx-breadcrumb a { color: var(--lx-text-muted); }
.lx-breadcrumb a:hover { color: var(--lx-primary-800); }
.lx-breadcrumb [aria-current="page"] { color: var(--lx-text); font-weight: 500; }

/* ---------- 15. Hero (institutional) ---------- */
.lx-hero {
  position: relative;
  background:
    linear-gradient(180deg, var(--lx-primary-900) 0%, var(--lx-primary-800) 100%);
  color: var(--lx-text-invert);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* Subtle vignette — one soft glow, not a grid */
.lx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 194, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Thin editorial divider */
.lx-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 1px;
  background: rgba(0, 194, 255, 0.5);
  transform: translateX(-50%);
  pointer-events: none;
}
.lx-hero > * { position: relative; z-index: 1; }

.lx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--lx-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(191, 241, 255, 0.85);
}
.lx-hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(0, 194, 255, 0.6);
}

.lx-hero__title {
  font-family: var(--lx-font-serif);
  color: var(--lx-text-invert);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-feature-settings: "liga" 1, "kern" 1;
}
.lx-hero__title .lx-highlight {
  /* Institutional: italic serif + subtle color, no gradient */
  font-style: italic;
  font-weight: 400;
  color: var(--lx-accent-200);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.lx-hero__lead {
  font-family: var(--lx-font-sans);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.7;
  max-width: 38rem;
  font-weight: 400;
}

/* Institutional fact bar — replaces dashboard-style stat cards.
   Horizontal row of key figures with thin vertical dividers, uppercase labels
   and serif numbers. Meant to read like an annual-report disclosure line. */
.lx-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: var(--lx-space-12) 0 0;
  padding: var(--lx-space-8) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 820px;
}
@media (min-width: 640px) {
  .lx-hero__facts { grid-template-columns: repeat(4, 1fr); }
}
.lx-hero__fact {
  padding: 0 var(--lx-space-6) 0 0;
  margin: 0;
  position: relative;
}
.lx-hero__fact + .lx-hero__fact {
  padding-left: var(--lx-space-6);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 639px) {
  .lx-hero__fact:nth-child(3) { border-left: none; padding-left: 0; }
  .lx-hero__fact:nth-child(3),
  .lx-hero__fact:nth-child(4) {
    padding-top: var(--lx-space-5);
    margin-top: var(--lx-space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
.lx-hero__fact-label {
  display: block;
  font-family: var(--lx-font-sans);
  font-size: var(--lx-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(191, 241, 255, 0.6);
  margin: 0 0 var(--lx-space-3);
}
.lx-hero__fact-value {
  display: block;
  font-family: var(--lx-font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  color: var(--lx-text-invert);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.lx-hero__fact-value .lx-unit {
  font-size: 0.56em;
  opacity: 0.6;
  font-weight: 400;
  margin-left: 3px;
  letter-spacing: 0;
}

/* ---------- 16. Footer ---------- */
.lx-footer {
  background: var(--lx-primary-900);
  color: rgba(248, 250, 252, 0.82);
  padding-block: var(--lx-space-16) var(--lx-space-8);
  font-size: var(--lx-text-sm);
}
.lx-footer h4 {
  color: var(--lx-text-invert);
  font-size: var(--lx-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--lx-space-4);
}
.lx-footer a {
  color: rgba(248, 250, 252, 0.7);
  display: inline-block;
  padding: 4px 0;
}
.lx-footer a:hover { color: var(--lx-accent-300); }

.lx-footer__grid {
  display: grid;
  gap: var(--lx-space-8);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.lx-footer__brand img { height: 40px; width: auto; max-width: none; margin-bottom: var(--lx-space-4); }
.lx-footer__brand p { color: rgba(248, 250, 252, 0.65); line-height: 1.6; }

.lx-footer__bottom {
  margin-top: var(--lx-space-10);
  padding-top: var(--lx-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--lx-space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--lx-text-xs);
  color: rgba(248, 250, 252, 0.55);
}

/* ---------- 17. Section heading (institutional) ---------- */
.lx-section__head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto var(--lx-space-12);
}
.lx-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--lx-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--lx-primary-600);
  background: none;
  padding: 0;
  margin-bottom: var(--lx-space-5);
  border-radius: 0;
}
.lx-section__eyebrow::before,
.lx-section__eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--lx-primary-500);
  opacity: .5;
}
.lx-section__title {
  font-family: var(--lx-font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--lx-space-4);
  color: var(--lx-primary-800);
}
.lx-section__lead {
  color: var(--lx-text-muted);
  font-size: var(--lx-text-lg);
  line-height: 1.7;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 18. Feature list ---------- */
.lx-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--lx-space-3);
}
.lx-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--lx-space-3);
  font-size: var(--lx-text-sm);
  color: var(--lx-text-muted);
  line-height: 1.5;
}
.lx-feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--lx-success-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- 19. Loading overlay ---------- */
.lx-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lx-text-invert);
  flex-direction: column;
  gap: var(--lx-space-4);
}
.lx-loading-overlay[hidden] { display: none; }
.lx-loading-overlay__spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--lx-accent-400);
  animation: lx-spin 0.9s linear infinite;
}

/* ---------- 20. FAQ / Accordion ---------- */
.lx-faq details {
  background: var(--lx-surface);
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  padding: var(--lx-space-4) var(--lx-space-5);
  margin-bottom: var(--lx-space-3);
  transition: border-color var(--lx-duration) var(--lx-ease);
}
.lx-faq details[open] { border-color: var(--lx-accent-400); }
.lx-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--lx-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lx-space-3);
}
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--lx-accent-500);
  transition: transform var(--lx-duration) var(--lx-ease);
}
.lx-faq details[open] summary::after { content: "−"; }
.lx-faq details > *:not(summary) {
  margin-top: var(--lx-space-3);
  color: var(--lx-text-muted);
  line-height: 1.65;
}

/* ---------- 21. Price block ---------- */
.lx-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--lx-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--lx-primary-800);
}
.lx-price__currency { font-size: var(--lx-text-xl); font-weight: 600; }
.lx-price__value    { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; line-height: 1; }
.lx-price__period   { font-size: var(--lx-text-sm); color: var(--lx-text-muted); font-family: var(--lx-font-sans); margin-left: 4px; }

/* ---------- 22. Utility helpers ---------- */
.lx-text-center { text-align: center; }
.lx-text-muted  { color: var(--lx-text-muted); }
.lx-text-dim    { color: var(--lx-text-dim); }
.lx-text-brand  { color: var(--lx-primary-800); }
.lx-text-accent { color: var(--lx-accent-500); }

.lx-mt-4 { margin-top: var(--lx-space-4); }
.lx-mt-6 { margin-top: var(--lx-space-6); }
.lx-mt-8 { margin-top: var(--lx-space-8); }

.lx-flex        { display: flex; }
.lx-flex-col    { flex-direction: column; }
.lx-items-center{ align-items: center; }
.lx-justify-between { justify-content: space-between; }
.lx-gap-2 { gap: var(--lx-space-2); }
.lx-gap-3 { gap: var(--lx-space-3); }
.lx-gap-4 { gap: var(--lx-space-4); }
.lx-gap-6 { gap: var(--lx-space-6); }
.lx-wrap  { flex-wrap: wrap; }

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
  .lx-card:hover { transform: none; }
}

/* ---------- 24. Print ---------- */
@media print {
  .lx-header, .lx-footer, .lx-mobile-menu, .lx-loading-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .lx-hero { background: #fff !important; color: #000 !important; }
}
