/* ═══════════════════════════════════════════════════
   LoadMEX Landing Page – Design System & Styles
   ═══════════════════════════════════════════════════ */
:root {
  --lp-bg: #f8fafc;
  --lp-bg-alt: #ffffff;
  --lp-bg-card: #f1f5f9;
  --lp-text: #0f172a;
  --lp-text-sub: #475569;
  --lp-text-muted: #64748b;
  --lp-border: rgba(0, 0, 0, 0.06);
  --lp-glass: rgba(255, 255, 255, 0.85);
  --lp-card-hover: #ffffff;
  --lp-grid: rgba(0, 0, 0, 0.025);
  --lp-shadow: rgba(0, 0, 0, 0.04);
  --lp-shadow-lg: rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] {
  --lp-bg: #0a0f1a;
  --lp-bg-alt: #111827;
  --lp-bg-card: #1e293b;
  --lp-text: #f1f5f9;
  --lp-text-sub: #94a3b8;
  --lp-text-muted: #64748b;
  --lp-border: rgba(255, 255, 255, 0.07);
  --lp-glass: rgba(10, 15, 26, 0.92);
  --lp-card-hover: #1e293b;
  --lp-grid: rgba(255, 255, 255, 0.03);
  --lp-shadow: rgba(0, 0, 0, 0.2);
  --lp-shadow-lg: rgba(0, 0, 0, 0.4);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body.auth-shell {
  background: var(--lp-bg) !important;
  color: var(--lp-text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.auth-shell__main {
  min-height: 100vh;
}
.auth-theme-toggle-wrap {
  display: none !important;
}

/* ─── Nav ─── */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 24px;
  background: var(--lp-glass);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--lp-border);
  transition: background 0.3s;
}
.lp-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lp-nav__logo {
  /* slightly larger logo for better visibility */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-nav__logo svg {
  width: 100%;
  height: 100%;
}
.lp-nav__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.lp-nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ─── Buttons ─── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: inherit;
}
.lp-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-shadow);
}
.lp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-shadow);
  color: #fff;
}
.lp-btn--outline {
  background: transparent;
  color: var(--lp-text-sub);
  border: 1px solid var(--lp-border);
}
.lp-btn--outline:hover {
  background: var(--lp-border);
  color: var(--lp-text);
}
.lp-btn--ghost {
  background: var(--lp-border);
  color: var(--lp-text-sub);
  border: 1px solid transparent;
}
.lp-btn--ghost:hover {
  background: var(--lp-bg-card);
  color: var(--lp-text);
}
.lp-btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}
.lp-btn--theme {
  background: transparent;
  border: 1px solid var(--lp-border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--lp-text-sub);
  transition: all 0.25s;
  padding: 0;
  flex-shrink: 0;
}
.lp-btn--theme:hover {
  background: var(--lp-border);
  color: var(--lp-text);
  transform: scale(1.05);
}

/* ─── Section commons ─── */
.lp-section {
  padding: 100px 24px;
}
.lp-section--alt {
  background: var(--lp-bg-alt);
}
.lp-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: var(--accent-10);
  border: 1px solid var(--accent-20);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.lp-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-50);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}
.lp-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--lp-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-align: center;
}
.lp-subtext {
  font-size: 1.05rem;
  color: var(--lp-text-muted);
  margin-bottom: 56px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.lp-highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero ─── */
.lp-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
}
.lp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--lp-bg);
}
.lp-hero__grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 50% 0%,
      var(--accent-10) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% 30%,
      rgba(59, 130, 246, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 40% at 20% 60%,
      rgba(168, 85, 247, 0.04) 0%,
      transparent 60%
    );
}
.lp-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--lp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    black 40%,
    transparent 80%
  );
}
.lp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.lp-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--lp-text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.lp-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--lp-text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 36px;
}
.lp-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats */
.lp-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 72px;
}
.lp-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--lp-glass);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 18px 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--lp-shadow);
  transition: all 0.3s;
}
.lp-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--lp-shadow-lg);
  border-color: var(--accent-20);
}
.lp-stat__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-stat__ico svg {
  width: 22px;
  height: 22px;
}
.lp-stat__ico--blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.lp-stat__ico--green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.lp-stat__ico--accent {
  background: var(--accent-10);
  color: var(--accent);
}
.lp-stat__txt {
  display: flex;
  flex-direction: column;
}
.lp-stat__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--lp-text);
}
.lp-stat__lbl {
  font-size: 0.78rem;
  color: var(--lp-text-muted);
  font-weight: 500;
}

/* ─── Value Props ─── */
.lp-vp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.lp-vp-card {
  padding: 32px 28px;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  transition: all 0.35s;
  text-align: left;
}
.lp-vp-card:hover {
  background: var(--lp-card-hover);
  border-color: var(--accent-20);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--lp-shadow);
}
.lp-vp-card__ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.lp-vp-card__ico svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.lp-vp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 10px;
}
.lp-vp-card p {
  font-size: 0.9rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
}

