/**
 * Aadrika Enterprises - Design Tokens & CSS Custom Properties
 * Unified Blue (#1d33f3), Black (#0a0d14), and White (#ffffff) Design System.
 * ZERO Bootstrap dependency.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* ==========================================================================
     Brand Color Palette — Strict Blue / Black / White
     ========================================================================== */
  /* Primary Royal Blue */
  --color-primary: #1d33f3;
  --color-primary-dark: #1424b8;
  --color-primary-deeper: #0d1680;
  --color-primary-light: #3b52f6;
  --color-primary-subtle: #eef2ff;
  --color-primary-surface: #eef2ff;

  /* Blue Tints */
  --color-blue-50: #eef2ff;
  --color-blue-100: #dfe4ff;
  --color-blue-200: #c2cbff;
  --color-blue-300: #9aa8ff;

  /* Core Black & White */
  --color-black: #0a0d14;
  --color-white: #ffffff;
  --color-ink: #0a0d14;
  --color-ink-soft: #161b26;
  --color-ink-muted: #232a38;

  /* Accent — Mapped to Solid Black & Royal Blue */
  --color-accent: #0a0d14;
  --color-accent-dark: #000000;
  --color-accent-hover: #1d33f3;
  --color-accent-active: #1424b8;
  --color-accent-light: #eef2ff;
  --color-accent-contrast: #ffffff;

  /* Text Hierarchy */
  --color-text-primary: #0a0d14;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-white: #ffffff;
  --color-text-inverse: #ffffff;

  /* Surfaces & Backgrounds */
  --color-bg-primary: #ffffff;
  --color-bg-body: #ffffff;
  --color-bg-surface: #f8fafc;
  --color-bg-surface-alt: #f1f5f9;
  --color-bg-subtle: #eef2f6;
  --color-bg-dark: #0a0d14;
  --color-bg-blue: #1d33f3;

  /* Borders & Dividers */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-border-medium: #cbd5e1;
  --color-border-dark: #0a0d14;

  /* Functional / Status (Blue & Black theme) */
  --color-success: #1d33f3;
  --color-warning: #0a0d14;
  --color-danger: #0a0d14;
  --color-info: #1d33f3;

  /* Icons — Solid Black */
  --icon-color: #0a0d14;

  /* ==========================================================================
     Typography
     ========================================================================== */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Font Sizes */
  --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 */

  /* Font Weights */
  --weight-normal: 400;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.18;
  --leading-snug: 1.32;
  --leading-normal: 1.6;
  --leading-relaxed: 1.72;
  --leading-loose: 1.85;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;

  /* ==========================================================================
     Spacing Scale
     ========================================================================== */
  --space-0-5: 0.125rem;  /* 2px */
  --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-7: 1.75rem;     /* 28px */
  --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 */

  /* ==========================================================================
     Layout & Sizing
     ========================================================================== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1360px;
  --container-max-width: 1280px;
  --container-narrow: 920px;
  --container-padding: 1.5rem;

  --header-height: 82px;

  /* ==========================================================================
     Border Radius
     ========================================================================== */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ==========================================================================
     Shadows
     ========================================================================== */
  --shadow-xs: 0 1px 2px rgba(10, 13, 20, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(10, 13, 20, 0.06), 0 1px 3px -1px rgba(10, 13, 20, 0.04);
  --shadow-md: 0 8px 20px -4px rgba(10, 13, 20, 0.08), 0 4px 8px -2px rgba(10, 13, 20, 0.04);
  --shadow-lg: 0 16px 32px -6px rgba(10, 13, 20, 0.12), 0 6px 12px -3px rgba(10, 13, 20, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(10, 13, 20, 0.18);
  --shadow-primary: 0 10px 24px -4px rgba(29, 51, 243, 0.28);
  --shadow-blue: var(--shadow-primary);
  --shadow-green: var(--shadow-primary);
  --ring-focus: 0 0 0 3px rgba(29, 51, 243, 0.22);

  /* ==========================================================================
     Transitions & Timing
     ========================================================================== */
  --ease-default: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 160ms;
  --duration-normal: 250ms;
  --duration-slow: 420ms;
  --transition-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 250ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 250ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);

  /* ==========================================================================
     Z-Index Layers
     ========================================================================== */
  --z-negative: -1;
  --z-normal: 1;
  --z-sticky: 100;
  --z-header: 500;
  --z-dropdown: 600;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
  --z-tooltip: 1200;
}

@media (max-width: 1024px) {
  :root {
    --space-14: 3rem;
    --space-16: 3.5rem;
    --space-20: 4.25rem;
    --space-24: 5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --space-7: 1.5rem;
    --space-8: 1.5rem;
    --space-10: 2rem;
    --space-12: 2.25rem;
    --space-14: 2.5rem;
    --space-16: 3rem;
    --space-20: 3.5rem;
    --space-24: 4rem;
    --container-padding: 1rem;
    --header-height: 70px;
  }
}
