:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --text: #0f172a;
  --muted: #334155;
  --muted-soft: #64748b;

  --primary: #0b5fff;
  --secondary: #11b981;
  --accent-1: #0ea5e9;
  --accent-2: #14b8a6;

  --neutral-900: #0f172a;
  --neutral-700: #334155;
  --neutral-500: #64748b;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;

  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;

  --border: #cbd5e1;
  --divider: #e2e8f0;
  --radius: 14px;
  --container: min(1120px, 92vw);

  --shadow-soft: 0 12px 30px rgba(11, 95, 255, 0.08);
  --shadow-card: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-btn: 0 10px 22px rgba(11, 95, 255, 0.24);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(980px 620px at 2% -8%, rgba(11, 95, 255, 0.16) 0, rgba(11, 95, 255, 0) 58%),
    radial-gradient(860px 520px at 102% 16%, rgba(20, 184, 166, 0.18) 0, rgba(20, 184, 166, 0) 58%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8ff 55%, #f8fafc 100%);
  line-height: 1.65;
}

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", Arial, sans-serif;
  line-height: 1.12;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.lx-container { width: var(--container); margin: 0 auto; }
.lx-section { padding: clamp(52px, 8vw, 98px) 0; position: relative; }
.lx-bg-soft {
  background:
    linear-gradient(145deg, rgba(11, 95, 255, 0.05), rgba(20, 184, 166, 0.05)),
    var(--neutral-100);
}

main > .lx-section:first-child {
  padding-top: clamp(16px, 3vw, 32px);
}

.lx-header {
  background-color: rgba(255, 255, 255, 0.86);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(248, 252, 255, .45)),
    url("../images/header/header-bg-desktop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.lx-header .lx-container {
  width: min(1280px, 96vw);
}

.lx-header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 0;
}

.lx-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  z-index: 100;
}

.lx-skip-link:focus {
  left: 12px;
  top: 12px;
}

.lx-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
}

.lx-logo img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

.lx-nav-wrap {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.lx-nav {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.lx-nav li {
  flex: 0 0 auto;
}

.lx-nav a {
  color: var(--neutral-900);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.2;
  white-space: nowrap !important;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  display: inline-flex;
  align-items: center;
}

.lx-nav a:hover,
.lx-nav .current-menu-item > a,
.lx-nav .current_page_item > a {
  background: linear-gradient(140deg, rgba(11, 95, 255, .12), rgba(20, 184, 166, .12));
  border-color: rgba(11, 95, 255, .24);
  color: var(--primary);
}

.lx-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.lx-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.lx-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lx-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.lx-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lx-header-cta {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 8px;
  line-height: 1.15;
  padding: 8px 13px;
}

.lx-hero .lx-container {
  background: linear-gradient(155deg, rgba(11, 95, 255, .10), rgba(20, 184, 166, .08));
  border: 1px solid rgba(11, 95, 255, .18);
  border-radius: 22px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-soft);
}

.lx-hero-home .lx-container,
.lx-hero-about .lx-container,
.lx-hero-usecases .lx-container,
.lx-hero-contact .lx-container,
.lx-hero-pricing .lx-container,
.lx-hero-blog .lx-container {
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.lx-hero-home .lx-container {
  background-image:
    linear-gradient(108deg, rgba(255, 255, 255, .88) 0%, rgba(241, 249, 255, .68) 52%, rgba(233, 245, 255, .42) 100%),
    url("../images/web/home-hero-labexai.png");
}

.lx-hero-about .lx-container {
  background-image:
    linear-gradient(108deg, rgba(255, 255, 255, .88) 0%, rgba(241, 249, 255, .66) 52%, rgba(233, 245, 255, .4) 100%),
    url("../images/web/about-labexai-cover.png");
}

.lx-hero-usecases .lx-container {
  background-image:
    linear-gradient(108deg, rgba(255, 255, 255, .88) 0%, rgba(241, 249, 255, .66) 52%, rgba(233, 245, 255, .4) 100%),
    url("../images/web/usecases-overview.png");
}

.lx-hero-contact .lx-container {
  background-image:
    linear-gradient(108deg, rgba(255, 255, 255, .88) 0%, rgba(241, 249, 255, .66) 52%, rgba(233, 245, 255, .4) 100%),
    url("../images/web/contact-hero-background.png");
}

.lx-hero-pricing .lx-container {
  background-image:
    linear-gradient(108deg, rgba(255, 255, 255, .88) 0%, rgba(241, 249, 255, .66) 52%, rgba(233, 245, 255, .4) 100%),
    url("../images/web/pricing-cta-background.png");
}

.lx-hero-blog .lx-container {
  background-image:
    linear-gradient(108deg, rgba(255, 255, 255, .88) 0%, rgba(241, 249, 255, .66) 52%, rgba(233, 245, 255, .4) 100%),
    url("../images/web/blog-cover-generic.png");
}

.lx-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  max-width: 18ch;
}

.lx-kicker {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  margin: 0 0 12px;
}

.lx-lead { color: var(--muted); max-width: 64ch; }
.lx-lead-center { margin-left: auto; margin-right: auto; text-align: center; }
.lx-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.lx-btn {
  display: inline-block;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent-1));
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .26);
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
}

