/* ==========================================================================
   CINTEXA DESIGN TOKENS
   Connected Intelligent Technology Exchange Architecture
   ========================================================================== */

:root {
  /* ---- Color: surfaces ---- */
  --bg: #EEF2F8;
  --surface: #FFFFFF;
  --surface-raised: #F7F9FC;
  --surface-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(30, 60, 110, 0.12);
  --border-glass-strong: rgba(30, 60, 110, 0.22);

  /* ---- Color: brand ---- */
  --blue: #1E6BFF;
  --cyan: #0BB8D8;
  --purple: #7C4DFF;

  /* ---- Color: text ---- */
  --text-primary: #0B1B33;
  --text-secondary: #46586F;
  --text-muted: #7888A0;

  /* ---- Color: semantic ---- */
  --success: #2BD9A0;
  --warning: #FFB020;
  --danger: #FF5470;

  /* ---- Gradients ---- */
  /* blue-light is a brightened variant of --blue used only as the grad-primary
     start stop, so dark button text (#04101F) keeps a safe contrast margin
     across the full gradient. --blue itself stays unchanged for borders/accents. */
  --blue-light: #3A85FF;
  --grad-primary: linear-gradient(135deg, var(--blue-light) 0%, var(--cyan) 100%);
  --grad-purple: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  --grad-mesh: radial-gradient(circle at 15% 10%, rgba(124,77,255,0.10), transparent 45%),
               radial-gradient(circle at 85% 0%, rgba(11,184,216,0.10), transparent 40%),
               radial-gradient(circle at 50% 100%, rgba(30,107,255,0.08), transparent 50%);

  /* ---- Typography ---- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --fs-display-xl: clamp(2.5rem, 5.2vw, 4.75rem);
  --fs-display-lg: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-display-md: clamp(1.75rem, 3vw, 2.5rem);
  --fs-display-sm: clamp(1.375rem, 2vw, 1.75rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-caption: 0.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.35;
  --lh-normal: 1.6;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.06em;
  --tracking-widest: 0.14em;

  /* ---- Spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---- Layout ---- */
  --content-max: 1280px;
  --content-pad: clamp(1.25rem, 5vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;

  /* ---- Elevation ---- */
  --shadow-glow-blue: 0 0 40px rgba(30, 107, 255, 0.25);
  --shadow-glow-cyan: 0 0 40px rgba(25, 211, 255, 0.2);
  --shadow-card: 0 20px 60px -20px rgba(15, 30, 60, 0.18);
  --shadow-pop: 0 10px 30px -8px rgba(15, 30, 60, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}
