/* ==========================================================================
   WORLD EXPERTS MEET — Design Tokens & CSS Custom Properties
   variables.css — Single source of truth for all design decisions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE
   -------------------------------------------------------------------------- */
:root {
  /* Core Brand Colors */
  --color-primary-dark:    #030260;   /* Deep Midnight Navy */
  --color-primary-accent:  #1738DB;   /* Royal Scientific Blue */
  --color-highlight-cyan:  #02FBFD;   /* Electric Cyan accent */
  --color-mid-blue:        #0D99EC;   /* Mid gradient blue */

  /* Background & Surface */
  --color-bg-light:        #F8FAFC;   /* Off-White Slate tint */
  --color-surface:         #FFFFFF;   /* Cards & containers */
  --color-bg-dark:         #020150;   /* Darker navy for footer */
  --color-bg-section-alt:  #EFF4FF;   /* Very light blue alternating section */

  /* Text */
  --color-text-main:       #0F172A;   /* Near-black primary text */
  --color-text-muted:      #475569;   /* Muted secondary text */
  --color-text-light:      #94A3B8;   /* Placeholder / disabled text */
  --color-text-on-dark:    #FFFFFF;   /* Text on dark backgrounds */
  --color-text-on-dark-muted: rgba(255,255,255,0.75);

  /* Borders */
  --color-border:          #E2E8F0;
  --color-border-focus:    #1738DB;

  /* Status / Semantic */
  --color-success:         #10B981;
  --color-warning:         #F59E0B;
  --color-error:           #EF4444;
  --color-info:            #3B82F6;

  /* Gradient Presets */
  --gradient-brand:        linear-gradient(135deg, #030260 0%, #1738DB 50%, #0D99EC 80%, #02FBFD 100%);
  --gradient-brand-subtle: linear-gradient(135deg, #030260 0%, #1738DB 100%);
  --gradient-hero:         linear-gradient(135deg, rgba(3,2,96,0.92) 0%, rgba(23,56,219,0.80) 100%);
  --gradient-card-hover:   linear-gradient(135deg, #1738DB 0%, #0D99EC 100%);
  --gradient-cyan-accent:  linear-gradient(90deg, #1738DB, #02FBFD);

  /* --------------------------------------------------------------------------
     2. TYPOGRAPHY
     -------------------------------------------------------------------------- */

  /* Font Families */
  --font-heading:   'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:      'Inter', 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

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

  /* Font Weights */
  --font-regular:   400;
  --font-medium:    500;
  --font-semibold:  600;
  --font-bold:      700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;
  --leading-loose:  2;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide:  0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest:0.1em;

  /* --------------------------------------------------------------------------
     3. SPACING SCALE
     -------------------------------------------------------------------------- */
  --space-1:   0.25rem;    /*  4px */
  --space-2:   0.5rem;     /*  8px */
  --space-3:   0.75rem;    /* 12px */
  --space-4:   1rem;       /* 16px */
  --space-5:   1.25rem;    /* 20px */
  --space-6:   1.5rem;     /* 24px */
  --space-8:   2rem;       /* 32px */
  --space-10:  2.5rem;     /* 40px */
  --space-12:  3rem;       /* 48px */
  --space-14:  3.5rem;     /* 56px */
  --space-16:  4rem;       /* 64px */
  --space-20:  5rem;       /* 80px */
  --space-24:  6rem;       /* 96px */
  --space-28:  7rem;       /* 112px */
  --space-32:  8rem;       /* 128px */

  /* Section vertical padding */
  --section-py:    var(--space-20);
  --section-py-lg: var(--space-28);

  /* --------------------------------------------------------------------------
     4. BORDER RADIUS
     -------------------------------------------------------------------------- */
  --radius-xs:    2px;
  --radius-sm:    4px;
  --radius:       8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-2xl:   32px;
  --radius-full:  9999px;

  /* --------------------------------------------------------------------------
     5. SHADOWS
     -------------------------------------------------------------------------- */
  --shadow-xs:  0 1px 2px rgba(3,2,96,0.05);
  --shadow-sm:  0 2px 8px rgba(3,2,96,0.08);
  --shadow-md:  0 4px 16px rgba(3,2,96,0.12);
  --shadow-lg:  0 8px 32px rgba(3,2,96,0.16);
  --shadow-xl:  0 16px 48px rgba(3,2,96,0.20);
  --shadow-2xl: 0 24px 64px rgba(3,2,96,0.24);
  --shadow-brand: 0 4px 24px rgba(23,56,219,0.3);
  --shadow-cyan:  0 0 20px rgba(2,251,253,0.4);

  /* --------------------------------------------------------------------------
     6. TRANSITIONS & ANIMATIONS
     -------------------------------------------------------------------------- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --------------------------------------------------------------------------
     7. Z-INDEX SCALE
     -------------------------------------------------------------------------- */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:    10;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;

  /* --------------------------------------------------------------------------
     8. LAYOUT
     -------------------------------------------------------------------------- */
  --max-width:       1280px;
  --max-width-lg:    1440px;
  --container-px:    var(--space-6);
  --header-height:   82px;
  --header-height-scrolled: 68px;

  /* Grid Columns */
  --grid-cols-1: repeat(1, 1fr);
  --grid-cols-2: repeat(2, 1fr);
  --grid-cols-3: repeat(3, 1fr);
  --grid-cols-4: repeat(4, 1fr);

  /* --------------------------------------------------------------------------
     9. COMPONENT TOKENS
     -------------------------------------------------------------------------- */

  /* Buttons */
  --btn-radius:     var(--radius-full);
  --btn-py-sm:      var(--space-2);
  --btn-px-sm:      var(--space-4);
  --btn-py-md:      var(--space-3);
  --btn-px-md:      var(--space-6);
  --btn-py-lg:      var(--space-4);
  --btn-px-lg:      var(--space-8);
  --btn-font-size:  var(--text-sm);
  --btn-font-weight:var(--font-semibold);
  --btn-transition: var(--transition-base);

  /* Cards */
  --card-radius:    var(--radius-lg);
  --card-shadow:    var(--shadow-md);
  --card-shadow-hover: var(--shadow-xl);
  --card-padding:   var(--space-6);

  /* Badges */
  --badge-radius:   var(--radius-full);
  --badge-py:       var(--space-1);
  --badge-px:       var(--space-3);

  /* Forms */
  --input-radius:   var(--radius);
  --input-py:       var(--space-3);
  --input-px:       var(--space-4);
  --input-border:   var(--color-border);
  --input-bg:       var(--color-surface);

  /* Navigation */
  --nav-link-color: rgba(255,255,255,0.88);
  --nav-link-hover: #FFFFFF;
  --mega-menu-shadow: 0 20px 60px rgba(3,2,96,0.25);

  /* --------------------------------------------------------------------------
     10. BREAKPOINTS (reference — use in media queries)
     --------------------------------------------------------------------------
     xs:  480px
     sm:  640px
     md:  768px
     lg:  1024px
     xl:  1280px
     2xl: 1440px
     ------------------------------------------------------------------ */
}

/* Optional dark-mode token preset (opt-in via [data-theme="dark"]) */
[data-theme="dark"] {
  --color-bg-light:       #0A0F1E;
  --color-surface:        #111827;
  --color-bg-section-alt: #162038;
  --color-text-main:      #F1F5F9;
  --color-text-muted:     #94A3B8;
  --color-border:         rgba(255,255,255,0.12);
}
