/* BMO landing v3 — loaded after theme.css on public pages only.
   Design language: near-black, starfield, floating pill nav, huge centered
   type with gradient keywords, pill CTAs, glass showcase window. */

body.landing-v3 {
  background: #060709;
  overflow-x: clip;
}

body.landing-v3::before {
  /* soften the default theme glow — the starfield carries the atmosphere */
  opacity: 0.5;
}

/* ---------- starfield ---------- */
.lp-stars,
.lp-stars::before,
.lp-stars::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  content: '';
}

.lp-stars {
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 68% 8%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 84% 46%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 34% 64%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 52% 34%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 8% 78%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 92% 82%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 45% 91%, rgba(255, 255, 255, 0.3), transparent);
  animation: lpTwinkle 7s ease-in-out infinite alternate;
}

.lp-stars::before {
  background-image:
    radial-gradient(1px 1px at 24% 12%, rgba(185, 190, 255, 0.4), transparent),
    radial-gradient(1px 1px at 78% 28%, rgba(185, 190, 255, 0.3), transparent),
    radial-gradient(1px 1px at 15% 48%, rgba(185, 190, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 61% 72%, rgba(185, 190, 255, 0.3), transparent),
    radial-gradient(1px 1px at 88% 64%, rgba(185, 190, 255, 0.25), transparent),
    radial-gradient(1px 1px at 39% 82%, rgba(185, 190, 255, 0.3), transparent);
  animation: lpTwinkle 9s 1.2s ease-in-out infinite alternate-reverse;
}

@keyframes lpTwinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-stars,
  .lp-stars::before { animation: none; }
}

body.landing-v3 main,
body.landing-v3 header,
body.landing-v3 footer {
  position: relative;
  z-index: 1;
}

/* ---------- floating pill nav ---------- */
.lp-nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 14px 16px 0;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(18, 19, 26, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 14px 4px 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lp-nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.lp-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.lp-nav .landing-nav-btn,
.lp-nav .landing-nav-account {
  margin-left: 6px;
}

@media (max-width: 640px) {
  .lp-nav-link.lp-nav-optional { display: none; }
}

/* ---------- hero ---------- */
.lp-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 24px 40px;
  text-align: center;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  margin-bottom: 26px;
}

.lp-hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 22px;
}

.lp-grad {
  background: linear-gradient(100deg, #8b95ff 5%, #a78bfa 50%, #f472b6 95%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 7s ease-in-out infinite alternate;
}

.lp-lead {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

.lp-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
    background 0.18s, border-color 0.18s;
}

.lp-btn-primary {
  color: #fff;
  background: linear-gradient(115deg, var(--accent), #7c6cf0);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px var(--accent-glow);
}

.lp-btn-ghost {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.lp-cta-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- dashboard showcase window ---------- */
.lp-window-wrap {
  max-width: 980px;
  margin: 54px auto 0;
  padding: 0 24px;
  perspective: 1400px;
}

.lp-window {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 18, 24, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(88, 101, 242, 0.12);
  overflow: hidden;
  transform: rotateX(4deg);
  transform-origin: 50% 0;
}

@media (prefers-reduced-motion: reduce) {
  .lp-window { transform: none; }
}

.lp-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.lp-window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.lp-window-dot:nth-child(1) { background: #f2555a; }
.lp-window-dot:nth-child(2) { background: #f0b232; }
.lp-window-dot:nth-child(3) { background: #3ba55d; }

.lp-window-url {
  margin-left: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.lp-window-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 340px;
}

.lp-mock-side {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.015);
}

.lp-mock-side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lp-mock-side-item.is-active {
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 600;
}

.lp-mock-side-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 10px 2px;
}

.lp-mock-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.lp-mock-progress {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(88, 101, 242, 0.05);
}

.lp-mock-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.lp-mock-progress-head span:last-child { color: var(--accent-hover); }

.lp-mock-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.lp-mock-track > span {
  display: block;
  height: 100%;
  width: 71%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--purple));
}

.lp-mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lp-mock-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.02);
}

.lp-mock-stat b {
  display: block;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.lp-mock-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lp-mock-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.015);
}

.lp-mock-pill {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.lp-mock-pill.on { background: rgba(59, 165, 93, 0.16); color: #58c07a; }
.lp-mock-pill.off { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

@media (max-width: 700px) {
  .lp-window-body { grid-template-columns: 1fr; }
  .lp-mock-side { display: none; }
  .lp-mock-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- stats band ---------- */
.lp-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 64px;
  max-width: 900px;
  margin: 74px auto 0;
  padding: 0 24px;
  text-align: center;
}

.lp-stat b {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(100deg, #8b95ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- centered section headings ---------- */
.lp-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.lp-section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.lp-section-head p {
  color: var(--text-secondary);
  line-height: 1.6;
}

body.landing-v3 .landing-modules { margin-top: 110px; }
body.landing-v3 .landing-faq { margin-top: 110px; }
body.landing-v3 .landing-steps { margin-top: 110px; }
body.landing-v3 .landing-cta-band { margin-top: 110px; }

/* ---------- footer columns ---------- */
.lp-footer {
  margin-top: 110px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
  padding: 46px 24px 30px;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  max-width: 1040px;
  margin: 0 auto;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.lp-footer-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
}

.lp-footer-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.lp-footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-footer-col a:hover { color: var(--text-primary); }

.lp-footer-base {
  max-width: 1040px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* three-steps list: centered with the rest of the page */
body.landing-v3 .landing-steps-list {
  margin-left: auto;
  margin-right: auto;
}
