/* ============================================================
   Vértice — design tokens
   Uma única fonte de verdade para cor, tipo, raio e movimento.
   ============================================================ */

:root {
  /* tipografia */
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* raios */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 520ms;

  /* layout */
  --container: 1160px;
  --sidebar-w: 264px;
  --topbar-h: 66px;

  /* cor de marca (igual nos dois temas) */
  --accent-lime: #cdf47f;
  --accent-lime-strong: #dbf9a4;
  --accent-ink: #0b1204;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #07080a;
  --bg-elevated: #0a0c0f;
  --surface: #0e1013;
  --surface-2: #14171b;
  --surface-3: #1b1f24;
  --surface-hover: #171a1f;

  --border: rgba(243, 241, 234, 0.085);
  --border-strong: rgba(243, 241, 234, 0.16);
  --border-faint: rgba(243, 241, 234, 0.05);

  --text: #f3f1ea;
  --text-soft: #d8d5cc;
  --muted: #9a9ca3;
  --faint: #6c6f77;

  --accent: #cdf47f;
  --accent-strong: #ddf9ad;
  --accent-soft: rgba(205, 244, 127, 0.12);
  --accent-line: rgba(205, 244, 127, 0.34);
  --accent-ink: #0b1204;

  --positive: #8fdfa3;
  --positive-soft: rgba(143, 223, 163, 0.12);
  --warning: #f0cf7a;
  --warning-soft: rgba(240, 207, 122, 0.12);
  --danger: #ff8f8f;
  --danger-soft: rgba(255, 143, 143, 0.12);
  --info: #9dc7ff;
  --info-soft: rgba(157, 199, 255, 0.12);

  --glow: radial-gradient(circle at 50% 0%, rgba(205, 244, 127, 0.13), transparent 62%);
  --noise-opacity: 0.035;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.75);

  --glass: rgba(10, 12, 15, 0.72);
  --hairline: rgba(243, 241, 234, 0.08);
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f5f0;
  --bg-elevated: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --surface-3: #e8e4db;
  --surface-hover: #f4f1ea;

  --border: rgba(20, 20, 20, 0.09);
  --border-strong: rgba(20, 20, 20, 0.18);
  --border-faint: rgba(20, 20, 20, 0.05);

  --text: #141414;
  --text-soft: #2c2c2c;
  --muted: #5e5f64;
  --faint: #8b8c91;

  --accent: #cdf47f;
  --accent-strong: #446b0f;
  --accent-soft: rgba(92, 138, 20, 0.12);
  --accent-line: rgba(68, 107, 15, 0.35);
  --accent-ink: #0b1204;

  --positive: #2f7a43;
  --positive-soft: rgba(47, 122, 67, 0.1);
  --warning: #8a6100;
  --warning-soft: rgba(138, 97, 0, 0.1);
  --danger: #b23b36;
  --danger-soft: rgba(178, 59, 54, 0.1);
  --info: #2d5f9e;
  --info-soft: rgba(45, 95, 158, 0.1);

  --glow: radial-gradient(circle at 50% 0%, rgba(180, 215, 110, 0.25), transparent 62%);
  --noise-opacity: 0.02;

  --shadow-sm: 0 1px 2px rgba(25, 22, 14, 0.06);
  --shadow-md: 0 14px 32px -18px rgba(25, 22, 14, 0.22);
  --shadow-lg: 0 40px 90px -36px rgba(25, 22, 14, 0.3);
  --shadow-pop: 0 28px 70px -24px rgba(25, 22, 14, 0.28);

  --glass: rgba(251, 250, 247, 0.78);
  --hairline: rgba(20, 20, 20, 0.08);
}
