/* ==========================================================================
   Star Space Future Investor Portal — Landing Page
   Light-mode design system that merges two references:
     • Tesla  — light palette, solid-blue buttons, carousel, animated counters
     • Star Space Future — cinematic full-bleed sections, uppercase display type,
                ghost/outline buttons, minimal nav -> full-screen menu
   Self-contained: the landing page loads ONLY this file (not spacex-theme.css),
   so the authenticated app is unaffected. All components are namespaced .lp-*.
   Original CSS art only — no third-party trademarks or brand photography.
   ========================================================================== */

/* ------------------------------- Tokens --------------------------------- */
:root {
  --lp-bg: #ffffff;
  --lp-surface: #ffffff;
  --lp-surface-2: #f4f4f4;
  --lp-surface-3: #ececee;

  --lp-text: #171a20;        /* headings / near-black */
  --lp-body: #393c41;        /* body copy */
  --lp-muted: #5c5e62;       /* captions / muted */
  --lp-faint: #8a8d92;

  --lp-border: rgba(23, 26, 32, 0.10);
  --lp-border-strong: rgba(23, 26, 32, 0.20);

  --lp-blue: #3e6ae1;        /* primary */
  --lp-blue-hover: #3457b1;
  --lp-cyan: #00b7ff;        /* accent-2, gradient meshes only */
  --lp-blue-soft: rgba(62, 106, 225, 0.10);

  --lp-radius-btn: 6px;
  --lp-radius: 14px;
  --lp-radius-lg: 20px;

  --lp-shadow-sm: 0 1px 2px rgba(23, 26, 32, 0.06);
  --lp-shadow: 0 12px 30px -14px rgba(23, 26, 32, 0.20);
  --lp-shadow-lg: 0 40px 80px -32px rgba(23, 26, 32, 0.28);

  --lp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lp-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --lp-nav-h: 66px;
  color-scheme: light;
}

/* ------------------------------- Reset ---------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--lp-bg);
  color: var(--lp-body);
  font-family: var(--lp-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--lp-blue); text-decoration: none; }
::selection { background: var(--lp-blue-soft); color: var(--lp-text); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lp-font-display);
  color: var(--lp-text);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 6vw; }
.lp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-blue);
  font-family: var(--lp-font-body);
}
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.lp-section-head h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.lp-section-head p { color: var(--lp-muted); margin-top: 14px; font-size: 17px; }

/* ------------------------------ Buttons --------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--lp-radius-btn);
  font-family: var(--lp-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease,
              border-color .22s ease, transform .15s ease, box-shadow .22s ease;
  white-space: nowrap;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }

.lp-btn-primary { background: var(--lp-blue); color: #fff; }
.lp-btn-primary:hover { background: var(--lp-blue-hover); color: #fff; box-shadow: 0 10px 24px -10px rgba(62, 106, 225, 0.6); }

.lp-btn-ghost {
  background: transparent;
  color: var(--lp-text);
  border-color: var(--lp-border-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
}
.lp-btn-ghost:hover { background: var(--lp-text); color: #fff; border-color: var(--lp-text); }
.lp-btn-ghost .lp-arrow { transition: transform .22s ease; }
.lp-btn-ghost:hover .lp-arrow { transform: translateX(4px); }

/* ------------------------------- Nav ------------------------------------ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--lp-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  background: color-mix(in srgb, var(--lp-bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-brand { display: flex; align-items: center; gap: 10px; }
.lp-brand img { height: 22px; width: auto; }
.lp-brand span {
  font-family: var(--lp-font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lp-text);
  font-size: 18px;
}
.lp-nav-links { display: flex; align-items: center; gap: 30px; }
.lp-nav-links a.lp-nav-link {
  color: var(--lp-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color .18s ease;
}
.lp-nav-links a.lp-nav-link:hover { color: var(--lp-blue); }
.lp-nav-cta { display: flex; align-items: center; gap: 14px; }
.lp-login { color: var(--lp-text); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.lp-login:hover { color: var(--lp-blue); }

/* Hamburger */
.lp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  background: var(--lp-surface);
  cursor: pointer;
}
.lp-burger span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--lp-text); transition: transform .25s ease, opacity .2s ease; }

