/* ============================================
   CORE MARKET MINDS — DESIGN TOKENS
   Theme: "Growth Studio" (2026 migration)
   Moved from a dark ledger/dashboard aesthetic to a
   light, airy studio look: soft indigo, pastel tints,
   generous rounding, floating cards. The "ledger"
   discipline survives as content (real numbers, plain
   labels) rather than as a dark/mono visual costume.
   ============================================ */

:root {
  /* ---- Color: Studio Light ---- */
  --ink-950: #0F172A;       /* deep slate — footer, mega menu, CTA bookend sections */
  --ink-900: #16213B;       /* secondary dark surface (cards on dark) */
  --ink-800: #1E2A47;       /* elevated dark surface (hover on dark) */
  --hairline-dark: #2B3A5A; /* dividers on dark */

  --paper-50: #FFFFFF;      /* primary page background */
  --paper-100: #F7F6FC;     /* soft neutral-lavender alt section background */
  --paper-200: #ECEAF5;     /* hairline / border on light */

  --ink-text: #16213B;      /* body text on light */
  --slate-600: #5B6472;     /* secondary text on light */
  --slate-400: #94A3B8;     /* tertiary text / placeholders */
  --fog-300: #C7CEDB;       /* secondary text on dark */

  --signal-500: #6366F1;    /* primary brand / CTA — indigo */
  --signal-600: #4F46E5;    /* hover state */
  --signal-100: #E4E4FB;    /* tint for badges, icon chips on light */

  --gain-500: #16A34A;      /* positive metrics / results only — kept as-is,
                                 it's a meaningful signal (a real number went up),
                                 not a decorative accent */
  --gain-100: #DCF6E6;

  /* Soft pastel card tints — rotate across feature/industry cards */
  --tint-pink: #FDEDF3;
  --tint-blue: #EAF1FE;
  --tint-peach: #FDF1E7;
  --tint-mint: #EAF9F1;

  /* Corner gradient bleed (hero / feature section backdrops) */
  --gradient-accent: radial-gradient(circle at 100% 0%, #FCE7D9 0%, rgba(252,231,217,0) 55%),
                      radial-gradient(circle at 0% 0%, #F3E8FE 0%, rgba(243,232,254,0) 50%);

  --white: #FFFFFF;

  /* ---- Typography ---- */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace; /* used sparingly now — see components.css */

  /* ---- Type scale ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;

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

  /* ---- Layout / Radius ---- */
  --container-max: 1180px;
  --radius-sm: 12px;        /* inputs, chips, small controls */
  --radius-md: 24px;        /* standard cards */
  --radius-lg: 32px;        /* hero split panels, modals, mega menu */
  --radius-pill: 9999px;    /* buttons */

  /* ---- Shadows: soft & floating, never hard-edged ---- */
  --shadow-float-sm: 0 8px 24px -8px rgba(15, 23, 42, 0.10);
  --shadow-float-md: 0 20px 45px -12px rgba(15, 23, 42, 0.14);
  --shadow-float-lg: 0 30px 60px -15px rgba(15, 23, 42, 0.20);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-mid: 320ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--paper-50);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

:focus-visible {
  outline: 2px solid var(--signal-500);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
}

.text-gain { color: var(--gain-500); }
.text-signal { color: var(--signal-500); }
