/* UWITZ DESIGN SYSTEM — compiled tokens + base + utilities */
/* Self-hosted Geist (SIL OFL 1.1). Served from our own origin so no third
   party sees a visitor's IP just because they loaded the page. */
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surface ramp */
  --bg-0: #09090A;
  --bg-1: #0D0D0F;
  --bg-2: #141416;
  --bg-3: #1A1A1D;
  --bg-4: #222225;
  --bg-inset: #060607;

  /* Hairlines */
  --line-1: #202023;
  --line-2: #2C2C30;
  --line-3: #3D3D42;
  --line-accent: #3D1712;

  /* Foreground */
  --fg-0: #F3F1EF;
  --fg-1: #BDB9B6;
  --fg-2: #8A8683;
  --fg-3: #5C5957;
  --fg-on-accent: #FFFFFF;

  /* Red ramp */
  --red-50: #FDECEA; --red-100: #FBD0CB; --red-200: #F7A79D;
  --red-300: #F17A6A; --red-400: #E8543F; --red-500: #DA2A1C;
  --red-600: #B8210F; --red-700: #931A0D; --red-800: #6E140A;
  --red-900: #4A0D07; --red-glow: rgba(218,42,28,0.45);

  /* Green ramp */
  --green-400: #46C95F; --green-500: #34B14C; --green-600: #259A3D;
  --green-glow: rgba(70,201,95,0.45);

  /* Cyan */
  --cyan-300: #5FE8E0; --cyan-400: #2FD3C9; --cyan-500: #18B3AA;

  /* Blue */
  --blue-300: #7DB4FF; --blue-400: #4D9FFF; --blue-500: #2E7FE6;

  /* Amber */
  --amber-300: #F6CE6B; --amber-400: #E9B23C; --amber-500: #C9941E;

  /* Semantic: accent (brand red) */
  --accent: var(--red-500);
  --accent-hover: var(--red-400);
  --accent-press: var(--red-600);
  --accent-fg: #FFFFFF;
  --accent-soft: rgba(218,42,28,0.12);
  --accent-soft-hi: rgba(218,42,28,0.20);
  --accent-glow: var(--red-glow);
  --accent-line: var(--red-600);

  /* Surfaces */
  --surface-app: var(--bg-1);
  --surface-card: var(--bg-2);
  --surface-raised: var(--bg-3);
  --surface-hover: var(--bg-4);
  --surface-inset: var(--bg-inset);

  /* Text */
  --text-strong: var(--fg-0);
  --text-body: var(--fg-1);
  --text-muted: var(--fg-2);
  --text-faint: var(--fg-3);
  --text-accent: var(--red-300);
  --text-link: var(--cyan-400);

  /* Borders */
  --border-faint: var(--line-1);
  --border: var(--line-2);
  --border-strong: var(--line-3);
  --focus-ring: var(--red-500);

  /* Status */
  --success: var(--green-400);
  --success-soft: rgba(70,201,95,0.14);
  --warning: var(--amber-400);
  --warning-soft: rgba(233,178,60,0.14);
  --danger: var(--red-600);
  --danger-soft: rgba(184,33,15,0.16);
  --info: var(--blue-400);
  --info-soft: rgba(77,159,255,0.14);

  /* Severity */
  --sev-critical: var(--red-500);
  --sev-high: #F2792E;
  --sev-medium: var(--amber-400);
  --sev-low: var(--cyan-400);
  --sev-info: var(--fg-2);

  /* Fonts */
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;
  --font-sans: 'Geist', 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --font-hero: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Type scale */
  --fs-2xs: 0.6875rem; --fs-xs: 0.75rem; --fs-sm: 0.8125rem;
  --fs-base: 0.875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem;
  --fs-4xl: 3rem; --fs-5xl: 4rem; --fs-6xl: 5.5rem;

  /* Weights */
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --fw-bold: 700; --fw-black: 800;

  /* Line heights */
  --lh-tight: 1.05; --lh-snug: 1.2; --lh-normal: 1.45; --lh-relaxed: 1.65;

  /* Letter spacing */
  --ls-tighter: -0.03em; --ls-tight: -0.015em; --ls-normal: 0;
  --ls-wide: 0.04em; --ls-wider: 0.12em; --ls-widest: 0.22em;

  /* Spacing */
  --space-0: 0; --space-px: 1px; --space-0-5: 2px;
  --space-1: 4px; --space-1-5: 6px; --space-2: 8px; --space-2-5: 10px;
  --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --space-20: 80px; --space-24: 96px; --space-32: 128px;

  /* Control heights */
  --control-sm: 30px; --control-md: 38px; --control-lg: 46px;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --sidebar-w: 264px;
  --gutter: var(--space-6);

  /* Z-index */
  --z-sticky: 100; --z-overlay: 500; --z-modal: 1000;

  /* Radii */
  --radius-0: 0px; --radius-xs: 3px; --radius-sm: 6px;
  --radius-md: 9px; --radius-lg: 14px; --radius-xl: 18px;
  --radius-2xl: 22px; --radius-pill: 999px; --radius-btn: 14px;

  /* Shadows */
  --shadow-0: none;
  --shadow-1: 0 1px 0 0 rgba(0,0,0,0.4);
  --shadow-2: 0 2px 6px -1px rgba(0,0,0,0.55), 0 1px 0 0 rgba(255,255,255,0.02) inset;
  --shadow-3: 0 8px 24px -6px rgba(0,0,0,0.6), 0 1px 0 0 rgba(255,255,255,0.03) inset;
  --shadow-4: 0 18px 48px -12px rgba(0,0,0,0.7), 0 1px 0 0 rgba(255,255,255,0.04) inset;
  --shadow-inset: inset 0 1px 2px rgba(0,0,0,0.6);

  /* Glow */
  --glow-accent: 0 0 0 1px var(--accent-line), 0 0 18px -4px var(--accent-glow);
  --ring: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--focus-ring);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.5, 0, 0, 1);
  --dur-1: 90ms; --dur-2: 150ms; --dur-3: 240ms; --dur-4: 400ms;

  /* Signature backgrounds */
  --grid-line: rgba(218,42,28,0.05);
  --bg-grid:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 24px);
  --bg-scanline: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
  --bg-vignette: radial-gradient(120% 90% at 50% -10%, rgba(218,42,28,0.07), transparent 60%);
}

