/* ============================================================
   SCIGENIX · Colour tokens
   Brand palette sourced from the Scigenix Brand Style Sheet
   and the Scigenix product UI (dark-first).
   ============================================================ */

:root {
  /* ---- Brand core ---- */
  --color-black:        #121113;  /* Night Black — primary brand dark */
  --color-white:        #ffffff;
  --color-offwhite:     #f4f5f7;  /* Anti-Flash White */

  --color-green:        #22c55e;  /* Brand Green — PRIMARY accent (scigenix.ai) */
  --color-green-bright: #4ade80;  /* lighter sibling — hero accent / hover lift */
  --color-green-deep:   #16a34a;  /* pressed / darker green */
  --color-green-ink:    #0b3d14;  /* green tint on light surfaces */

  --color-blue:         #5579ff;  /* Pan Purple — secondary accent */
  --color-blue-deep:    #4e6fe9;  /* pressed blue */

  /* ---- Dark neutral surfaces (product UI) ---- */
  --ink-950: #0b0c0e;
  --ink-900: #0f1117;  /* app background */
  --ink-850: #121113;  /* brand black */
  --ink-800: #181a1f;
  --ink-750: #1e2028;  /* card / panel */
  --ink-700: #222124;  /* elevated chip */
  --ink-600: #2d3748;  /* hairline border on dark */
  --ink-500: #3a4151;

  /* ---- Grey ramp (text + light neutrals) ---- */
  --gray-50:  #f4f5f7;
  --gray-100: #f3f4f6;
  --gray-200: #e7e9ee;
  --gray-300: #d1d5dc;
  --gray-400: #9ca3af;
  --gray-500: #98a2b3;
  --gray-600: #6b7280;
  --gray-700: #475467;
  --gray-800: #2a3242;
  --gray-900: #101828;

  /* ---- Status ---- */
  --color-success: #22c55e;
  --color-info:    #5579ff;
  --color-warning: #f5b531;
  --color-danger:  #e2483d;

  /* ============================================================
     SEMANTIC ALIASES — DARK theme is the brand default
     ============================================================ */
  --bg-base:      var(--ink-900);
  --bg-surface:   var(--ink-750);
  --bg-elevated:  var(--ink-700);
  --bg-inset:     var(--ink-950);
  --bg-canvas:    var(--ink-850);

  --text-primary:   var(--gray-100);
  --text-secondary: var(--gray-300);
  --text-muted:     var(--gray-400);
  --text-inverse:   var(--color-black);
  --text-accent:    var(--color-green);

  --accent:          var(--color-green);
  --accent-hover:    var(--color-green-bright);
  --accent-pressed:  var(--color-green-deep);
  --accent-contrast: var(--color-black);   /* text on a green fill */

  --accent-2:         var(--color-blue);
  --accent-2-hover:   #6d8bff;
  --accent-2-contrast:#ffffff;

  --border-subtle:  rgba(255,255,255,0.06);
  --border-default: var(--ink-600);
  --border-strong:  var(--ink-500);

  --ring: rgba(34,197,94,0.45);

  /* tinted accent fills (chips, badges, soft buttons) */
  --accent-soft:    rgba(34,197,94,0.12);
  --accent-soft-bd: rgba(34,197,94,0.35);
  --accent-2-soft:  rgba(85,121,255,0.14);
  --danger-soft:    rgba(226,72,61,0.14);
  --warning-soft:   rgba(245,181,49,0.14);
}

/* ============================================================
   LIGHT theme scope — used for brand sheets, docs, print,
   and the marketing site's light sections.
   ============================================================ */
.theme-light {
  --bg-base:      var(--color-offwhite);
  --bg-surface:   var(--color-white);
  --bg-elevated:  var(--color-white);
  --bg-inset:     var(--gray-100);
  --bg-canvas:    var(--color-white);

  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted:     var(--gray-500);
  --text-inverse:   var(--color-white);
  --text-accent:    var(--color-green-deep);

  --accent-contrast: var(--color-black);

  --border-subtle:  rgba(16,24,40,0.06);
  --border-default: var(--gray-300);
  --border-strong:  var(--gray-400);

  --accent-soft:    rgba(34,197,94,0.14);
  --accent-soft-bd: rgba(34,197,94,0.40);
}
