/* ========================================
   NLG Academy — Base Reset & Design Tokens
   ======================================== */

/* ----- Fontshare Fonts ----- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-grotesk@200,300,400,500,600,700&f[]=satoshi@300,400,500,700&display=swap');

/* ----- CSS Reset ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ----- Design Tokens ----- */
:root {
  /* Colors */
  --color-bg: #0D0D0D;
  --color-bg-alt: #111111;
  --color-surface: #1A1A1A;
  --color-surface-alt: #222222;
  --color-surface-hover: #2A2A2A;
  --color-border: #333333;
  --color-border-subtle: #252525;
  --color-accent: #2563EB;
  --color-accent-hover: #3B82F6;
  --color-accent-glow: rgba(37, 99, 235, 0.25);
  --color-accent-soft: rgba(37, 99, 235, 0.1);
  --color-text: #FFFFFF;
  --color-text-secondary: #E5E5E5;
  --color-text-muted: #9CA3AF;
  --color-text-faint: #6B7280;

  /* Typography */
  --font-display: 'Clash Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Type Scale */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.8125rem);    /* 11-13px */
  --text-sm: clamp(0.8125rem, 0.775rem + 0.15vw, 0.9375rem);    /* 13-15px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);    /* 15-17px */
  --text-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);        /* 18-22px */
  --text-xl: clamp(1.5rem, 1.35rem + 0.6vw, 2rem);              /* 24-32px */
  --text-2xl: clamp(2rem, 1.7rem + 1.2vw, 3rem);                /* 32-48px */
  --text-hero: clamp(3rem, 2.2rem + 3.2vw, 6rem);               /* 48-96px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 960px;
  --header-height: 80px;
  --section-padding: clamp(var(--space-16), 8vw, var(--space-32));
  --container-padding: clamp(var(--space-4), 4vw, var(--space-8));

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-blue: 0 4px 24px rgba(37, 99, 235, 0.3);

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

/* ----- Base Body ----- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ----- Accessibility ----- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ----- Selection ----- */
::selection {
  background: var(--color-accent);
  color: var(--color-text);
}
