/* ==========================================================================
   @cloudingenium/design-tokens — CloudIngenium (plain :root vars twin)
   Dev / cloud / tech / internal IT + observability. Indigo-violet primary signals tech/cloud mood, cyan accent echoes terminal/data aesthetic.
   Generated from tokens.source.json — do not edit directly.

   Browser-parsable twin of cloudingenium.css: every brand token under a
   plain :root block (NOT the Tailwind at-rule, which is parser-invisible).
   Link this directly from non-Tailwind consumers (e.g. Blazor _Host.cshtml).
   ========================================================================== */

:root {
  /* --- Palette --- */
  --color-primary-50: #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;
  --color-primary-950: #1e1b4b;
  --color-accent-50: #ecfeff;
  --color-accent-100: #cffafe;
  --color-accent-200: #a5f3fc;
  --color-accent-300: #67e8f9;
  --color-accent-400: #22d3ee;
  --color-accent-500: #06b6d4;
  --color-accent-600: #0891b2;
  --color-accent-700: #0e7490;
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  --color-neutral-950: #020617;

  /* --- Semantic --- */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-400: #f87171;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-400: #60a5fa;
  --color-info-500: #3b82f6;
  --color-info-600: #2563eb;

  /* --- Surface (light mode defaults) --- */
  --color-surface-bg: #f8fafc;
  --color-surface-card: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-overlay: oklch(0 0 0 / 0.5);
  --color-surface-popover: #ffffff;
  --color-surface-input: #f8fafc;

  /* --- Typography --- */
  --font-sans: 'DM Sans', Inter, system-ui, -apple-system, sans-serif;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
  --text-4xl: clamp(2.2rem, 1.6rem + 3vw, 3.5rem);
  --text-5xl: clamp(2.8rem, 2rem + 4vw, 4.5rem);

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* --- Shadow (light mode) --- */
  --shadow-sm: 0 4px 12px oklch(0 0 0 / 0.03);
  --shadow-md: 0 10px 30px oklch(0 0 0 / 0.05);
  --shadow-lg: 0 20px 40px oklch(0 0 0 / 0.08);
  --shadow-xl: 0 25px 50px oklch(0 0 0 / 0.12);
  --shadow-2xl: 0 30px 60px oklch(0 0 0 / 0.2);
  --shadow-glow: 0 0 30px oklch(0.6 0.15 280 / 0.15);
  --shadow-glow-accent: 0 0 40px oklch(0.7 0.15 200 / 0.2);
  --shadow-glow-primary: 0 0 40px oklch(0.55 0.2 280 / 0.25);
  --shadow-inner: inset 0 2px 4px oklch(0 0 0 / 0.06);

  /* --- Gradients --- */
  --background-image-primary: linear-gradient(135deg, #6366f1, #06b6d4);
  --background-image-primary-subtle: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --background-image-glow: radial-gradient(ellipse at center, oklch(0.55 0.2 280 / 0.15) 0%, transparent 70%);
  --background-image-glass: linear-gradient(135deg, oklch(1 0 0 / 0.05), oklch(1 0 0 / 0.02));
  --background-image-aurora: linear-gradient(135deg, oklch(0.5 0.2 280 / 0.15), oklch(0.5 0.15 200 / 0.1), oklch(0.4 0.15 320 / 0.08));

  /* --- Spacing --- */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --spacing-5xl: 8rem;

  /* --- Motion --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout (container utilities + runtime aliases) --- */
  --container-site: 1240px;
  --container-reading: 840px;
  --radius-default: 12px;
  --drawer-width-left: 260px;
  --drawer-width-right: 320px;
  --appbar-height: 56px;
  --container-max: 1240px;
  --container-narrow: 840px;

  /* --- Z-index (Tailwind shape + back-compat alias) --- */
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-drawer: 300;
  --z-index-modal-backdrop: 400;
  --z-index-modal: 500;
  --z-index-popover: 600;
  --z-index-toast: 700;
  --z-index-tooltip: 800;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-drawer: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-toast: 700;
  --z-tooltip: 800;
}

[data-theme="dark"] {
  --color-surface-bg: #020617;
  --color-surface-card: oklch(0.25 0.02 260 / 0.5);
  --color-surface-elevated: #1e293b;
  --color-surface-overlay: oklch(0 0 0 / 0.6);
  --color-surface-popover: #1e293b;
  --color-surface-input: #1e293b;
  --shadow-sm: 0 4px 12px oklch(0 0 0 / 0.2);
  --shadow-md: 0 10px 30px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 20px 40px oklch(0 0 0 / 0.4);
  --shadow-xl: 0 25px 50px oklch(0 0 0 / 0.5);
  --shadow-2xl: 0 30px 60px oklch(0 0 0 / 0.6);
  --shadow-glow: 0 0 30px oklch(0.6 0.15 280 / 0.3);
  --shadow-glow-accent: 0 0 40px oklch(0.7 0.15 200 / 0.35);
  --shadow-glow-primary: 0 0 40px oklch(0.55 0.2 280 / 0.4);
  --shadow-inner: inset 0 2px 4px oklch(0 0 0 / 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-surface-bg: #020617;
    --color-surface-card: oklch(0.25 0.02 260 / 0.5);
    --color-surface-elevated: #1e293b;
    --color-surface-overlay: oklch(0 0 0 / 0.6);
    --color-surface-popover: #1e293b;
    --color-surface-input: #1e293b;
    --shadow-sm: 0 4px 12px oklch(0 0 0 / 0.2);
    --shadow-md: 0 10px 30px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 20px 40px oklch(0 0 0 / 0.4);
    --shadow-xl: 0 25px 50px oklch(0 0 0 / 0.5);
    --shadow-2xl: 0 30px 60px oklch(0 0 0 / 0.6);
    --shadow-glow: 0 0 30px oklch(0.6 0.15 280 / 0.3);
    --shadow-glow-accent: 0 0 40px oklch(0.7 0.15 200 / 0.35);
    --shadow-glow-primary: 0 0 40px oklch(0.55 0.2 280 / 0.4);
    --shadow-inner: inset 0 2px 4px oklch(0 0 0 / 0.3);
  }
}
