/* ============================================================
   Gobilago — Spacing, radii, shadow & motion tokens
   iOS-flavoured: generous radii, soft elevation, gentle easing.
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base) ----------------------------- */
  --space-0:  0;
  --space-1:  0.25rem;   /* 4  */
  --space-2:  0.5rem;    /* 8  */
  --space-3:  0.75rem;   /* 12 */
  --space-4:  1rem;      /* 16 */
  --space-5:  1.25rem;   /* 20 */
  --space-6:  1.5rem;    /* 24 */
  --space-8:  2rem;      /* 32 */
  --space-10: 2.5rem;    /* 40 */
  --space-12: 3rem;      /* 48 */
  --space-16: 4rem;      /* 64 */
  --space-20: 5rem;      /* 80 */
  --space-24: 6rem;      /* 96 */
  --space-32: 8rem;      /* 128 */

  /* ---- Radii ------------------------------------------------ */
  --radius-xs:   8px;
  --radius-sm:   12px;
  --radius-md:   16px;    /* inputs */
  --radius-lg:   20px;    /* tiles, small cards */
  --radius-xl:   24px;    /* cards */
  --radius-2xl:  32px;    /* hero / feature surfaces */
  --radius-pill: 999px;   /* capsule buttons, tab bar */

  /* ---- Shadows (soft iOS elevation) ------------------------- */
  --shadow-xs:  0 1px 2px rgba(20, 21, 43, 0.05);
  --shadow-sm:  0 2px 8px rgba(20, 21, 43, 0.06);
  --shadow-md:  0 8px 24px rgba(20, 21, 43, 0.08);
  --shadow-lg:  0 16px 40px rgba(20, 21, 43, 0.10);
  --shadow-xl:  0 28px 64px rgba(20, 21, 43, 0.14);
  /* coloured glow used on primary CTAs + aurora cards */
  --shadow-indigo: 0 14px 36px rgba(94, 92, 230, 0.30);

  /* ---- Layout ----------------------------------------------- */
  --container:      1200px;
  --container-wide: 1320px;
  --gutter:         clamp(1.25rem, 4vw, 3rem);   /* @kind spacing */
  --section-y:      clamp(4rem, 9vw, 8rem);       /* @kind spacing */

  /* ---- Motion ----------------------------------------------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);    /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);    /* @kind other */
  --dur-fast:   0.14s;   /* @kind other */
  --dur-base:   0.24s;   /* @kind other */
  --dur-slow:   0.42s;   /* @kind other */
}

[data-theme="dark"] {
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm:  0 2px 10px rgba(0, 0, 0, 0.55);
  --shadow-md:  0 10px 28px rgba(0, 0, 0, 0.6);
  --shadow-lg:  0 18px 44px rgba(0, 0, 0, 0.66);
  --shadow-xl:  0 30px 70px rgba(0, 0, 0, 0.72);
  --shadow-indigo: 0 14px 40px rgba(110, 108, 240, 0.45);
}
