@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.13 0.008 20);
  --foreground: oklch(0.96 0.012 80);
  --card: oklch(0.175 0.01 20);
  --card-foreground: oklch(0.96 0.012 80);
  --popover: oklch(0.19 0.01 20);
  --popover-foreground: oklch(0.96 0.012 80);
  --primary: oklch(0.5 0.21 27);
  --primary-foreground: oklch(0.985 0.01 80);
  --secondary: oklch(0.23 0.012 20);
  --secondary-foreground: oklch(0.96 0.012 80);
  --muted: oklch(0.23 0.012 20);
  --muted-foreground: oklch(0.73 0.02 70);
  --accent: oklch(0.25 0.025 70);
  --accent-foreground: oklch(0.97 0.02 85);
  --destructive: oklch(0.6 0.22 27);
  --destructive-foreground: oklch(0.14 0.01 80);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.8 0.16 85);
  --success: oklch(0.74 0.17 150);
  --warning: oklch(0.8 0.16 85);
  --chart-1: oklch(0.58 0.22 27);
  --chart-2: oklch(0.8 0.16 85);
  --chart-3: oklch(0.7 0.02 70);
  --chart-4: oklch(0.45 0.15 27);
  --chart-5: oklch(0.6 0.12 85);
  --sidebar: oklch(0.105 0.008 20);
  --sidebar-foreground: oklch(0.96 0.012 80);
  --sidebar-primary: oklch(0.5 0.21 27);
  --sidebar-primary-foreground: oklch(0.985 0.01 80);
  --sidebar-accent: oklch(0.2 0.012 20);
  --sidebar-accent-foreground: oklch(0.96 0.012 80);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.8 0.16 85);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.155 0.009 20);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(0.22 0.012 20);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 24%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.015 75);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 85%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 22%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 12%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 7%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.8 0.16 85 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.7 0.2 27);
  --error-foreground: oklch(0.3 0.01 80);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.25rem;
  --radius-none: 0rem;
  --radius-sm: 0.125rem;
  --radius-lg: 0.375rem;
  --radius-xl: 0.5rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Bebas Neue", "Anton", Impact, "Arial Narrow", sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 0.95;
  --tracking-display: 0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 40px oklch(0.5 0.21 27 / 0.18);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.12 0.008 20);
  --foreground: oklch(0.965 0.012 80);
  --card: oklch(0.165 0.01 20);
  --card-foreground: oklch(0.965 0.012 80);
  --popover: oklch(0.18 0.01 20);
  --popover-foreground: oklch(0.965 0.012 80);
  --primary: oklch(0.52 0.21 27);
  --primary-foreground: oklch(0.985 0.01 80);
  --secondary: oklch(0.22 0.012 20);
  --secondary-foreground: oklch(0.965 0.012 80);
  --muted: oklch(0.22 0.012 20);
  --muted-foreground: oklch(0.74 0.02 70);
  --accent: oklch(0.24 0.025 70);
  --accent-foreground: oklch(0.97 0.02 85);
  --destructive: oklch(0.62 0.22 27);
  --destructive-foreground: oklch(0.985 0.01 80);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.8 0.16 85);
  --success: oklch(0.74 0.17 150);
  --warning: oklch(0.8 0.16 85);
  --chart-1: oklch(0.58 0.22 27);
  --chart-2: oklch(0.8 0.16 85);
  --chart-3: oklch(0.7 0.02 70);
  --chart-4: oklch(0.45 0.15 27);
  --chart-5: oklch(0.6 0.12 85);
  --sidebar: oklch(0.095 0.008 20);
  --sidebar-foreground: oklch(0.965 0.012 80);
  --sidebar-primary: oklch(0.52 0.21 27);
  --sidebar-primary-foreground: oklch(0.985 0.01 80);
  --sidebar-accent: oklch(0.19 0.012 20);
  --sidebar-accent-foreground: oklch(0.965 0.012 80);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.8 0.16 85);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.145 0.009 20);
  --surface-elevated: oklch(0.21 0.012 20);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 24%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.015 75);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 7%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.8 0.16 85 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.7 0.2 27);
  --error-foreground: oklch(0.985 0.01 80);
}
