/* ==========================================================================
   base.css  -  THEME COLOURS, FONTS AND BASIC RESET (TEMPLATE)
   Loaded first. Every other CSS file uses the variables made here.
   A variable is written --name: value; and used like var(--name).
   To change the colours of the whole website, change them in this file only.
   ========================================================================== */

/* THE PALETTE: one blue family + slate greys (the same idea used by Stripe, Linear and Vercel:
   one confident brand colour, cool neutral greys, and amber / red only for safety and alerts).
   Every other file uses these variables, so a colour is changed here and nowhere else. */
:root {
  /* --- Surfaces (backgrounds) --- */
  --page-bg: #FFFFFF;             /* Main background */
  --soft-bg: #F8FAFC;             /* Soft off-white for inner boxes */
  --section-bg: #F1F5F9;          /* Cool grey for alternating sections */

  /* --- Lines --- */
  --border-light: #E2E8F0;        /* Thin dividers */
  --border-dark: #CBD5E1;         /* Slightly stronger lines */

  /* --- Brand blue (matches the "Join waitlist" button) --- */
  --brand-blue: #0A5BFF;          /* Buttons, links, accents */
  --brand-blue-dark: #1D4ED8;     /* Emphasis words, hover */
  --brand-cyan: #06B6D4;          /* End colour of the brand gradient */
  --brand-gradient: linear-gradient(135deg, #0A5BFF, #2563EB 60%, #0891B2);  /* the button gradient, also used for borders */
  --brand-tint: rgba(10, 91, 255, .07);    /* very light blue fill */
  --brand-line: rgba(10, 91, 255, .35);    /* soft blue outline */
  --hero-gradient: linear-gradient(180deg, #C9DEFA 0%, #DCEAFC 30%, #EEF5FE 62%, #FFFFFF 100%);  /* soft sky-blue fading to white (the page background) */
  --hero-gradient-up: linear-gradient(0deg, #C9DEFA 0%, #DCEAFC 30%, #EEF5FE 62%, #FFFFFF 100%);   /* the same, flipped: white at the top, blue at the bottom */

  /* --- Text --- */
  --text-main: #0B1220;           /* Headings and main text */
  --text-body: #3E4C63;           /* Paragraphs */
  --text-muted: #64748B;          /* Softer words in headings */
  --text-small: #5B6B80;          /* Small labels */

  /* --- Safety and alerts (used only where they mean something) --- */
  --alert-red: #C62828;           /* Help / alert colour */
  --safety-text: #B45309;         /* Safety text colour */
  --safety-stripe: #FFB020;       /* Safety stripes and border */

  /* --- Fonts: Geist (text), Instrument Serif italic (highlight words), Geist Mono (labels) --- */
  --font-main: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-fancy: 'Instrument Serif', Georgia, serif;
}

/* RESET: padding and border are counted inside the width of a box. This makes sizing easier. */
* { box-sizing: border-box; }
/* Smooth scrolling when a menu link jumps to a section. */
html { scroll-behavior: smooth; }
/* Default look of the whole page: white background, dark text, main font. */
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font: 17px/1.6 var(--font-main);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;   /* crisper text on Mac / iPhone */
  text-rendering: optimizeLegibility;
}
/* Links look like normal text (no blue, no underline). They fade a little on hover. */
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
/* Buttons and input boxes use the same font as the rest of the page. */
button, input { font: inherit; }
/* A blue outline shows where the keyboard cursor is (important for accessibility). */
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
/* Colour used when the visitor highlights text with the mouse. */
::selection { background: var(--brand-blue); color: #fff; }
/* Remove the default space around headings and paragraphs. We add our own spacing. */
h1, h2, h3, p { margin: 0; }
/* Words inside <em> use the fancy italic font. This is the style of the highlighted words. */
em { font-family: var(--font-fancy); font-style: italic; font-weight: 400; }
/* When a link jumps to a section, stop 72px lower so the top menu does not cover it. */
section { scroll-margin-top: 72px; }
/* Anything with the "hidden" attribute is always hidden. */
[hidden] { display: none !important; }

/* ACCESSIBILITY: if the visitor asked their device for fewer animations, switch all animations off. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
