/*
 * Cogiens Brand Tokens v1.0
 * Cogiens Unified Experience Plane v1.1.1
 * This file is the sole color-token source for the platform UI.
 */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --border: #D7E0ED;
  --text-primary: #172033;
  --text-secondary: #5F6F89;
  --brand: #347FD1;
  --accent: #E96A18;
  --success: #1E9E70;
  --danger: #D94D5C;
  --primary-strong: #246AB8;
  --primary-soft: #E7F1FD;
  --surface-2: #EDF3FA;
  --warning: #D97706;
  --overlay: rgba(17, 26, 46, 0.42);
  --shadow: rgba(24, 43, 77, 0.14);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0F1E;
  --surface: #111A2E;
  --border: #22304D;
  --text-primary: #E8ECF5;
  --text-secondary: #8FA0BF;
  --brand: #4EA3FF;
  --accent: #FF7A1A;
  --success: #3DDC97;
  --danger: #FF6B6B;
  --primary-strong: #2E86E6;
  --primary-soft: #12233F;
  --surface-2: #17223B;
  --warning: #FF9A3D;
  --overlay: rgba(2, 6, 18, 0.66);
  --shadow: rgba(0, 0, 0, 0.32);
}

:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --primary: var(--brand);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border);
  --focus: var(--brand);
  --font-ui: Inter, "Noto Sans SC", "Noto Sans Arabic", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: Consolas, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --brand-gradient: linear-gradient(135deg, var(--brand), var(--primary-strong));
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
}