.lx-btn:hover {
  transform: translateY(-1px);
  opacity: .98;
  box-shadow: 0 14px 28px rgba(11, 95, 255, 0.3);
}

.lx-btn-outline {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(11, 95, 255, .24);
  box-shadow: 0 6px 16px rgba(11, 95, 255, .1);
}

.lx-btn-outline:hover {
  box-shadow: 0 10px 20px rgba(11, 95, 255, .16);
}

.lx-btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--accent-2));
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 12px 24px rgba(17, 185, 129, .24);
}

.lx-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.lx-link:hover {
  color: var(--accent-1);
}

.lx-grid { display: grid; gap: 20px; }
.lx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lx-trust-section {
  padding-top: 18px;
  padding-bottom: 30px;
}

.lx-trust-panel {
  border: 1px solid rgba(11, 95, 255, .2);
  background:
    linear-gradient(160deg, rgba(11, 95, 255, .1), rgba(20, 184, 166, .08)),
    #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(11, 95, 255, .12);
  padding: 16px 18px;
}

.lx-trust-image .lx-trust-panel {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .9) 0%, rgba(237, 248, 255, .62) 60%, rgba(226, 243, 255, .38) 100%),
    url("../images/web/home-trust-background.png");
  background-size: cover;
  background-position: right center;
}

.lx-trust-title {
  margin: 0 0 10px;
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}

.lx-trust-list {
  margin: 0;
  padding: 0 0 0 2px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lx-trust-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid rgba(11, 95, 255, .14);
  color: var(--neutral-900);
  font-size: .98rem;
  font-weight: 700;
}

.lx-trust-list li:last-child {
  border-bottom: 0;
}

.lx-trust-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5ec7ff 0%, var(--primary) 68%, var(--accent-2) 100%);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .12);
}

.lx-proof-section h2 {
  margin-bottom: 14px;
}

.lx-kpi-image {
  background-image:
    linear-gradient(180deg, rgba(248, 251, 255, .78), rgba(243, 248, 255, .78)),
    url("../images/web/home-kpi-background.png");
  background-size: cover;
  background-position: center;
}

.lx-proof-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  color: var(--primary);
  margin-bottom: 8px;
}

.lx-proof-card p {
  margin-bottom: 0;
}

.lx-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid rgba(11, 95, 255, .14);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 10px 18px rgba(11, 95, 255, .08),
    0 22px 44px rgba(15, 23, 42, .14);
  position: relative;
  overflow: visible;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease;
}

.lx-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
  opacity: .65;
}
.lx-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -10px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, .22) 0%, rgba(15, 23, 42, 0) 72%);
  pointer-events: none;
  z-index: -1;
}

.lx-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 14px 22px rgba(11, 95, 255, .1),
    0 28px 48px rgba(15, 23, 42, .18);
}

.lx-card-emphasis {
  transform: translateY(-2px);
  border-color: rgba(11, 95, 255, .2);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .95) inset,
    0 14px 26px rgba(11, 95, 255, .14),
    0 30px 52px rgba(15, 23, 42, .2);
}

.lx-card-emphasis:hover {
  transform: translateY(-8px);
  border-color: rgba(11, 95, 255, .32);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .98) inset,
    0 20px 32px rgba(11, 95, 255, .2),
    0 38px 62px rgba(15, 23, 42, .24);
}

.lx-card-emphasis::before {
  height: 4px;
  opacity: .9;
}

.lx-card-emphasis::after {
  left: 10px;
  right: 10px;
  bottom: -14px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, .28) 0%, rgba(15, 23, 42, 0) 72%);
}

.lx-card p { color: var(--muted); margin: 0 0 10px; }
.lx-card ul { padding-left: 18px; margin: 0 0 16px; }
.lx-card li { margin-bottom: 6px; }
.lx-card-highlight { border-color: rgba(11, 95, 255, .35); }
.lx-price { color: var(--text) !important; font-size: 1.55rem; font-weight: 800; }

