/* PQWERAI cinematic theme for every internal page: the same night world as the 3D home page.
 * Loaded last (after site.css, orbit4d.css, ghost.css, pages.css). It re-points the shared tokens to the
 * home page's palette, puts a still rendered from the live scene behind each page hero (assets/universe/art,
 * made by experience/e2e/art.mjs; no stock imagery), and turns cards and tables into dark glass panels.
 * Colours mirror experience/src/styles/home.css. */

:root.gx-site:not(.gx-never) {
  --porcelain: #05070c; --graphite: #05070c;
  --ink: #eef1f8; --ink-soft: #aab3c6; --titanium: #8a93a8; --mist: #2a3246;
  --bg: #05070c; --bg-2: #080c16; --mist-bg: #0b1020;
  --card: rgba(16, 23, 42, .58); --card-solid: #0c1222;
  --border: rgba(132, 156, 230, .16); --border-strong: rgba(132, 156, 230, .3);
  --fg: #eef1f8; --muted: #aab3c6; --dim: #8f99ae;
  --cyan: #7d9bff; --violet: #7d9bff; --pink: #9fb4ff; --green: #5fd3a0; --amber: #ffb35c;
  --blue-ink: #92aaff;
  --grad: linear-gradient(120deg, #eef1f8 0%, #7d9bff 100%);
  --glow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -32px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
.gx-site body {
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(47, 91, 255, .10) 0%, transparent 60%),
    radial-gradient(90% 50% at 0% 40%, rgba(47, 91, 255, .05) 0%, transparent 70%),
    #05070c;
  color: var(--ink);
}
.gx-site main a:not([class]) { color: var(--blue-ink); text-decoration-color: rgba(146, 170, 255, .45); }

/* --- hero: a still from the live scene, copy on a cross-fading scrim ------------------------------------------ */
.gx-site .gx-hero {
  min-height: min(88vh, 860px); display: flex; align-items: center; isolation: isolate;
  background: #05070c; padding: clamp(120px, 16vh, 180px) 0 clamp(56px, 8vw, 110px);
}
.gx-site .gx-hero::after { background: linear-gradient(90deg, transparent, rgba(132, 156, 230, .22), transparent); }
.gx-art { position: absolute; inset: 0; z-index: -1; background: #05070c center right / cover no-repeat; }
.gx-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, .95) 0%, rgba(5, 7, 12, .86) 38%, rgba(5, 7, 12, .45) 58%, rgba(5, 7, 12, .08) 80%),
    linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, transparent 22%, transparent 70%, #05070c 100%);
}
.gx-site .gx-hero-grid { grid-template-columns: minmax(0, 1fr); }
.gx-site .gx-hero-copy { max-width: 44rem; }
.gx-site .gx-hero .gx-motif { display: none; }
.gx-site .gx-h1 { text-shadow: 0 2px 30px rgba(5, 7, 12, .6); }
[dir="rtl"] .gx-art { transform: scaleX(-1); }

.gx-art--do { background-image: url("/assets/universe/art/do-1200.webp"); }
.gx-art--core { background-image: url("/assets/universe/art/core-1200.webp"); }
.gx-art--ghostrider { background-image: url("/assets/universe/art/ghostrider-1200.webp"); }
.gx-art--smartnodes { background-image: url("/assets/universe/art/smartnodes-1200.webp"); }
.gx-art--ghostflow { background-image: url("/assets/universe/art/ghostflow-1200.webp"); }
.gx-art--ghostshield { background-image: url("/assets/universe/art/ghostshield-1200.webp"); }
.gx-art--ghostllm { background-image: url("/assets/universe/art/ghostllm-1200.webp"); }
.gx-art--quantum { background-image: url("/assets/universe/art/quantum-1200.webp"); }
.gx-art--start { background-image: url("/assets/universe/art/do-1200.webp"); }
@media (min-width: 1000px) {
  .gx-art--do { background-image: url("/assets/universe/art/do.webp"); }
  .gx-art--core { background-image: url("/assets/universe/art/core.webp"); }
  .gx-art--ghostrider { background-image: url("/assets/universe/art/ghostrider.webp"); }
  .gx-art--smartnodes { background-image: url("/assets/universe/art/smartnodes.webp"); }
  .gx-art--ghostflow { background-image: url("/assets/universe/art/ghostflow.webp"); }
  .gx-art--ghostshield { background-image: url("/assets/universe/art/ghostshield.webp"); }
  .gx-art--ghostllm { background-image: url("/assets/universe/art/ghostllm.webp"); }
  .gx-art--quantum { background-image: url("/assets/universe/art/quantum.webp"); }
  .gx-art--start { background-image: url("/assets/universe/art/do.webp"); }
}
@media (max-width: 760px) {
  .gx-art { background-position: 70% center; }
  .gx-art::after { background: linear-gradient(180deg, rgba(5, 7, 12, .5) 0%, rgba(5, 7, 12, .72) 45%, rgba(5, 7, 12, .95) 100%); }
}

