/* ============================================
   Design Tokens - Thest.io
   ============================================ */

:root {
  /* Surface system — warm cream palette */
  --color-bg: #FAF7F4;
  --color-bg-alt: #F0ECE6;
  --color-surface: #ffffff;
  --color-surface-alt: #FBF9F7;
  --color-surface-solid: #ffffff;
  --color-surface-tinted: rgba(5, 150, 105, 0.05);
  --color-surface-glass: rgba(255, 255, 255, 0.82);
  --color-surface-dark-glass: rgba(12, 10, 9, 0.78);
  --color-white: #ffffff;
  --color-black: #0C0A09;

  /* Core palette — warm + emerald accent */
  --color-primary: #1C1917;
  --color-primary-light: #F5F0EB;
  --color-primary-dark: #0C0A09;
  --color-accent: #059669;
  --color-accent-dark: #047857;
  --color-accent-light: #10B981;

  /* Text and borders — warm stone tones */
  --color-text: #1C1917;
  --color-text-secondary: #57534E;
  --color-text-muted: #78716C;
  --color-border: rgba(28, 25, 23, 0.10);
  --color-border-strong: rgba(28, 25, 23, 0.20);
  --color-border-soft: rgba(28, 25, 23, 0.06);
  --color-success: #10B981;
  --color-error: #ef4444;

  /* Semantic aliases */
  --color-heading: #0C0A09;
  --color-copy: #57534E;
  --color-copy-muted: #78716C;
  --color-ring: rgba(5, 150, 105, 0.35);

  /* Extended accent palette */
  --color-accent-warm: #EA580C;
  --color-accent-teal: #0891B2;
  --color-accent-violet: #7C3AED;
  --color-accent-navy: #2d3561;
  --color-accent-rose: #E11D48;
  --color-ring-teal: rgba(8, 145, 178, 0.45);
  --color-ring-violet: rgba(124, 58, 237, 0.45);

  /* Category colors */
  --color-category-retrieval: var(--color-accent-teal);
  --color-category-agents: var(--color-accent-violet);
  --color-category-prompts: var(--color-accent-warm);
  --color-category-adaptation: var(--color-accent-navy);
  --color-category-evaluation: var(--color-accent);

  /* Business unit colors */
  --color-unit-advisory: #0891b2;
  --color-unit-advisory-light: rgba(8, 145, 178, 0.10);
  --color-unit-engineering: #7c3aed;
  --color-unit-engineering-light: rgba(124, 58, 237, 0.10);
  --color-unit-enablement: #EA580C;
  --color-unit-enablement-light: rgba(234, 88, 12, 0.10);

  /* Typography — clean sans-serif system */
  --font-family: 'Inter', 'Segoe UI', sans-serif;
  --font-family-display: 'Inter', 'Segoe UI', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --font-size-sm: clamp(0.82rem, 0.79rem + 0.22vw, 0.92rem);
  --font-size-base: clamp(0.98rem, 0.91rem + 0.2vw, 1.08rem);
  --font-size-lg: clamp(1.16rem, 1.02rem + 0.7vw, 1.34rem);
  --font-size-xl: clamp(1.34rem, 1.12rem + 1vw, 1.7rem);
  --font-size-2xl: clamp(1.62rem, 1.28rem + 1.6vw, 2.2rem);
  --font-size-3xl: clamp(2rem, 1.48rem + 2.6vw, 3.2rem);
  --font-size-4xl: clamp(2.8rem, 2rem + 4vw, 4.8rem);
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;
  --line-height-tight: 1.1;
  --line-height-base: 1.7;
  --line-height-loose: 1.85;

  /* Spacing — more generous for breathing room */
  --space-xs: 0.35rem;
  --space-sm: 0.62rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5rem;
  --space-4xl: 7rem;
  --space-5xl: 9rem;
  --space-6xl: 12rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 820px;
  --container-wide: 1320px;
  --header-height: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows — warmer, softer */
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.04), 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.08);
  --shadow-xl: 0 20px 48px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 2px 12px rgba(28, 25, 23, 0.05);
  --shadow-card-hover: 0 12px 32px rgba(28, 25, 23, 0.10);
  --shadow-accent: 0 8px 24px rgba(5, 150, 105, 0.18);
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.28);
  --shadow-card-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-media: 0 16px 48px rgba(28, 25, 23, 0.14);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-emphasized: 500ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Dark hero tokens — warm dark */
  --color-bg-dark: #0C0A09;
  --color-bg-dark-alt: #1C1917;
  --color-surface-dark: rgba(255, 255, 255, 0.05);
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-text-dark: rgba(255, 255, 255, 0.95);
  --color-text-secondary-dark: rgba(255, 255, 255, 0.60);

  /* Gradients — warm tones */
  --gradient-hero: linear-gradient(180deg, #FAF7F4 0%, #F5F0EB 50%, #ffffff 100%);
  --gradient-hero-dark: linear-gradient(170deg, #0C0A09 0%, #1C1917 60%, #292524 100%);
  --gradient-aurora: linear-gradient(135deg, #1C1917 0%, #292524 45%, #1C1917 100%);
  --gradient-premium: linear-gradient(135deg, #1C1917 0%, #292524 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  --gradient-unit-advisory: linear-gradient(135deg, var(--color-unit-advisory) 0%, #0E7490 100%);
  --gradient-unit-engineering: linear-gradient(135deg, var(--color-unit-engineering) 0%, #6D28D9 100%);
  --gradient-unit-enablement: linear-gradient(135deg, var(--color-unit-enablement) 0%, #C2410C 100%);
}
