/* ==========================================================================
   Olosho - Design Tokens
   Single source of truth for colour, type, spacing, radii and motion.
   Palette blends shades of red/pink with shades of indigo and #203152.
   ========================================================================== */

:root {
  /* ---- Brand colour -------------------------------------------------- */
  --brand:        #e2407a;   /* warm rose — primary action */
  --brand-600:    #c52e66;
  --brand-700:    #9e1f52;
  --indigo:       #4f46e5;   /* cool indigo — secondary accent */
  --indigo-600:   #4338ca;
  --magenta:      #8b5cf6;   /* violet bridge between rose and indigo */
  --plum:         #203152;   /* deep brand navy-indigo */
  --plum-800:     #16233a;
  --plum-600:     #2c4466;

  /* ---- Neutrals ------------------------------------------------------ */
  --ink:          #18141f;   /* headings */
  --ink-soft:     #4c4757;   /* body copy */
  --ink-mute:     #7b7686;   /* secondary copy */
  --line:         #ece7f0;
  --line-soft:    #f5f1f8;
  --bg:           #ffffff;
  --bg-soft:      #f8f5fc;   /* warm-violet section background */
  --bg-tint:      #fcfaff;
  --white:        #ffffff;

  /* ---- Surfaces ------------------------------------------------------ */
  --surface:      #ffffff;               /* cards, panels, dropdowns  */
  --header-bg:    rgba(255,255,255,.92);
  --overlay:      rgba(22, 14, 26, .62);

  /* ---- Support colours ---------------------------------------------- */
  --success:      #1f9d6b;
  --danger:       #d92d4a;

  /* ---- Gradients (rose -> violet -> deep indigo) --------------------- */
  --grad-brand:   linear-gradient(135deg, #e2407a 0%, #8b5cf6 100%);
  --grad-brand-2: linear-gradient(135deg, #f2508a 0%, #9b4fe0 48%, #26324f 100%);
  --grad-soft:    linear-gradient(180deg, #f8f5fc 0%, #ffffff 100%);
  --grad-dark:    linear-gradient(160deg, #2b1533 0%, #203152 100%);

  /* ---- Typography ---------------------------------------------------- */
  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Socafe", "Nunito", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs:   0.8125rem;   /* 13 */
  --fs-sm:   0.9375rem;   /* 15 */
  --fs-base: 1.0625rem;   /* 17 - comfortable mobile base */
  --fs-md:   1.1875rem;   /* 19 */
  --fs-lg:   clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl:   clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-2xl:  clamp(1.9rem, 1.3rem + 2.8vw, 2.9rem);
  --fs-hero: clamp(2.25rem, 1.3rem + 4.4vw, 4rem);

  --lh-tight: 1.08;
  --lh-snug:  1.25;
  --lh-base:  1.65;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   800;

  /* ---- Spacing scale (rem) ------------------------------------------ */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 5rem;
  --sp-10: 6.5rem;

  /* ---- Radii --------------------------------------------------------- */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-2xl:  40px;
  --r-pill: 999px;
  --r-round: 50%;

  /* ---- Elevation ----------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(24, 20, 31, 0.06);
  --shadow-sm: 0 4px 14px rgba(24, 20, 31, 0.07);
  --shadow-md: 0 12px 34px rgba(24, 20, 31, 0.09);
  --shadow-lg: 0 26px 64px rgba(24, 20, 31, 0.16);
  --shadow-brand: 0 14px 30px rgba(226, 64, 122, 0.30);

  /* ---- Layout -------------------------------------------------------- */
  --container: 1160px;
  --container-narrow: 760px;
  --measure: 68ch;          /* readable body measure for legal docs */
  --header-h: 72px;

  /* ---- Motion -------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 620ms;

  /* ---- Z-index ------------------------------------------------------- */
  --z-header: 900;
  --z-sticky: 850;
  --z-overlay: 1000;

  /* ---- Decorative / effects ------------------------------------------ */
  --grad-mesh:
    radial-gradient(60rem 40rem at 12% -10%, rgba(226,64,122,.16), transparent 60%),
    radial-gradient(48rem 34rem at 92% 4%, rgba(79,70,229,.15), transparent 62%),
    radial-gradient(40rem 30rem at 60% 110%, rgba(32,49,82,.17), transparent 60%);
  --ring: 0 0 0 3px rgba(226, 64, 122, .32);
  --glow-brand: 0 0 44px rgba(139, 92, 246, .32);

  /* ---- World map scale (rose -> violet -> deep indigo) --------------- */
  --map-none: rgba(255, 255, 255, .07);
  --map-line: rgba(255, 255, 255, .12);
  --map-1: #24395c;
  --map-2: #334e86;
  --map-3: #4a52ad;
  --map-4: #6f50c4;
  --map-5: #9a5bcb;
  --map-6: #c968ab;
  --map-7: #ee96af;
  --map-panel: linear-gradient(160deg, #1a1430 0%, #0b0a18 60%, #131024 100%);
}

/* ==========================================================================
   Dark theme
   ========================================================================== */
:root[data-theme="dark"] {
  --brand:     #ff6aa0;
  --brand-600: #ff90b8;
  --brand-700: #ffb4cd;
  --indigo:    #8b8cf5;
  --indigo-600:#a5a7f8;
  --magenta:   #a78bfa;

  --ink:       #f3eefb;
  --ink-soft:  #cabfda;
  --ink-mute:  #968aa9;
  --line:      #342b47;
  --line-soft: #241e33;
  --bg:        #100c1b;
  --bg-soft:   #181226;
  --bg-tint:   #141020;
  --white:     #161122;

  --surface:   #161122;
  --header-bg: rgba(16, 12, 27, .88);
  --overlay:   rgba(0, 0, 0, .66);

  --success:   #34c98a;
  --danger:    #ff6b86;

  --grad-soft: linear-gradient(180deg, #181226 0%, #100c1b 100%);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, .5);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --brand:     #ff6aa0;
    --brand-600: #ff90b8;
    --brand-700: #ffb4cd;
    --indigo:    #8b8cf5;
    --indigo-600:#a5a7f8;
    --magenta:   #a78bfa;

    --ink:       #f3eefb;
    --ink-soft:  #cabfda;
    --ink-mute:  #968aa9;
    --line:      #342b47;
    --line-soft: #241e33;
    --bg:        #100c1b;
    --bg-soft:   #181226;
    --bg-tint:   #141020;
    --white:     #161122;

    --surface:   #161122;
    --header-bg: rgba(16, 12, 27, .88);
    --overlay:   rgba(0, 0, 0, .66);

    --success:   #34c98a;
    --danger:    #ff6b86;

    --grad-soft: linear-gradient(180deg, #181226 0%, #100c1b 100%);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, .5);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, .6);
  }
}
