/**
 * Croissant — Design Tokens v3
 * Pure neutral. Grey scale. Inter only. Logo gradient = sole color.
 */

:root {
  /* ── Surfaces ─────────────────────────────────── */
  --surface-0: #FAFAFA;   /* page background */
  --surface-1: #F4F4F5;   /* elevated sections (HIW, FAQ) — zinc-100 */
  --surface-2: #FFFFFF;   /* floating: cards, browser window, CTA card */

  /* ── Text ─────────────────────────────────────── */
  --text-primary:   #111111;
  --text-secondary: #6B7280;
  --text-tertiary:  #9CA3AF;

  /* ── Borders ──────────────────────────────────── */
  --border-subtle: #E5E7EB;
  --border-strong: #D1D5DB;

  /* ── Shadows (minimal, neutral) ───────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);

  /* ── Radii ────────────────────────────────────── */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 999px;

  /* ── Spacing (4pt scale, unchanged) ───────────── */
  --space-2xs:  4px;
  --space-xs:   8px;
  --space-sm:   12px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;
  --space-4xl:  96px;
  --space-5xl:  128px;

  /* ── Typography — Inter only ──────────────────── */
  --font-body:
    "Inter",
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;

  /* Display scale (fluid, semibold, tight tracking) */
  --display-2xl: clamp(2.5rem, 1.75rem + 3vw, 3.5rem);     /* 40 → 56 */
  --display-xl:  clamp(2rem, 1.5rem + 2vw, 2.75rem);        /* 32 → 44 */
  --display-lg:  clamp(1.625rem, 1.375rem + 1vw, 2rem);     /* 26 → 32 */
  --display-md:  clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);/* 22 → 26 */
  --display-sm:  1.125rem;                                    /* 18, fixed */

  --display-lh-tight:  1.08;
  --display-lh-normal: 1.15;
  --display-ls-tight:  -0.035em;
  --display-ls-normal: -0.02em;

  /* Body scale (rem, fixed) */
  --text-lg:  1.0625rem;  /* 17 */
  --text-md:  1rem;       /* 16 */
  --text-sm:  0.875rem;   /* 14 */
  --text-xs:  0.75rem;    /* 12 */

  --body-lh-relaxed: 1.6;
  --body-lh-normal:  1.5;

  /* Label style */
  --label-size:   0.75rem;
  --label-ls:     0.06em;
  --label-weight: 500;

  /* ── Container ────────────────────────────────── */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 2vw, 2rem);

  /* ── Motion ───────────────────────────────────── */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   150ms;
  --dur-normal: 200ms;
  --dur-slow:   420ms;

  /* ── Z-index ──────────────────────────────────── */
  --z-base:   0;
  --z-raised: 10;
  --z-sticky: 30;
  --z-nav:    50;
  --z-modal:  100;
}

/* ── Reset & base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--body-lh-relaxed);
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
.tabular-nums { font-variant-numeric: tabular-nums; }

::selection {
  background: var(--text-primary);
  color: var(--surface-2);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
