/* Public landing page (signed-out visitors). Self-contained: system fonts, CSS visuals, no external assets. */
.lp {
  --lp-navy: #0d1f38;
  --lp-navy-2: #16305a;
  --lp-blue: #2a78d6;
  --lp-blue-soft: #e8f1fc;
  --lp-green: #1baf7a;
  --lp-amber: #eda100;
  --lp-red: #d03b3b;
  --lp-ink: #0f172a;
  --lp-ink-2: #475569;
  --lp-line: #e2e8f0;
  --lp-radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--lp-ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}
#login-view:has(.lp) { display: block; padding: 0; background: #fff; min-height: 100vh; }
.lp a { text-decoration: none; }
.lp .container-xl { padding-left: 24px; padding-right: 24px; }
.lp h1, .lp h2, .lp h3 { letter-spacing: -.02em; }
.lp .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-blue); }

/* ---------- Navigation ---------- */
.lp-nav { position: sticky; top: 0; z-index: 30; background: rgba(13, 31, 56, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lp-nav .navbar-brand { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.lp-nav .navbar-brand .bi { font-size: 1.5rem; color: #7fb3ef; }
.lp-nav .nav-link { color: rgba(255, 255, 255, .78); font-weight: 500; }
.lp-nav .nav-link:hover, .lp-nav .nav-link:focus-visible { color: #fff; }
.lp-nav .navbar-toggler { border-color: rgba(255, 255, 255, .3); color: #fff; }
.lp-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: .7rem 1.4rem; font-weight: 600; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: var(--lp-blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(42, 120, 214, .7); }
.lp-btn-primary:hover { background: #1f66bd; color: #fff; }
.lp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lp-btn-light { background: #fff; color: var(--lp-navy); }
.lp-btn-light:hover { color: var(--lp-navy); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }

/* ---------- Hero carousel ---------- */
.lp-hero { position: relative; background: radial-gradient(1200px 600px at 85% -10%, #2a5aa0 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #123a6b 0%, transparent 55%), linear-gradient(160deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%); color: #fff; overflow: hidden; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); pointer-events: none; }
.lp-hero .carousel-item { min-height: clamp(560px, 82vh, 760px); }
.lp-slide { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; min-height: clamp(560px, 82vh, 760px); padding: 72px 0 96px; }
.lp-slide h1, .lp-slide h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.08; font-weight: 800; margin: 14px 0 18px; }
.lp-slide p.lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .8); max-width: 560px; }
.lp-slide .eyebrow { color: #8cc0ff; }
.lp-slide ul.lp-ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 8px; }
.lp-slide ul.lp-ticks li { display: flex; gap: 10px; color: rgba(255, 255, 255, .88); }
.lp-slide ul.lp-ticks .bi { color: var(--lp-green); }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero visuals: miniature product screens */
.lp-visual { position: relative; }
.lp-screen { background: rgba(255, 255, 255, .97); color: var(--lp-ink); border-radius: var(--lp-radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1); padding: 20px; font-size: .9rem; }
.lp-screen .lp-screen-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.lp-screen .lp-screen-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.lp-screen h4 { font-size: .95rem; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--lp-line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.lp-row .bi { font-size: 1.1rem; }
.lp-row small { color: var(--lp-ink-2); display: block; line-height: 1.3; }
.lp-row .lp-grow { flex: 1; min-width: 0; }
.lp-ok { color: var(--lp-green); } .lp-warn { color: var(--lp-amber); } .lp-bad { color: var(--lp-red); }
.lp-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lp-pill.ok { background: #e3f6ee; color: #0b6b47; } .lp-pill.warn { background: #fff4d6; color: #7a5300; } .lp-pill.bad { background: #fde8e8; color: #9b1c1c; } .lp-pill.info { background: var(--lp-blue-soft); color: #1d4f91; }
.lp-score { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.lp-meter { height: 8px; background: #edf2f7; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.lp-meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lp-green), #6fd3a8); }
.lp-meter.risk > i { background: linear-gradient(90deg, var(--lp-amber), var(--lp-red)); }
.lp-float { position: absolute; background: #fff; color: var(--lp-ink); border-radius: 12px; padding: 10px 14px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; animation: lp-bob 6s ease-in-out infinite; }
.lp-float.a { top: -18px; right: -12px; } .lp-float.b { bottom: -22px; right: 28px; animation-delay: -3s; }
@keyframes lp-bob { 50% { transform: translateY(-8px); } }
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 14px; }
.lp-steps div { text-align: center; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--lp-line); font-size: .78rem; font-weight: 600; }
.lp-steps .done { background: #e3f6ee; border-color: #bfe8d5; color: #0b6b47; }
.lp-steps .now { background: var(--lp-blue-soft); border-color: #bcd6f5; color: #1d4f91; }
.lp-chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lp-chain span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; background: #f1f5f9; padding: 4px 8px; border-radius: 6px; }

/* Carousel controls */
.lp-hero .carousel-indicators { z-index: 3; margin-bottom: 28px; gap: 6px; }
.lp-hero .carousel-indicators [data-bs-target] { width: 34px; height: 5px; border-radius: 999px; border: 0; margin: 0; background: rgba(255, 255, 255, .35); opacity: 1; transition: width .25s, background .25s; }
.lp-hero .carousel-indicators .active { width: 56px; background: #fff; }
.lp-hero .carousel-control-prev, .lp-hero .carousel-control-next { z-index: 3; width: 56px; opacity: .7; }
.lp-hero .carousel-control-prev:hover, .lp-hero .carousel-control-next:hover { opacity: 1; }
.lp-hero .carousel-control-prev-icon, .lp-hero .carousel-control-next-icon { width: 2.4rem; height: 2.4rem; background-size: 45%; background-color: rgba(255, 255, 255, .12); border-radius: 50%; }
.lp-play { position: absolute; z-index: 4; right: 24px; bottom: 18px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 12px; font-size: .8rem; }
.lp-play:hover, .lp-play:focus-visible { background: rgba(255, 255, 255, .22); }

/* ---------- Sections ---------- */
.lp-section { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 64px; }
.lp-section.alt { background: #f8fafc; }
.lp-section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.lp-section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; margin: 10px 0 14px; }
.lp-section-head p { color: var(--lp-ink-2); font-size: 1.08rem; }

.lp-stats { background: #fff; border-bottom: 1px solid var(--lp-line); }
.lp-stats .lp-stat { padding: 32px 16px; text-align: center; }
.lp-stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--lp-navy); line-height: 1.1; }
.lp-stat span { color: var(--lp-ink-2); font-size: .92rem; }

.lp-card { height: 100%; background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .35); border-color: #cbd5e1; }
.lp-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 18px; }
.lp-icon.blue { background: var(--lp-blue-soft); color: var(--lp-blue); }
.lp-icon.green { background: #e3f6ee; color: #12895f; }
.lp-icon.amber { background: #fff4d6; color: #9a6a00; }
.lp-icon.red { background: #fde8e8; color: #b42318; }
.lp-icon.violet { background: #efe9fd; color: #6941c6; }
.lp-icon.slate { background: #eef2f6; color: #334155; }
.lp-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.lp-card p { color: var(--lp-ink-2); margin-bottom: 0; }

.lp-module { display: flex; gap: 16px; height: 100%; background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 20px; transition: border-color .2s ease, box-shadow .2s ease; }
.lp-module:hover { border-color: #bcd6f5; box-shadow: 0 16px 32px -24px rgba(42, 120, 214, .6); }
.lp-module .lp-icon { flex: 0 0 44px; width: 44px; height: 44px; font-size: 1.2rem; margin: 0; border-radius: 12px; }
.lp-module h3 { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.lp-module p { color: var(--lp-ink-2); font-size: .92rem; margin: 0; }
.lp-module .lp-tag { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-ink-2); margin-left: 6px; }

.lp-flow { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.lp-flow::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--lp-blue), var(--lp-green)); opacity: .35; }
.lp-flow li { list-style: none; text-align: center; position: relative; }
.lp-flow li::before { counter-increment: step; content: counter(step); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: #fff; border: 2px solid var(--lp-blue); color: var(--lp-blue); font-weight: 800; font-size: 1.2rem; position: relative; z-index: 1; }
.lp-flow h3 { font-size: 1.05rem; font-weight: 700; }
.lp-flow p { color: var(--lp-ink-2); font-size: .95rem; }

.lp-security { background: linear-gradient(160deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%); color: #fff; }
.lp-security .lp-section-head p { color: rgba(255, 255, 255, .75); }
.lp-security .eyebrow { color: #8cc0ff; }
.lp-sec-item { display: flex; gap: 14px; padding: 20px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); height: 100%; }
.lp-sec-item .bi { font-size: 1.4rem; color: #8cc0ff; }
.lp-sec-item h3 { font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: #fff; }
.lp-sec-item p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .92rem; }
.lp-note { color: rgba(255, 255, 255, .6); font-size: .82rem; text-align: center; margin-top: 28px; }

.lp-cta { background: linear-gradient(120deg, var(--lp-blue) 0%, #1d4f91 100%); color: #fff; border-radius: 24px; padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.lp-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 8px; }
.lp-cta p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 560px; }

.lp-footer { background: var(--lp-navy); color: rgba(255, 255, 255, .65); padding: 36px 0; font-size: .9rem; }
.lp-footer a { color: rgba(255, 255, 255, .85); }
.lp-footer a:hover { color: #fff; }

/* ---------- Motion and responsiveness ---------- */
.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lp-reveal { opacity: 1; transform: none; }
}
@media (max-width: 991.98px) {
  .lp-slide { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 100px; text-align: left; }
  .lp-visual { max-width: 520px; width: 100%; }
  .lp-float.a { right: 4px; } .lp-float.b { right: 12px; }
  .lp-flow { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .lp-flow::before { display: none; }
  .lp-nav .navbar-collapse { padding: 12px 0 16px; }
}
@media (max-width: 575.98px) {
  .lp .container-xl { padding-left: 16px; padding-right: 16px; }
  .lp-hero .carousel-control-prev, .lp-hero .carousel-control-next { display: none; }
  .lp-slide { padding: 40px 0 92px; }
  .lp-visual { display: none; }
  .lp-flow { grid-template-columns: 1fr; }
  .lp-cta { text-align: left; }
  .lp-play { right: 16px; }
}
