﻿/* ==========================================================================
   LeadLine — Marketing landing page ("Signal")
   Used only by Views/Shared/_LandingLayout.cshtml.

   Self-contained on purpose: this file does NOT depend on bootstrap.min.css
   or leadline.css, so the signed-out landing page can't be broken by changes
   to the in-app design system. All classes are prefixed --lp-/.lp- so
   nothing here can collide with the app.
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --lp-navy:     #1e2a45;
  --lp-navy-dk:  #131c31;
  --lp-navy-lt:  #253356;
  --lp-accent:   #f97316;
  --lp-accent-dk:#ea6c05;
  --lp-blue:     #2563eb;
  --lp-ink:      #0f1728;
  --lp-line:     rgba(255,255,255,.10);
  --lp-line2:    rgba(255,255,255,.18);
  --lp-fg:       #eef1f8;
  --lp-dim:      #9aa6bf;
  --lp-dim2:     #6b7a99;
  --lp-radius:   10px;

  --lp-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --lp-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', 'Consolas', monospace;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.lp-body {
  background: var(--lp-ink);
  color: var(--lp-fg);
  font-family: var(--lp-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Bare element selector on purpose: this file is loaded only by _LandingLayout,
   and keeping it at low specificity lets .lp-btn-* set their own colors. */
a { color: inherit; text-decoration: none; }

.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 3px; border-radius: 4px; }

/* ── Brand + buttons ─────────────────────────────────────────────────────── */
.lp-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -.02em;
}
.lp-mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--lp-accent);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--lp-mono); font-weight: 500; font-size: 13px; letter-spacing: .02em;
  padding: 11px 20px; border-radius: var(--lp-radius);
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
}
.lp-btn-accent { background: var(--lp-accent); color: #fff; }
.lp-btn-accent:hover { background: var(--lp-accent-dk); transform: translateY(-1px); }
.lp-btn-ghost { border-color: var(--lp-line2); color: var(--lp-fg); }
.lp-btn-ghost:hover { border-color: var(--lp-fg); background: rgba(255,255,255,.04); }
.lp-btn-lg { padding: 15px 28px; font-size: 14px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,40,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-nav-in {
  max-width: 1120px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; gap: 18px;
}
.lp-nav-sp { flex: 1; }
.lp-link { font-family: var(--lp-mono); font-size: 12.5px; color: var(--lp-dim); padding: 8px 2px; }
.lp-link:hover { color: var(--lp-fg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: 104px 0 0; text-align: center; }
.lp-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--lp-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lp-dim); border: 1px solid var(--lp-line); border-radius: 999px; padding: 6px 14px;
}
.lp-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent); animation: lp-blip 1.8s infinite; }
@keyframes lp-blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.lp-hero h1 { margin-top: 26px; font-weight: 700; font-size: clamp(40px, 7vw, 80px); line-height: .98; letter-spacing: -.045em; }
.lp-hero h1 em { font-style: normal; color: var(--lp-accent); }
.lp-sub { margin: 22px auto 0; max-width: 56ch; color: var(--lp-dim); font-size: 17px; }
.lp-cta-row { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.lp-cta-note { width: 100%; font-family: var(--lp-mono); font-size: 12.5px; color: var(--lp-dim2); }

/* ── Signature: the line ─────────────────────────────────────────────────── */
.lp-line-wrap {
  position: relative; margin-top: 64px; height: 220px; overflow: hidden;
  width: 100vw; margin-left: calc(-50vw + 50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lp-line { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; }
.lp-line b { display: block; width: 3px; border-radius: 2px; background: var(--lp-navy-lt); transform-origin: center; animation: lp-wave 1.6s ease-in-out infinite; }
.lp-line b.on { background: var(--lp-accent); }
@keyframes lp-wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.lp-line-rule { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--lp-line); }
.lp-line-tag {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px;
  font-family: var(--lp-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-dim2);
}

/* ── What it handles ─────────────────────────────────────────────────────── */
.lp-rows { margin-top: 96px; border-top: 1px solid var(--lp-line); }
.lp-row {
  display: grid; grid-template-columns: 150px 1fr 1.15fr; gap: 28px;
  padding: 30px 4px; border-bottom: 1px solid var(--lp-line); align-items: start; transition: background .2s;
}
.lp-row:hover { background: rgba(255,255,255,.02); }
.lp-row-k { font-family: var(--lp-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-accent); padding-top: 5px; }
.lp-row h3 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.lp-row p { color: var(--lp-dim); font-size: 15px; }

/* ── Product shot ────────────────────────────────────────────────────────── */
.lp-shot { margin-top: 96px; }
.lp-shot-img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--lp-line2); border-radius: 14px; background: #16203a;
}
.lp-cap { margin-top: 14px; text-align: center; font-family: var(--lp-mono); font-size: 12px; color: var(--lp-dim2); }

/* ── Close ───────────────────────────────────────────────────────────────── */
.lp-close { margin-top: 112px; padding: 80px 0 0; border-top: 1px solid var(--lp-line); text-align: center; }
.lp-close h2 { font-weight: 700; font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -.035em; line-height: 1.04; }
.lp-close p { margin: 16px auto 30px; color: var(--lp-dim); max-width: 48ch; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lp-footer {
  margin-top: 88px; border-top: 1px solid var(--lp-line); padding: 26px 0 52px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-family: var(--lp-mono); font-size: 12px; color: var(--lp-dim2);
}
.lp-footer a:hover { color: var(--lp-fg); }

/* ── Legal / document pages ──────────────────────────────────────────────── */
.lp-legal { max-width: 72ch; margin: 0 auto; padding-top: 88px; }
.lp-legal-k {
  font-family: var(--lp-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lp-accent);
}
.lp-legal h1 {
  margin-top: 12px; font-weight: 700; font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -.035em; line-height: 1.06;
}
.lp-legal-meta {
  margin-top: 14px; font-family: var(--lp-mono); font-size: 12px; color: var(--lp-dim2);
}
/* Draft banner — delete this rule when the real copy lands. */
.lp-legal-note {
  margin-top: 28px; padding: 14px 18px; border: 1px solid var(--lp-line2);
  border-left: 3px solid var(--lp-accent); border-radius: var(--lp-radius);
  background: rgba(249,115,22,.06); color: var(--lp-dim); font-size: 14.5px;
}
.lp-legal h2 {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--lp-line);
  font-weight: 700; font-size: 20px; letter-spacing: -.02em;
}
.lp-legal p, .lp-legal li { margin-top: 12px; color: var(--lp-dim); font-size: 15px; }
.lp-legal ul { margin-top: 6px; padding-left: 20px; }
.lp-legal li { padding-left: 4px; }
.lp-legal li::marker { color: var(--lp-dim2); }
.lp-legal a { color: var(--lp-fg); text-decoration: underline; text-underline-offset: 3px; }
.lp-legal a:hover { color: var(--lp-accent); }
.lp-legal strong { color: var(--lp-fg); font-weight: 500; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .lp-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .lp-row-k { padding-top: 0; }
  .lp-line-wrap { height: 150px; }
  .lp-nav .lp-link { display: none; }
  .lp-hero { padding-top: 64px; }
  .lp-legal { padding-top: 60px; }

  /* Footer: brand alone on row one, the rest wraps onto row two. */
  .lp-footer { row-gap: 14px; column-gap: 12px; }
  .lp-footer .lp-brand { flex: 0 0 100%; }
  .lp-footer .lp-nav-sp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-body *, .lp-body *::before, .lp-body *::after { animation: none !important; transition: none !important; }
  .lp-line b { transform: scaleY(.6); }
}
