/* GXPOL — company site
   Same design language as the client portal: research-desk register, not
   dashboard SaaS. Libre Franklin display / IBM Plex Sans body / IBM Plex
   Mono for anything numeric or technical. Hairline rules, not floating cards.
   Deliberately avoids the recognisable AI-product looks (black + acid green,
   glassy gradients, purple orbs).

   NO MARKET DATA IS SURFACED ON THIS SITE. Figures shown are about the
   product (engine count, coverage), never live signal values. */

:root {
  --font-display: "Libre Franklin", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, monospace;

  --paper: #F3F5F7;
  --surface: #FFFFFF;
  --surface-2: #EBEFF2;
  --ink: #16232E;
  --ink-2: #4A5B68;
  --ink-3: #5F707D;
  --line: #D4DCE2;
  --line-strong: #AEBCC6;

  --brand: #0B4A50;
  --brand-ink: #FFFFFF;
  --brand-hover: #0F6068;
  --gold: #7D5B1D;
  --gold-soft: #F3EAD4;

  --r-on: #1E6E41;
  --r-constructive: #4A6B21;
  --r-neutral: #8A6410;
  --r-off: #A6431C;
  --r-crisis: #8D1D1D;

  --radius: 3px;
  --pad: 20px;
  --maxw: 1180px;
}

[data-theme="dark"] {
  --paper: #0C1218;
  --surface: #121A22;
  --surface-2: #182230;
  --ink: #E7ECF0;
  --ink-2: #A5B3BE;
  --ink-3: #8595A2;
  --line: #232F3A;
  --line-strong: #354553;
  --brand: #58C4BD;
  --brand-ink: #08131A;
  --brand-hover: #7BD6D0;
  --gold: #D8B05F;
  --gold-soft: #2E250F;
  --r-on: #4BB878;
  --r-constructive: #8FBA4A;
  --r-neutral: #D2A43F;
  --r-off: #E0774A;
  --r-crisis: #E05252;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.frame { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.small { font-size: 0.875rem; color: var(--ink-2); }
.lede { font-size: 1.125rem; color: var(--ink-2); }

/* ── header ────────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex; align-items: center; gap: 26px; height: 60px;
}
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand .mark { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
nav.main { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.main a {
  font-size: 0.9375rem; color: var(--ink-2); text-decoration: none;
}
nav.main a.btn-primary { color: var(--brand-ink); }
nav.main a.btn-primary:hover { color: var(--brand-ink); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem;
  border: 1px solid transparent; text-decoration: none;
}
/* FIXED 2026-07: `a { color: var(--brand) }` has equal specificity to
   `.btn-primary` and appears LATER in the file, so it won.  The button
   rendered brand-teal text on a brand-teal fill — invisible in both themes.
   Anchor-qualified selectors (a.btn-primary) raise specificity above the
   bare element rule; the :is() list also covers hover/focus/visited so the
   text can never fall back to the link colour. */
.btn-primary,
a.btn-primary,
a.btn-primary:visited {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.btn-primary:hover,
a.btn-primary:hover,
a.btn-primary:focus {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--brand-ink);
}

.btn-ghost,
a.btn-ghost,
a.btn-ghost:visited {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover,
a.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

.menu-toggle { display: none; }

/* ── sections ──────────────────────────────────────────────────────────── */
section { border-bottom: 1px solid var(--line); padding: 56px 0; }
section.hero { padding: 84px 0 68px; }
h1.display { font-size: clamp(2rem, 5vw, 3.25rem); }
h2.display { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; margin-bottom: 6px; }
p + p { margin-top: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--pad);
}
.rule-list { list-style: none; }
.rule-list li { border-top: 1px solid var(--line); padding: 16px 0; }
.rule-list li:first-child { border-top: none; }

/* the regime scale — the site's one piece of ornament, and it's the
   product's own semantics rather than decoration */
.scale { display: flex; height: 8px; border-radius: 2px; overflow: hidden; }
.scale span { flex: 1; }
.scale-labels {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-family: var(--font-data); font-size: 0.75rem; color: var(--ink-3);
}

.eng-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.eng-row:first-child { border-top: none; }
.eng-key { font-family: var(--font-data); font-weight: 600; color: var(--brand); }

.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: var(--radius); font-family: var(--font-data);
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--ink-2);
}
.badge-gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold); }

/* ── footer ────────────────────────────────────────────────────────────── */
footer.site { padding: 40px 0 28px; background: var(--surface); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
footer.site ul { list-style: none; display: grid; gap: 8px; }
footer.site a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
footer.site a:hover { color: var(--ink); }
.legal {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--ink-3);
}

/* ── cookie banner ─────────────────────────────────────────────────────── */
.cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 50;
  max-width: 560px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.cookie[hidden] { display: none; }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, footer.site .cols { grid-template-columns: 1fr; }
  nav.main { display: none; }
  nav.main.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 18px var(--pad); gap: 14px;
  }
  .menu-toggle { display: inline-flex; margin-left: auto; }
}
