/* ============================================================================
   HedgeMate public landing page — layered on top of app.css design tokens.
   Every rule is scoped under body.landing so nothing can leak into app pages.
   Gold is the landing-only "premium" accent; emerald stays the brand identity.
   ========================================================================== */

body.landing {
  --gold: #d9b45b;
  --gold-strong: #e8c877;
  --gold-deep: #b58a2e;
  --gold-soft: rgba(217, 180, 91, 0.14);
  --gold-rgb: 217, 180, 91;
  --lp-max: 1180px;

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.landing .lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; }
.landing section { padding: 76px 0; }
.landing img { max-width: 100%; display: block; }
.landing a { color: inherit; }

/* ---- Type ---------------------------------------------------------------- */
.landing h1, .landing h2, .landing h3 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.06;
}
.landing h1 { font-size: clamp(34px, 5.6vw, 62px); }
.landing h2 { font-size: clamp(24px, 3.4vw, 38px); }
.landing h3 { font-size: 15px; letter-spacing: 0.06em; }
.landing .gold-text {
  background: linear-gradient(180deg, var(--gold-strong) 20%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing .lp-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.landing .lp-lead { color: var(--text-muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; }
.landing .lp-center { text-align: center; }
.landing .lp-center .lp-lead { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---- Buttons ------------------------------------------------------------- */
.landing .lp-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.landing .lp-btn-gold {
  background: linear-gradient(180deg, var(--gold-strong), var(--gold-deep));
  color: #141004;
  box-shadow: 0 6px 24px rgba(var(--gold-rgb), 0.28);
}
.landing .lp-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(var(--gold-rgb), 0.4); }
.landing .lp-btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.landing .lp-btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-strong); }

/* ---- Cards --------------------------------------------------------------- */
.landing .lp-card {
  background: linear-gradient(180deg, var(--surface), rgba(14, 28, 22, 0.55));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.landing .lp-card-pad { padding: 22px; }
.landing .lp-card-gold { border-color: rgba(var(--gold-rgb), 0.3); }

/* ---- Top nav ------------------------------------------------------------- */
.landing .lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 20, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 74, 57, 0.6);
}
.landing .lp-nav .lp-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.landing .lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing .lp-brand .wordmark { font-size: 21px; font-weight: 800; line-height: 1; }
.landing .bw-hedge { color: var(--brand); }
.landing .bw-mate { color: var(--text); }
.landing .lp-brand .lp-tagline {
  margin-left: 10px; padding-left: 14px;
  border-left: 1px solid var(--border);
  color: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.landing .lp-nav-actions { display: flex; align-items: center; gap: 18px; }
.landing .lp-nav-actions .lp-signin { color: var(--text-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.landing .lp-nav-actions .lp-signin:hover { color: var(--text); }
.landing .lp-nav-actions .lp-btn { padding: 10px 20px; font-size: 13px; }

/* ---- Hero ---------------------------------------------------------------- */
.landing .lp-hero {
  position: relative;
  padding: 110px 0 96px;
  background:
    radial-gradient(58% 60% at 78% 8%, rgba(var(--gold-rgb), 0.13), transparent 62%),
    radial-gradient(70% 55% at 50% 115%, rgba(43, 189, 141, 0.18), transparent 70%),
    linear-gradient(rgba(9, 20, 16, 0.55), rgba(9, 20, 16, 0.86)),
    url("/static/landing/hero.webp") center / cover no-repeat,
    var(--bg);
}
.landing .lp-hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.landing .lp-hero .lp-wrap { position: relative; max-width: 900px; text-align: center; }
.landing .lp-hero .lp-lead { margin: 22px auto 0; max-width: 640px; }
.landing .lp-hero .lp-lead strong { color: var(--text); }
.landing .lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.landing .lp-hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center;
  margin-top: 40px;
  color: var(--text-subtle);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.landing .lp-hero-trust span::before { content: "◆"; margin-right: 8px; color: var(--gold); font-size: 8px; vertical-align: 2px; }

/* ---- Regime triptych ----------------------------------------------------- */
.landing .lp-regimes { padding-top: 26px; }
.landing .lp-regime-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.landing .lp-regime { position: relative; }
.landing .lp-regime img { aspect-ratio: 16 / 9; object-fit: cover; }
.landing .lp-regime figcaption { padding: 18px 20px 20px; }
.landing .lp-regime .r-title { font-size: 19px; font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.landing .lp-regime .r-verdict { display: block; margin-top: 2px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }
.landing .lp-regime .r-note { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.landing .lp-regime-up .r-verdict { color: var(--positive); }
.landing .lp-regime-down .r-verdict { color: var(--negative); }
.landing .lp-regime-side .r-verdict { color: var(--gold); }
.landing .lp-regime-caption {
  margin: 34px auto 0; max-width: 640px; text-align: center;
  font-size: clamp(16px, 2vw, 20px); font-weight: 800; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.02em;
}

/* ---- Value chips (under hero) -------------------------------------------- */
.landing .lp-values-sec { padding: 40px 0 20px; }
.landing .lp-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.landing .lp-value { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.landing .lp-value svg { flex: none; width: 30px; height: 30px; stroke: var(--gold); }
.landing .lp-value b { display: block; font-size: 14.5px; font-weight: 800; }
.landing .lp-value span { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* ---- Proprietary intelligence team --------------------------------------- */
.landing .lp-agents-sec .lp-lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.landing .lp-agents { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.landing .lp-agent svg { width: 30px; height: 30px; stroke: var(--gold); }
.landing .lp-agent h3 { margin-top: 14px; color: var(--gold-strong); font-size: 14px; letter-spacing: 0.04em; }
.landing .lp-agent p { margin: 9px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.landing .lp-warroom {
  margin: 40px auto 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(43, 189, 141, 0.12);
}
.landing .lp-warroom img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.landing .lp-ai-copy { margin-top: 40px; }
.landing .lp-ai-copy .big { font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; text-transform: uppercase; }
.landing .lp-ai-copy .lp-lead { margin: 16px auto 0; max-width: 720px; }

/* ---- Evolution rail ------------------------------------------------------ */
.landing .lp-evo-sec { padding-top: 0; }
.landing .lp-evo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.landing .lp-evo-item { display: flex; flex-direction: column; gap: 10px; padding: 4px 6px; }
.landing .lp-evo-item svg { width: 28px; height: 28px; stroke: var(--brand-strong); }
.landing .lp-evo-item b { font-size: 13.5px; font-weight: 800; }
.landing .lp-evo-item span { color: var(--text-subtle); font-size: 12.5px; line-height: 1.5; }

/* ---- Your portfolio, constantly optimized -------------------------------- */
.landing .lp-opt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; text-align: left; }
.landing .lp-opt-item { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.landing .lp-opt-item svg { width: 28px; height: 28px; stroke: var(--gold); }
.landing .lp-opt-item b { font-size: 14px; font-weight: 700; }
.landing .lp-opt-item span { color: var(--text-subtle); font-size: 12.5px; line-height: 1.5; }
.landing .lp-opt-foot { margin: 34px auto 0; max-width: 640px; }

/* ---- Simulated environment ---------------------------------------------- */
.landing .lp-sim {
  background:
    radial-gradient(60% 80% at 12% 20%, rgba(88, 166, 255, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(14, 28, 22, 0.6), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.landing .lp-sim-head .lp-eyebrow { color: var(--info); }
.landing .lp-sim-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-top: 44px; }
.landing .lp-sim-shot { position: relative; }
.landing .lp-sim-shot .frame {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.landing .lp-sim-shot .glow {
  position: absolute; inset: -40px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(43, 189, 141, 0.16), transparent 70%);
  z-index: -1;
}
.landing .lp-sim-lists { display: flex; flex-direction: column; gap: 26px; }
.landing .lp-sim-lists ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.landing .lp-sim-lists li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.landing .lp-sim-lists li b { font-weight: 700; }
.landing .lp-sim-lists li span { color: var(--text-muted); }
.landing .lp-check {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--positive-soft);
  color: var(--positive);
  font-size: 12px; font-weight: 900;
}
.landing .lp-check.gold { background: var(--gold-soft); color: var(--gold-strong); }

/* ---- Credibility band ---------------------------------------------------- */
.landing .lp-cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.landing .lp-cred-tile h3 { color: var(--text); margin-top: 10px; }
.landing .lp-cred-tile .k { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.landing .lp-cred-tile p { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.landing .lp-greeks { display: flex; gap: 10px; margin-top: 12px; }
.landing .lp-greeks i {
  font-style: normal;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 50%;
  color: var(--gold-strong); font-size: 15px; font-weight: 700;
}

/* ---- Equinix connectivity ------------------------------------------------- */
.landing .lp-conn-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.landing .lp-conn-metros { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.landing .lp-conn-metros li { display: flex; align-items: baseline; gap: 12px; font-size: 15px; }
.landing .lp-conn-metros li::before { content: "●"; color: var(--gold); font-size: 9px; }
.landing .lp-conn-metros b { font-weight: 800; min-width: 92px; }
.landing .lp-conn-metros span { color: var(--text-muted); font-size: 13px; }
.landing .lp-net { position: relative; }
.landing .lp-net svg { width: 100%; height: auto; }
.landing .lp-secure-strip {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center;
  margin-top: 44px; padding-top: 30px;
  border-top: 1px solid var(--border);
}
.landing .lp-secure-strip span {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 13.5px; font-weight: 600;
}
.landing .lp-secure-strip svg { width: 18px; height: 18px; stroke: var(--brand-strong); }

/* ---- Built for the future ------------------------------------------------ */
.landing .lp-future { padding-top: 0; }
.landing .lp-future-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 30px;
}
.landing .lp-future-strip span {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px; font-weight: 600;
}
.landing .lp-future-strip span b { color: var(--gold-strong); font-weight: 800; margin-right: 6px; }

/* ---- Closing CTA + footer ------------------------------------------------- */
.landing .lp-cta {
  text-align: center;
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(var(--gold-rgb), 0.1), transparent 65%),
    linear-gradient(180deg, transparent, rgba(14, 28, 22, 0.7));
  border-top: 1px solid var(--border);
}
.landing .lp-cta .big {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900; text-transform: uppercase; line-height: 1.1;
}
.landing .lp-cta .lp-lead { margin: 18px auto 0; max-width: 560px; }
.landing .lp-cta .lp-btn { margin-top: 32px; }
.landing .lp-footer { border-top: 1px solid var(--border); padding: 44px 0 56px; }
.landing .lp-footer-chips {
  display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: center;
  color: var(--text-muted);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.landing .lp-footer-chips span::before { content: "✦"; color: var(--gold); margin-right: 8px; }
.landing .lp-footer .punch {
  margin-top: 30px; text-align: center;
  font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.landing .lp-footer .punch em { font-style: normal; color: var(--gold-strong); }
.landing .lp-disclaimer {
  margin: 26px auto 0; max-width: 860px;
  color: var(--text-subtle);
  font-size: 11.5px; line-height: 1.6; text-align: center;
}

/* ---- Scroll reveal (progressive enhancement) ------------------------------ */
.landing .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.landing .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .landing .rv { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .landing .lp-regime-grid, .landing .lp-cred-grid,
  .landing .lp-values, .landing .lp-opt { grid-template-columns: 1fr 1fr; }
  .landing .lp-agents, .landing .lp-evo { grid-template-columns: repeat(3, 1fr); }
  .landing .lp-sim-grid, .landing .lp-conn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .landing section { padding: 56px 0; }
  .landing .lp-hero { padding: 80px 0 70px; }
  .landing .lp-regime-grid, .landing .lp-cred-grid,
  .landing .lp-values, .landing .lp-opt,
  .landing .lp-agents, .landing .lp-evo { grid-template-columns: 1fr; }
  .landing .lp-brand .lp-tagline { display: none; }
  .landing .lp-conn-metros b { min-width: 0; }
}
