/* OmniGuard design tokens - DSYS-1 - omni:design_system:v1
   THE single source of colour / type / space / radius / elevation / motion for
   omniguardlabs.com AND provewall.com. Raw colour values are allowed ONLY in this
   file; ops/design_gate.py turns any raw hex/rgb/hsl elsewhere RED.
   Palette measured from openzeppelin.com computed styles 2026-10-05
   (docs/research/COMPETITOR_SECURITY_SITES_SEO_2026-10-05.md sections 7-8).
   Brand is white-first: dark mode inverts SECTION tokens only, never the accent. */

:root {
  /* ---- palette (measured) ---- */
  --bg: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-dark-2: #131313;
  --surface: #f5f7f8;
  --surface-2: #f8fafb;
  --line: #ebeff1;
  --line-dark: #24262b;
  --ink: #1b1d24;
  --ink-2: #55595f;
  --ink-3: #6b747c;
  --ink-inverse: #ffffff;
  --ink-inverse-2: #b4bac1;
  --accent: #4f56fa;
  --accent-on-dark: #8a90ff;
  --accent-hover: #3b42e6;
  --accent-soft: #eceefe;
  --accent-ink: #ffffff;

  /* ---- semantic (verdicts) ---- */
  --proven: #0ea66b;
  --proven-soft: #e3f6ee;
  --honeypot: #e5484d;
  --honeypot-soft: #fdeaea;
  --unverified: #f5a524;
  --unverified-soft: #fef3e0;
  --unverified-ink: #6b4500;
  --info: #4f56fa;
  --info-soft: #eceefe;

  /* ---- elevation (colour lives here, not in components) ---- */
  --shadow-1: 0 1px 2px rgba(27, 29, 36, 0.06), 0 1px 1px rgba(27, 29, 36, 0.04);
  --shadow-2: 0 8px 24px rgba(27, 29, 36, 0.08), 0 2px 6px rgba(27, 29, 36, 0.05);
  --shadow-3: 0 24px 64px rgba(27, 29, 36, 0.12), 0 6px 16px rgba(27, 29, 36, 0.06);
  --glow-accent: 0 0 0 4px rgba(79, 86, 250, 0.18);
  --scrim: rgba(10, 10, 10, 0.55);

  /* ---- depth layer (DSYS-2 - omni:design_system:v2) ---- */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --grid-line: rgba(79, 86, 250, 0.22);
  --grid-dot: rgba(255, 255, 255, 0.12);
  --bevel-hi: rgba(255, 255, 255, 0.7);
  --bevel-lo: rgba(27, 29, 36, 0.12);
  --glow-proven: 0 0 14px rgba(14, 166, 107, 0.35);
  --glow-honeypot: 0 0 14px rgba(229, 72, 77, 0.35);
  --glow-unverified: 0 0 14px rgba(245, 165, 36, 0.35);
  --ink-gradient: linear-gradient(100deg, var(--accent) 0%, var(--ink) 72%);
  --tracking-display-tight: -0.035em;
  --parallax-shift: 48px;

  /* ---- type ---- */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-display-1: 64px;
  --fs-display-2: 48px;
  --fs-display-3: 36px;
  --fs-h4: 24px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.6;
  --tracking-display: -0.02em;
  --tracking-caps: 0.08em;

  /* ---- space (4-base) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
  --gutter: 16px;
  --container: 1200px;

  /* ---- radii ---- */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 20px;
  --r-pill: 999px;

  /* ---- motion ---- */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 600ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---- section roles (the ONLY tokens dark mode flips) ---- */
  --section-bg: var(--bg);
  --section-surface: var(--surface);
  --section-ink: var(--ink);
  --section-ink-2: var(--ink-2);
  --section-line: var(--line);

  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* A full-bleed dark band (OpenZeppelin's near-black sections). */
.band-dark,
[data-theme="dark"] {
  --section-bg: var(--bg-dark);
  --section-surface: var(--bg-dark-2);
  --section-ink: var(--ink-inverse);
  --section-ink-2: var(--ink-inverse-2);
  --section-line: var(--line-dark);
  --glass-bg: rgba(19, 19, 19, 0.55);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --bevel-hi: rgba(255, 255, 255, 0.18);
  --bevel-lo: rgba(0, 0, 0, 0.4);
  --ink-gradient: linear-gradient(100deg, var(--accent) 0%, var(--ink-inverse) 72%);
  color-scheme: dark;
}

/* OGL3 template theme (OGL3B - docs/research/OGLT3R_RESEARCH.md s3): navy ladder + ONE accent, read from
   news/assets/site.css. Scoped to <html data-theme="ogl3"> (site/ogl3/*); every ogl3 colour lives here. */
[data-theme="ogl3"] {
  --navy-950: #060e1c;
  --navy-900: #0b1f3a;
  --navy-800: #12294a;
  --navy-700: #1b3a66;
  --accent: #1f6feb;
  --accent-on-dark: #58a6ff;
  /* PWUP1a (docs/research/PWUP1_RESEARCH.md s3.2): ProveWall sub-brand, proof states (VALID, Proven) only */
  --pw-accent: #3ddc97;
  --paper: #ffffff;
  --paper-2: #f7f9fb;
  --ink: #0f1720;
  --ink-2: #334155;
  --ink-3: #5b6776;
  --up: #0a7d45;
  --down: #b3261e;
  --warn: #9a6700;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.5);
  --ogl3-line: rgba(88, 166, 255, 0.22);
  --ogl3-line-soft: rgba(255, 255, 255, 0.08);
  --ogl3-grid: rgba(255, 255, 255, 0.04);
  --ogl3-glow: rgba(31, 111, 235, 0.10);
  --ogl3-glow-strong: rgba(31, 111, 235, 0.55);
  --ogl3-glass: rgba(18, 41, 74, 0.55);
  --ogl3-glass-side: rgba(11, 31, 58, 0.72);
  --ogl3-glass-top: rgba(31, 111, 235, 0.38);
  --ogl3-smoke: rgba(6, 14, 28, 0.62);
  --ogl3-shadow: 0 40px 80px rgba(6, 14, 28, 0.6), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  --ogl3-top-glow: 0 0 40px rgba(31, 111, 235, 0.55), 0 0 2px rgba(88, 166, 255, 0.9) inset;
  color-scheme: dark;
}

/* Users who ask for dark get dark SECTIONS; the accent and verdict colours never move. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --section-bg: var(--bg-dark);
    --section-surface: var(--bg-dark-2);
    --section-ink: var(--ink-inverse);
    --section-ink-2: var(--ink-inverse-2);
    --section-line: var(--line-dark);
  }
}
