:root {
  /* =========================================
     ANTHROBYTE — Design Tokens
     AI / SaaS platform · Minimal & Clean
     ========================================= */

  /* ---------- Typography ---------- */
  --font-display: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  /* Type scale (Major Third 1.25) */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.25rem;   /* 20px */
  --text-xl: 1.5rem;    /* 24px */
  --text-2xl: 1.875rem; /* 30px */
  --text-3xl: 2.375rem; /* 38px */
  --text-4xl: 3rem;     /* 48px */
  --text-5xl: 3.75rem;  /* 60px */
  --text-6xl: 4.75rem;  /* 76px */

  /* Fluid type (clamp) */
  --text-fluid-sm: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
  --text-fluid-base: clamp(1rem, 0.75vw + 0.8rem, 1.25rem);
  --text-fluid-lg: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  --text-fluid-xl: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  --text-fluid-2xl: clamp(1.875rem, 2vw + 1.25rem, 3rem);
  --text-fluid-hero: clamp(2.5rem, 4vw + 1rem, 4.75rem);

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---------- Colors ---------- */

  /* Brand / Accent — #C63400 */
  --color-primary: #C63400;
  --color-primary-hover: #A02800;
  --color-primary-active: #801F00;
  --color-primary-subtle: #FFF0EA;
  --color-primary-border: #FFD4C2;
  --color-primary-text: #C63400;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-bg: #FAFAFA;
  --color-surface: #F4F4F4;
  --color-elevated: #FFFFFF;
  --color-border: #E2E2E2;
  --color-border-light: #F0F0F0;
  --color-muted: #737373;
  --color-text-secondary: #5C5C5C;
  --color-text-primary: #1A1A1A;
  --color-near-black: #0D0D0D;

  /* Semantic */
  --color-success: #16A34A;
  --color-success-subtle: #F0FDF4;
  --color-success-border: #BBF7D0;
  --color-warning: #D97706;
  --color-warning-subtle: #FFFBEB;
  --color-warning-border: #FDE68A;
  --color-error: #DC2626;
  --color-error-hover: #B91C1C;
  --color-error-subtle: #FEF2F2;
  --color-error-border: #FECACA;
  --color-info: #2563EB;
  --color-info-subtle: #EFF6FF;
  --color-info-border: #BFDBFE;

  /* Chart color palette */
  --chart-1: #C63400;
  --chart-2: #2563EB;
  --chart-3: #16A34A;
  --chart-4: #D97706;
  --chart-5: #8B5CF6;
  --chart-6: #DC2626;
  --chart-7: #EC4899;
  --chart-8: #06B6D4;
  --chart-9: #F59E0B;
  --chart-10: #6366F1;
  --chart-grid: #F0F0F0;
  --chart-text: #8A8A8A;

  /* Overlay */
  --color-overlay: rgba(13, 13, 13, 0.4);

  /* ---------- Spacing (4px base) ---------- */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 2rem;     /* 32px */
  --space-8: 2.5rem;   /* 40px */
  --space-9: 3rem;     /* 48px */
  --space-10: 4rem;    /* 64px */
  --space-11: 5rem;    /* 80px */
  --space-12: 6rem;    /* 96px */

  /* Container max-widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* ---------- Border Radius ---------- */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(13, 13, 13, 0.04);
  --shadow-sm: 0 1px 3px rgba(13, 13, 13, 0.06), 0 1px 2px rgba(13, 13, 13, 0.04);
  --shadow-md: 0 4px 6px rgba(13, 13, 13, 0.05), 0 2px 4px rgba(13, 13, 13, 0.04);
  --shadow-lg: 0 10px 15px rgba(13, 13, 13, 0.06), 0 4px 6px rgba(13, 13, 13, 0.04);
  --shadow-xl: 0 20px 25px rgba(13, 13, 13, 0.08), 0 8px 10px rgba(13, 13, 13, 0.04);
  --shadow-2xl: 0 30px 40px rgba(13, 13, 13, 0.1);

  /* ---------- Transitions ---------- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ---------- Breakpoints (reference only) ---------- */
  /* sm: 640px | md: 768px | lg: 1024px | xl: 1280px | 2xl: 1536px */

  /* ---------- Z-index scale ---------- */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}


/* ---------- Base Styles ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin: 0;
  color: var(--color-near-black);
}

h1 { font-size: var(--text-fluid-hero); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-fluid-xl); }
h3 { font-size: var(--text-fluid-lg); }
h4 { font-size: var(--text-xl); }

p { margin: 0; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-hover); }

code { font-family: var(--font-mono); font-size: 0.9em; }

img { max-width: 100%; display: block; }
