/*
 * Nirmio design tokens — the single place for brand values.
 * Components must use the semantic tokens (--n-color-*, --n-space-* …), never raw hex values,
 * so a rebrand only changes this file.
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2");
	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: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Palette (raw values — referenced only by the semantic tokens below) */
	--n-navy-950: #081329;
	--n-navy-900: #0b1b3a;
	--n-navy-800: #13284f;
	--n-navy-700: #1d3766;
	--n-blue-700: #1846c9;
	--n-blue-600: #1f56e0;
	--n-blue-50: #eef3ff;
	--n-cyan-500: #0fb5c9;
	--n-cyan-100: #d6f5f9;
	--n-slate-900: #0f172a;
	--n-slate-600: #475569;
	--n-slate-500: #5b6b80;
	--n-slate-300: #cbd5e1;
	--n-slate-200: #e2e8f0;
	--n-slate-100: #eef2f6;
	--n-slate-50: #f6f8fb;
	--n-white: #ffffff;

	/* Semantic colors */
	--n-color-primary: var(--n-blue-600);
	--n-color-primary-hover: var(--n-blue-700);
	--n-color-primary-contrast: var(--n-white);
	--n-color-primary-subtle: var(--n-blue-50);
	--n-color-accent: var(--n-cyan-500);
	--n-color-accent-subtle: var(--n-cyan-100);
	--n-color-brand: var(--n-navy-900);

	--n-color-bg: var(--n-slate-50);
	--n-color-surface: var(--n-white);
	--n-color-surface-secondary: var(--n-slate-100);

	--n-color-text: var(--n-slate-900);
	--n-color-text-secondary: var(--n-slate-600);
	--n-color-text-muted: var(--n-slate-500);
	--n-color-text-inverse: var(--n-white);

	--n-color-border: var(--n-slate-200);
	--n-color-border-strong: var(--n-slate-300);

	--n-color-success: #157f3d;
	--n-color-success-bg: #edfaf2;
	--n-color-success-border: #b7e6c8;
	--n-color-warning: #a14a05;
	--n-color-warning-bg: #fff8eb;
	--n-color-warning-border: #f6d9a6;
	--n-color-error: #b42318;
	--n-color-error-hover: #912018;
	--n-color-error-bg: #fef3f2;
	--n-color-error-border: #f7c3bd;
	--n-color-info: var(--n-blue-700);
	--n-color-info-bg: var(--n-blue-50);
	--n-color-info-border: #c7d6fb;

	--n-color-focus: var(--n-blue-600);
	--n-focus-ring: 0 0 0 3px rgba(31, 86, 224, 0.28);
	--n-color-overlay: rgba(8, 19, 41, 0.64);

	/* Sidebar (dark navy) */
	--n-sidebar-bg: var(--n-navy-900);
	--n-sidebar-bg-hover: var(--n-navy-800);
	--n-sidebar-bg-active: var(--n-navy-700);
	--n-sidebar-text: #c9d4e6;
	--n-sidebar-text-strong: var(--n-white);
	--n-sidebar-border: rgba(255, 255, 255, 0.08);
	--n-sidebar-indicator: var(--n-color-accent);
	--n-sidebar-width: 240px;

	/* The one allowed gradient: subtle, used for brand accents only */
	--n-gradient-brand: linear-gradient(135deg, var(--n-blue-600) 0%, var(--n-cyan-500) 100%);

	/* Typography */
	--n-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--n-font-size-xs: 0.75rem;     /* 12px — badges, meta */
	--n-font-size-sm: 0.8125rem;   /* 13px — helper text */
	--n-font-size-md: 0.875rem;    /* 14px — tables, labels, buttons */
	--n-font-size-base: 0.9375rem; /* 15px — body */
	--n-font-size-lg: 1.0625rem;   /* 17px — card titles */
	--n-font-size-xl: 1.25rem;     /* 20px — section titles */
	--n-font-size-2xl: 1.625rem;   /* 26px — page titles */
	--n-font-size-3xl: 2rem;       /* 32px — pricing amounts */
	--n-font-size-stat: 1.75rem;   /* 28px — stat values */
	--n-font-size-stat-sm: 1.375rem; /* 22px — stat values on phones */
	--n-font-weight-regular: 400;
	--n-font-weight-medium: 500;
	--n-font-weight-semibold: 600;
	--n-font-weight-bold: 700;
	--n-line-height-tight: 1.25;
	--n-line-height-base: 1.55;
	--n-letter-spacing-tight: -0.015em;

	/* Spacing (4px grid) */
	--n-space-1: 0.25rem;
	--n-space-2: 0.5rem;
	--n-space-3: 0.75rem;
	--n-space-4: 1rem;
	--n-space-5: 1.25rem;
	--n-space-6: 1.5rem;
	--n-space-8: 2rem;
	--n-space-10: 2.5rem;
	--n-space-12: 3rem;
	--n-space-16: 4rem;

	/* Shape & depth */
	--n-radius-sm: 6px;
	--n-radius-md: 8px;
	--n-radius-lg: 12px;
	--n-radius-full: 999px;
	--n-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
	--n-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
	--n-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
	--n-shadow-lg: 0 20px 48px rgba(8, 19, 41, 0.18);

	/* Motion */
	--n-transition-fast: 120ms ease;
	--n-transition-base: 180ms ease;

	/* Layout */
	--n-content-max: 1200px;
	--n-control-height: 40px;
	--n-control-height-sm: 32px;
	--n-control-height-lg: 48px;
	--n-scrollbar-thumb: var(--n-slate-300);
	--n-z-drawer: 900;
	--n-z-overlay: 890;
	--n-z-dropdown: 800;
	--n-z-toast: 1000;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--n-transition-fast: 0ms linear;
		--n-transition-base: 0ms linear;
	}
}