/* ─── Features Grid ─── */
.lp-feat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.lp-feat {
  padding: 28px;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.35s;
}
.lp-feat:hover {
  background: var(--lp-card-hover);
  border-color: var(--accent-20);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--lp-shadow);
}
.lp-feat__ico {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--accent-10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-feat__ico svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.lp-feat h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 6px;
}
.lp-feat p {
  font-size: 0.85rem;
  color: var(--lp-text-muted);
  line-height: 1.65;
}

/* ─── How It Works ─── */
.lp-steps {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  counter-reset: step;
}
.lp-step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  position: relative;
  padding: 0 16px;
  counter-increment: step;
}
.lp-step::before {
  content: counter(step);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px var(--accent-shadow);
}
.lp-step::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: var(--accent-20);
}
.lp-step:last-child::after {
  display: none;
}
.lp-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 6px;
}
.lp-step p {
  font-size: 0.82rem;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

/* ─── Platform Capabilities ─── */
.lp-cap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.lp-cap {
  text-align: center;
  padding: 36px 28px;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  transition: all 0.35s;
}
.lp-cap:hover {
  background: var(--lp-card-hover);
  border-color: var(--accent-20);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--lp-shadow);
}
.lp-cap__ico {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-10), var(--accent-20));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.lp-cap__ico svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.lp-cap h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 8px;
}
.lp-cap p {
  font-size: 0.85rem;
  color: var(--lp-text-muted);
  line-height: 1.65;
}

/* ─── Use Cases ─── */
.lp-uc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.lp-uc {
  padding: 36px 30px;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.lp-uc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.35s;
}
.lp-uc:hover {
  background: var(--lp-card-hover);
  border-color: var(--accent-20);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--lp-shadow);
}
.lp-uc:hover::before {
  opacity: 1;
}
.lp-uc__ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.lp-uc__ico svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.lp-uc h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 10px;
}
.lp-uc p {
  font-size: 0.88rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
}

/* ─── Benefits ─── */
.lp-ben__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.lp-ben {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  transition: all 0.3s;
}
.lp-ben:hover {
  background: var(--lp-card-hover);
  border-color: var(--accent-20);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--lp-shadow);
}
.lp-ben__check {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-ben__check svg {
  width: 18px;
  height: 18px;
}
.lp-ben h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 4px;
}
.lp-ben p {
  font-size: 0.84rem;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

/* ─── Tech Stack ─── */
.lp-tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.lp-tech {
  text-align: center;
  padding: 32px 24px;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  transition: all 0.35s;
}
.lp-tech:hover {
  background: var(--lp-card-hover);
  border-color: var(--accent-20);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--lp-shadow);
}
.lp-tech__ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.lp-tech h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 6px;
}
.lp-tech p {
  font-size: 0.84rem;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

/* ─── CTA Banner ─── */
.lp-cta-banner {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--accent-10), var(--lp-bg-alt));
  position: relative;
  overflow: hidden;
}
.lp-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    var(--accent-10),
    transparent 70%
  );
}
.lp-cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.lp-cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--lp-text);
  margin-bottom: 16px;
}
.lp-cta-banner p {
  font-size: 1.05rem;
  color: var(--lp-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.lp-cta-banner .lp-hero__cta {
  margin-bottom: 0;
}

/* ─── Footer ─── */
.lp-footer {
  padding: 48px 24px 24px;
  border-top: 1px solid var(--lp-border);
  background: var(--lp-bg);
}
.lp-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}
.lp-footer__brand p {
  font-size: 0.85rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}
.lp-footer__col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lp-footer__col ul {
  list-style: none;
  padding: 0;
}
.lp-footer__col li {
  margin-bottom: 10px;
}
.lp-footer__col a {
  font-size: 0.85rem;
  color: var(--lp-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lp-footer__col a:hover {
  color: var(--accent);
}
.lp-footer__bottom {
  max-width: 1140px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--lp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-footer__copy {
  font-size: 0.8rem;
  color: var(--lp-text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .lp-nav {
    padding: 12px 16px;
  }
  .lp-btn--lg {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .lp-hero {
    padding: 100px 16px 40px;
  }
  .lp-stats {
    flex-direction: column;
    align-items: center;
  }
  .lp-stat {
    width: 100%;
    max-width: 300px;
  }
  .lp-section {
    padding: 60px 16px;
  }
  .lp-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .lp-step {
    max-width: 100%;
  }
  .lp-step::after {
    display: none;
  }
  .lp-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .lp-footer__inner {
    grid-template-columns: 1fr;
  }
  .lp-feat__grid {
    grid-template-columns: 1fr;
  }
}
