/* =====================================================
   ENTREPRENEURIAL ELITE — Design Tokens & Base Reset
   ===================================================== */

/* --- Tokens --- */
:root {
  /* Colors — Light */
  --bg: #F8F7F4;
  --bg-alt: #EFEDE6;
  --surface: #FFFFFF;
  --surface-raised: #FDFCF9;
  --border: #E3E0D7;
  --border-strong: #CFCBBF;

  --text: #0F0F12;
  --text-muted: #55535C;
  --text-faint: #8A8790;

  --primary: #6C3CE0;
  --primary-hover: #5A2CCB;
  --primary-soft: #EADBFF;
  --accent: #8A6CFF;
  --accent-2: #3B2AE0; /* deep blue-indigo */

  --dark: #0F0F12;
  --dark-surface: #17161B;
  --dark-surface-alt: #1E1C24;
  --dark-border: #2B2930;
  --dark-text: #ECEAE4;
  --dark-text-muted: #9B98A3;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6C3CE0 0%, #8A6CFF 50%, #3B2AE0 100%);
  --grad-soft: linear-gradient(180deg, rgba(108,60,224,0.08) 0%, rgba(108,60,224,0) 100%);
  --grad-dark: linear-gradient(135deg, #0F0F12 0%, #1E1C24 100%);

  /* Typography */
  --font-display: 'Clash Display', 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.375rem;     /* 22px */
  --text-2xl: 1.75rem;     /* 28px */
  --text-3xl: 2.25rem;     /* 36px */
  --text-4xl: 3rem;        /* 48px */
  --text-5xl: 4rem;        /* 64px */
  --text-hero: clamp(2.5rem, 6vw, 5.5rem);
  --text-display: clamp(1.875rem, 4.2vw, 3.75rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 10rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,15,18,0.04);
  --shadow-md: 0 8px 24px -8px rgba(15,15,18,0.12);
  --shadow-lg: 0 24px 60px -20px rgba(15,15,18,0.18);
  --shadow-violet: 0 20px 60px -20px rgba(108,60,224,0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-inout: cubic-bezier(0.65, 0.05, 0.35, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 600ms;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 880px;
  --header-h: 72px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0B0B0E;
  --bg-alt: #111015;
  --surface: #15141A;
  --surface-raised: #1C1B22;
  --border: #2A2830;
  --border-strong: #3A3843;

  --text: #ECEAE4;
  --text-muted: #9B98A3;
  --text-faint: #65636D;

  --primary: #9F7CFF;
  --primary-hover: #B79BFF;
  --primary-soft: rgba(159,124,255,0.18);
  --accent: #A585FF;
  --accent-2: #7B6BFF;

  --grad-soft: linear-gradient(180deg, rgba(159,124,255,0.10) 0%, rgba(159,124,255,0) 100%);
}

/* --- 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 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02', 'kern';
  overflow-x: hidden;
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: var(--text-hero); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: var(--text-display); letter-spacing: -0.03em; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); font-weight: 500; }

p { color: var(--text-muted); }

::selection { background: var(--primary); color: #fff; }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Numeric feature for tabular data */
.tabular { font-variant-numeric: tabular-nums lining-nums; }
