/* ==========================================================================
   Quantum Global — base styles
   Design tokens, reset, typography and layout primitives shared by every page.
   Source of truth: Figma file "Quantum Global Website" (page R2).
   ========================================================================== */

:root {
  /* Brand colours */
  --navy: #0b2474;
  --ink: #1e1e1e;
  --text: #343f63;
  --muted: #66676c;
  --muted-light: #b6b7bd;
  --white: #ffffff;
  --page-bg: #d9e9f4;

  /* Form colours */
  --field-bg: #f4f7fe;
  --field-border: #c0cbee;
  --placeholder: #7889bd;

  /* Lines & surfaces */
  --divider: #d9d9d9;
  --divider-blue: #c0cbee;
  --dashed: #cdced4;

  /* Status */
  --pill-grey: #ecedf0;
  --pill-blue: #c8e8ff;
  --pill-red: #ffe9e6;
  --red: #e74f3b;
  --green: #75f75b;
  --error: #c62828;

  /* Gold — used for borders, dividers and the "Security Tokenization" title */
  --gold-dark: #2e1d0b;
  --gold: linear-gradient(261.44deg, #2e1d0b 55.654%, #8a5a1e 73.42%, #d9a441 79.03%, #dcbb6e 82.771%, #d9a441 85.108%, #4a2f10 102.41%);
  --gold-line: linear-gradient(90deg, #4a2f10 0%, #8a5a1e 30%, #b8893f 60%, #a67c3f 100%);

  /* Type */
  --font-display: "Cal Sans", "Fustat", system-ui, sans-serif;
  --font-body: "Fustat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --radius-sm: 12px;
  --radius-md: 32px;
  --radius-lg: 40px;
  --radius-pill: 40px;
  --shadow-card: 0 10px 12px rgba(0, 0, 0, 0.08);
  --shadow-panel: 0 10px 24px rgba(0, 0, 0, 0.08);

  /* Layout */
  --container: 1200px;
  --container-wide: 1280px;
  --gutter: 15px;
  --header-offset: 15px;
}

@media (min-width: 700px) {
  :root { --gutter: 40px; --header-offset: 24px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 80px; --header-offset: 32px; }
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 700; }

/* --- Typography ------------------------------------------------------------ */

/* Cal Sans only ships one weight; headings never get synthetic bold. */
.display,
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  font-synthesis: none;
}

/* Figma trims text boxes to cap height / baseline. Browsers without
   support simply keep the default line box. */
.trim { text-box: trim-both cap alphabetic; }

.h1 { font-size: 40px; color: var(--navy); }
.h2 { font-size: 32px; color: var(--navy); }
.h2--ink { color: var(--ink); }

@media (min-width: 1200px) {
  .h1 { font-size: 56px; }
  .h2 { font-size: 42px; }
}

/* Lists with the design's bullet indentation */
.list-disc { list-style: disc; padding-left: 21px; }
.list-disc--wide { padding-left: 24px; }
.list-decimal { list-style: decimal; padding-left: 24px; }
.list-decimal li::marker { font-variant-numeric: tabular-nums; }

/* --- Layout ---------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
