/* ============================================
   KOMPAS4 — Design Tokens
   All CSS custom properties for the design system
   ============================================ */

:root {

  /* ─── Color Palette ─────────────────────── */
  --navy-900: #0A1628;
  --navy-800: #0D1E38;
  --navy-700: #112347;
  --navy-600: #1A3358;
  --navy-500: #1E3D6B;
  --navy-400: #2A4F82;

  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  --white:     #FFFFFF;
  --gray-50:   #F8FAFC;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-400:  #94A3B8;
  --gray-500:  #64748B;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1E293B;
  --gray-900:  #0F172A;

  --success:   #10B981;
  --warning:   #F59E0B;
  --error:     #EF4444;

  /* ─── Semantic Aliases ──────────────────── */
  --surface-dark:    var(--navy-900);
  --surface-medium:  var(--navy-800);
  --surface-card:    var(--navy-700);
  --surface-light:   var(--gray-50);
  --surface-white:   var(--white);

  --text-on-dark:         var(--white);
  --text-secondary-dark:  var(--gray-400);
  --text-on-light:        var(--gray-900);
  --text-secondary-light: var(--gray-600);

  --accent-primary:   var(--blue-600);
  --accent-hover:     var(--blue-700);
  --accent-light:     var(--blue-100);
  --accent-subtle:    var(--blue-50);

  /* ─── Typography ─────────────────────────── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  --tracking-tight:  -0.03em;
  --tracking-normal:  0em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.08em;

  /* ─── Spacing ────────────────────────────── */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;
  --s32: 8rem;

  /* ─── Border Radius ──────────────────────── */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-full: 9999px;

  /* ─── Shadows ────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.20);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.28);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.35);
  --shadow-blue: 0 4px 24px rgba(37,99,235,0.35);
  --shadow-card: 0 2px 12px rgba(10,22,40,0.15);

  /* ─── Transitions ────────────────────────── */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ─── Layout ─────────────────────────────── */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 2rem);

  --section-py:    clamp(4rem, 8vw, 6rem);
  --section-py-sm: clamp(2.5rem, 5vw, 4rem);

  /* ─── Navigation ─────────────────────────── */
  --nav-height:   72px;

  /* ─── Z-index ────────────────────────────── */
  --z-base:    1;
  --z-raised:  10;
  --z-sticky:  100;
  --z-overlay: 200;
  --z-modal:   300;
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
}
