/* Landing page ("/") — dark split layout matching the admin login; self-contained, same brand tokens as the admin UI */
:root {
  --lp-purple: #3d2a67;
  --lp-purple-700: #2f2052;
  --lp-purple-50: #f1eef8;
  --lp-green: #34ba62;
  --lp-green-700: #2a9a50;
  --lp-green-50: #e8f7ee;
  --lp-blue: #2f6fed;
  --lp-blue-50: #e9f0ff;
  --lp-ink: #1f2433;
  --lp-text: #3b4256;
  --lp-muted: #6b7388;
  --lp-line: #e4e7ef;
  --lp-bg: #f7f8fc;
  --lp-radius: 12px;
  --lp-shadow: 0 1px 2px rgba(31, 36, 51, .06), 0 8px 24px rgba(31, 36, 51, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.lp-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lp-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.lp-body img { max-width: 100%; }
.lp-body a { text-decoration: none; }
.lp-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.lp-skip { position: absolute; left: -999px; top: 8px; background: var(--lp-green); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.lp-skip:focus { left: 8px; }

/* Dark shell (header + hero) */
.lp-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(110, 72, 184, .55), transparent 60%),
    radial-gradient(760px 520px at 100% 100%, rgba(52, 186, 98, .42), transparent 62%),
    linear-gradient(135deg, #2c1656 0%, #231046 55%, #1d0d3b 100%);
}
.lp-shell > main { flex: 1 1 auto; display: flex; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(35, 16, 70, .82); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.lp-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.lp-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.lp-brand img { display: block; height: 44px; width: auto; }
.lp-nav { flex: 1 1 auto; }
.lp-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 16px; padding: 0; }
.lp-nav__list a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .78); transition: background .15s, color .15s; }
.lp-nav__list a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lp-nav__list a.is-active { color: #fff; font-weight: 600; }
.lp-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.lp-btn--sm { padding: 9px 16px; font-size: 14px; }
.lp-btn--block { display: flex; width: 100%; min-height: 54px; font-size: 16px; }
.lp-btn--green { background: var(--lp-green); color: #fff; box-shadow: 0 4px 14px rgba(52, 186, 98, .35); }
.lp-btn--green:hover { background: var(--lp-green-700); color: #fff; box-shadow: 0 8px 20px rgba(52, 186, 98, .4); transform: translateY(-1px); }
.lp-btn:focus-visible, .lp-nav a:focus-visible, .lp-toggle:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.lp-icon { flex-shrink: 0; }

/* Mobile toggle */
.lp-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: rgba(255, 255, 255, .08); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.lp-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* Hero */
.lp-hero { width: 100%; display: flex; align-items: center; }
.lp-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.lp-title { margin: 0 0 18px; font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; color: #fff; max-width: 620px; }
.lp-lead { margin: 0 0 32px; max-width: 520px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.lp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-points li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: rgba(255, 255, 255, .92); }
.lp-check { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lp-green); color: #fff; flex-shrink: 0; }

/* Right-hand card */
.lp-panel { background: #fff; color: var(--lp-text); border-radius: 24px; padding: 40px; box-shadow: 0 24px 60px rgba(8, 3, 24, .45); }
.lp-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--lp-purple-50); color: var(--lp-purple); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-panel__title { margin: 22px 0 10px; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; color: var(--lp-ink); }
.lp-panel__text { margin: 0 0 28px; font-size: 16px; line-height: 1.65; color: var(--lp-muted); }

/* Flash messages (reused partial) */
.lp-panel .alert { margin: 0 0 20px; padding: 12px 40px 12px 16px; border-radius: 10px; font-size: 14px; position: relative; border: 1px solid transparent; }
.lp-panel .alert-success { background: var(--lp-green-50); color: #1f7a3f; border-color: #c4ebd2; }
.lp-panel .alert-danger { background: #fdecec; color: #a12a2f; border-color: #f6c9cb; }
.lp-panel .alert-warning { background: #fff4de; color: #8a5a00; border-color: #f4dba5; }
.lp-panel .alert ul { margin: 0; padding-left: 18px; }
.lp-panel .close { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 20px; line-height: 1; color: inherit; cursor: pointer; }
.lp-panel .box, .lp-panel .box-tools { margin: 0; padding: 0; }

/* Features */
.lp-features { padding: 80px 0 88px; background: var(--lp-bg); }
.lp-section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.lp-section-head h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--lp-ink); }
.lp-section-head p { margin: 0; color: var(--lp-muted); font-size: 17px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-card { padding: 28px; background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); transition: box-shadow .2s, transform .2s, border-color .2s; }
.lp-card:hover { box-shadow: var(--lp-shadow); transform: translateY(-2px); border-color: #d6daea; }
.lp-card h3 { margin: 18px 0 6px; font-size: 19px; font-weight: 600; color: var(--lp-ink); }
.lp-card p { margin: 0; font-size: 15px; color: var(--lp-muted); }
.lp-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; }
.lp-card__icon--purple { background: var(--lp-purple-50); color: var(--lp-purple); }
.lp-card__icon--blue { background: var(--lp-blue-50); color: var(--lp-blue); }
.lp-card__icon--green { background: var(--lp-green-50); color: #1f7a3f; }

/* Footer */
.lp-footer { padding: 24px 0; background: #1d0d3b; color: rgba(255, 255, 255, .75); font-size: 14px; }
.lp-footer p { margin: 0; text-align: center; }

/* Tablet */
@media (max-width: 991px) {
  .lp-toggle { display: inline-flex; }
  .lp-header__inner { flex-wrap: wrap; gap: 0 12px; min-height: 64px; }
  .lp-nav { order: 3; flex-basis: 100%; display: none; padding: 4px 0 14px; }
  .lp-nav.is-open { display: block; }
  .lp-nav__list { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
  .lp-nav__list a { padding: 12px 14px; }
  .lp-hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .lp-title { font-size: 42px; }
  .lp-panel { padding: 32px; max-width: 560px; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-card:last-child { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 575px) {
  .lp-container { padding-left: 16px; padding-right: 16px; }
  .lp-brand img { height: 36px; }
  .lp-header__inner { min-height: 60px; }
  .lp-hero__inner { padding-top: 36px; padding-bottom: 44px; gap: 32px; }
  .lp-title { font-size: 33px; }
  .lp-lead { font-size: 17px; margin-bottom: 24px; }
  .lp-points li { font-size: 16px; }
  .lp-panel { padding: 24px; border-radius: 18px; }
  .lp-panel__title { font-size: 26px; }
  .lp-features { padding: 52px 0 56px; }
  .lp-section-head h2 { font-size: 26px; }
  .lp-grid { grid-template-columns: 1fr; gap: 16px; }
  .lp-card:last-child { grid-column: auto; }
  .lp-card { padding: 22px; }
}
@media (max-width: 360px) {
  .lp-header__actions .lp-btn--sm { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-btn, .lp-card { transition: none; }
}
