/* ==========================================================================
   AXELARIO design tokens
   Single source of truth for colour, type, spacing, radius, elevation and
   motion. Components in main.css reference these variables only.

   Breakpoints (CSS custom properties cannot be used in media queries):
     --bp-xs   480px
     --bp-sm   600px
     --bp-md   900px
     --bp-lg  1024px
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* ---------- Palette ---------- */
  --color-white: #ffffff;
  --color-grey-50: #f2f3f4;
  --color-grey-100: #e3e7eb;
  --color-grey-200: #e3e6e9;
  --color-slate-300: #a5b3c1;
  --color-slate-400: #93a4b4;
  --color-slate-500: #838c96;
  --color-slate-600: #596069;
  --color-ink-900: #041121;

  --color-blue-50: #eaf4fc;
  --color-blue-100: #e2eff9;
  --color-blue-150: #dcebf7;
  --color-blue-200: #cfe4f5;
  --color-blue-250: #b5dbf3;
  --color-blue-300: #9fc8e6;
  --color-blue-350: #8fc1e5;
  --color-blue-400: #78bde8;
  --color-blue-450: #5aa6d6;
  --color-blue-500: #4d9dd8;
  --color-blue-600: #2f86cc;
  --color-blue-700: #1c69ae;

  --color-navy-700: #173149;
  --color-navy-800: #12283d;
  --color-navy-900: #0a1a2b;

  --color-green-100: #ddf1e7;
  --color-green-400: #4cc08b;
  --color-green-500: #35c28b;
  --color-green-700: #1c8a5e;
  --color-violet-100: #e7e4f8;
  --color-amber-100: #f8ebdd;
  --color-amber-500: #d9822b;

  /* ---------- Semantic colour ---------- */
  --surface-page: var(--color-grey-50);
  --surface-card: var(--color-white);
  --surface-muted: var(--color-grey-50);
  --surface-accent: var(--color-blue-100);
  --surface-inverse: var(--color-ink-900);
  --surface-inverse-raised: var(--color-navy-800);

  --text-strong: var(--color-ink-900);
  --text-body: var(--color-slate-600);
  --text-muted: var(--color-slate-500);
  --text-inverse: var(--color-white);
  --text-inverse-muted: var(--color-slate-300);
  --text-accent: var(--color-blue-700);

  --border-subtle: var(--color-grey-100);
  --border-inverse: rgb(255 255 255 / 0.3);

  --accent: var(--color-blue-600);
  --accent-strong: var(--color-blue-700);
  --accent-light: var(--color-blue-450);
  --accent-line: var(--color-blue-350);
  --success: var(--color-green-500);

  --focus-ring: var(--color-blue-600);

  /* Translucent layers */
  --white-a15: rgb(255 255 255 / 0.15);
  --white-a20: rgb(255 255 255 / 0.2);
  --white-a30: rgb(255 255 255 / 0.3);
  --white-a55: rgb(255 255 255 / 0.55);
  --white-a85: rgb(255 255 255 / 0.85);
  --white-a92: rgb(255 255 255 / 0.92);
  --white-a95: rgb(255 255 255 / 0.95);
  --white-a00: rgb(255 255 255 / 0);
  --ink-a05: rgb(4 17 33 / 0.05);
  --ink-a45: rgb(4 17 33 / 0.45);
  --blue-a08: rgb(90 166 214 / 0.08);
  --blue-a16: rgb(90 166 214 / 0.16);

  /* ---------- Gradients ---------- */
  --gradient-hero: linear-gradient(180deg, var(--color-blue-400) 0%, var(--color-blue-500) 48%, var(--color-blue-600) 100%);
  --gradient-promise: linear-gradient(180deg, var(--color-blue-600) 0%, var(--color-blue-450) 55%, var(--color-blue-250) 100%);
  --gradient-footer: linear-gradient(180deg, var(--color-blue-150) 0%, var(--color-blue-450) 30%, var(--color-blue-600) 100%);
  --gradient-cta: radial-gradient(60% 80% at 50% 0%, var(--color-white) 0%, var(--white-a00) 70%),
                  linear-gradient(180deg, var(--color-blue-200), var(--color-blue-100));
  --gradient-icon-tile: linear-gradient(145deg, var(--color-blue-50), var(--color-blue-200));
  --gradient-icon-tile-dark: linear-gradient(145deg, var(--color-navy-700), var(--color-navy-900));
  --gradient-feature-tile: linear-gradient(150deg, var(--color-blue-50) 0%, var(--color-blue-150) 100%);
  --gradient-orb: radial-gradient(circle at 35% 30%, var(--color-blue-400), var(--color-blue-700));
  --gradient-panel-dark: linear-gradient(145deg, var(--color-navy-800), var(--color-navy-900));
  --gradient-wordmark: linear-gradient(180deg, var(--white-a95), var(--white-a15));

  /* Illustration themes (consumed by .illustration modifiers) */
  --theme-blue-from: var(--color-blue-150);
  --theme-blue-grid: rgb(28 105 174 / 0.06);
  --theme-green-from: var(--color-green-100);
  --theme-green-grid: rgb(25 128 86 / 0.07);
  --theme-violet-from: var(--color-violet-100);
  --theme-violet-grid: rgb(91 74 190 / 0.07);
  --theme-amber-from: var(--color-amber-100);
  --theme-amber-grid: rgb(176 104 32 / 0.07);

  /* Icon colours (SVG sprite) */
  --icon-ink: var(--color-blue-700);
  --icon-accent: var(--color-blue-600);
  --icon-light: var(--color-blue-350);
  --icon-mid: var(--color-blue-450);
  --icon-tint-from: var(--color-blue-350);
  --icon-tint-to: var(--color-blue-600);

  /* Logo treatment */
  --logo-muted-filter: brightness(0) opacity(0.42);

  /* ---------- Typography ---------- */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-3xs: 0.75rem;     /* 12 */
  --text-2xs: 0.8125rem;   /* 13 */
  --text-xs: 0.875rem;     /* 14 */
  --text-sm: 0.96875rem;   /* 15.5 */
  --text-md: 1.0625rem;    /* 17 */
  --text-base: 1.125rem;   /* 18 */
  --text-lg: 1.1875rem;    /* 19 */
  --text-xl: 1.3125rem;    /* 21 */
  --text-2xl: 1.5rem;      /* 24 */
  --text-3xl: 1.625rem;    /* 26 */
  --text-4xl: 2.125rem;    /* 34 */
  --text-heading-sm: clamp(1.875rem, 3.1vw, 2.625rem);
  --text-heading-md: clamp(2.125rem, 3.4vw, 2.875rem);
  --text-heading-lg: clamp(2.25rem, 4.4vw, 3.25rem);
  --text-heading-xl: clamp(2.5rem, 4.6vw, 3.5rem);
  --text-display: clamp(2.625rem, 5.6vw, 4.375rem);
  --text-wordmark: clamp(2.75rem, 8.2vw, 6.5rem);

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.45;

  --tracking-tighter: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.06em;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.25rem;  /* 20 */
  --space-6: 1.5rem;   /* 24 */
  --space-7: 1.75rem;  /* 28 */
  --space-8: 2rem;     /* 32 */
  --space-9: 2.25rem;  /* 36 */
  --space-10: 2.5rem;  /* 40 */
  --space-12: 3rem;    /* 48 */
  --space-14: 3.5rem;  /* 56 */
  --space-16: 4rem;    /* 64 */
  --space-20: 5rem;    /* 80 */
  --space-24: 6rem;    /* 96 */
  --space-30: 7.5rem;  /* 120 */

  /* ---------- Layout ---------- */
  --container-max: 75rem;
  --container-gutter: max(4vw, 1.125rem);
  --band-inset: var(--space-3);
  --section-space: clamp(var(--space-20), 9vw, var(--space-30));
  --nav-offset: 7rem;
  --sticky-top: 7.5rem;

  /* ---------- Radius ---------- */
  --radius-xs: 0.5rem;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 2rem;
  --radius-pill: 999px;

  /* ---------- Elevation ---------- */
  --shadow-sm: 0 1px 2px rgb(4 17 33 / 0.04), 0 16px 40px -24px rgb(4 17 33 / 0.28);
  --shadow-md: 0 20px 44px -22px rgb(4 17 33 / 0.4);
  --shadow-lg: 0 30px 60px -45px rgb(4 17 33 / 0.45);
  --shadow-xl: 0 40px 70px -40px rgb(4 17 33 / 0.55);
  --shadow-card: 0 24px 50px -40px rgb(4 17 33 / 0.5);
  --shadow-card-hover: 0 34px 60px -36px rgb(4 17 33 / 0.55);
  --shadow-nav: 0 14px 36px -18px rgb(4 17 33 / 0.35);
  --shadow-nav-scrolled: 0 14px 40px -14px rgb(4 17 33 / 0.4), 0 0 0 1px var(--ink-a05);
  --shadow-button: inset 2px 0 9px rgb(255 255 255 / 0.6);
  --shadow-button-light: inset 0 0 0 1px rgb(4 17 33 / 0.06), 0 10px 24px -16px var(--ink-a45);
  --shadow-icon-tile: 0 10px 22px -14px rgb(28 105 174 / 0.55);
  --shadow-orb: 0 0 0 8px rgb(255 255 255 / 0.35), inset 0 2px 8px rgb(255 255 255 / 0.4);
  --shadow-hub-core: 0 0 0 12px var(--blue-a16), 0 0 0 26px var(--blue-a08), var(--shadow-sm);
  --ring-avatar: 0 0 0 4px var(--color-white), 0 0 0 5px var(--border-subtle);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 0.7, 0.12, 1);
  --duration-fast: 0.25s;
  --duration-base: 0.4s;
  --duration-slow: 0.6s;
  --duration-slower: 0.9s;

  /* ---------- Layers ---------- */
  --z-raised: 2;
  --z-showcase: 3;
  --z-menu: 59;
  --z-nav: 60;
  --z-overlay: 80;
  --z-drawer: 81;

  /* ---------- Component sizes ---------- */
  --button-height: 3.375rem;
  --button-height-sm: 2.75rem;
  --icon-button-size: 3rem;
  --logo-height-nav: 2.875rem;
  --avatar-sm: 2.75rem;
}
