/* ==========================================================================
   Technova — Design Tokens
   Single source of truth for colour, type, spacing, radius and motion.
   Change a value here and it updates across the whole website.
   ========================================================================== */

:root {
  /* --- Colour ----------------------------------------------------------- */
  --primary: #302783;
  --primary-dark: #211b5c;
  --primary-soft: #f5f3fc;

  --accent: #ed0011;
  --accent-dark: #a8000b;
  --accent-soft: #fff5f5;
  --accent-border: #f8c9cc;

  --black: #292929;
  --dark: #292929;
  --dark-soft: #3c3a42;

  --text: #292929;
  --muted: #5d5968;
  --muted-light: #7b7785;

  --white: #ffffff;
  --background: #ffffff;
  --surface-alt: #f5f3fc;

  --border: #e8e6ef;
  --border-light: #f1eef7;
  --border-strong: #dcd8f0;

  --success: #302783;
  --error: #ed0011;
  --star: #ed0011;

  /* --- Typography ------------------------------------------------------- */
  --font-primary: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;

  --fs-hero: clamp(2.5rem, 1.35rem + 4.6vw, 4rem);      /* 40px → 64px  */
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);       /* 36px → 52px  */
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 2.75rem);          /* 32px → 44px  */
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);   /* 22px → 26px  */
  --fs-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);   /* 18px → 20px  */
  --fs-body-lg: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); /* 16px → 18px  */
  --fs-body: 1rem;                                      /* 16px         */
  --fs-sm: 0.875rem;                                    /* 14px         */
  --fs-xs: 0.8125rem;                                   /* 13px         */
  --fs-label: 0.6875rem;                                /* 11px         */

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

  --lh-tight: 1.05;
  --lh-heading: 1.15;
  --lh-body: 1.65;

  /* --- Layout ----------------------------------------------------------- */
  --container-width: 1180px;
  --container-gutter: 5%;
  --measure: 640px;      /* comfortable reading width for supporting copy */

  --section-y: clamp(3.25rem, 1.75rem, 6rem); 
  --section-y-lg: clamp(4.5rem, 2rem + 7vw, 8.75rem);  

  --gap-xs: 0.5rem;
  --gap-sm: 0.75rem;
  --gap-md: 1.25rem;
  --gap-lg: 2rem;
  --gap-xl: clamp(2rem, 1rem + 3vw, 4rem);

  /* --- Radius ----------------------------------------------------------- */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* --- Elevation -------------------------------------------------------- */
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 38px rgba(0, 0, 0, 0.09);
  --shadow-header: 0 2px 20px rgba(0, 0, 0, 0.05);

  /* --- Motion ----------------------------------------------------------- */
  --transition: 250ms ease;
  --transition-fast: 180ms ease;
  --transition-slow: 600ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* --- Misc ------------------------------------------------------------- */
  --header-height: 74px;
  --focus-ring: 0 0 0 3px rgba(48, 39, 131, 0.25);
}

@media (max-width: 980px) {
  :root {
    --container-gutter: 4%;
    --section-y: clamp(3rem, 7vw, 5rem);
    --section-y-lg: clamp(3.5rem, 8vw, 6rem);
    --header-height: 68px;
  }
}