[data-accent="blue"] {
  --accent: var(--blue-400); --accent-hover: var(--blue-300); --accent-press: var(--blue-500);
  --accent-fg: #03152E; --accent-soft: rgba(77,159,255,0.12); --accent-soft-hi: rgba(77,159,255,0.20);
  --accent-glow: rgba(77,159,255,0.45); --accent-line: var(--blue-500);
  --text-accent: var(--blue-300); --focus-ring: var(--blue-400);
}
[data-accent="amber"] {
  --accent: var(--amber-400); --accent-hover: var(--amber-300); --accent-press: var(--amber-500);
  --accent-fg: #2A1E03; --accent-soft: rgba(233,178,60,0.12); --accent-soft-hi: rgba(233,178,60,0.22);
  --accent-glow: rgba(233,178,60,0.45); --accent-line: var(--amber-500);
  --text-accent: var(--amber-300); --focus-ring: var(--amber-400);
}
[data-accent="green"] {
  --accent: var(--green-400); --accent-hover: #5FE07F; --accent-press: var(--green-600);
  --accent-fg: #04210B; --accent-soft: rgba(70,201,95,0.12); --accent-soft-hi: rgba(70,201,95,0.20);
  --accent-glow: var(--green-glow); --accent-line: var(--green-700);
  --text-accent: #5FE07F; --focus-ring: var(--green-400);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: var(--fw-regular) var(--fs-base)/var(--lh-normal) var(--font-body);
  color: var(--text-body);
  background: var(--surface-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-family: var(--font-display);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-semibold);
}
h1 { font-size: var(--fs-4xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tighter); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: var(--accent-soft-hi); color: var(--text-strong); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--radius-pill); border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

