/* ==========================================================================
   Tensor Digital — Design Tokens
   Single source of truth for color, type, spacing, motion, and elevation.
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --brand-violet: #6d5ef6;
  --brand-violet-600: #5b4de0;
  --brand-cyan: #22d3ee;
  --brand-emerald: #34d399;
  --brand-amber: #fbbf24;

  --gradient-brand: linear-gradient(135deg, #6d5ef6 0%, #22d3ee 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(109, 94, 246, 0.14) 0%, rgba(34, 211, 238, 0.14) 100%);
  --gradient-hero: radial-gradient(1200px 600px at 15% -10%, rgba(109, 94, 246, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(34, 211, 238, 0.28), transparent 55%);

  /* ---- Neutrals ---- */
  --ink-950: #0b0f1a;
  --ink-900: #111726;
  --ink-800: #1b2334;
  --ink-700: #2a3346;
  --ink-500: #5b6577;
  --ink-400: #7b869a;
  --ink-300: #aab2c2;
  --ink-200: #d7dce4;
  --ink-100: #eef1f6;
  --ink-50: #f7f8fb;
  --white: #ffffff;

  /* ---- Semantic surfaces (light-first theme) ---- */
  --bg: var(--white);
  --bg-subtle: var(--ink-50);
  --surface: var(--white);
  --border: #e6e9f0;
  --text: var(--ink-950);
  --text-muted: var(--ink-500);
  --text-inverse: var(--white);

  /* ---- Dark sections ---- */
  --dark-bg: #151e38;
  --dark-surface: rgba(255, 255, 255, 0.04);
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-text: #eef1f6;
  --dark-text-muted: #9aa4b6;

  /* ---- Typography ---- */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 4vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 6vw, 4rem);
  --fs-hero: clamp(2.75rem, 7vw, 5rem);

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-normal: 1.6;

  /* ---- Spacing scale (8pt) ---- */
  --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;

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(11, 15, 26, 0.06), 0 1px 3px rgba(11, 15, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 15, 26, 0.08), 0 2px 6px rgba(11, 15, 26, 0.05);
  --shadow-lg: 0 24px 60px rgba(11, 15, 26, 0.12), 0 8px 20px rgba(11, 15, 26, 0.08);
  --shadow-glow: 0 20px 50px rgba(109, 94, 246, 0.35);

  /* ---- Layout ---- */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 76px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 600ms;
}