.lx-list { margin: 0; padding-left: 18px; }
.lx-list li { margin-bottom: 10px; color: var(--muted); }

.lx-form { display: grid; gap: 8px; }
.lx-form label { font-weight: 600; font-size: .95rem; color: var(--neutral-700); }

.lx-form input,
.lx-form textarea {
  border: 1px solid rgba(11, 95, 255, .18);
  background: #ffffff;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.lx-form input:focus,
.lx-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .14);
  outline: none;
}

.lx-help { font-size: .92rem; color: var(--muted); }

.lx-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500 !important;
}

.lx-consent input { margin-top: 3px; }

.lx-alert {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  margin: 0 0 14px;
}

.lx-alert-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: var(--success);
}

.lx-alert-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--error);
}

.lx-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lx-table-wrap { overflow-x: auto; }

.lx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.lx-table th,
.lx-table td {
  border: 1px solid var(--divider);
  text-align: left;
  padding: 12px;
}

.lx-table thead th {
  background: linear-gradient(160deg, rgba(11, 95, 255, .12), rgba(20, 184, 166, .12));
  color: var(--neutral-900);
}

.lx-about-team-image {
  background-image:
    linear-gradient(180deg, rgba(247, 251, 255, .76), rgba(243, 249, 255, .78)),
    url("../images/web/about-team-culture.png");
  background-size: cover;
  background-position: center;
}

.lx-pricing-image .lx-container.lx-card {
  background-image:
    linear-gradient(170deg, rgba(255, 255, 255, .78), rgba(239, 249, 255, .66)),
    url("../images/web/pricing-cta-background.png");
  background-size: cover;
  background-position: center;
}

.lx-cta-band { text-align: center; }

.lx-footer {
  border-top: 1px solid var(--divider);
  color: var(--muted);
  font-size: .95rem;
  padding: 26px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
  overflow: hidden;
}

.lx-footer-texture {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(244, 250, 255, .64)),
    url("../images/web/footer-brand-texture.png");
  background-size: cover;
  background-position: center;
}

.lx-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 150px at 0% 0%, rgba(11, 95, 255, .16), rgba(11, 95, 255, 0) 70%),
    radial-gradient(540px 180px at 100% 100%, rgba(20, 184, 166, .16), rgba(20, 184, 166, 0) 72%);
  pointer-events: none;
}

.lx-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.lx-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lx-footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(11, 95, 255, .2);
}

.lx-footer-brand p { margin: 0; }

.lx-footer-mark {
  min-width: 210px;
  border: 1px solid rgba(11, 95, 255, .2);
  border-radius: 12px;
  padding: 12px 14px;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(233, 246, 255, .54)),
    url("../images/web/footer-brand-texture.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 20px rgba(11, 95, 255, .16);
  text-align: center;
}

.lx-footer-mark span {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}

.lx-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

.lx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .lx-header {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(248, 252, 255, .52)),
      url("../images/header/header-bg-mobile.png");
  }

  .lx-hero-home .lx-container,
  .lx-hero-about .lx-container,
  .lx-hero-usecases .lx-container,
  .lx-hero-contact .lx-container,
  .lx-hero-pricing .lx-container,
  .lx-hero-blog .lx-container,
  .lx-trust-image .lx-trust-panel {
    background-position: center;
  }

  .lx-grid-2,
  .lx-grid-3,
  .lx-grid-4 { grid-template-columns: 1fr; }

  .lx-trust-panel {
    padding: 14px;
  }

  .lx-trust-title {
    text-align: center;
  }

  .lx-trust-list {
    padding-left: 0;
  }

  .lx-trust-list li {
    font-size: .93rem;
  }

  .lx-header-inner {
    align-items: center;
    flex-wrap: wrap;
    min-height: 52px;
    padding: 4px 0;
  }

  .lx-logo { order: 1; }
  .lx-logo { padding: 0; }

  .lx-menu-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .lx-header-cta { display: none; }

  .lx-nav-wrap {
    display: none;
    order: 3;
    width: 100%;
    border-top: 1px solid var(--divider);
    margin-top: 8px;
    padding-top: 10px;
  }

  .lx-nav-wrap.is-open {
    display: block;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px 12px;
  }

  .lx-nav {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .lx-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .lx-logo img {
    width: 150px;
    height: auto;
  }

  .lx-footer-inner {
    justify-content: center;
    flex-direction: column;
  }

  .lx-footer-brand {
    text-align: center;
    flex-direction: column;
  }
}

@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;
  }
  .lx-card:hover {
    transform: none;
  }
}