/* ============================================================
   BRAND PRIMITIVES
   ============================================================ */
.u-eyebrow {
  font: var(--fw-semibold) var(--fs-xs)/1 var(--font-sans);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.u-eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.8em; height: 0.9em;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 604 669'%3E%3Cpath d='M139.09 460.17 226.13 340.44 85.56 294.26 114.16 205.59 255.14 251.77 254.32 103.43 348.72 103.43 347.90 251.77 489.29 206.00 518.30 294.67 377.73 340.44 463.54 460.17 388.35 514.93 301.72 394.79 214.28 514.52Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 604 669'%3E%3Cpath d='M139.09 460.17 226.13 340.44 85.56 294.26 114.16 205.59 255.14 251.77 254.32 103.43 348.72 103.43 347.90 251.77 489.29 206.00 518.30 294.67 377.73 340.44 463.54 460.17 388.35 514.93 301.72 394.79 214.28 514.52Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.u-label {
  font: var(--fw-medium) var(--fs-2xs)/1 var(--font-sans);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.u-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.u-bg-grid { background-color: var(--bg-1); background-image: var(--bg-vignette), var(--bg-grid); }

/* Small uppercase chip — product/service tags, plan labels */
.u-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px; border-radius: var(--radius-pill);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font: var(--fw-semibold) var(--fs-2xs)/1 var(--font-sans);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--text-strong); white-space: nowrap;
}
/* Red variant — reserved for genuinely urgent/limited labels */
.u-chip-red {
  background: rgba(218,42,28,0.12);
  box-shadow: inset 0 0 0 1px rgba(218,42,28,0.34);
  color: var(--text-accent);
}
/* Icon tile used beside headings and in feature cards */
.u-tile {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-strong);
}
.u-tile-sm { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: var(--radius-sm); }

/* ============================================================
   LEGAL / LONG-FORM PROSE
   ============================================================ */
.legal { max-width: 74ch; margin: 0 auto; }
.legal h2 {
  margin: 48px 0 0;
  font: var(--fw-medium) 20px/1.3 var(--font-hero);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
  scroll-margin-top: 76px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  margin: 28px 0 0;
  font: var(--fw-semibold) 15px/1.4 var(--font-sans);
  color: var(--text-strong);
}
.legal p, .legal li {
  font: var(--fw-regular) 15px/1.75 var(--font-sans);
  color: var(--text-muted);
}
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 20px; }
.legal li { margin-top: 8px; }
.legal li::marker { color: var(--text-faint); }
.legal a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text-body); font-weight: var(--fw-semibold); }
.legal hr { margin: 44px 0 0; border: none; border-top: 1px solid var(--line-1); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.legal th, .legal td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-1);
  font: var(--fw-regular) 14px/1.6 var(--font-sans); color: var(--text-muted);
}
.legal th {
  font: var(--fw-semibold) var(--fs-2xs)/1 var(--font-sans);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-faint);
}
.legal td:first-child { color: var(--text-body); font-weight: var(--fw-medium); }
.legal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.legal .todo {
  display: inline-block; padding: 1px 6px; border-radius: var(--radius-xs);
  background: rgba(218,42,28,0.12);
  box-shadow: inset 0 0 0 1px rgba(218,42,28,0.34);
  font: var(--fw-medium) 13px/1.5 var(--font-mono);
  color: var(--text-accent);
}

.legal-shell { display: grid; grid-template-columns: 210px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 9px; }
.legal-toc a {
  font: var(--fw-medium) 12.5px/1.4 var(--font-sans);
  color: var(--text-muted); text-decoration: none;
}
.legal-toc a:hover { color: var(--text-strong); text-decoration: none; }

