/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Felicity WorldMap
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Backgrounds ── */
  --bg-deepest:    #06080c;
  --bg-primary:    #0a0e16;
  --bg-secondary:  #0f1420;
  --bg-tertiary:   #141c2b;
  --bg-hover:      #1a2538;

  /* ── Surfaces ── */
  --surface-glass:  rgba(12, 18, 30, 0.78);
  --surface-card:   rgba(16, 22, 36, 0.88);
  --surface-overlay: rgba(6, 8, 12, 0.85);

  /* ── Borders ── */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-strong:  rgba(255, 255, 255, 0.15);
  --border-accent:  rgba(0, 212, 255, 0.25);

  /* ── Accent Colors ── */
  --accent-primary:    #00d4ff;
  --accent-dim:        #0099bb;
  --accent-glow:       rgba(0, 212, 255, 0.12);
  --accent-glow-strong: rgba(0, 212, 255, 0.25);
  --accent-secondary:  #7c5cfc;
  --accent-gold:       #d4a853;
  --accent-gold-glow:  rgba(212, 168, 83, 0.12);

  /* ── Semantic Colors ── */
  --semantic-red:       #ef4444;
  --semantic-red-dim:   #b91c1c;
  --semantic-red-glow:  rgba(239, 68, 68, 0.15);
  --semantic-green:     #22c55e;
  --semantic-green-dim: #15803d;
  --semantic-green-glow: rgba(34, 197, 94, 0.12);
  --semantic-amber:     #f59e0b;
  --semantic-amber-dim: #b45309;
  --semantic-amber-glow: rgba(245, 158, 11, 0.12);
  --semantic-blue:      #3b82f6;
  --semantic-blue-dim:  #1d4ed8;
  --semantic-blue-glow: rgba(59, 130, 246, 0.12);

  /* ── Text ── */
  --text-primary:   #f0f4f8;
  --text-secondary: #8899aa;
  --text-muted:     #4a5568;
  --text-faint:     #2d3748;

  /* ── Typography ── */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.75rem;    /* 12px */
  --text-base: 0.8125rem;  /* 13px */
  --text-md:   0.875rem;   /* 14px */
  --text-lg:   1rem;       /* 16px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */

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

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

  /* ── Spacing (4px grid) ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Radii ── */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl:   0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.08);
  --shadow-glow-accent: 0 0 30px rgba(0, 212, 255, 0.15);

  /* ── Transitions ── */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;

  /* ── Z-index scale ── */
  --z-base: 1;
  --z-overlay: 100;
  --z-sidebar: 200;
  --z-panel: 500;
  --z-map-controls: 700;
  --z-modal: 900;
  --z-toast: 1000;

  /* ── Layout ── */
  --topbar-h: 56px;
  --nav-h: 44px;
  --statusbar-h: 36px;
  --sidebar-w: 340px;

  /* ── Section Layout ── */
  --section-py: 80px;
  --section-py-sm: 48px;
  --content-max: 1440px;
  --content-narrow: 1200px;

  /* ── Extended Typography ── */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.75rem;   /* 44px */
  --text-5xl: 3.5rem;    /* 56px */

  /* ── Extended Surfaces ── */
  --surface-section: rgba(10, 14, 22, 0.95);
  --gradient-section: linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-primary) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 92, 252, 0.05) 50%, rgba(212, 168, 83, 0.03) 100%);
}
