/* ─────────────────────────────────────────
   Marketing-style top navigation + button
   primitives. Loaded by:
   - index.php  (landing page)
   - privacy.php / terms.php  (public legal pages)
   Depends on phantom-theme.css for CSS vars
   (--ph-text, --ph-accent, --ph-text-muted, ...).
   ───────────────────────────────────────── */

/* ── Top nav ─────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(0, 229, 212, 0.14);
}
.lp-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lp-brand { display: flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; }
.lp-brand:hover { color: inherit; }
.lp-brand-mark { width: 36px; height: 36px; flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(0, 229, 212, 0.35));
}
.lp-brand-mark .scan-sweep { transform-origin: 24px 24px;
  animation: lp-brand-sweep 3.6s cubic-bezier(.55,.1,.25,1) infinite; }
.lp-brand-mark .scan-dot   { transform-origin: 24px 24px;
  animation: lp-brand-dot   3.6s cubic-bezier(.55,.1,.25,1) infinite; }
@keyframes lp-brand-sweep {
  0%   { transform: rotate(-55deg); opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { transform: rotate(55deg);  opacity: 0.9; }
  65%  { opacity: 0; }
  100% { transform: rotate(-55deg); opacity: 0; }
}
@keyframes lp-brand-dot {
  0%, 100% { opacity: 0; }
  45%, 55% { opacity: 1; }
}
.lp-brand-title { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  line-height: 1.1; color: var(--ph-text); }
.lp-brand-title .brand-accent { color: var(--ph-accent); }
.lp-brand-sub { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ph-text-muted); line-height: 1.1; margin-top: 2px; }

.lp-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.lp-nav-links a.lp-link {
  color: var(--ph-text-muted); font-size: 0.92rem; font-weight: 500;
  transition: color 0.18s; text-decoration: none;
}
.lp-nav-links a.lp-link:hover { color: var(--ph-text); }

.lp-nav-cta { display: flex; align-items: center; gap: 0.5rem; }

/* ── Buttons (used by nav CTA + landing hero) ── */
.lp-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: 8px; font-weight: 600; font-size: 0.92rem;
  padding: 0.5rem 1rem; line-height: 1.2; border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  text-decoration: none; cursor: pointer;
  /* Keep "Log out" / "Dashboard" labels on a single line — without this, a
     squeezed mobile viewport wraps the text inside a single button. */
  white-space: nowrap;
}
.lp-btn-ghost {
  color: var(--ph-text); border-color: rgba(232, 232, 240, 0.2); background: transparent;
}
.lp-btn-ghost:hover { color: var(--ph-text); border-color: rgba(232, 232, 240, 0.45); background: rgba(232, 232, 240, 0.06); }
.lp-btn-primary {
  background: linear-gradient(135deg, #22f5e2 0%, #00b8ab 100%);
  color: #0d0d12; border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 229, 212, 0.28);
}
.lp-btn-primary:hover {
  color: #0d0d12; transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 229, 212, 0.42);
}
.lp-btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ── Narrow-viewport stacking ──────────────────────────────────────────────
   Below ~480px (small phones in portrait) brand + Dashboard + Log out can no
   longer fit on a single row. Wrap the nav-inner so the brand takes its own
   row and the CTA buttons drop to a second row, right-aligned to mirror the
   desktop layout. flex-wrap is enabled here only — the desktop default stays
   single-row. */
@media (max-width: 480px) {
  .lp-nav-inner { flex-wrap: wrap; row-gap: 0.5rem; }
  .lp-brand     { flex: 0 0 100%; }
  .lp-nav-cta   { flex: 0 0 100%; justify-content: flex-end; }
}