/* Full-screen overlay menu (Star Space Future UX) */
.lp-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--lp-bg);
  padding: 24px 6vw 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .38s cubic-bezier(.5,0,0,.75), opacity .3s ease, visibility .38s;
  overflow-y: auto;
}
.lp-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.lp-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--lp-nav-h); }
.lp-menu-close {
  width: 42px; height: 42px; border: 1px solid var(--lp-border);
  border-radius: 8px; background: var(--lp-surface); cursor: pointer;
  font-size: 20px; color: var(--lp-text); line-height: 1;
}
.lp-menu-list { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.lp-menu-list a {
  font-family: var(--lp-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(24px, 7vw, 34px);
  color: var(--lp-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--lp-border);
  transition: color .18s ease, padding-left .2s ease;
}
.lp-menu-list a:hover { color: var(--lp-blue); padding-left: 8px; }
.lp-menu-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 32px; }
.lp-menu-actions .lp-btn { width: 100%; }

/* -------------------------------- Hero ---------------------------------- */
.lp-hero {
  position: relative;
  min-height: calc(88vh - var(--lp-nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 12vh, 140px) 6vw clamp(56px, 10vh, 120px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* Light gradient mesh + subtle orbit/grid line-art — image-free */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(62,106,225,0.14), transparent 60%),
    radial-gradient(80% 60% at 85% 0%, rgba(0,183,255,0.10), transparent 55%),
    radial-gradient(70% 60% at 10% 100%, rgba(62,106,225,0.08), transparent 60%),
    var(--lp-bg);
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23,26,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,26,32,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
}
.lp-orbits { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lp-orbits span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(62,106,225,0.14);
  border-radius: 50%;
}
.lp-orbits span:nth-child(1) { width: 520px; height: 520px; }
.lp-orbits span:nth-child(2) { width: 820px; height: 820px; border-color: rgba(62,106,225,0.10); }
.lp-orbits span:nth-child(3) { width: 1180px; height: 1180px; border-color: rgba(62,106,225,0.06); }

.lp-hero h1 {
  font-size: clamp(38px, 7.2vw, 84px);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 18px 0;
}
.lp-hero .lp-lead {
  max-width: 660px;
  margin: 0 auto 32px;
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--lp-muted);
}
.lp-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------- Carousel (Tesla) -------------------------- */
.lp-carousel { position: relative; padding: clamp(20px, 6vh, 64px) 0 clamp(40px, 8vh, 80px); }
.lp-carousel-viewport { overflow: hidden; }
.lp-carousel-track { display: flex; transition: transform .6s cubic-bezier(.5,0,0,.75); will-change: transform; }
.lp-slide { min-width: 100%; padding: 0 6vw; }
.lp-slide-inner {
  position: relative;
  min-height: 440px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 56px);
  isolation: isolate;
}
/* Per-slide gradient/line-art backgrounds — image-free, varied by data-accent */
.lp-slide-inner::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 80% at 12% 12%, rgba(62,106,225,0.16), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(0,183,255,0.14), transparent 55%),
    var(--lp-surface-2);
}
.lp-slide-inner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(23,26,32,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,26,32,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%);
          mask-image: linear-gradient(120deg, #000, transparent 70%);
}
.lp-slide-inner[data-accent="cyan"]::before {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(0,183,255,0.20), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(62,106,225,0.12), transparent 55%),
    var(--lp-surface-2);
}
.lp-slide-inner[data-accent="deep"]::before {
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(62,106,225,0.22), transparent 62%),
    var(--lp-surface-2);
}
.lp-slide-content { max-width: 560px; }
.lp-slide-content .lp-eyebrow { color: var(--lp-blue); }
.lp-slide-content h3 {
  font-size: clamp(30px, 5.2vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.lp-slide-content p { color: var(--lp-body); font-size: 17px; margin-bottom: 24px; }

/* Controls */
.lp-carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 26px;
}
.lp-dots { display: flex; gap: 10px; }
.lp-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lp-border-strong); border: none; cursor: pointer; padding: 0;
  transition: transform .2s ease, background-color .2s ease;
}
.lp-dot.active { background: var(--lp-blue); transform: scale(1.25); }
.lp-arrow-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--lp-border-strong); background: var(--lp-surface);
  color: var(--lp-text); cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.lp-arrow-btn:hover { background: var(--lp-text); color: #fff; border-color: var(--lp-text); }

/* ------------------------------ Bands ----------------------------------- */
.lp-band { padding: clamp(60px, 9vw, 104px) 0; }
.lp-band.alt { background: var(--lp-surface-2); border-block: 1px solid var(--lp-border); }

/* ------------------------ Metrics (animated counters) ------------------- */
.lp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 20px; text-align: center; }
.lp-metric-val {
  font-family: var(--lp-font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--lp-text);
  line-height: 1;
}
.lp-metric-val .lp-unit { color: var(--lp-blue); }
.lp-metric-label { color: var(--lp-muted); margin-top: 10px; font-size: 14px; max-width: 220px; margin-inline: auto; }

