/* ========================================
   PIK_AI — Design Tokens & Reset
   v3.0 — Light Theme Redesign
   ======================================== */

/* --- Font Face --- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-024F, U+0100-017F;
}

/* --- CSS Custom Properties --- */
:root {
  /* === BACKGROUNDS === */
  --bg-dark: #edebec;
  --bg-dark-elevated: #e2e0e1;
  --bg-dark-surface: #d8d6d7;
  --bg-light: #f5f4f4;
  --bg-light-alt: #faf9f9;
  --bg-white: #ffffff;

  /* === TEXT === */
  --text-on-dark: #1a1a1a;
  --text-on-dark-muted: rgba(26, 26, 26, 0.68);
  --text-on-dark-subtle: rgba(26, 26, 26, 0.65);
  --text-on-light: #111111;
  --text-on-light-muted: rgba(17, 17, 17, 0.64);
  --text-on-light-subtle: rgba(17, 17, 17, 0.62);

  /* === ACCENTS (decorative: backgrounds, borders, circles) === */
  --accent-lime: #edfb8c;
  --accent-orange: #ffc096;
  --accent-pink: #fb86b1;
  --accent-purple: #9797ff;

  /* === ACCENTS — text always dark (only approved palette colors for decoration) === */
  --accent-lime-text: #1a1a1a;
  --accent-purple-text: #1a1a1a;
  --accent-orange-text: #1a1a1a;
  --accent-pink-text: #1a1a1a;

  /* Accent opacity variants */
  --accent-lime-10: rgba(237, 251, 140, 0.12);
  --accent-lime-15: rgba(237, 251, 140, 0.18);
  --accent-lime-25: rgba(237, 251, 140, 0.30);
  --accent-orange-10: rgba(255, 192, 150, 0.12);
  --accent-orange-15: rgba(255, 192, 150, 0.18);
  --accent-pink-10: rgba(251, 134, 177, 0.12);
  --accent-pink-15: rgba(251, 134, 177, 0.18);
  --accent-purple-10: rgba(151, 151, 255, 0.12);
  --accent-purple-15: rgba(151, 151, 255, 0.18);

  /* === SEMANTIC === */
  --color-link: #1a1a1a;
  --color-link-light: #111111;
  --color-focus: var(--accent-purple);
  --color-error: #d93636;
  --color-success: #2d8f4e;

  /* === GLASSMORPHISM (light theme) === */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.07);
  --glass-border-hover: rgba(0, 0, 0, 0.13);
  --glass-blur: 24px;
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-radius: 20px;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow-lime: 0 4px 20px rgba(200, 210, 60, 0.25);
  --shadow-glow-purple: 0 4px 20px rgba(100, 100, 220, 0.2);
  --shadow-glow-orange: 0 4px 20px rgba(220, 140, 80, 0.2);
  --shadow-glow-pink: 0 4px 20px rgba(200, 80, 130, 0.2);

  /* === MESH GRADIENT BLOBS (stronger on light bg) === */
  --mesh-hero:
    radial-gradient(ellipse at 70% 20%, rgba(151, 151, 255, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(237, 251, 140, 0.10) 0%, transparent 50%);
  --mesh-training:
    radial-gradient(ellipse at 10% 40%, rgba(237, 251, 140, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 70%, rgba(151, 151, 255, 0.08) 0%, transparent 45%);
  --mesh-funding:
    radial-gradient(ellipse at 50% 0%, rgba(255, 192, 150, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 100%, rgba(251, 134, 177, 0.08) 0%, transparent 50%);
  --mesh-cta:
    radial-gradient(ellipse at 30% 50%, rgba(237, 251, 140, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(151, 151, 255, 0.10) 0%, transparent 50%);
  --mesh-about:
    radial-gradient(ellipse at 60% 20%, rgba(237, 251, 140, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 70%, rgba(151, 151, 255, 0.08) 0%, transparent 45%);

  /* === TYPOGRAPHY === */
  --text-display: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --text-h1: clamp(2rem, 3.5vw + 0.5rem, 3.2rem);
  --text-h2: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  --text-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  --text-h4: 1.25rem;
  --text-body: 1rem;
  --text-body-lg: 1.125rem;
  --text-small: 0.875rem;
  --text-caption: 0.875rem;
  --text-overline: 0.875rem;

  /* === SPACING === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* === LAYOUT === */
  --container-max: 1200px;
  --container-wide: 1400px;
  --gutter: 24px;
  --content-measure: 560px;

  /* === ANIMATION === */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-enter: 600ms;
  --duration-reveal: 800ms;

  /* === RADII === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 100px;

  /* === NAVBAR === */
  --navbar-height: 72px;
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --text-h4: 1.125rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --gutter: 20px;
  }
}

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

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

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

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-on-light);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul, ol { list-style: none; }

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-3) var(--space-6);
  background: var(--accent-purple);
  color: #1a1a1a;
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 200ms ease;
}

.skip-link:focus { top: 0; }

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

/* --- Selection --- */
::selection {
  background: rgba(151, 151, 255, 0.25);
  color: var(--text-on-light);
}

/* --- SR only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
