/* Public marketing landing page — a fully self-contained dark theme,
   independent of the authenticated app's theme.css (light or admin-dark),
   so it doesn't inherit or fight either one. */

.landing {
  --lp-bg: #06070b;
  --lp-surface: #0e1017;
  --lp-surface-2: #12141d;
  --lp-border: rgba(255, 255, 255, 0.09);
  --lp-border-strong: rgba(255, 255, 255, 0.16);
  --lp-text: #f4f5f8;
  --lp-text-2: #a6acbb;
  --lp-text-3: #6d7386;
  --lp-violet: #7c6ff2;
  --lp-cyan: #22d3ee;
  --lp-emerald: #34d399;
  --lp-gradient: linear-gradient(100deg, var(--lp-violet), var(--lp-cyan) 60%, var(--lp-emerald));
  --lp-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  background: var(--lp-bg);
  color: var(--lp-text);
  position: relative;
  overflow: hidden;
}

body:has(.landing) { background: #06070b; }
.page-content:has(.landing) { padding: 0; gap: 0; }

.landing * { box-sizing: border-box; }
.landing a { color: inherit; }

.landing-glow {
  position: absolute; z-index: 0; border-radius: 999px; filter: blur(90px);
  pointer-events: none;
}
.landing-glow.g1 { width: 520px; height: 520px; top: -180px; left: -120px; background: radial-gradient(circle, rgba(124,111,242,0.35), transparent 70%); }
.landing-glow.g2 { width: 480px; height: 480px; top: 40px; right: -160px; background: radial-gradient(circle, rgba(34,211,238,0.22), transparent 70%); }
.landing-glow.g3 { width: 420px; height: 420px; bottom: -160px; left: 30%; background: radial-gradient(circle, rgba(52,211,153,0.18), transparent 70%); }

.landing-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-border);
}
.landing-nav-brand { display: flex; align-items: center; gap: 10px; }
.landing-nav-mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--lp-gradient); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #06070b;
}
.landing-nav-brand strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.landing-nav-links { display: flex; align-items: center; gap: 28px; }
.landing-nav-links a { font-size: 13.5px; font-weight: 600; color: var(--lp-text-2); }
.landing-nav-links a:hover { color: var(--lp-text); }
.landing-nav-actions { display: flex; align-items: center; gap: 10px; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; padding: 10px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.lp-btn-primary { background: var(--lp-gradient); color: #06070b; }
.lp-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lp-btn-outline { background: transparent; border-color: var(--lp-border-strong); color: var(--lp-text); }
.lp-btn-outline:hover { background: rgba(255,255,255,0.06); }
.lp-btn-lg { padding: 13px 26px; font-size: 14.5px; }

.landing-section { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 96px 40px; }
.landing-section.tight { padding-top: 64px; padding-bottom: 64px; }

.landing-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--lp-text-2);
  background: var(--lp-surface-2); border: 1px solid var(--lp-border);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.landing-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--lp-emerald); flex-shrink: 0; }

.landing-hero { text-align: center; padding-top: 110px; padding-bottom: 40px; }
.landing-hero h1 {
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.025em; margin: 0 0 22px; max-width: 900px; margin-inline: auto;
}
.landing-hero h1 .grad {
  background: var(--lp-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-hero p.lead {
  font-size: 18px; line-height: 1.65; color: var(--lp-text-2);
  max-width: 620px; margin: 0 auto 36px;
}
.landing-hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.landing-hero-note { font-size: 12.5px; color: var(--lp-text-3); margin-bottom: 8px; }

.landing-chip-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.landing-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--lp-text-2);
  background: var(--lp-surface); border: 1px solid var(--lp-border); padding: 7px 14px; border-radius: 999px;
}
.landing-chip .dot { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; }
.landing-chip .dot.v { background: var(--lp-violet); }
.landing-chip .dot.c { background: var(--lp-cyan); }
.landing-chip .dot.e { background: var(--lp-emerald); }

