/* JaxoVoice tokens — light default, dark variant via [data-theme="dark"] */

:root {
  /* Brand */
  --navy-50:  #EFF4FE;
  --navy-100: #DBE5FB;
  --navy-200: #B7CBF7;
  --navy-300: #8AA9F0;
  --navy-400: #5C82E6;
  --navy-500: #3B5BFF;
  --navy-600: #2747E0;
  --navy-700: #1E3A8A;
  --navy-800: #172E6E;
  --navy-900: #11214F;

  --cyan-50:  #ECFEFF;
  --cyan-100: #CFFAFE;
  --cyan-200: #A5F3FC;
  --cyan-300: #67E8F9;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --cyan-600: #0891B2;
  --cyan-700: #0E7490;

  /* Semantic */
  --green-50:  #F0FDF4;
  --green-100: #DCFCE7;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --green-700: #15803D;

  --red-50:  #FEF2F2;
  --red-100: #FEE2E2;
  --red-500: #EF4444;
  --red-600: #DC2626;
  --red-700: #B91C1C;

  --amber-50:  #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-700: #B45309;

  /* Neutrals (slate) */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --slate-950: #020617;

  /* Surfaces & roles (light) */
  --bg:           #FFFFFF;
  --bg-muted:     #F8FAFC;
  --bg-subtle:    #F1F5F9;
  --surface:      #FFFFFF;
  --surface-hover:#F8FAFC;
  --border:       #E2E8F0;
  --border-strong:#CBD5E1;
  --divider:      #EDF1F6;

  --text:         #0F172A;
  --text-muted:   #475569;
  --text-subtle:  #64748B;
  --text-faint:   #94A3B8;
  --text-invert:  #FFFFFF;

  --primary:      var(--navy-700);
  --primary-hover:var(--navy-800);
  --primary-soft: var(--navy-50);
  --accent:       var(--cyan-500);
  --accent-hover: var(--cyan-600);
  --accent-soft:  var(--cyan-50);
  --link:         var(--cyan-600);
  --focus-ring:   #06B6D4;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
  --fs-56: 56px;
  --fs-64: 64px;

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.5;
  --lh-loose: 1.65;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --shadow-focus: 0 0 0 3px rgba(6, 182, 212, 0.25);

  --content-max: 1280px;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg:           #0A0A0F;
  --bg-muted:     #0F1117;
  --bg-subtle:    #14171F;
  --surface:      #14171F;
  --surface-hover:#1A1E27;
  --border:       #232733;
  --border-strong:#2E3340;
  --divider:      #1B1F28;

  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-subtle:  #64748B;
  --text-faint:   #475569;
  --text-invert:  #0A0A0F;

  --primary:      var(--navy-500);
  --primary-hover:var(--navy-400);
  --primary-soft: rgba(59, 91, 255, 0.12);
  --accent:       var(--cyan-400);
  --accent-hover: var(--cyan-300);
  --accent-soft:  rgba(34, 211, 238, 0.12);
  --link:         var(--cyan-400);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, 0.5), 0 4px 8px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-semi); line-height: var(--lh-tight); letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: var(--fs-48); letter-spacing: -0.025em; font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-32); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-24); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-18); }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero', 'ss01'; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--slate-700); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); border: 2px solid transparent; background-clip: padding-box; }
