/* QuantForge Marketing Landing Page — QF-LP-01
   Deliberately separate from frontend/src/index.css's dark/cyan terminal
   theme (see docs/FRONTEND_MIGRATION_MASTER.md, QF-LP-01-01 decisions,
   item 2): a dedicated light palette for the public site, sharing only
   the one cyan accent color with the product for visual continuity. */

:root {
  --lp-white: #ffffff;
  --lp-bg: #f6f8fb;
  --lp-bg-alt: #eef2f8;

  --lp-navy-900: #0a1730;
  --lp-navy-800: #0f2048;
  --lp-navy-700: #15306b;
  --lp-navy-600: #1d3f86;

  --lp-accent: #00c2e0; /* same --qf-accent as the product, for brand continuity */
  --lp-accent-dim: rgba(0, 194, 224, 0.12);

  --lp-green: #0ea86c;
  --lp-red: #d9364f;

  --lp-text: #0f1b2d;
  --lp-text-muted: #51607a;
  --lp-text-on-navy: #eaf1fb;
  --lp-text-on-navy-muted: #9fb3d6;

  --lp-border: #e2e8f0;
  --lp-radius-sm: 6px;
  --lp-radius-md: 10px;
  --lp-radius-lg: 16px;

  --lp-shadow-card: 0 1px 2px rgba(10, 23, 48, 0.06), 0 8px 24px rgba(10, 23, 48, 0.08);
  --lp-shadow-float: 0 20px 60px rgba(10, 23, 48, 0.25);

  --lp-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lp-max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lp-white);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* Accessibility: a visible focus ring on every interactive element (no
   `outline: none` anywhere in this file — this is additive styling, not a
   replacement for the browser's own default), plus a real skip-to-content
   link for keyboard/screen-reader users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 2px;
}

.lp-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lp-navy-900);
  color: white;
  padding: 10px 16px;
  border-radius: 0 0 var(--lp-radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}

.lp-skip-link:focus {
  left: 0;
}

.lp-container {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lp-border);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--lp-navy-900);
  text-decoration: none;
}

.lp-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lp-navy-700), var(--lp-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lp-nav-links a {
  text-decoration: none;
  color: var(--lp-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.lp-nav-links a:hover { color: var(--lp-navy-900); }

.lp-nav-cta { display: flex; align-items: center; gap: 12px; }

.lp-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.lp-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lp-navy-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--lp-radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lp-btn:hover { transform: translateY(-1px); }

.lp-btn-primary {
  background: var(--lp-accent);
  color: var(--lp-navy-900);
  box-shadow: 0 8px 20px rgba(0, 194, 224, 0.28);
}

.lp-btn-secondary {
  background: var(--lp-navy-900);
  color: white;
}

.lp-btn-ghost {
  background: transparent;
  color: var(--lp-navy-900);
  border-color: var(--lp-border);
}

.lp-btn-ghost-on-navy {
  background: transparent;
  color: var(--lp-text-on-navy);
  border-color: rgba(255, 255, 255, 0.25);
}

.lp-btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- Hero ---------- */

.lp-hero {
  background: radial-gradient(ellipse at top, var(--lp-navy-700), var(--lp-navy-900) 60%);
  color: var(--lp-text-on-navy);
  padding: 96px 0 0;
  overflow: hidden;
}

.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
  align-items: center;
}

.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 194, 224, 0.14);
  color: var(--lp-accent);
  border: 1px solid rgba(0, 194, 224, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 auto;
}

.lp-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 20px 0 0;
  letter-spacing: -0.02em;
}

.lp-hero h1 span { color: var(--lp-accent); }

.lp-hero-sub {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 1.125rem;
  color: var(--lp-text-on-navy-muted);
}

.lp-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.lp-hero-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--lp-text-on-navy-muted);
}

.lp-hero-shot {
  margin-top: 56px;
  position: relative;
}

.lp-browser-frame {
  background: #0d1730;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--lp-shadow-float);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}

.lp-browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0a1328;
}

.lp-browser-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #37425a;
}

.lp-browser-frame img { width: 100%; display: block; }

/* ---------- Sections ---------- */

.lp-section { padding: 88px 0; }
.lp-section-alt { background: var(--lp-bg); }

.lp-section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.lp-eyebrow {
  display: inline-block;
  color: var(--lp-navy-600);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lp-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
  color: var(--lp-navy-900);
  letter-spacing: -0.01em;
}

.lp-section-head p { color: var(--lp-text-muted); font-size: 1.0625rem; margin: 0; }

/* ---------- Feature showcase ---------- */

.lp-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}

.lp-feature-row:last-child { margin-bottom: 0; }

.lp-feature-row.lp-reverse .lp-feature-copy { order: 2; }
.lp-feature-row.lp-reverse .lp-feature-shot { order: 1; }

.lp-feature-copy h3 {
  font-size: 1.5rem;
  color: var(--lp-navy-900);
  margin: 0 0 14px;
}

.lp-feature-copy p {
  color: var(--lp-text-muted);
  font-size: 1.0625rem;
  margin: 0 0 20px;
}

