/* ============================================================
   FOUNDATION CSS, Get 'er Done
   Canonical token set and body-level shell that header.php and
   footer.php consume. This file is the single source of truth.
   Every page <link>s to /css/foundation.css before any page
   <style> block. Page-specific CSS goes in the page's own
   <style> block AFTER this file loads.

   Tokens, body shell, and skip-link styles are mirrored from the
   live homepage on 2026-05-14 to guarantee parity with the
   rendered chrome. Do not edit values here without updating the
   homepage in lockstep (or vice versa). If a new token is needed
   site-wide, add it here first, then reference it from header,
   footer, and pages.

   See: standards-doc-v2.1 Section 4d, Critical Rule 13.
   ============================================================ */

:root {
  /* Brand colors */
  --brand-blue: #2E7BE6;
  --check-green: #8BC53F;

  /* Background gradient stops */
  --bg: #050A16;
  --bg-2: #020617;

  /* Surface and overlay tokens (translucent, layered over body bg) */
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.04);

  /* Typography colors */
  --text: #F8FAFC;
  --muted: rgba(248, 250, 252, 0.68);
  --muted-2: rgba(248, 250, 252, 0.82);

  /* Borders */
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Effects */
  --shadow: rgba(46, 123, 230, 0.18);
  --focus: rgba(46, 123, 230, 0.45);

  /* Geometry */
  --radius: 18px;
  --radius-sm: 12px;

  /* Header sizing (header is position: fixed, so body needs padding-top) */
  --header-h: 118px;
  --header-offset: 118px;
}

/* ============================================================
   Reset and base typography
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(46, 123, 230, 0.18) 0%, rgba(46, 123, 230, 0.00) 60%),
    radial-gradient(800px 520px at 85% 20%, rgba(139, 197, 63, 0.10) 0%, rgba(139, 197, 63, 0.00) 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, #000 120%);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-offset);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 28px);
}

/* ============================================================
   Brand text accent utilities (used in headlines and copy across
   home, services, solutions, tools, and blog pages)
   ============================================================ */

.accent-green {
  color: var(--check-green);
  font-weight: 800;
}

.accent-blue {
  color: var(--brand-blue);
  font-weight: 800;
}

/* ============================================================
   Skip link (accessibility, keyboard nav lands here first)
   ============================================================ */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--check-green);
  color: #050A16;
  font-weight: 800;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ============================================================
   Focus ring (applies to every focusable element)
   ============================================================ */

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

/* ============================================================
   Reduced motion (respect user preference)
   ============================================================ */

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