/* Design tokens: the only place colours, type, spacing, radii, shadows and motion are defined.
   Source: design/target/spec.json (the "Teal Mission Horizon" concept, design/target/concept-1.png).
   Themes: data-theme="light" | "dark" on <html> (set from the saved choice or the system preference). */

@font-face { font-family: 'Vazirmatn'; src: url('../fonts/vazirmatn-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }

:root {
  /* type: [size / line-height, weight] */
  --font-fa: 'Vazirmatn', Tahoma, sans-serif;
  --font-en: 'Inter', 'Vazirmatn', system-ui, sans-serif;
  --font-num: 'Inter', 'Vazirmatn', sans-serif;
  --fs-display: 36px; --lh-display: 46px;
  --fs-h1: 26px; --lh-h1: 36px;
  --fs-h2: 21px; --lh-h2: 31px;
  --fs-h3: 17px; --lh-h3: 27px;
  --fs-body: 14px; --lh-body: 24px;
  --fs-small: 12px; --lh-small: 20px;
  --fs-micro: 10px; --lh-micro: 16px;
  --fs-mono: 13px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --page-pad: 28px; --section-gap: 24px; --card-gap: 16px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  --nav-w: 232px; --topbar-h: 68px; --bottomnav-h: 68px;

  --t-hover: 140ms; --t-button: 120ms; --t-card: 220ms; --t-page: 320ms; --t-dial: 450ms; --t-bar: 600ms; --t-theme: 260ms;
  --ease: cubic-bezier(0.2, 0, 0, 1); --ease-enter: cubic-bezier(0.16, 1, 0.3, 1); --ease-exit: cubic-bezier(0.4, 0, 1, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F7F9; --bg-from: #FAFBFD; --bg-to: #E7F2F3;
  --surface: #FFFFFF; --surface-2: #F3F6F9; --surface-raised: #FFFFFF; --surface-glass: #FFFFFFE8;
  --line: #DCE6EA; --line-strong: #C5D5DB;
  --text: #152B38; --text-muted: #566C79; --text-subtle: #7F939E;
  --primary: #12BFA7; --primary-strong: #008F7B; --primary-soft: #D6F7EF; --on-primary: #FFFFFF; --primary-ink: #007B70;
  --accent: #00D2B6;
  --live: #079F73; --live-soft: #D6F7E8;
  --warning: #C77A0E; --warning-solid: #ED9A26; --warning-soft: #FFF0D9;
  --danger: #D63A4E; --danger-solid: #E94F62; --danger-soft: #FDE5E8;
  --info: #2F7FC4; --info-soft: #E1F0FF;
  --neutral-soft: #EEF3F5;
  --focus: #12BFA755;
  --nav-active-bg: #D6F7EF; --nav-hover-bg: #E8F4F3;
  --shadow-card: 0 1px 2px #143C4C14, 0 8px 24px -12px #143C4C24;
  --shadow-raised: 0 2px 6px #143C4C14, 0 18px 40px -18px #143C4C3A;
  --shadow-overlay: 0 24px 64px -16px #0B2A3550;
  --hero-scrim: linear-gradient(90deg, #0C242C00 0, #0C242C00 300px, #0C242CD9 540px, #0C242C 620px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06171D; --bg-from: #041318; --bg-to: #103640;
  --surface: #0C242C; --surface-2: #102E37; --surface-raised: #153740; --surface-glass: #0C242CEB;
  --line: #23454F; --line-strong: #35606B;
  --text: #F3FAFB; --text-muted: #A0BAC2; --text-subtle: #7A99A3;
  --primary: #15CFB5; --primary-strong: #00A88F; --primary-soft: #0D534C; --on-primary: #032A27; --primary-ink: #31E6CA;
  --accent: #31E6CA;
  --live: #23D7A0; --live-soft: #10483D;
  --warning: #F4AD46; --warning-solid: #F4AD46; --warning-soft: #533A21;
  --danger: #FF6374; --danger-solid: #FF6374; --danger-soft: #512B37;
  --info: #63B9FF; --info-soft: #193D56;
  --neutral-soft: #13313A;
  --focus: #15CFB566;
  --nav-active-bg: #164C49; --nav-hover-bg: #173943;
  --shadow-card: 0 1px 2px #000E1640, 0 12px 28px -14px #000E16A6;
  --shadow-raised: 0 2px 8px #000E1660, 0 22px 48px -20px #000E16C0;
  --shadow-overlay: 0 28px 72px -16px #000000B0;
  --hero-scrim: linear-gradient(90deg, #0C242C00 0, #0C242C00 300px, #0C242CD9 540px, #0C242C 620px);
}
