/* DC Builds design tokens: the single source of truth.
   Names and values match dcbuilds/app/globals.css. After changing a value here, run
     node scripts/check-tokens.mjs
   to list every value that differs from dcbuilds, then copy the change across.
   Marked "blueprint+" = defined here first, not yet in dcbuilds. */

:root {
  /* brand */
  --lime: #c8ff3d;
  --ink: #0b0d10;
  --device-frame: #050607;

  /* surfaces + text (light) */
  --background: #f3f4f6;
  --foreground: #0b0d10;
  --card: #e9ebee;
  --card-foreground: #0b0d10;
  --popover: #f8f9fa;
  --popover-foreground: #0b0d10;
  --surface-2: #e2e5e9;
  --primary: #0b0d10;
  --primary-foreground: #c8ff3d;
  --primary-hover: #232830;
  --secondary: #e2e5e9;
  --secondary-foreground: #0b0d10;
  --muted: #e9ebee;
  --muted-foreground: #444a52;
  --accent: #e2e5e9;
  --accent-foreground: #0b0d10;
  --destructive: #b42318;
  --border: rgba(11, 13, 16, 0.09);
  --border-strong: rgba(11, 13, 16, 0.2);
  --input: rgba(11, 13, 16, 0.14);
  --ring: #0b0d10;
  --accent-text: #4b7200;
  --accent-line: #8bc400;
  --tint-mix: 16%;
  --shadow-lift: 0 34px 70px -30px rgba(23, 30, 41, 0.45);
  --edge: 0 0 0 1px rgba(11, 13, 16, 0.08);
  --chart-1: #0b0d10;
  --chart-2: #444a52;
  --chart-3: #8bc400;
  --chart-4: #a2a8b0;
  --chart-5: #e2e5e9;

  /* status (blueprint+) */
  --success: #2a6b10;
  --warning: #7a5200;
  --good: #2a6b10;
  --bad: #b42318;

  /* spacing scale, 4px base (blueprint+) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* radius: dcbuilds derives sm..4xl from --radius; the --r-* names are blueprint+ */
  --radius: 1rem;
  --r-sm: 10px;
  --r-md: 13px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-exit: 150ms;
  --duration-enter: 260ms;
  --duration-move: 420ms;

  /* type */
  --font: "Satoshi", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  color-scheme: light;
}

/* Dark values. Listed twice: once for the system setting, once for the manual toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0b0d10;
    --foreground: #eef1f4;
    --card: #13161b;
    --card-foreground: #eef1f4;
    --popover: #181c22;
    --popover-foreground: #eef1f4;
    --surface-2: #181c22;
    --primary: #c8ff3d;
    --primary-foreground: #0b0d10;
    --primary-hover: #d6ff6e;
    --secondary: #181c22;
    --secondary-foreground: #eef1f4;
    --muted: #13161b;
    --muted-foreground: #a2a8b0;
    --accent: #181c22;
    --accent-foreground: #eef1f4;
    --destructive: #ff7a6b;
    --border: rgba(238, 241, 244, 0.09);
    --border-strong: rgba(238, 241, 244, 0.18);
    --input: rgba(238, 241, 244, 0.14);
    --ring: #c8ff3d;
    --accent-text: #c8ff3d;
    --accent-line: #c8ff3d;
    --tint-mix: 20%;
    --shadow-lift: 0 34px 70px -28px rgba(0, 0, 0, 0.7);
    --edge: 0 0 0 1px rgba(238, 241, 244, 0.08);
    --chart-1: #eef1f4;
    --chart-2: #a2a8b0;
    --chart-3: #c8ff3d;
    --chart-4: #444a52;
    --chart-5: #181c22;
    --success: #8fdc5a;
    --warning: #f5c451;
    --good: #8fdc5a;
    --bad: #ff7a6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #0b0d10;
  --foreground: #eef1f4;
  --card: #13161b;
  --card-foreground: #eef1f4;
  --popover: #181c22;
  --popover-foreground: #eef1f4;
  --surface-2: #181c22;
  --primary: #c8ff3d;
  --primary-foreground: #0b0d10;
  --primary-hover: #d6ff6e;
  --secondary: #181c22;
  --secondary-foreground: #eef1f4;
  --muted: #13161b;
  --muted-foreground: #a2a8b0;
  --accent: #181c22;
  --accent-foreground: #eef1f4;
  --destructive: #ff7a6b;
  --border: rgba(238, 241, 244, 0.09);
  --border-strong: rgba(238, 241, 244, 0.18);
  --input: rgba(238, 241, 244, 0.14);
  --ring: #c8ff3d;
  --accent-text: #c8ff3d;
  --accent-line: #c8ff3d;
  --tint-mix: 20%;
  --shadow-lift: 0 34px 70px -28px rgba(0, 0, 0, 0.7);
  --edge: 0 0 0 1px rgba(238, 241, 244, 0.08);
  --chart-1: #eef1f4;
  --chart-2: #a2a8b0;
  --chart-3: #c8ff3d;
  --chart-4: #444a52;
  --chart-5: #181c22;
  --success: #8fdc5a;
  --warning: #f5c451;
  --good: #8fdc5a;
  --bad: #ff7a6b;
  color-scheme: dark;
}
