/* =====================================================================
   HOW TO EDIT (owner): THIS IS THE ONE PLACE FOR COLOURS AND FONTS.
   Every colour on the website comes from the values below. Change a value
   here and the whole site updates. Colours are written as #RRGGBB.

   The site is DARK: light text on deep blue-black, with one bright accent.
   Rules of thumb that keep it readable (and accessible):
   - Text is Snow or Mist on Ink or Slate backgrounds.
   - Cyan is the accent: buttons, links, highlights. Text ON a cyan button is dark.
   ===================================================================== */

:root {
  /* ---------- Brand palette ---------- */
  --ink:    #111820;   /* CHANGE: page background             */
  --slate:  #252F3A;   /* CHANGE: cards, panels, raised areas */
  --silver: #8997A5;   /* CHANGE: metallic grey, icons, lines */
  --snow:   #F4F7FA;   /* CHANGE: main text                   */
  --mist:   #DCE3EA;   /* CHANGE: secondary text              */
  --cyan:   #00C8E8;   /* CHANGE: accent                      */

  /* Older names still used in a few places: keep them pointing at the palette. */
  --steel: #4A5866;
  --sky: var(--cyan);
  --sky-deep: var(--cyan);

  /* ---------- Derived surfaces ---------- */
  --bg:            var(--ink);
  --bg-elevated:   #1B2530;   /* cards: between Ink and Slate */
  --bg-raised:     var(--slate);
  --bg-sunken:     #0C1219;   /* bands, viewer, inputs */
  --border:        rgba(137, 151, 165, 0.20);
  --border-strong: rgba(137, 151, 165, 0.45);

  --text:        var(--snow);
  --text-muted:  #C5CED8;     /* Mist, slightly dimmed */
  --text-faint:  #9AA7B4;     /* 5:1 on cards */

  --accent:       var(--cyan);
  --accent-ink:   #04202A;                  /* text written on an accent button */
  --accent-text:  var(--cyan);              /* accent-coloured words */
  --accent-soft:  rgba(0, 200, 232, 0.12);  /* tinted backgrounds */
  --accent-glow:  rgba(0, 200, 232, 0.35);

  --ok:     #3DDC97;
  --warn:   #FFC857;
  --danger: #FF8E80;
  --info:   var(--cyan);
  --whatsapp: #0E7A3F;   /* WhatsApp green, dark enough for white text */

  --focus: var(--cyan);

  /* ---------- Glass (the translucent panels and bars) ---------- */
  --glass-bg:        linear-gradient(180deg, rgba(244, 247, 250, 0.10), rgba(244, 247, 250, 0.045));
  --glass-bg-strong: linear-gradient(180deg, rgba(37, 47, 58, 0.78), rgba(17, 24, 32, 0.72));
  --glass-border:    rgba(244, 247, 250, 0.16);
  --glass-blur:      blur(18px) saturate(160%);
  --glass-shadow:      inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 14px 36px rgba(0, 0, 0, 0.30);
  --glass-shadow-lift: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 26px 56px rgba(0, 0, 0, 0.44);

  /* ---------- Typography ---------- */
  --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;   /* Apple's system font where available, Inter elsewhere */
  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid type scale: grows gently with screen width */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9rem;
  --fs-md:   1rem;
  --fs-lg:   clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --fs-xl:   clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  --fs-2xl:  clamp(1.8rem, 1.3rem + 2.4vw, 2.9rem);
  --fs-hero: clamp(2.1rem, 1.3rem + 3vw, 3.7rem);

  /* ---------- Spacing, radii, shadows ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
  --space-9: 7rem;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(244, 247, 250, 0.04) inset, 0 12px 30px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 1px 0 rgba(244, 247, 250, 0.06) inset, 0 22px 48px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 6px 20px var(--accent-glow);

  --container: clamp(1160px, 88vw, 1560px);   /* CHANGE: content width. Grows with the screen, between these two limits */
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --header-h: 68px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);   /* soft, springy, like macOS */
}

/* ---------- Self-hosted fonts (no outside requests, better privacy) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
}