/* ============================================================
   SECTION RHYTHM + GRIDS
   ============================================================ */
.sec { padding: 88px 40px; border-bottom: 1px solid var(--line-1); }
.sec-tight { padding: 64px 40px; border-bottom: 1px solid var(--line-1); }
.sec > .wrap, .sec-tight > .wrap { max-width: var(--container); margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.wrap { max-width: var(--container); margin: 0 auto; }
.wrap-wide { max-width: var(--container-wide); margin: 0 auto; }

/* ============================================================
   HOVER UTILITIES
   ============================================================ */
.hover-card {
  transition: border-color var(--dur-3) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.hover-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
}
.hover-card-sm {
  transition: border-color var(--dur-3) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.hover-card-sm:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.hover-lift {
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
}
.hover-lift:hover { transform: translateY(-2px); }

/* ============================================================
   FORM INPUTS
   ============================================================ */
input, textarea, select {
  width: 100%;
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-strong);
  font: 500 14px/1 var(--font-sans);
  padding: 0 14px;
  box-shadow: var(--shadow-inset);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { resize: vertical; }
select { appearance: none; cursor: pointer; }

/* ============================================================
   BUTTONS
   ============================================================ */
button { cursor: pointer; font-family: var(--font-sans); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font: 600 14.5px/1 var(--font-hero);
  letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  border: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 20px -8px rgba(0,0,0,0.8);
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 26px -8px rgba(0,0,0,0.85);
  text-decoration: none; color: var(--accent-fg);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-strong);
  font: 600 14.5px/1 var(--font-hero);
  letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: border-color var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--text-faint);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
  text-decoration: none; color: var(--text-strong);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(9,9,10,0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-1);
}
.hdr-inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 0 32px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hdr-logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.hdr-logo svg { width: 20px; height: auto; display: block; color: var(--accent); flex: none; }
.hdr-logo span {
  font: 600 16px/1 var(--font-hero);
  letter-spacing: 0.14em; color: #F3F1EF;
}
.hdr-logo:hover { text-decoration: none; }
.hdr-nav {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px; border: 1px solid var(--line-1);
  border-radius: 10px; background: rgba(20,20,22,0.45);
}
.nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px; border-radius: 7px;
  font: 600 12.5px/1 var(--font-sans);
  text-decoration: none; white-space: nowrap;
  color: var(--text-muted);
  transition: background var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text-strong);
  text-decoration: none;
}
.nav-item.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
}
.nav-item.active:hover { background: var(--accent-soft-hi); color: var(--accent); }
.hdr-actions { display: flex; align-items: center; gap: 12px; }
.hdr-signin {
  display: flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: var(--radius-md); color: #BDB9B6;
  font: 600 12.5px/1 var(--font-sans);
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.hdr-signin:hover { background: var(--surface-hover); color: var(--text-strong); text-decoration: none; }
.hdr-donate, .hdr-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: #FFFFFF;
  font: 600 12.5px/1 var(--font-sans);
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 14px -6px rgba(0,0,0,0.8);
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.hdr-donate:hover, .hdr-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 7px 20px -6px rgba(0,0,0,0.85);
  text-decoration: none; color: #FFFFFF;
}
.hdr-admin {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 9px; position: relative;
  background: linear-gradient(180deg,#1C1C20,#131316);
  color: #F3F1EF; font: 600 12px/1 var(--font-sans);
  text-decoration: none; white-space: nowrap;
  border: 1px solid #34343B;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform var(--dur-1) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.hdr-admin:hover {
  transform: translateY(-1px);
  border-color: #55555E;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 5px 14px rgba(0,0,0,0.5);
  text-decoration: none; color: #F3F1EF;
}
.hdr-signout {
  display: flex; align-items: center; height: 32px; padding: 0 11px;
  border-radius: var(--radius-md); color: #5C5957;
  font: 600 12px/1 var(--font-sans);
  text-decoration: none; white-space: nowrap; background: none; border: none;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.hdr-signout:hover { background: var(--surface-hover); color: var(--text-body); cursor: pointer; }
.online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
  flex: none;
}

/* ── Mobile menu ─────────────────────────────────────────── */
.hdr-burger {
  display: none;
  width: 38px; height: 34px; padding: 0 9px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer;
}
.hdr-burger span {
  display: block; width: 18px; height: 1.5px; border-radius: 2px;
  background: var(--text-body);
  transition: transform var(--dur-2) var(--ease-out),
              opacity var(--dur-1) var(--ease-out);
}
.hdr-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hdr-burger.is-open span:nth-child(2) { opacity: 0; }
.hdr-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hdr-mobile {
  display: none;
  border-top: 1px solid var(--line-1);
  background: rgba(9,9,10,0.97);
  backdrop-filter: blur(8px);
  padding: 10px 16px 16px;
}
.hdr-mobile[hidden] { display: none !important; }
.hdr-mobile nav { display: flex; flex-direction: column; }
.hdr-mobile-link {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-1);
  font: 600 14px/1 var(--font-sans);
  color: var(--text-body); text-decoration: none;
}
.hdr-mobile-link:hover { color: var(--text-strong); text-decoration: none; }
.hdr-mobile-link.active { color: var(--text-strong); }
.hdr-mobile-link.active::before { content: "✶"; margin-right: 8px; font-size: 11px; color: var(--accent); }
.hdr-mobile-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; flex-wrap: wrap;
}
.hdr-mobile-actions .hdr-donate,
.hdr-mobile-actions .hdr-cta { flex: 1; min-width: 150px; height: 42px; }
.hdr-mobile-actions .hdr-signin { height: 42px; padding: 0 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line-1);
  background: var(--bg-0);
}
.ftr-inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 56px 40px 40px;
  display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr;
  gap: 56px; align-items: start;
}
.ftr-brand { max-width: 34ch; }
.ftr-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ftr-logo svg { width: 20px; height: auto; display: block; color: var(--accent); flex: none; }
.ftr-logo span { font: 600 15px/1 var(--font-hero); letter-spacing: 0.14em; color: var(--text-strong); }
.ftr-logo .ftr-logo-sub { font-weight: 500; color: var(--text-faint); }
.ftr-blurb { font: 400 13px/1.65 var(--font-sans); color: var(--text-muted); }

