/*
 * Taleeq Tech tokens. Brand blues sampled from the Taleeq Tech logo, light and dark.
 * The Mieadi panel uses its own Calm Navy values (--mieadi-*), copied from
 * packages/design-tokens/tokens.json. Update both places if that palette changes.
 */

/* Readex Pro (headings), variable weight 300–700 */
@font-face {
  font-family: 'Readex Pro';
  src: url('../assets/fonts/readex-arabic.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Readex Pro';
  src: url('../assets/fonts/readex-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Sans Arabic (body), 400 and 600 */
@font-face {
  font-family: 'Plex Sans Arabic';
  src: url('../assets/fonts/plex-ar-400-arabic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Plex Sans Arabic';
  src: url('../assets/fonts/plex-ar-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Sans Arabic';
  src: url('../assets/fonts/plex-ar-600-arabic.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Plex Sans Arabic';
  src: url('../assets/fonts/plex-ar-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Brand (from the logo): cyan #04d8fd -> blue #0265fe -> deep #002496, navy text #011257 */
  --brand-cyan: #04d8fd;
  --brand-blue: #0265fe;
  --brand-deep: #002496;
  --brand-navy: #011257;
  --brand-gradient: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 55%, var(--brand-deep) 100%);

  --paper: #f2f7fd;
  --surface: #ffffff;
  --surface-2: #e6effb;
  --ink: #011257;
  --ink-muted: #46557f;
  --line: #d3def0;
  --brand: #0257e0;
  --brand-strong: #0244b4;
  --on-brand: #ffffff;
  --wordmark-a: #011257;
  --wordmark-b: #0265fe;
  --accent: #00a9e6;
  --accent-soft: rgba(2, 101, 254, 0.12);
  --focus: #0265fe;
  --flow-line: rgba(2, 101, 254, 0.28);
  --flow-node: #011257;
  --flow-dot: #04b4f0;
  --shadow-lift: 0 18px 40px -24px rgba(1, 18, 87, 0.4);

  /* Mieadi panel: Calm Navy, same in both site themes */
  --mieadi-bg: #1f3956;
  --mieadi-bg-2: #2a4a6e;
  --mieadi-fg: #f3f5f8;
  --mieadi-muted: #b9c6d6;
  --mieadi-gold: #c2a05c;
  --mieadi-paper: #fbfbfb;
  --mieadi-ink: #1e2733;
  --mieadi-ink-muted: #5e6b7a;
  --mieadi-line: #d5dce6;
  --mieadi-ok: #2f7a55;

  --font-display: 'Readex Pro', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;

  /* Type scale (perfect fourth, 1.333) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.369rem);
  --step-4: clamp(2.2rem, 1.3rem + 3.6vw, 3.157rem);
  --step-hero: clamp(2.4rem, 1rem + 4.8vw, 4.9rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 900ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #050c26;
    --surface: #0b1640;
    --surface-2: #10204f;
    --ink: #e8eeff;
    --ink-muted: #9fabd4;
    --line: #1d2c63;
    --brand: #3a86ff;
    --brand-strong: #6aa3ff;
    --on-brand: #03102f;
    --wordmark-a: #e8eeff;
    --wordmark-b: #3a8bff;
    --accent: #22d3ff;
    --accent-soft: rgba(34, 211, 255, 0.12);
    --focus: #22d3ff;
    --flow-line: rgba(58, 134, 255, 0.32);
    --flow-node: #e8eeff;
    --flow-dot: #22d3ff;
    --shadow-lift: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #050c26;
  --surface: #0b1640;
  --surface-2: #10204f;
  --ink: #e8eeff;
  --ink-muted: #9fabd4;
  --line: #1d2c63;
  --brand: #3a86ff;
  --brand-strong: #6aa3ff;
  --on-brand: #03102f;
  --wordmark-a: #e8eeff;
  --wordmark-b: #3a8bff;
  --accent: #22d3ff;
  --accent-soft: rgba(34, 211, 255, 0.12);
  --focus: #22d3ff;
  --flow-line: rgba(58, 134, 255, 0.32);
  --flow-node: #e8eeff;
  --flow-dot: #22d3ff;
  --shadow-lift: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}
