/* ============================================================
   TOKENS — the single source of truth for the design system.
   Colors, gradients, overlays, radius, spacing, sizes, z-index,
   shadows, fonts and motion. Change a value here and the whole
   site updates. Loaded FIRST in head.php.

   THEME: NASA Blue, Deep Black and Silver (final)
     Blacks    layered, deep navy-black (header, menu, dark sections, footer)
     Blue      NASA royal blue for actions and labels, brighter blue for
               small accents, sky blue for text and lines on dark
     Silver    cool platinum for highlights and the end of gradients
     No orange, red, purple or neon anywhere.

   Note: CSS variables cannot be used inside @media conditions,
   so the breakpoints used across the site are listed here:
     1100px  tablet landscape / header collapses
      900px  tablet / menu goes single column
      760px  page-hero overlay switches
      720px  contact form goes single column
      640px  mobile
      480px  small mobile
============================================================ */
:root {

  /* ── RGB channels (use as rgba(var(--ink-rgb), .5)) ── */
  --white-rgb:       255, 255, 255;
  --black-rgb:       0, 0, 0;
  --ink-rgb:         3, 6, 13;         /* deepest black, faint navy tint */
  --ink-2-rgb:       8, 15, 30;
  --navy-rgb:        6, 14, 30;
  --accent-rgb:      10, 71, 184;      /* NASA royal blue #0a47b8 */
  --accent-blue-rgb: 61, 139, 253;     /* bright blue     #3d8bfd */
  --accent-soft-rgb: 156, 195, 255;    /* sky blue        #9cc3ff */
  --danger-rgb:      201, 54, 54;      /* form errors only */

  /* ── Surfaces (dark, layered from deepest to raised) ── */
  --ink:    rgb(var(--ink-rgb));       /* header, menu, dark sections, footer */
  --ink-2:  rgb(var(--ink-2-rgb));     /* marquee, panels */
  --ink-3:  #0f1b33;                   /* raised dark surfaces */
  --paper:  #eef3fa;                   /* light section background */
  --white:  #ffffff;

  /* ── Text ── */
  --text:        #06101f;
  --muted:       #4f5d75;
  --subtle:      #8190a8;   /* dates, domains, captions on light */
  --placeholder: #9aa7bb;

  /* ── Silver (highlights) ── */
  --silver:      #c9d3e3;
  --silver-soft: #e8eef8;

  /* ── Brand ── */
  --accent:       rgb(var(--accent-rgb));
  --accent-hover: #07368f;
  --accent-blue:  rgb(var(--accent-blue-rgb));
  --accent-soft:  rgb(var(--accent-soft-rgb));

  /* Text-gradient colors (default = on light backgrounds): deep navy blue to royal blue */
  --grad-a: #08306f;
  --grad-b: #1f6feb;

  /* Gradient colors on dark backgrounds (hero, dark sections): blue to silver-white */
  --grad-dark-a: #5b9bff;
  --grad-dark-b: #f2f7ff;

  /* Gradient colors on the metrics strip */
  --grad-metrics-a: #9cc3ff;
  --grad-metrics-b: #f5f9ff;
  --metrics-from:   #020611;
  --metrics-to:     #0b2f73;

  /* ── Status ── */
  --danger:      rgb(var(--danger-rgb));
  --danger-dark: #8f2424;

  /* ── Lines ── */
  --line-light:   rgba(var(--white-rgb), .12);
  --line-dark:    rgba(var(--navy-rgb), .13);
  --field-border: rgba(var(--navy-rgb), .24);

  /* ── Gradients ── */
  --gradient-brand:      linear-gradient(90deg, var(--grad-dark-a), var(--grad-dark-b));
  --gradient-brand-fade: linear-gradient(90deg, var(--grad-dark-a), var(--grad-dark-b) 55%, transparent);
  --gradient-metrics:    linear-gradient(120deg, var(--metrics-from) 0%, var(--metrics-to) 100%);

  /* ── Image overlays (closing bands) ── */
  --overlay-band:
    linear-gradient(90deg, rgba(var(--ink-rgb), .94) 0%, rgba(var(--ink-rgb), .72) 48%, rgba(var(--ink-rgb), .3) 100%),
    linear-gradient(180deg, rgba(var(--ink-rgb), .55) 0%, rgba(var(--ink-rgb), 0) 30%, rgba(var(--ink-rgb), .6) 100%);
  --overlay-band-mobile:
    linear-gradient(180deg, rgba(var(--ink-rgb), .86) 0%, rgba(var(--ink-rgb), .72) 100%);

  /* ── Radius (the site uses sharp corners only) ── */
  --radius: 0;

  /* ── Layout & spacing ── */
  --max-w:     1360px;
  --gutter:    clamp(20px, 4vw, 64px);
  --header-h:  76px;
  --section-y: clamp(80px, 10vw, 152px);   /* vertical padding of .section */
  --band-y:    clamp(48px, 5.5vw, 80px);   /* compact closing bands */

  /* ── Component sizes ── */
  --btn-h:      56px;
  --btn-h-sm:   44px;
  --btn-cut:    14px;   /* clipped corner on buttons */
  --btn-cut-sm: 10px;
  --control-h:  44px;   /* icon button, menu toggle */
  --field-h:    52px;   /* inputs, selects, menu search */
  --scroll-btn: 48px;

  /* ── Z-index scale ── */
  --z-scroll: 150;
  --z-header: 200;
  --z-menu:   300;
  --z-skip:   1000;

  /* ── Shadows ── */
  --shadow-card:   0 30px 60px rgba(var(--navy-rgb), .15);
  --shadow-scroll: 0 14px 34px rgba(var(--black-rgb), .34);

  /* ── Typography ── */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ── Motion ── */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 640px) {
  :root {
    --header-h:   68px;
    --scroll-btn: 44px;
  }
}