/* ------------------------------------------------------------------ */
/* Dark theme for standalone public pages without a hero (download,    */
/* changelog). Opt in with body class "lp-dark": landing-page.css then */
/* applies the landing background and dark footer. These pages style    */
/* themselves with var(--text-primary, <light fallback>) etc., so       */
/* defining the variables here flips them to dark without rewriting.    */
/* ------------------------------------------------------------------ */

body.lp-dark {
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.56);
  --bg-secondary: #111a2e;
  --border-color: rgba(255, 255, 255, 0.12);
  --primary-color: #9cc8ff;
  color: var(--text-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

body.lp-dark main {
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(54, 147, 255, 0.08), transparent 70%);
}

/* Page titles in the landing serif */
body.lp-dark main h1 {
  color: var(--text-primary);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.lp-dark main h2,
body.lp-dark main h3 { color: var(--text-primary); }

body.lp-dark main a { color: #9cc8ff; }
body.lp-dark main a:hover { color: #ffffff; }

/* Cards and panels: same surface as the landing cards */
body.lp-dark .agd-card,
body.lp-dark .agd-release-notes,
body.lp-dark details.agd-tech,
body.lp-dark .cl-release {
  background: linear-gradient(180deg, #16223f 0%, #101a30 100%);
  border-color: var(--border-color);
}

/* Primary button: landing gradient (the pages' own indigo is too flat on dark) */
body.lp-dark .agd-cta {
  background: linear-gradient(90deg, #3736af, #3693ff);
  box-shadow: 0 10px 24px rgba(54, 147, 255, 0.22);
  color: #ffffff;
}

body.lp-dark .agd-cta:hover { filter: brightness(1.1); color: #ffffff; }

/* Indigo pills read poorly on navy; use the brand blue */
body.lp-dark .agd-version-pill,
body.lp-dark .cl-current-pill {
  background: rgba(54, 147, 255, 0.14);
  color: #9cc8ff;
}

body.lp-dark .agd-card h3 i { color: #3693ff; }

/* Inline code (e.g. TraderMetric.exe): brand blue instead of Bootstrap pink */
body.lp-dark main code { color: #9cc8ff; }