/* --- sections ------------------------------------------------------------------------------------------------ */
.gx-site .gx-sec--light, .gx-site .band { background: transparent; }
.gx-site .band.alt, .gx-site .gx-sec--graphite {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0) 0%, rgba(10, 15, 30, .72) 18%, rgba(10, 15, 30, .72) 82%, rgba(10, 15, 30, 0) 100%);
}
.gx-site .gx-sec + .gx-sec { border-top: 0; }
.gx-site .gx-head .gu-kicker, .gx-site .kicker { color: #8aa2ff; }

/* --- glass panels: cards, product tiles, tables, notes --------------------------------------------------------- */
.gx-site .card4, .gx-site .dcard, .gx-site .gx-prod, .gx-site .card, .gx-site .note, .gx-site .tbl-wrap, .gx-site .kv {
  background: linear-gradient(180deg, rgba(22, 31, 56, .62) 0%, rgba(12, 18, 34, .62) 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 26px 60px -38px rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
}
.gx-site .card4, .gx-site .dcard, .gx-site .gx-prod { transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
.gx-site .card4:hover, .gx-site .dcard:hover, .gx-site .gx-prod:hover {
  border-color: rgba(125, 155, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(125, 155, 255, .12), 0 30px 70px -36px rgba(47, 91, 255, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .gx-site .card4:hover, .gx-site .dcard:hover, .gx-site .gx-prod:hover { transform: translateY(-2px); }
}
.gx-site .ico-svg, .gx-site .gx-prod .ico-svg { color: #9fb4ff; filter: drop-shadow(0 0 10px rgba(107, 141, 255, .45)); }
.gx-site .tbl th { color: var(--muted); border-color: var(--border); background: rgba(10, 15, 30, .6); }
.gx-site .tbl td { border-color: var(--border); }
.gx-site .tbl tr:hover td { background: rgba(125, 155, 255, .05); }
.gx-site code, .gx-site pre { background: rgba(10, 15, 30, .75); color: #dfe6ff; border-color: var(--border); }

/* --- buttons and pills ------------------------------------------------------------------------------------- */
.gx-site .gu-btn--solid, .gx-site .btn.primary { background: #2f5bff; border-color: #2f5bff; color: #fff; box-shadow: 0 10px 30px -12px rgba(47, 91, 255, .8); }
.gx-site .gu-btn:not(.gu-btn--solid), .gx-site .btn:not(.primary) { color: var(--ink); border-color: rgba(238, 241, 248, .32); background: rgba(5, 7, 12, .3); }
.gx-site .gu-btn:not(.gu-btn--solid):hover, .gx-site .btn:not(.primary):hover { border-color: rgba(238, 241, 248, .7); }

/* --- header over the dark pages ------------------------------------------------------------------------------- */
.gx-site .gu-header { color: var(--ink); }
.gx-site .gu-header.is-scrolled { background: rgba(5, 7, 12, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 12px 40px -18px rgba(0, 0, 0, .8); }
.gx-site .gu-footer { background: #04060a; border-top: 1px solid rgba(132, 156, 230, .12); }

/* --- elements the light theme drew in solid ink: on the night theme they become electric blue ------------------ */
.gx-site .gd-subnav a[aria-current="page"], .gx-filter button[aria-pressed="true"], .gu-app-nav button[aria-current="true"],
.gx-site .gu-skip {
  background: #2f5bff; color: #fff; border-color: #2f5bff;
}
.gx-signal--real, .gx-news--big {
  background: linear-gradient(160deg, rgba(47, 91, 255, .28) 0%, rgba(14, 22, 44, .9) 60%); color: var(--ink); border-color: rgba(125, 155, 255, .4);
}
.gx-signal--real .gx-fc-h, .gx-signal--real .gx-fine, .gx-news--big .gx-news-meta, .gx-news--big .gx-news-sum { color: #c3cbe0; }
.gu-paths a:hover { background: rgba(47, 91, 255, .22); color: var(--ink); border-color: rgba(125, 155, 255, .5); }
.gx-tx, .gx-bar-fill { background: linear-gradient(90deg, #4f78ff, #9fb4ff); }
.gx-lane { background: rgba(125, 155, 255, .06); }
.gx-simnote { background: rgba(10, 15, 30, .6); border-color: rgba(132, 156, 230, .3); }
.gx-site .st-ok { color: #9fb4ff; border-color: rgba(125, 155, 255, .45); background: rgba(47, 91, 255, .12); }
.gx-site pre { outline: none; }
.gx-news { background: linear-gradient(180deg, rgba(22, 31, 56, .62) 0%, rgba(12, 18, 34, .62) 100%); border-color: var(--border); color: var(--ink); }
.gx-news .gx-news-meta { color: var(--muted); }

/* --- pages with their own hero markup: the Explorer portal (.phero) and the Genesis Program (.ghero) ---------- */
.gx-site main > .phero:first-child, .gx-site main > .ghero:first-child {
  position: relative; isolation: isolate; overflow: hidden; min-height: min(80vh, 780px); display: flex; align-items: center;
  padding: clamp(120px, 16vh, 170px) 0 clamp(56px, 8vw, 100px); background: #05070c;
}
.gx-site main > .phero:first-child::before, .gx-site main > .ghero:first-child::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 12, .95) 0%, rgba(5, 7, 12, .86) 38%, rgba(5, 7, 12, .4) 60%, rgba(5, 7, 12, .08) 82%),
    linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, transparent 22%, transparent 70%, #05070c 100%),
    #05070c url("/assets/universe/art/smartnodes-1200.webp") right center / cover no-repeat;
}
.gx-site main > .ghero:first-child::before { background-image:
    linear-gradient(90deg, rgba(5, 7, 12, .95) 0%, rgba(5, 7, 12, .86) 38%, rgba(5, 7, 12, .4) 60%, rgba(5, 7, 12, .08) 82%),
    linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, transparent 22%, transparent 70%, #05070c 100%),
    url("/assets/universe/art/do-1200.webp"); }
@media (min-width: 1000px) {
  .gx-site main > .phero:first-child::before { background-image:
    linear-gradient(90deg, rgba(5, 7, 12, .95) 0%, rgba(5, 7, 12, .86) 38%, rgba(5, 7, 12, .4) 60%, rgba(5, 7, 12, .08) 82%),
    linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, transparent 22%, transparent 70%, #05070c 100%),
    url("/assets/universe/art/smartnodes.webp"); }
  .gx-site main > .ghero:first-child::before { background-image:
    linear-gradient(90deg, rgba(5, 7, 12, .95) 0%, rgba(5, 7, 12, .86) 38%, rgba(5, 7, 12, .4) 60%, rgba(5, 7, 12, .08) 82%),
    linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, transparent 22%, transparent 70%, #05070c 100%),
    url("/assets/universe/art/do.webp"); }
}
.gx-site main > .phero:first-child > .wrap, .gx-site main > .ghero:first-child > .wrap { position: relative; width: 100%; }
.gx-site main > .phero:first-child h1 { font: 500 clamp(2.5rem, 5.2vw, 5.1rem)/1.0 var(--sans); letter-spacing: -.045em; max-width: 14em; }
.gx-site .ghero-grid { grid-template-columns: minmax(0, 1fr); }
.gx-site .ghero-grid > div:first-child { max-width: 46rem; }
.gx-site .ghero .gnet { display: none; }
.gx-site main > .ghero:first-child h1 { font: 500 clamp(2.5rem, 5.2vw, 5.1rem)/1.0 var(--sans); letter-spacing: -.045em; }
[dir="rtl"] .gx-site main > .phero:first-child::before, [dir="rtl"] .gx-site main > .ghero:first-child::before { transform: scaleX(-1); }

/* --- news articles: a quiet still behind the headline; long headlines set at reading size -------------------- */
.gx-site .gx-article { position: relative; isolation: isolate; }
.gx-site .gx-article::before {
  content: ""; position: absolute; inset: 0 0 auto; height: min(70vh, 640px); z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 12, .96) 0%, rgba(5, 7, 12, .88) 45%, rgba(5, 7, 12, .55) 75%, rgba(5, 7, 12, .35) 100%),
    linear-gradient(180deg, transparent 40%, #05070c 100%), #05070c url("/assets/universe/art/do-1200.webp") right top / cover no-repeat;
  opacity: .9;
}
.gx-site .gx-h1--article { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.06; max-width: 22em; }
