/* Copyright (c) 2026 ForesightX. All rights reserved. */
/* Proprietary and confidential. Unauthorized use prohibited. */

/* ForesightX web theme. Single source of truth for every page.
   Palette taken from the seed deck and brochure: navy + green. */
:root,
body.theme-iron.accent-moss.serif-garamond {
  --bg:        #0b1520;
  --bg-soft:   #0b1520;
  --paper:     #0f1f30;
  --card:      #0f1f30;
  --ink:       #e2e8ef;
  --ink-mid:   #9fb0c0;
  --ink-soft:  #8a98a6;
  --ink-faint: #7f8e9c;
  --rule:        rgba(226, 232, 239, 0.08);
  --rule-mid:    rgba(226, 232, 239, 0.16);
  --rule-strong: rgba(226, 232, 239, 0.30);
  --accent:        #1aa877;
  --accent-bright: #2fc48f;
  --accent-deep:   #0f7a57;
  --accent-glow:   rgba(26, 168, 119, 0.16);
  --head-bg:       rgba(11, 21, 32, 0.88);
  --scroll:        #24435d;

  --serif: 'EB Garamond', Georgia, serif;
  --sans:  'Inter Tight', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
}

/* Light theme: set on <html data-theme="light"> by theme-init.js (system setting, or the visitor's choice) */
:root[data-theme="light"] {
  --bg:        #f6f8fa;
  --bg-soft:   #eef2f5;
  --paper:     #ffffff;
  --card:      #ffffff;
  --ink:       #0b1520;
  --ink-mid:   #3b4856;
  --ink-soft:  #52606d;
  --ink-faint: #5f6b77;
  --rule:        rgba(11, 21, 32, 0.09);
  --rule-mid:    rgba(11, 21, 32, 0.16);
  --rule-strong: rgba(11, 21, 32, 0.30);
  --accent:        #0e7a55;
  --accent-bright: #0b7350;
  --accent-deep:   #095c40;
  --accent-glow:   rgba(14, 122, 85, 0.14);
  --head-bg:       rgba(246, 248, 250, 0.9);
  --scroll:        #c3ccd4;
}

/* Product visuals (the stack, the slider) are drawn for a dark screen: they keep the dark tokens in both themes */
.dark-panel, .vs {
  --bg:        #0b1520;
  --paper:     #0f1f30;
  --card:      #0f1f30;
  --ink:       #e2e8ef;
  --ink-mid:   #9fb0c0;
  --ink-soft:  #8a98a6;
  --ink-faint: #7f8e9c;
  --rule:        rgba(226, 232, 239, 0.08);
  --rule-mid:    rgba(226, 232, 239, 0.16);
  --rule-strong: rgba(226, 232, 239, 0.30);
  --accent:        #1aa877;
  --accent-bright: #2fc48f;
  --accent-deep:   #0f7a57;
  --accent-glow:   rgba(26, 168, 119, 0.16);
  color: var(--ink);
}

/* IRIS identity colours, from foresight-web IrisOrb */
:root {
  --iris-violet: #a06bff;
  --iris-cyan:   #2ad4f0;
  --iris-violet-glow: rgba(160, 107, 255, 0.35);
}

/* ---------- scroll bars in the site theme ---------- */
html { scrollbar-color: var(--scroll) var(--bg); scrollbar-width: thin; }
* { scrollbar-color: var(--scroll) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }
::-webkit-scrollbar-corner { background: var(--bg); }
::selection { background: rgba(26,168,119,.35); color: #fff; }
