/* ============================================================================
   MXBastion Design Tokens - "Deep Sea" Palette
   ============================================================================ */

:root {
  /* ========================================================================
   * COLOR PALETTE
   * ======================================================================== */

  /* Primary - Deep Sea Blues */
  --ink-black: #0d1b2a;
  --prussian-blue: #1b263b;
  --dusk-blue: #415a77;
  --dusty-denim: #778da9;
  --alabaster-grey: #e0e1dd;

  /* Status colors */
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-danger: #f87171;
  --color-info: #60a5fa;

  /* Accent */
  --accent: #60a5fa;
  --cta: #34d399;
  --cta-hover: #2cc48d;

  /* Semantic text colors */
  --text-primary: var(--alabaster-grey);
  --text-secondary: var(--dusty-denim);
  --text-muted: rgba(224, 225, 221, 0.5);
  --text-inverse: var(--ink-black);
  --text-heading: #ffffff;
  --text-link: var(--accent);

  /* Dark section text */
  --text-on-dark: var(--alabaster-grey);
  --text-on-dark-muted: rgba(224, 225, 221, 0.65);
  --text-on-dark-subtle: rgba(224, 225, 221, 0.4);

  /* Light section text */
  --text-on-light: var(--ink-black);
  --text-on-light-secondary: var(--prussian-blue);
  --text-on-light-muted: var(--dusk-blue);

  /* Background colors */
  --bg-dark: var(--ink-black);
  --bg-dark-alt: var(--prussian-blue);
  --bg-light: var(--alabaster-grey);
  --bg-light-alt: #f0f1ed;

  /* Border colors */
  --border-dark: rgba(224, 225, 221, 0.1);
  --border-dark-hover: rgba(224, 225, 221, 0.2);
  --border-light: rgba(13, 27, 42, 0.1);

  /* ========================================================================
   * TYPOGRAPHY
   * ======================================================================== */

  /* Font families */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Font sizes - fluid typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

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

  /* ========================================================================
   * SPACING - 8px base grid
   * ======================================================================== */

  --space-0: 0;
  --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-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section spacing */
  --section-padding-y: clamp(4rem, 8vw, 8rem);
  --container-padding-x: clamp(1rem, 5vw, 2rem);

  /* ========================================================================
   * LAYOUT
   * ======================================================================== */

  --container-max: 1200px;
  --container-narrow: 720px;
  --container-wide: 1440px;

  /* ========================================================================
   * BORDERS & RADIUS
   * ======================================================================== */

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --border-width: 1px;

  /* ========================================================================
   * SHADOWS
   * ======================================================================== */

  --shadow-sm: 0 1px 2px 0 rgba(13, 27, 42, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(13, 27, 42, 0.15), 0 2px 4px -2px rgba(13, 27, 42, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(13, 27, 42, 0.15), 0 4px 6px -4px rgba(13, 27, 42, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(13, 27, 42, 0.2), 0 8px 10px -6px rgba(13, 27, 42, 0.15);
  --shadow-2xl: 0 25px 50px -12px rgba(13, 27, 42, 0.35);
  --shadow-inner: inset 0 2px 4px 0 rgba(13, 27, 42, 0.1);

  /* Colored shadows */
  --shadow-green: 0 10px 40px -10px rgba(52, 211, 153, 0.35);
  --shadow-blue: 0 10px 40px -10px rgba(96, 165, 250, 0.35);
  --shadow-danger: 0 10px 40px -10px rgba(248, 113, 113, 0.35);

  /* ========================================================================
   * ANIMATION
   * ======================================================================== */

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ========================================================================
   * Z-INDEX SCALE
   * ======================================================================== */

  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Reduced motion - zero out durations */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
