/* ==========================================================================
   QUAD UK Design Tokens
   Source: Figma "QUAD UK Website", page Draft V1 (10:383), base frame 1920x1080.
   Every value below was measured on the home frames. Fluid sizes scale
   linearly with the viewport and cap at the 1920 design value.
   ========================================================================== */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ---- Color: neutral ramp (dark UI, measured) ---------------------- */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-950: #111111;   /* hamburger disc, deepest surface   */
  --color-gray-900: #18181a;   /* icon buttons, raised surface      */
  --color-gray-850: #1f1f1f;   /* quote panel, cards                */
  --color-gray-800: #262628;   /* card border / hover surface       */
  --color-gray-700: #3e3e3e;   /* dividers                          */
  --color-gray-600: #6b6b6b;   /* spec labels                       */
  --color-gray-550: #6c6c6c;   /* body on white                     */
  --color-gray-500: #757575;   /* product description               */
  --color-gray-450: #828282;   /* muted display on white            */
  --color-gray-400: #9e9e9e;   /* secondary text on dark            */
  --color-gray-300: #b3b3b3;   /* accordion description             */
  --color-gray-250: #b7b7b7;   /* nav links                         */
  --color-gray-200: #bdbdbd;   /* captions                          */
  --color-gray-150: #cfcfcf;   /* muted display on dark             */
  --color-gray-100: #dadada;   /* hero subtitle                     */
  --color-gray-50:  #f2f2f2;   /* light nav capsule                 */

  /* ---- Color: brand accents ------------------------------------------ */
  --color-steel: #8da9ba;      /* product title gradient             */
  --color-ring: #525e77;       /* concentric orbit rings             */
  --color-ice: #a8d1ea;        /* Q ring outline                     */

  /* ---- Color: semantic roles ----------------------------------------- */
  --bg-page: var(--color-black);
  --bg-surface: var(--color-gray-850);
  --bg-surface-raised: var(--color-gray-900);
  --bg-inverse: var(--color-white);
  --text-primary: var(--color-white);
  --text-secondary: var(--color-gray-400);
  --text-muted: var(--color-gray-150);
  --text-inverse: var(--color-black);
  --text-inverse-muted: var(--color-gray-450);
  --border-subtle: var(--color-gray-700);
  --color-danger: #f08a8a;      /* form errors only (round 14, no Figma value) */
  --glass-dark: rgb(0 0 0 / 0.15);
  --glass-disc: rgb(17 17 17 / 0.15);

  --gradient-steel: linear-gradient(90deg, var(--color-steel) 0%, #fff 54%, var(--color-steel) 100%);
  --gradient-ring: linear-gradient(90deg, var(--color-ring), transparent 50%, var(--color-ring));

  /* ---- Typography ---------------------------------------------------- */
  /* Licensed families first; web stand-ins (Urbanist, Hanken Grotesk) are
     self-hosted until the Aventa / FFF Acid Grotesk webfonts are supplied. */
  --font-display: "Aventa", "Urbanist", system-ui, sans-serif;
  --font-body: "FFF Acid Grotesk", "Hanken Grotesk", system-ui, sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  /* Fluid type: min at 375px, max = Figma value at 1920px */
  --fs-display-1: clamp(2.125rem, 1.45rem + 2.2vw, 3.5rem);   /* 56: section headlines */
  --fs-display-2: clamp(1.875rem, 1.35rem + 1.75vw, 3rem);    /* 48: product name      */
  --fs-heading:   clamp(1.1875rem, 0.95rem + 0.75vw, 1.625rem); /* 26: intro statement */
  --fs-title-lg:  clamp(1.25rem, 1.05rem + 0.6vw, 1.875rem); /* 30: card label        */
  --fs-title:     clamp(1.125rem, 1rem + 0.45vw, 1.625rem);  /* 26: section lead      */
  --fs-title-sm:  clamp(1.125rem, 1.05rem + 0.25vw, 1.5rem); /* 24: card title        */
  --fs-subtitle:  clamp(1.0625rem, 1rem + 0.2vw, 1.375rem);  /* 22: accordion title   */
  --fs-body-lg:   clamp(1rem, 0.95rem + 0.2vw, 1.25rem);     /* 20: quotes, counter   */
  --fs-body:      1rem;                                       /* 16: body, leads, slider copy */
  --fs-ui:        1rem;                                       /* 16: nav, buttons      */
  --fs-small:     0.875rem;                                   /* 14: labels            */
  --fs-micro:     0.75rem;                                    /* 12: legal             */

  --lh-tight: 1;
  --lh-display: 1.2;
  --lh-body: 1.45;
  --lh-list: 1.92;
  --tracking-display: -0.01em;

  /* ---- Layout -------------------------------------------------------- */
  --container-max: 1920px;
  --margin: clamp(1.25rem, 9.375vw, 11.25rem);  /* 180 at 1920 */
  --gutter: 1.25rem;                            /* 20 */
  --columns: 6;
  --section-y: clamp(5rem, 9vw, 10rem);

  /* ---- Spacing (4px base) ------------------------------------------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;

  /* ---- Radius -------------------------------------------------------- */
  --radius-sm: 0.75rem;   /* thumbnails      */
  --radius-md: 1.25rem;   /* cards (20)      */
  --radius-lg: 2rem;      /* feature panels  */
  --radius-pill: 999px;   /* buttons, chips  */

  /* ---- Elevation / effects ------------------------------------------ */
  --blur-glass: 17px;
  --blur-card: 35px;    /* glass card (Figma 70) */
  --shadow-card: 0 30px 80px -20px rgb(0 0 0 / 0.6);

  /* ---- Motion -------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* expo out: reveals   */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);  /* clip/curtain wipes  */
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 800ms;
  --dur-reveal: 1200ms;

  /* ---- Component sizes ---------------------------------------------- */
  --nav-width: 55.875rem;   /* 894 */
  --nav-height: 3.75rem;    /* 60  */
  --btn-height: 2.5rem;     /* 40  */
  --icon-btn: 2.1875rem;    /* 35  */
  --icon-btn-lg: 2.5rem;    /* 40: slider arrows (round 7, was 48) */
  --scrollbar-size: 10px;                       /* 4 px visible pill inside a 10 px gutter */
  --scrollbar-track: var(--color-gray-850);     /* #1f1f1f dark grey gutter (round 9) */
  --scrollbar-thumb: var(--color-gray-100);     /* #dadada very light grey pill (round 9) */
  --scrollbar-thumb-hover: var(--color-gray-50);
  --section-gap-eco: clamp(5rem, 14vh, 11rem); /* extra black space between Ecosystem and the product slider */
  --plus-btn: 3.5rem;       /* 56  */

  --z-nav: 50;
  --z-menu: 60;
  --z-loader: 100;
}
