/* ==========================================================================
   Kdigilab Design Tokens
   Mirrors the Figma file "Kdigilab - Brand, Design System & Website":
   collections Primitives / Color (Light, Dark) / Spacing & Radius + text styles.
   ========================================================================== */

:root {
  /* ---- Primitives · Signal Blue ---- */
  --blue-50: #F4F9FF;  --blue-100: #E4EFFE; --blue-200: #C3DAFC; --blue-300: #93BAF7;
  --blue-400: #5E95EF; --blue-500: #3575E8; --blue-600: #2A5ECF; --blue-700: #2149A6;
  --blue-800: #1C3B80; --blue-900: #152A5A;

  /* ---- Primitives · Spark Cyan ---- */
  --cyan-50: #EEFCFE;  --cyan-100: #D3F7FC; --cyan-200: #B4F3FC; --cyan-300: #93EEFB;
  --cyan-400: #6BE6F8; --cyan-500: #3FCFE8; --cyan-600: #22ADCB; --cyan-700: #1A88A4;
  --cyan-800: #186C82; --cyan-900: #15586A;

  /* ---- Primitives · Ink ---- */
  --ink-0: #FFFFFF;   --ink-50: #F6F8FA;  --ink-100: #EDF0F4; --ink-200: #DCE0E6;
  --ink-300: #B9BEC7; --ink-400: #8B919D; --ink-500: #5E6471; --ink-600: #40454F;
  --ink-700: #2A2E37; --ink-800: #1C1F26; --ink-900: #111318; --ink-950: #090A0D;

  /* ---- Signal gradient ---- */
  --gradient-signal: linear-gradient(90deg, #2A5ECF 0%, #3575E8 45%, #6BE6F8 100%);

  /* ---- Spacing ---- */
  --space-2xs: 4px;  --space-xs: 8px;   --space-sm: 12px;  --space-md: 16px;
  --space-lg: 24px;  --space-xl: 32px;  --space-2xl: 48px; --space-3xl: 64px;
  --space-4xl: 96px; --space-5xl: 128px; --space-6xl: 160px;

  /* ---- Radius ---- */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 32px; --radius-full: 999px;

  /* ---- Typography ---- */
  --font-display: "Quicksand", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  --font-body: "Quicksand", ui-rounded, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid sizes: Figma desktop value is the max */
  --fs-display-xl: clamp(3.5rem, 11.2vw, 10rem);     /* 160 */
  --fs-display-l:  clamp(2.75rem, 7.8vw, 7rem);      /* 112 */
  --fs-h1:         clamp(2.5rem, 5vw, 4.5rem);        /* 72 */
  --fs-h2:         clamp(1.875rem, 3.6vw, 3.25rem);   /* 52 */
  --fs-h3:         clamp(1.5rem, 2.5vw, 2.25rem);     /* 36 */
  --fs-h4:         clamp(1.25rem, 1.7vw, 1.5rem);     /* 24 */
  --fs-lead:       clamp(1.125rem, 1.55vw, 1.375rem); /* 22 */
  --fs-body:       1.0625rem;                          /* 17 */
  --fs-small:      0.875rem;                           /* 14 */
  --fs-button:     1rem;                               /* 16 */
  --fs-label:      0.75rem;                            /* 12 */

  /* ---- Layout ---- */
  --container: 1440px;
  --gutter: clamp(20px, 6.67vw, 96px);
  --section-y: clamp(96px, 11vw, 160px);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
}

/* ==========================================================================
   Semantic tokens (Figma collection "Color")
   Default = Dark (matches the website frame). Sections with .invert use the
   opposite mode, exactly like the light sections in Figma.
   ========================================================================== */

:root,
[data-theme="light"] .invert {
  --color-bg-canvas: var(--ink-950);
  --color-bg-surface: var(--ink-900);
  --color-bg-elevated: var(--ink-800);
  --color-bg-brand: var(--blue-500);
  --color-bg-brand-subtle: var(--blue-900);
  --color-text-primary: var(--ink-0);
  --color-text-secondary: var(--ink-300);
  --color-text-muted: var(--ink-400);
  --color-text-brand: var(--cyan-400);
  --color-text-on-brand: var(--ink-0);
  --color-border-default: var(--ink-800);
  --color-border-strong: var(--ink-700);
  --color-brand-primary: var(--blue-400);
  --color-brand-accent: var(--cyan-400);
  --color-bg-action: var(--blue-600);
  --color-bg-action-hover: var(--blue-700);
  color-scheme: dark;
}

[data-theme="light"],
:root:not([data-theme="light"]) .invert {
  --color-bg-canvas: var(--blue-50);
  --color-bg-surface: var(--ink-0);
  --color-bg-elevated: var(--ink-100);
  --color-bg-brand: var(--blue-500);
  --color-bg-brand-subtle: var(--blue-100);
  --color-text-primary: var(--ink-950);
  --color-text-secondary: var(--ink-600);
  --color-text-muted: var(--ink-500);
  --color-text-brand: var(--blue-600);
  --color-text-on-brand: var(--ink-0);
  --color-border-default: var(--ink-200);
  --color-border-strong: var(--ink-300);
  --color-brand-primary: var(--blue-500);
  --color-brand-accent: var(--cyan-400);
  --color-bg-action: var(--blue-600);
  --color-bg-action-hover: var(--blue-700);
  color-scheme: light;
}
