/* Веди — Design System (Colors & Type)
   Brand: Веди · Цифровой компаньон 75+
   Fonts hosted on Google Fonts. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---------- Brand palette ---------- */
  --violet-600: #7C3AED;     /* gradient start, accent 2 */
  --indigo-600: #4F46E5;     /* primary brand */
  --blue-500:   #3B82F6;     /* gradient end, links */

  --indigo-950: #1E1B4B;     /* primary text */
  --slate-500:  #64748B;     /* muted text */
  --slate-300:  #CBD5E1;
  --slate-200:  #E2E8F0;
  --slate-100:  #F1F5F9;

  --lavender-mist: #F5F3FF;  /* soft surface */
  --white: #FFFFFF;

  --gold:    #F59E0B;        /* highlight */
  --emerald: #10B981;        /* success */

  /* Brand gradient (diagonal) */
  --brand-gradient: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #3B82F6 100%);
  --brand-gradient-soft: linear-gradient(135deg, #EDE9FE 0%, #DBEAFE 100%);

  /* ---------- Semantic colors ---------- */
  --fg-1: var(--indigo-950);   /* headings, primary */
  --fg-2: #334155;             /* body */
  --fg-3: var(--slate-500);    /* muted, captions */
  --fg-inverse: #FFFFFF;

  --bg-1: #FFFFFF;             /* primary surface */
  --bg-2: var(--lavender-mist);/* soft surface */
  --bg-3: var(--slate-100);    /* quiet surface */

  --border: rgba(79, 70, 229, 0.10);
  --border-strong: rgba(79, 70, 229, 0.18);
  --divider: #E5E7EB;

  --link: var(--blue-500);
  --link-hover: var(--indigo-600);

  --accent: var(--indigo-600);
  --accent-hover: #4338CA;

  /* ---------- Type families ---------- */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter',   system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---------- Type scale (aligned to pitch deck pt sizes) ---------- */
  --size-hero:     56px;   /* large data numbers */
  --size-h1:       40px;   /* cover titles */
  --size-h2:       32px;   /* slide titles */
  --size-h3:       24px;   /* subtitles */
  --size-body:     18px;   /* body, slide bullets */
  --size-body-sm:  16px;
  --size-caption:  13px;
  --size-micro:    11px;

  /* ---------- Spacing ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ---------- Radii ---------- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 4px 16px -4px rgba(79, 70, 229, 0.15);
  --shadow-lg: 0 12px 32px -8px rgba(79, 70, 229, 0.22);
  --shadow-brand: 0 16px 40px -12px rgba(124, 58, 237, 0.35);

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 220ms;
  --dur-slow: 400ms;
}

/* ---------- Base typography ---------- */
html, body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.5;
  color: var(--fg-2);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .ds-display {
  font-family: var(--font-display);
  color: var(--fg-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); font-weight: 600; }
h4 { font-size: var(--size-body); font-weight: 600; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

small, .ds-caption {
  font-size: var(--size-caption);
  color: var(--fg-3);
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--link-hover); }

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

.ds-number {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--indigo-600);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