.lp-feature-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lp-feature-copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--lp-text);
  font-size: 0.95rem;
}

.lp-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lp-accent-dim);
  color: var(--lp-navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 1px;
}

.lp-feature-shot {
  border-radius: var(--lp-radius-lg);
  overflow: hidden;
  box-shadow: var(--lp-shadow-card);
  border: 1px solid var(--lp-border);
}

/* ---------- How it works ---------- */

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lp-step {
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-md);
  padding: 28px;
}

.lp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lp-navy-900);
  color: var(--lp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.lp-step h3 { margin: 0 0 8px; font-size: 1.0625rem; color: var(--lp-navy-900); }
.lp-step p { margin: 0; color: var(--lp-text-muted); font-size: 0.9375rem; }

/* ---------- Pricing ---------- */

.lp-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.lp-plan {
  position: relative;
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.lp-plan--featured {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 1px var(--lp-accent), var(--lp-shadow-card);
}

.lp-plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--lp-accent);
  color: var(--lp-navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.lp-plan h3 { margin: 0 0 6px; font-size: 1.125rem; color: var(--lp-navy-900); }
.lp-plan-tagline { margin: 0 0 20px; color: var(--lp-text-muted); font-size: 0.9375rem; }

.lp-plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.lp-plan-price .amount { font-size: 2.25rem; font-weight: 800; color: var(--lp-navy-900); }
.lp-plan-price .period { color: var(--lp-text-muted); font-size: 0.9375rem; }
.lp-plan-secondary { color: var(--lp-text-muted); font-size: 0.8125rem; margin: 0 0 24px; }

.lp-plan ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex-grow: 1;
}

.lp-plan li {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--lp-text);
}

.lp-compare-note {
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 0.875rem;
  margin-top: 28px;
}

/* ---------- Trust strip ---------- */

.lp-trust {
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
  background: var(--lp-bg);
  padding: 20px 0;
}

.lp-trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--lp-text-muted);
}

.lp-trust-inner strong { color: var(--lp-navy-900); }

/* ---------- Final CTA ---------- */

.lp-final-cta {
  background: linear-gradient(135deg, var(--lp-navy-900), var(--lp-navy-700));
  color: var(--lp-text-on-navy);
  border-radius: var(--lp-radius-lg);
  padding: 64px 40px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--lp-max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.lp-final-cta h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 14px; }
.lp-final-cta p { color: var(--lp-text-on-navy-muted); margin: 0 0 28px; font-size: 1.0625rem; }

/* ---------- Footer ---------- */

.lp-footer {
  background: var(--lp-navy-900);
  color: var(--lp-text-on-navy-muted);
  padding: 56px 0 28px;
  font-size: 0.875rem;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-footer-brand .lp-logo { color: white; margin-bottom: 12px; }
.lp-footer-brand p { max-width: 300px; }

.lp-footer-col h4 {
  color: white;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.lp-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-footer-col a { text-decoration: none; color: var(--lp-text-on-navy-muted); }
.lp-footer-col a:hover { color: white; }

.lp-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}

.lp-disclaimer {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  padding: 0 24px 24px;
  color: var(--lp-text-on-navy-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ---------- Legal pages ---------- */

.lp-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.lp-legal h1 { color: var(--lp-navy-900); margin-bottom: 4px; }
.lp-legal .lp-legal-updated { color: var(--lp-text-muted); font-size: 0.875rem; margin-bottom: 32px; }
.lp-legal-draft-notice {
  background: #fff6e5;
  border: 1px solid #f3d99b;
  color: #7a5200;
  border-radius: var(--lp-radius-md);
  padding: 16px 20px;
  font-size: 0.9375rem;
  margin-bottom: 36px;
}
.lp-legal h2 { color: var(--lp-navy-900); margin-top: 36px; font-size: 1.25rem; }
.lp-legal p, .lp-legal li { color: var(--lp-text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .lp-nav-links { display: none; }
  .lp-nav-toggle { display: block; }

  .lp-nav.lp-nav-open .lp-nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--lp-border);
    box-shadow: var(--lp-shadow-card);
  }

  .lp-nav.lp-nav-open .lp-nav-links a {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid var(--lp-border);
  }

  .lp-feature-row { grid-template-columns: 1fr; gap: 28px; }
  .lp-feature-row.lp-reverse .lp-feature-copy,
  .lp-feature-row.lp-reverse .lp-feature-shot { order: initial; }

  .lp-steps { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-section { padding: 56px 0; }
  .lp-hero { padding-top: 56px; }
}

.lp-nav-links-cta { display: none; }

@media (max-width: 520px) {
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-hero-ctas { flex-direction: column; align-items: stretch; }
  .lp-hero-ctas .lp-btn { width: 100%; }

  /* Logo + CTA pill + hamburger don't fit on one row this narrow —
     drop the header CTA and surface it as the last item in the
     dropdown menu instead (see .lp-nav-links-cta below). */
  #lp-header-cta { display: none; }
  .lp-nav.lp-nav-open .lp-nav-links-cta {
    display: block;
    color: var(--lp-accent);
    font-weight: 700;
  }
}
