/* ==========================================================================
   Amplify design tokens (spec FR-010 to FR-016; research/reference-research.md section 3).
   Colours are sampled from the logo; type, motion and rhythm follow polarguild.org.
   Red is never used as an accent.
   ========================================================================== */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/chakra-petch-400.f34dba119079.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-petch-600.27489a499469.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chakra-petch-700.56706b63a0f0.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable.260c81a4759b.woff2") format("woff2");
}

:root {
  /* surfaces */
  --background: #02070c;
  --surface: rgba(6, 12, 20, 0.72);
  --surface-solid: #070d15;
  --surface-raised: rgba(10, 18, 30, 0.86);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(4, 224, 195, 0.34);

  /* text */
  --text: #f5fbff;
  --text-body: #dbe1e5;
  --text-muted: #a4acb4;
  --text-dim: #868d98;

  /* accents */
  --accent: #04e0c3;
  --accent-2: #0f95ed;
  --accent-gradient: linear-gradient(180deg, #04e0c3, #0f95ed);
  --accent-gradient-h: linear-gradient(90deg, #04e0c3, #0f95ed);
  --live: #01be86;
  --warn: #f2b544;

  /* ambient glows */
  --glow-green: #025540;
  --glow-blue: #0a256b;

  /* effects */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow-accent: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 12px var(--accent));

  /* type */
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* rhythm */
  --container: 1300px;
  --gutter: clamp(16px, 2.2vw, 28px);
  --header-h: 62px;
  --status-h: 34px;
  --section-pad: clamp(40px, 6vw, 72px);

  /* motion: one easing curve, two durations (FR-014) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 0.18s;
  --slow: 0.42s;
}

@media (max-width: 860px) {
  :root {
    --header-h: 56px;
  }
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
  padding-bottom: var(--status-h);
  position: relative;
  isolation: isolate;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---- background: two logo-coloured glows, edge darkening, 1px scanlines (FR-015) ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(125% 95% at 50% 42%, rgba(2, 7, 12, 0.12) 0%, rgba(2, 7, 12, 0.72) 62%, rgba(2, 7, 12, 0.95) 100%),
    radial-gradient(circle 45vw at 20% 40%, var(--glow-green) 0%, transparent 100%),
    radial-gradient(circle 45vw at 80% 40%, var(--glow-blue) 0%, transparent 100%),
    var(--background);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---- focus (FR-016) ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- type roles (FR-011) ---- */
.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
}
.page-title em,
.section-heading em {
  font-style: normal;
  color: var(--accent);
}
.section-heading {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
}
.subtitle {
  font-family: var(--display);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-top: 10px;
}
.card-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--text);
  text-transform: uppercase;
}
.stat-value {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3px;
}
.small {
  font-size: 13.5px;
}
.muted {
  color: var(--text-muted);
}

/* ---- reduced motion (FR-014) ---- */
@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;
  }
}
