@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.985 0.004 165);
  --foreground: oklch(0.17 0.012 170);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.17 0.012 170);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.17 0.012 170);
  --primary: oklch(0.80 0.15 165);
  --primary-foreground: oklch(0.17 0.03 170);
  --secondary: oklch(0.94 0.012 165);
  --secondary-foreground: oklch(0.20 0.015 170);
  --muted: oklch(0.95 0.008 165);
  --muted-foreground: oklch(0.46 0.02 170);
  --accent: oklch(0.93 0.02 165);
  --accent-foreground: oklch(0.20 0.015 170);
  --destructive: oklch(0.58 0.20 25);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.89 0.01 165);
  --input: oklch(0.89 0.01 165);
  --ring: oklch(0.70 0.14 165);
  --success: oklch(0.52 0.13 165);
  --warning: oklch(0.70 0.15 75);
  --chart-1: oklch(0.72 0.15 165);
  --chart-2: oklch(0.65 0.18 25);
  --chart-3: oklch(0.70 0.15 75);
  --chart-4: oklch(0.60 0.12 230);
  --chart-5: oklch(0.55 0.02 170);
  --sidebar: oklch(0.965 0.006 165);
  --sidebar-foreground: oklch(0.17 0.012 170);
  --sidebar-primary: oklch(0.80 0.15 165);
  --sidebar-primary-foreground: oklch(0.17 0.03 170);
  --sidebar-accent: oklch(0.92 0.02 165);
  --sidebar-accent-foreground: oklch(0.20 0.015 170);
  --sidebar-border: oklch(0.89 0.01 165);
  --sidebar-ring: oklch(0.70 0.14 165);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.955 0.006 165);
  --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(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.95 0.006 165);
  --border-muted: oklch(0.92 0.008 165);
  --border-strong: oklch(0.78 0.015 165);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.36 0.015 170);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── accents beyond the brand colour ───────────────────────── */
  --faint: oklch(0.55 0.02 290);
  --gold: #f5c451;
  --gold-deep: #c99a2e;
  --gold-foreground: #110d1c;

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.70 0.14 165 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.56 0.20 25);
  --error-foreground: oklch(0.985 0 0);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-weight-display: 600;
  --line-height-display: 1.1;
  --tracking-display: -0.03em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 500;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(10, 20, 16, 0.06);
  --shadow-md: 0 6px 16px rgba(10, 20, 16, 0.10);
  --shadow-lg: 0 18px 44px rgba(10, 20, 16, 0.16);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 300ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-accelerate: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-decelerate: cubic-bezier(0.22, 1, 0.36, 1);

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

.dark {
  --background: #140f21;
  --foreground: #f6f1ff;
  --card: #1a1529;
  --card-foreground: #f6f1ff;
  --popover: #1a1529;
  --popover-foreground: #f6f1ff;
  --primary: #3df2a6;
  --primary-foreground: #110d1c;
  --secondary: #231c36;
  --secondary-foreground: #f6f1ff;
  --muted: #231c36;
  --muted-foreground: #a79fbe;
  --accent: #231c36;
  --accent-foreground: #f6f1ff;
  --destructive: #ff6b81;
  --destructive-foreground: #110d1c;
  --border: #2e2645;
  --input: #2e2645;
  --ring: #3df2a6;
  --success: #3df2a6;
  --warning: #a79fbe;
  --chart-1: #3df2a6;
  --chart-2: #ff6b81;
  --chart-3: #a79fbe;
  --chart-4: #6f6787;
  --chart-5: #3a3157;
  --background-secondary: #1a1529;
  --surface-elevated: #231c36;
  --surface-hover: #231c36;
  --surface-active: #2e2645;
  --border-subtle: #231c36;
  --border-muted: #2e2645;
  --border-strong: #3a3157;
  --foreground-secondary: #a79fbe;
  --faint: #6f6787;
  --gold: #f5c451;
  --gold-deep: #c99a2e;
  --gold-foreground: #110d1c;
  --primary-hover: color-mix(in srgb, var(--primary) 86%, white);
  --primary-muted: #2e2645;
  --primary-soft: #231c36;
  --primary-tint: #1a1529;
  --focus-ring: rgb(61 242 166 / 0.5);
  --error: #ff6b81;
  --error-foreground: #110d1c;
  --sidebar: #140f21;
  --sidebar-foreground: #f6f1ff;
  --sidebar-primary: #3df2a6;
  --sidebar-primary-foreground: #110d1c;
  --sidebar-accent: #231c36;
  --sidebar-accent-foreground: #f6f1ff;
  --sidebar-border: #2e2645;
  --sidebar-ring: #3df2a6;
}
