/* ===== Design Tokens ===== */
:root {
  --font-family: 'Poppins', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --font-weight-base: 400;
  --line-height-base: 1.6;

  --font-size-xs: 13.5px;
  --font-size-sm: 15px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 30px;

  --space-1: 3px;
  --space-2: 5px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 16px;
  --space-8: 20px;

  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 999px;

  --shadow-1: 0 1px 2px rgba(2, 8, 23, 0.06);
  --shadow-2: 0 4px 12px rgba(2, 8, 23, 0.08);
  --shadow-3: 0 12px 32px rgba(2, 8, 23, 0.14);

  --motion-instant: 150ms;
  --motion-fast: 250ms;
  --motion-normal: 450ms;

  --accent: #0ea5e9;
  --accent-2: #22d3ee;
  --accent-deep: #0369a1;
  --accent-contrast: #ffffff;
}

/* Bengali pages get the Bengali-first font stack */
html[lang='bn'] {
  --font-family: 'Hind Siliguri', 'Poppins', system-ui, sans-serif;
}

/* ===== Dark theme (default) ===== */
[data-theme='dark'] {
  --bg: #05070d;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(14, 165, 233, 0.22), transparent 60%),
             radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
             linear-gradient(160deg, #05070d 0%, #0a1220 100%);
  --surface: rgba(148, 163, 184, 0.07);
  --surface-2: rgba(148, 163, 184, 0.14);
  --surface-solid: #0b1220;
  --glass-border: rgba(148, 163, 184, 0.18);
  --text: #eef4ff;
  --text-secondary: #a9b7cd;
  --text-inverse: #0f172a;
  --input-bg: rgba(148, 163, 184, 0.09);
  --shadow: 0 10px 30px rgba(2, 6, 16, 0.5);
  --ring: rgba(56, 189, 248, 0.4);
}

/* ===== Light theme ===== */
[data-theme='light'] {
  --bg: #f2f6fc;
  --bg-grad: radial-gradient(1100px 600px at 85% -10%, rgba(14, 165, 233, 0.16), transparent 60%),
             radial-gradient(800px 500px at -10% 5%, rgba(34, 211, 238, 0.12), transparent 55%),
             linear-gradient(160deg, #f2f6fc 0%, #e4edf9 100%);
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(233, 242, 251, 0.95);
  --surface-solid: #ffffff;
  --glass-border: rgba(13, 42, 80, 0.14);
  --text: #0d1b33;
  --text-secondary: #43536d;
  --text-inverse: #0f172a;
  --input-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 8px 26px rgba(13, 42, 80, 0.1);
  --ring: rgba(14, 165, 233, 0.35);
}
