/* ReelIQ design tokens — shared by the extension, the dashboard and the website.
   Direction: black glass, one cyan light, one lime glow reserved for A+ / "hit".
   Fonts are self-hosted (Geist + Geist Mono, SIL OFL) from /fonts/. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;

  /* surfaces */
  --riq-bg: #050608;
  --riq-surface: #0c0e13;
  --riq-surface-2: #12151c;
  --riq-line: rgba(255, 255, 255, 0.07);
  --riq-line-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --riq-fg: #f2f4f8;
  --riq-muted: #8b92a3;   /* 6.6:1 on bg */
  --riq-dim: #5b6272;

  /* lights */
  --riq-accent: #4be3ff;  /* cyan: interactive + data */
  --riq-hit: #c8ff3d;     /* lime: A+ / signal detected ONLY */
  --riq-glow-accent: 0 0 0 6px rgba(75, 227, 255, 0.12);
  --riq-glow-hit: 0 0 18px rgba(200, 255, 61, 0.55);

  /* grade scale */
  --riq-grade-aplus: #c8ff3d;
  --riq-grade-a: #4be3ff;
  --riq-grade-b: #a7b4ff;
  --riq-grade-c: #8b92a3;
  --riq-grade-d: #ffb547;
  --riq-grade-f: #ff4d7d;

  /* type */
  --riq-sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --riq-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --riq-text-xs: 12px;
  --riq-text-sm: 14px;
  --riq-text-md: 16px;
  --riq-text-lg: 18px;
  --riq-text-xl: 24px;
  --riq-text-2xl: 38px;
  --riq-text-hero: clamp(40px, 7.5vw, 84px);
  --riq-tracking-tight: -0.04em;
  --riq-tracking-label: 0.08em;

  /* space + shape */
  --riq-s1: 4px; --riq-s2: 8px; --riq-s3: 12px; --riq-s4: 16px; --riq-s5: 24px; --riq-s6: 32px; --riq-s7: 48px; --riq-s8: 72px; --riq-s9: 120px;
  --riq-r-sm: 10px;
  --riq-r-md: 16px;
  --riq-r-lg: 20px;
  --riq-r-xl: 28px;
  --riq-r-pill: 999px;

  /* motion */
  --riq-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --riq-fast: 150ms;
  --riq-med: 250ms;
  --riq-slow: 400ms;
}

/* shared base primitives */
[hidden] { display: none !important; }
.riq-label { font-family: var(--riq-mono); font-size: var(--riq-text-xs); letter-spacing: var(--riq-tracking-label); color: var(--riq-muted); text-transform: uppercase; }
.riq-num { font-family: var(--riq-mono); font-variant-numeric: tabular-nums; }
.riq-btn { font: 500 15px var(--riq-sans); padding: 13px 22px; border-radius: var(--riq-r-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--riq-fast) var(--riq-ease), box-shadow var(--riq-med) var(--riq-ease), background var(--riq-med) var(--riq-ease); }
.riq-btn:active { transform: scale(0.98); }
.riq-btn:focus-visible { outline: 2px solid var(--riq-accent); outline-offset: 3px; }
.riq-btn--primary { background: var(--riq-fg); color: var(--riq-bg); }
.riq-btn--primary:hover { box-shadow: var(--riq-glow-accent); }
.riq-btn--ghost { background: transparent; color: var(--riq-fg); border-color: var(--riq-line-strong); }
.riq-btn--accent { background: var(--riq-accent); color: var(--riq-bg); }
.riq-card { background: var(--riq-surface); border: 1px solid var(--riq-line); border-radius: var(--riq-r-lg); }
.riq-grade { font-weight: 600; }
.riq-grade--aplus { color: var(--riq-grade-aplus); text-shadow: var(--riq-glow-hit); }
.riq-grade--a { color: var(--riq-grade-a); }
.riq-grade--b { color: var(--riq-grade-b); }
.riq-grade--c { color: var(--riq-grade-c); }
.riq-grade--d { color: var(--riq-grade-d); }
.riq-grade--f { color: var(--riq-grade-f); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
