/* TrapShield public landing page (app/templates/landing.html).
 * Loaded after style.css; reuses its tokens and the .reveal interaction
 * layer, and adds the full-bleed video hero and its section styles. */

.lp {
  --lp-cyan: #3fd6ff;
  --lp-cyan-2: #1fb6e8;
  --lp-bg: #050a14;
  --lp-line: rgba(120, 180, 230, 0.16);
  position: relative;
  background: var(--lp-bg);
  color: var(--text);
  overflow-x: clip;
}
body.landing-body { background: var(--lp-bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { body.landing-body { scroll-behavior: auto; } }
.lp section[id], .lp [id="top"] { scroll-margin-top: 76px; }

/* ---- Logo ---- */
.lp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-logo img { width: 30px; height: 30px; flex-shrink: 0; }
.lp-logo-word { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.lp-logo-word span { color: var(--lp-cyan); }
.lp-logo-sm img { width: 24px; height: 24px; }
.lp-logo-sm .lp-logo-word { font-size: 16px; }

/* ---- Nav ---- */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(16px, 3vw, 40px);
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.lp-nav.is-scrolled {
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--lp-line);
}
.lp-nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.lp-nav-links a {
  position: relative; padding: 6px 0;
  font-size: 14px; font-weight: 500; color: #c9d4e6; text-decoration: none;
  transition: color .2s ease;
}
.lp-nav-links a:hover, .lp-nav-links a.is-active { color: #fff; }
.lp-nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  border-radius: 2px; background: var(--lp-cyan); box-shadow: 0 0 10px var(--lp-cyan);
}
.lp-nav-signin-mobile { display: none; }
.lp-nav-right { display: flex; align-items: center; gap: 10px; }
.lp-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--lp-line); color: #fff;
}

/* ---- Buttons ---- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.lp-btn:focus-visible { outline: 2px solid var(--lp-cyan); outline-offset: 3px; }
.lp-btn-primary {
  color: #04121c;
  background: linear-gradient(180deg, #4fdcff 0%, var(--lp-cyan-2) 100%);
  box-shadow: 0 8px 28px -8px rgba(63, 214, 255, 0.65);
}
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(63, 214, 255, 0.85); }
.lp-btn-primary svg { transition: transform .2s var(--ease); }
.lp-btn-primary:hover svg { transform: translateX(3px); }
.lp-btn-outline {
  color: #fff; background: rgba(5, 10, 20, 0.45);
  border: 1px solid rgba(220, 235, 255, 0.55);
}
.lp-btn-outline svg { color: var(--lp-cyan); }
.lp-btn-outline:hover { border-color: var(--lp-cyan); background: rgba(63, 214, 255, 0.08); }
.lp-btn-pill {
  padding: 10px 20px; border-radius: 999px; font-size: 14px;
  color: #fff; background: rgba(5, 10, 20, 0.35); border: 1px solid rgba(220, 235, 255, 0.4);
}
.lp-btn-pill:hover { border-color: var(--lp-cyan); }

/* ---- Hero ---- */
.lp-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px clamp(16px, 3.5vw, 40px) 120px;
  isolation: isolate;
}
.lp-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--lp-bg); }
.lp-hero-video {
  position: absolute; top: 0; right: 0; height: 100%; width: 72%;
  object-fit: cover; object-position: 30% 40%;
}
.lp-hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--lp-bg) 26%, rgba(5, 10, 20, 0.86) 40%, rgba(5, 10, 20, 0.35) 62%, rgba(5, 10, 20, 0.25) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.55) 0%, rgba(5, 10, 20, 0) 18%, rgba(5, 10, 20, 0) 70%, var(--lp-bg) 100%);
}
.lp-hero-inner { width: 100%; max-width: 1280px; margin: 0 auto; }
.lp-hero-copy { max-width: 720px; }
.lp-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: #9fb0c8; margin-bottom: 26px;
}
.lp-eyebrow::before { content: ""; width: 2px; height: 14px; background: var(--lp-cyan); box-shadow: 0 0 8px var(--lp-cyan); }
.lp-hero h1 {
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; font-weight: 700;
  letter-spacing: -0.025em; color: #fff; margin: 0 0 24px;
}
.lp-accent {
  background: linear-gradient(90deg, #3fd6ff, #2aa8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead { font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; color: #c3cee0; max-width: 540px; margin: 0 0 36px; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.lp-scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--lp-cyan);
  text-decoration: none;
}
.lp-scroll-cue-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; color: #fff;
  border: 1px solid rgba(220, 235, 255, 0.4);
  animation: lp-bob 2.2s ease-in-out infinite;
}
.lp-scroll-cue:hover .lp-scroll-cue-btn { border-color: var(--lp-cyan); }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .lp-scroll-cue-btn { animation: none; } }

