/* BYTE IT — Design Tokens: Black + Neon Green Matrix */
:root,
[data-theme='dark'] {
  /* Surfaces — deep charcoal, not pure black, easier on the eyes */
  --color-bg: #0e1210;
  --color-surface: #141a15;
  --color-surface-2: #192019;
  --color-surface-offset: #1e271e;
  --color-surface-offset-2: #222e22;
  --color-surface-dynamic: #2a382a;
  --color-divider: #2a362a;
  --color-border: #304030;

  /* Text — white/light gray for body, green only as accent */
  --color-text: #f0f2f0;          /* near-white — crisp, easy to read */
  --color-text-muted: #a8b8a8;    /* soft gray-green — readable secondary text */
  --color-text-faint: #566856;    /* subtle — captions, metadata only */
  --color-text-inverse: #0e1210;

  /* Primary Accent — neon green, used ONLY for accents/CTAs, not body text */
  --color-primary: #2ecc40;
  --color-primary-hover: #25b536;
  --color-primary-active: #1a9929;
  --color-primary-dim: #1a7a22;
  --color-primary-glow: rgba(46, 204, 64, 0.12);
  --color-primary-highlight: #0f2012;

  /* Secondary */
  --color-secondary: #1a6b1a;

  /* Warning / Error / Success */
  --color-warning: #e6b800;
  --color-error: #e05555;
  --color-success: #2ecc40;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(46, 204, 64, 0.2), 0 0 40px rgba(46, 204, 64, 0.08);
  --shadow-glow-sm: 0 0 8px rgba(46, 204, 64, 0.25);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

  /* 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;

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

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme='light'] {
  --color-bg: #f4f6f4;
  --color-surface: #ffffff;
  --color-surface-2: #fafbfa;
  --color-surface-offset: #edf0ed;
  --color-surface-offset-2: #e4e8e4;
  --color-surface-dynamic: #d4dcd4;
  --color-divider: #cdd6cd;
  --color-border: #b8c8b8;
  --color-text: #111a12;          /* dark charcoal — easy to read on light */
  --color-text-muted: #3d5a42;    /* dark forest green — readable */
  --color-text-faint: #7a9a7e;
  --color-text-inverse: #f4f6f4;
  --color-primary: #1a8a2a;
  --color-primary-hover: #146e20;
  --color-primary-active: #0e5218;
  --color-primary-dim: #2aaa3a;
  --color-primary-glow: rgba(26, 138, 42, 0.12);
  --color-primary-highlight: #c4e8ca;
  --shadow-glow: 0 0 20px rgba(26, 138, 42, 0.18), 0 0 40px rgba(26, 138, 42, 0.07);
  --shadow-glow-sm: 0 0 8px rgba(26, 138, 42, 0.2);
}
