/* ═══════════════════════════════════════════
   Kelling Capital — Base / Design Tokens
   ═══════════════════════════════════════════ */

/* Fonts — Cabinet Grotesk (display) + Satoshi (body) */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&f[]=satoshi@300,400,500,700&display=swap');

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

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

body {
  min-height: 100dvh;
  -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;
}

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

ul, ol { list-style: none; }

/* ── Design Tokens ─────────────────────── */
:root {
  /* Colors */
  --color-bg: #0a0a0f;
  --color-surface: #111118;
  --color-surface-2: #181822;
  --color-border: #2a2a3a;
  --color-divider: #1e1e2e;

  --color-text: #e8e6f0;
  --color-text-muted: rgba(232, 230, 240, 0.5);
  --color-text-faint: #4e4c5e;
  --color-text-inverse: #0a0a0f;

  --color-primary: #7a00df;
  --color-primary-hover: #8f2aef;
  --color-accent: #00d4aa;
  --color-accent-2: #9b3cef;
  --color-accent-3: #00f0cc;

  --color-glow: rgba(122, 0, 223, 0.15);
  --color-glow-accent: rgba(0, 212, 170, 0.15);

  /* Typography */
  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);       /* 11–12px */
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);      /* 13–14px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);         /* 15–16px */
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);         /* 17–19px */
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);            /* 20–24px */
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);              /* 24–32px */
  --text-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);           /* 30–44px */
  --text-4xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);            /* 36–60px */
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);                 /* 48–128px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --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;

  /* Fluid section padding */
  --section-pad: clamp(var(--space-16), 10vw, var(--space-32));
  --section-pad-x: clamp(var(--space-6), 6vw, var(--space-16));

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --max-width-content: 960px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Transitions */
  --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 2px 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-glow: 0 0 30px rgba(0, 212, 170, 0.2);
  --shadow-glow-purple: 0 0 30px rgba(122, 0, 223, 0.2);
}

/* ── Base styles ───────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

p {
  max-width: 65ch;
}

::selection {
  background: rgba(122, 0, 223, 0.4);
  color: var(--color-text);
}

/* ── Scrollbar ────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-faint);
}

/* ── Reduced Motion ───────────────────── */
@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; }
}