/* ---- Sections ---- */
.lp-container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.lp-section { padding: 72px 0; }
.lp-section-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }
.lp-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--lp-cyan); margin-bottom: 12px;
}
.lp-section-head h2, .lp-contact h2 {
  font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: #fff; margin: 0 0 12px;
}
.lp-section-head p, .lp-contact p { font-size: 15px; line-height: 1.7; color: #93a3bf; margin: 0; }

.lp-card {
  background: linear-gradient(180deg, rgba(18, 30, 52, 0.7), rgba(10, 18, 34, 0.7));
  border: 1px solid var(--lp-line); border-radius: 14px; padding: 24px;
  transition: border-color .2s ease, transform .2s var(--ease);
}
.lp-card:hover { border-color: rgba(63, 214, 255, 0.4); transform: translateY(-2px); }
.lp-card h3 { font-size: 16px; font-weight: 650; color: #fff; margin: 0 0 8px; }
.lp-card p { font-size: 14px; line-height: 1.65; color: #93a3bf; margin: 0; }
.lp-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(63, 214, 255, 0.1); border: 1px solid rgba(63, 214, 255, 0.25); color: var(--lp-cyan);
}
.lp-card-icon svg { width: 19px; height: 19px; }
.lp-step-num { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--lp-cyan); margin-bottom: 14px; }

.lp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--lp-line); border: 1px solid var(--lp-line); border-radius: 14px; overflow: hidden;
  margin-top: 8px;
}
.lp-stat { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #08111f; }
.lp-stat svg { width: 22px; height: 22px; color: var(--lp-cyan); flex-shrink: 0; margin-top: 4px; }
.lp-stat strong { display: block; font-size: 24px; font-weight: 700; color: #fff; }
.lp-stat span { font-size: 13px; color: #93a3bf; }

.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.lp-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.lp-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 36px; border-radius: 18px;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(63, 214, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(18, 30, 52, 0.85), rgba(10, 18, 34, 0.85));
  border: 1px solid rgba(63, 214, 255, 0.28);
}
.lp-contact > div:first-child { max-width: 560px; }
.lp-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-footer {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 34px 0 44px; border-top: 1px solid var(--lp-line);
}
.lp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.lp-footer-links a { font-size: 13.5px; color: #93a3bf; text-decoration: none; }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-note { font-size: 12px; line-height: 1.6; color: #66779a; text-align: right; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .lp-menu-btn { display: inline-flex; }
  .lp-nav-right .lp-btn-pill { display: none; }
  .lp-nav-links {
    display: none; position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: #08101e; border: 1px solid var(--lp-line); border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  }
  .lp-nav-links.is-open { display: flex; }
  .lp-nav-links a { padding: 12px 14px; border-radius: 8px; }
  .lp-nav-links a.is-active::after { display: none; }
  .lp-nav-links a.is-active { background: rgba(63, 214, 255, 0.08); }
  .lp-nav-signin-mobile { display: block; color: var(--lp-cyan) !important; }
  .lp-nav.menu-open { background: rgba(5, 10, 20, 0.95); }
  .lp-hero-video { width: 100%; opacity: 0.55; }
  .lp-hero-shade {
    background: linear-gradient(180deg, rgba(5, 10, 20, 0.6) 0%, rgba(5, 10, 20, 0.55) 60%, var(--lp-bg) 100%);
  }
  .lp-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .lp-footer-note { text-align: center; }
}
@media (max-width: 520px) {
  .lp-cta-row .lp-btn, .lp-contact-actions .lp-btn { flex: 1 1 100%; }
  .lp-contact { padding: 26px 20px; }
  .lp-features { grid-template-columns: 1fr; }
}
.lp-inline-link, .lp-footer-note a { color: var(--lp-cyan); text-decoration: none; }
.lp-inline-link:hover, .lp-footer-note a:hover { text-decoration: underline; }