.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ftr-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.ftr-col-title { margin-bottom: 3px; color: var(--text-faint); }
.ftr-link {
  font: 400 13px/1.2 var(--font-hero); color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}
.ftr-link:hover { color: var(--text-strong); text-decoration: none; }

.ftr-base {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 20px 40px 40px;
  border-top: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.ftr-base span { font: 400 12px/1.4 var(--font-hero); color: var(--text-faint); }
.ftr-base .ftr-tagline { color: var(--text-accent); }
.ftr-base-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.ftr-base-links a {
  font: 400 12px/1.4 var(--font-hero); color: var(--text-faint);
  text-decoration: none; transition: color var(--dur-2) var(--ease-out);
}
.ftr-base-links a:hover { color: var(--text-body); text-decoration: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes uw-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes uw-blink {
  0%,49% { opacity: 1; } 50%,100% { opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .hdr-nav, .hdr-actions { display: none; }
  .hdr-burger { display: flex; }
  .hdr-mobile:not([hidden]) { display: block; }
  .hdr-inner { padding: 0 16px; }
  .ftr-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 22px 28px; }
  .ftr-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .ftr-base { padding: 18px 22px 36px; }
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  uwitz-flicker-field { opacity: 0.45 !important; }
  .sec { padding: 56px 20px; }
  .sec-tight { padding: 44px 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 520px) {
  .sec { padding: 46px 18px; }
  .sec-tight { padding: 38px 18px; }
  .grid-4 { grid-template-columns: 1fr; }
}
