/* ===== BLACK PEARL DIGITAL — DESIGN TOKENS ===== */
/* Brand: Deep ocean black + iridescent teal/aqua + pearl white accent */

:root,
[data-theme='light'] {
  /* Surfaces — crisp white industrial */
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-2: #ffffff;
  --color-surface-offset: #eef1f6;
  --color-surface-offset-2: #e4e8f0;
  --color-surface-dynamic: #d8dde8;
  --color-divider: #d0d5e0;
  --color-border: #c4cad8;

  /* Text */
  --color-text: #0a0e1a;
  --color-text-muted: #505a72;
  --color-text-faint: #8c96aa;
  --color-text-inverse: #f5f7fa;

  /* Primary — iridescent teal (signature "pearl" shimmer) */
  --color-primary: #00b4c8;
  --color-primary-hover: #0099ad;
  --color-primary-active: #007d8f;
  --color-primary-highlight: #e0f7fa;

  /* Deep ocean navy — the "black pearl" */
  --color-navy: #060d1f;
  --color-navy-mid: #0d1a38;
  --color-navy-light: #152450;
  --color-navy-faint: #e8ecf5;

  /* Accent — deep teal for CTAs */
  --color-accent: #006d82;
  --color-accent-hover: #005a6b;
  --color-accent-light: #d0eef3;

  /* Semantic */
  --color-success: #0a7c4e;
  --color-success-highlight: #d0ede0;
  --color-warning: #b06c00;
  --color-warning-highlight: #fde8cc;
  --color-error: #c01832;
  --color-error-highlight: #fde0e4;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(6, 13, 31, 0.08);
  --shadow-md: 0 4px 14px rgba(6, 13, 31, 0.10);
  --shadow-lg: 0 12px 36px rgba(6, 13, 31, 0.13);
  --shadow-xl: 0 24px 64px rgba(6, 13, 31, 0.17);
  --shadow-glow: 0 0 32px rgba(0, 180, 200, 0.25);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Clash Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

[data-theme='dark'] {
  --color-bg: #030710;
  --color-surface: #070e20;
  --color-surface-2: #0b1428;
  --color-surface-offset: #0d1830;
  --color-surface-offset-2: #111e3a;
  --color-surface-dynamic: #162240;
  --color-divider: #1a2848;
  --color-border: #1e3058;
  --color-text: #d8e2f0;
  --color-text-muted: #7888aa;
  --color-text-faint: #404e68;
  --color-text-inverse: #070e20;
  --color-primary: #22d4ea;
  --color-primary-hover: #0cbdd2;
  --color-primary-active: #00a8bc;
  --color-primary-highlight: #062030;
  --color-navy: #d8e2f0;
  --color-navy-mid: #a8b8d0;
  --color-navy-light: #7888aa;
  --color-navy-faint: #0d1830;
  --color-accent: #1ab8cc;
  --color-accent-hover: #0aa0b3;
  --color-accent-light: #082030;
  --color-success: #22bb70;
  --color-success-highlight: #082818;
  --color-shadow-glow: 0 0 40px rgba(34, 212, 234, 0.20);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.55);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 40px rgba(34, 212, 234, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #030710;
    --color-surface: #070e20;
    --color-surface-2: #0b1428;
    --color-surface-offset: #0d1830;
    --color-surface-offset-2: #111e3a;
    --color-surface-dynamic: #162240;
    --color-divider: #1a2848;
    --color-border: #1e3058;
    --color-text: #d8e2f0;
    --color-text-muted: #7888aa;
    --color-text-faint: #404e68;
    --color-text-inverse: #070e20;
    --color-primary: #22d4ea;
    --color-primary-hover: #0cbdd2;
    --color-primary-highlight: #062030;
    --color-accent: #1ab8cc;
    --color-accent-light: #082030;
    --shadow-glow: 0 0 40px rgba(34,212,234,0.18);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.45);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.55);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.65);
  }
}
