/* ── Tokens, reset, animated background ─────────────────────────────────────
 * 2026 redesign — LIGHT glassmorphism variant.
 * Soft off-white canvas with a slow aurora of tinted brand blobs behind
 * frosted-glass surfaces. Brand blue / orange / green still drive accents.
 * ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --primary: #003087;            /* original NHIT blue, used for ink */
  --primary-soft: #4d8bff;       /* lifted variant for hover/glow */
  --primary-hover: #002266;
  --secondary: #f47920;          /* NHIT orange */
  --secondary-soft: #ff9844;
  --green: #7ab648;
  --green-soft: #8dd960;
  --purple: #8338ec;
  --purple-soft: #b48cff;

  /* Surfaces — translucent for backdrop-filter on a light canvas */
  --bg-0: #f1f4fb;               /* base canvas */
  --bg-1: #e6ecf7;               /* gradient stop */
  --bg-2: #f8faff;               /* highlight stop */
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-soft: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-strong: rgba(0, 48, 135, 0.18);
  --hairline: rgba(15, 23, 42, 0.08);

  /* Text — dark ink on light glass */
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;

  /* Geometry */
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --glow-primary: 0 0 40px rgba(0, 48, 135, 0.18);
  --glow-secondary: 0 0 40px rgba(244, 121, 32, 0.22);

  /* Touch / sizing */
  --touch-target: 44px;
  --container-max: 1320px;
  --container-pad: 28px;

  /* Legacy aliases used elsewhere */
  --bg: var(--bg-0);
  --white: var(--glass);
  --border: var(--hairline);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-0);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: transparent;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.005em;
}

/* ── Animated mesh gradient backdrop ───────────────────────────────────────
 * Soft tinted blobs drift slowly behind everything, blurred into a pastel
 * aurora that the glass surfaces refract.
 * ─────────────────────────────────────────────────────────────────────────── */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, #e6edff 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, #ffeede 0%, transparent 60%),
    linear-gradient(180deg, #f4f7fd 0%, #eaf0fa 100%);
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.bg-blob--a {
  width: 620px; height: 620px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, #4d8bff 0%, transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
  opacity: 0.32;
}
.bg-blob--b {
  width: 540px; height: 540px;
  top: 40%; right: -160px;
  background: radial-gradient(circle, #ff9844 0%, transparent 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
  opacity: 0.28;
}
.bg-blob--c {
  width: 720px; height: 720px;
  bottom: -200px; left: 30%;
  background: radial-gradient(circle, #b48cff 0%, transparent 70%);
  animation: drift-c 38s ease-in-out infinite alternate;
  opacity: 0.22;
}
.bg-blob--d {
  width: 480px; height: 480px;
  top: 10%; right: 25%;
  background: radial-gradient(circle, #8dd960 0%, transparent 70%);
  animation: drift-d 28s ease-in-out infinite alternate;
  opacity: 0.20;
}

@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(180px, 120px) scale(1.15); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-220px, -140px) scale(1.1); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-160px, 100px) scale(0.9); }
}
@keyframes drift-d {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(140px, -80px) scale(1.2); }
}

/* Subtle grain — keeps glass surfaces from looking plasticky */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ── Reusable glass surface helper ─────────────────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.hidden { display: none !important; }

/* Selection */
::selection { background: rgba(0, 48, 135, 0.18); color: var(--text); }

/* Custom scrollbar — thin, glassy on light */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.32); background-clip: padding-box; }

/* Reduced motion → freeze the blobs */
@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none !important; }
}
