/* ============================================================================
   crytra — landing page (the signed-out #connect view at /)
   Additive, loaded after styles.css + terminal.css. Reuses the base palette
   tokens (--bg/--panel/--line/--text/--muted/--accent/--primary) and the
   --up/--down vars from terminal.css. All classes namespaced .lp-.
   ============================================================================ */

html { scroll-behavior: smooth; }

.lp {
  --lp-max: 1100px;
  --lp-radius: 16px;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Ambient background glow */
.lp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 75% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(50rem 36rem at 5% 8%, rgba(110, 231, 160, 0.10), transparent 55%),
    var(--bg);
}

/* ---- Nav ---- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.lp-nav-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lp-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.lp-dot { color: var(--accent); }
.lp-nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: 1rem;
}
.lp-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.lp-nav-links a:hover { color: var(--text); }
.lp-nav .lp-btn-sm { margin-left: auto; }

/* ---- Buttons ---- */
.lp-btn {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #07122e;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(91, 140, 255, 0.35); }
.lp-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.lp-btn-sm { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.lp-btn-lg { padding: 0.85rem 1.6rem; font-size: 1.02rem; }
.lp-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.lp-btn-ghost:hover { border-color: var(--muted); box-shadow: none; }

/* ---- Hero ---- */
.lp-hero {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2rem, 5vw, 4rem);
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.lp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.lp-title {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  font-weight: 800;
}
.lp-grad {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 34rem;
  margin: 0 0 1.8rem;
}
.lp-cta-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.lp-err { min-height: 1.2em; margin: 0.9rem 0 0; }
.lp-fineprint { color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0; max-width: 32rem; }

/* Hero chart card */
.lp-hero-art { min-width: 0; }
.lp-chart-card {
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 80%, #000));
  border: 1px solid var(--line);
  border-radius: var(--lp-radius);
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lp-chart-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.lp-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
}
.lp-chip-up { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.lp-chart { display: block; width: 100%; height: auto; border-radius: 10px; }

/* ---- Generic section ---- */
.lp-section {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}
.lp-section-tight { padding-top: 1rem; }
.lp-h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 0.6rem;
}
.lp-sub {
  color: var(--muted);
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
  line-height: 1.6;
}

/* ---- Feature grid ---- */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.lp-feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.lp-ico { font-size: 1.7rem; margin-bottom: 0.7rem; line-height: 1; }
.lp-feature h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.lp-feature p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ---- Exchanges ---- */
.lp-venues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.lp-venue {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
}

/* ---- Paper / Live ---- */
.lp-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.lp-mode {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
}
.lp-mode h3 { margin: 0.9rem 0 0.5rem; font-size: 1.2rem; }
.lp-mode p { margin: 0; color: var(--muted); line-height: 1.6; }
.lp-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.lp-badge-paper { color: var(--accent); background: var(--accent-bg); }
.lp-badge-live { color: #ffd479; background: #3a3318; }

.lp-note {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  max-width: 44rem;
  margin: 2rem auto 0;
  line-height: 1.6;
}

/* ---- Final CTA + footer ---- */
.lp-final {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.lp-final .lp-sub { margin-bottom: 1.8rem; }
.lp-footer {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.lp-foot-note { color: var(--muted); font-size: 0.85rem; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-art { order: -1; }
  .lp-grid, .lp-grid-3 { grid-template-columns: 1fr 1fr; }
  .lp-modes { grid-template-columns: 1fr; }
  .lp-nav-links { display: none; }
}
@media (max-width: 560px) {
  .lp-grid, .lp-grid-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-btn:hover, .lp-feature:hover { transform: none; }
}