/* --------------------------- Projections table -------------------------- */
.lp-table-wrap { overflow-x: auto; border-radius: var(--lp-radius); border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow-sm); }
.lp-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--lp-surface); }
.lp-table th, .lp-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--lp-border); }
.lp-table thead th {
  background: var(--lp-surface-2);
  color: var(--lp-muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.lp-table tbody td { color: var(--lp-body); font-variant-numeric: tabular-nums; }
.lp-table tbody td strong { color: var(--lp-text); }
.lp-table tr:last-child td { border-bottom: none; }
.lp-disclaimer-sm { font-size: 12px; color: var(--lp-faint); margin-top: 14px; }

/* ------------------------------- Tiers ---------------------------------- */
.lp-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.lp-tier {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 26px 24px;
  box-shadow: var(--lp-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-tier:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); border-color: var(--lp-border-strong); }
.lp-tier.featured { border-color: var(--lp-blue); box-shadow: 0 0 0 1px var(--lp-blue), var(--lp-shadow); }
.lp-tier h4 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.lp-tier-range { color: var(--lp-blue); font-weight: 700; font-family: var(--lp-font-display); font-size: 20px; }
.lp-tier ul { list-style: none; margin-top: 16px; }
.lp-tier li { color: var(--lp-muted); font-size: 14px; padding: 7px 0 7px 24px; position: relative; }
.lp-tier li::before {
  content: "\f135"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; left: 0; top: 8px; color: var(--lp-blue); font-size: 12px;
}
.lp-tier-cta { text-align: center; margin-top: 40px; }

/* ------------------------------ Footer ---------------------------------- */
.lp-footer { border-top: 1px solid var(--lp-border); padding: 56px 6vw 40px; background: var(--lp-surface-2); text-align: center; }
.lp-footer .lp-brand { justify-content: center; }
.lp-footer-links { margin-top: 18px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.lp-footer-links a { color: var(--lp-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.lp-footer-links a:hover { color: var(--lp-blue); }
.lp-footer-disclaimer { font-size: 12px; color: var(--lp-faint); max-width: 900px; margin: 26px auto 0; line-height: 1.7; }

/* ---------------------------- Reveal on scroll -------------------------- */
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 961px) {
  .lp-nav-links .lp-nav-link, .lp-nav-cta .lp-login, .lp-nav-cta .lp-desktop-cta { display: none; }
  .lp-burger { display: flex; }
  .lp-slide-inner { min-height: 380px; align-items: flex-end; }
}
@media (max-width: 600px) {
  .lp-hero-cta { flex-direction: column; align-items: stretch; }
  .lp-hero-cta .lp-btn { width: 100%; }
  .lp-slide { padding: 0 5vw; }
  .lp-slide-inner { padding: 24px; min-height: 340px; }
  .lp-carousel-nav .lp-arrow-btn { display: none; }
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .lp-reveal { opacity: 1; transform: none; }
}
