:root {
  /* Colors from palette - Dark theme with cyan/blue accents */
  --color-primary: #52D3D8;
  --color-secondary: #3887BE;
  --color-accent: #38419D;
  --color-bg: #200E3A;
  --color-bg-light: #2a1550;
  --color-bg-card: #1a0d2e;
  --color-text: #ffffff;
  --color-text-muted: #b8b8b8;
  --color-border: rgba(82, 211, 216, 0.2);

  /* RGB values for rgba usage */
  --color-primary-rgb: 82, 211, 216;
  --color-secondary-rgb: 56, 135, 190;
  --color-accent-rgb: 56, 65, 157;
  --color-bg-rgb: 32, 14, 58;

  /* Typography - System fonts with CJK support */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Roboto, sans-serif;

  /* Fluid sizing */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --header-height: 70px;
  --container-max: 1280px;

  /* Effects */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(82, 211, 216, 0.3);
  --transition: 250ms ease;
  --transition-fast: 150ms ease;
}