/* Hero dashboard mockup */
.landing-mockup-wrap { position: relative; max-width: 760px; margin: 56px auto 0; padding-bottom: 40px; }
.landing-mockup {
  position: relative; background: var(--lp-surface); border: 1px solid var(--lp-border-strong);
  border-radius: 20px; padding: 22px; box-shadow: var(--lp-shadow);
}
.landing-mockup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.landing-mockup-head .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--lp-text-2); }
.landing-mockup-head .avatar {
  width: 28px; height: 28px; border-radius: 999px; background: var(--lp-gradient);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #06070b;
}
.landing-mockup-streak {
  font-size: 11.5px; font-weight: 700; color: var(--lp-emerald); background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.25); padding: 4px 10px; border-radius: 999px;
}
.landing-mockup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.landing-mockup-tile {
  background: var(--lp-surface-2); border: 1px solid var(--lp-border); border-radius: 13px; padding: 14px;
}
.landing-mockup-tile .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lp-text-3); margin-bottom: 6px; }
.landing-mockup-tile .val { font-size: 19px; font-weight: 800; }
.landing-mockup-tile .sub { font-size: 11px; color: var(--lp-emerald); margin-top: 3px; }
.landing-mockup-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); margin-top: 10px; overflow: hidden; }
.landing-mockup-bar span { display: block; height: 100%; border-radius: 999px; background: var(--lp-gradient); }

.landing-float-card {
  position: absolute; background: var(--lp-surface); border: 1px solid var(--lp-border-strong);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--lp-shadow);
  display: flex; align-items: center; gap: 10px; font-size: 12.5px;
}
.landing-float-card .ic {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.landing-float-card .val { font-size: 15px; font-weight: 800; line-height: 1.1; }
.landing-float-card .lbl { color: var(--lp-text-3); font-size: 10.5px; }
.landing-float-card.fc1 { top: -22px; left: -18px; }
.landing-float-card.fc2 { bottom: -18px; right: -14px; }

/* Section heads */
.landing-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.landing-section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.landing-section-head p { font-size: 15.5px; color: var(--lp-text-2); line-height: 1.6; margin: 0; }

/* Feature grid */
.landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.landing-card {
  background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: 16px;
  padding: 24px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.landing-card:hover { border-color: var(--lp-border-strong); transform: translateY(-2px); }
.landing-card-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.landing-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.landing-card p { font-size: 13.5px; line-height: 1.6; color: var(--lp-text-2); margin: 0; }

.landing-alt { background: var(--lp-surface); border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); }

/* Industries */
.landing-industries { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.landing-industry {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lp-surface-2); border: 1px solid var(--lp-border); border-radius: 999px;
  padding: 11px 18px; font-size: 13.5px; font-weight: 600; color: var(--lp-text);
}
.landing-industry .dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; }

/* Steps */
.landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.landing-step { position: relative; padding-left: 46px; }
.landing-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--lp-gradient); color: #06070b; font-weight: 800; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center;
}
.landing-step h3 { font-size: 15px; font-weight: 700; margin: 4px 0 8px; }
.landing-step p { font-size: 13.5px; color: var(--lp-text-2); line-height: 1.6; margin: 0; }

/* CTA */
.landing-cta {
  text-align: center; border-radius: 24px; padding: 64px 32px; position: relative; overflow: hidden;
  background: var(--lp-surface); border: 1px solid var(--lp-border-strong);
}
.landing-cta::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 220px;
  background: radial-gradient(ellipse at top, rgba(124,111,242,0.28), transparent 70%);
  pointer-events: none;
}
.landing-cta h2 { position: relative; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.landing-cta p { position: relative; color: var(--lp-text-2); font-size: 15px; margin: 0 0 28px; }
.landing-cta .lp-btn { position: relative; }

.landing-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--lp-border);
  padding: 30px 40px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--lp-text-3);
}
.landing-footer a { color: var(--lp-text-2); font-weight: 600; }
.landing-footer a:hover { color: var(--lp-text); }

@media (max-width: 860px) {
  .landing-nav-links { display: none; }
  .landing-mockup-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-float-card { display: none; }
}

@media (max-width: 640px) {
  .landing-nav { padding: 14px 16px; }
  .landing-nav-brand strong { font-size: 13px; white-space: nowrap; }
  .landing-nav-actions { gap: 8px; }
  .landing-nav-actions .lp-btn { padding: 8px 14px; font-size: 12.5px; }
  .landing-section { padding: 64px 20px; }
  .landing-hero { padding-top: 48px; padding-bottom: 24px; }
  .landing-mockup-grid { grid-template-columns: repeat(2, 1fr); }
}
