/**
 * Acerbo landing — shared design tokens, typography, header/footer, cluster layouts.
 * Tokens aligned with 251228mablogacerbo (app/globals.css + acerbo-landing.css dark iridescent skin).
 * Fonts: Inter (UI) + JetBrains Mono (eyebrows/meta).
 */
:root {
  --background: #0a0a14;
  --foreground: #ffffff;
  --card: #131323;
  --card-foreground: #ffffff;
  --primary: #7de0e6;
  --primary-dark: #050510;
  --primary-foreground: #0a0a14;
  --secondary: #131323;
  --muted: #1a1a2a;
  --muted-foreground: #a8a8b8;
  --body-medium: #c9c9d1;
  /* Readable pairs — dark site default */
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.78);
  --text-on-dark-subtle: rgba(255, 255, 255, 0.62);
  --link-on-dark: rgba(255, 255, 255, 0.9);
  --link-on-dark-hover: #ffffff;
  --text-on-light: #0a0a14;
  --text-on-light-muted: #4a4f5c;
  --text-on-light-subtle: #5c6570;
  --link-on-light: #003d6e;
  --link-on-light-hover: #002a4d;
  --text-on-accent: #050510;
  --text-on-accent-muted: rgba(5, 5, 16, 0.82);
  --link-on-card: #9ee8ec;
  --link-on-card-hover: #c8f5f7;
  --accent: #7de0e6;
  --accent-foreground: #0a0a14;
  --highlight: #7de0e6;
  --highlight-soft: #a8f5b5;
  --highlight-muted: rgba(125, 224, 230, 0.14);
  --accent-amber: #e8a55c;
  --accent-violet: #7a5aa8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ring: rgba(125, 224, 230, 0.45);
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.35);
  --glow-accent: 0 0 24px rgba(125, 224, 230, 0.35);
  --glow-accent-soft: 0 4px 28px rgba(125, 224, 230, 0.22);
  --fx-grid-line: rgba(255, 255, 255, 0.04);
  --fx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: var(--font-display);
  --font-sans: var(--font-body);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: clip;
}

.surface-dark {
  color: var(--text-on-dark);
}
.surface-dark :is(.section-sub, .subtitle, .text-muted) {
  color: var(--text-on-dark-muted);
}
.surface-light {
  color: var(--text-on-light);
}
.surface-light :is(.section-sub, .subtitle, .text-muted) {
  color: var(--text-on-light-muted);
}
h1, h2, h3, h4, .section-title, .cluster-hero h1, .cluster-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-accent,
.cluster-hero .accent {
  background: linear-gradient(
    90deg,
    #a8f5b5 0%,
    #7de0e6 30%,
    #5bc8d6 50%,
    #e8a55c 78%,
    #e36b6b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 0; top: -100px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 0.375rem 0;
}
.skip-link:focus { top: 0; outline: 2px solid var(--highlight); outline-offset: -4px; }
html[lang="en"] .lead-capture-section { display: none !important; }

a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.875rem;
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 390px) {
  .container { padding: 0 1rem; }
  .container-narrow { padding: 0 1.25rem; }
}
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 3.5rem;
  background: rgba(10, 10, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.35s var(--fx-ease-out), border-color 0.35s var(--fx-ease-out),
    box-shadow 0.35s var(--fx-ease-out), backdrop-filter 0.35s var(--fx-ease-out);
}
.header.is-scrolled {
  background: rgba(5, 5, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
@media (min-width: 640px) and (max-width: 767px) {
  .header { height: 4rem; }
}
@media (min-width: 768px) {
  .header {
    height: auto;
    min-height: 4rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .header-inner { height: auto; min-height: 2.75rem; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .logo-img { height: 2.5rem; }
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}
@media (min-width: 640px) { .logo-text { font-size: 1.25rem; } }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-on-dark);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { color: var(--link-on-dark-hover); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(85vw, 22rem);
  height: 100vh;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4rem 1.5rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-open {
  transform: translateX(0);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.4);
}
.nav-backdrop.is-visible { display: block; }
@media (min-width: 768px) {
  .nav-backdrop { display: none !important; }
  .header,
  .header-inner {
    overflow: visible;
  }
  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow: visible;
    transform: none;
    box-shadow: none;
  }
}
.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--link-on-dark);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.nav-close:hover { color: var(--link-on-dark-hover); }
@media (min-width: 768px) { .nav-close { display: none; } }
.nav a:not(.nav-cta):not(.nav-submenu-toggle):not([data-lang]) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--link-on-dark);
  text-decoration: none;
  padding: 0.625rem 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav a:not(.nav-cta):not(.nav-submenu-toggle):not([data-lang]):hover,
.nav a:not(.nav-cta):not(.nav-submenu-toggle):not([data-lang]):focus-visible {
  color: var(--link-on-dark-hover);
}
.nav a[aria-current="page"] {
  color: var(--link-on-dark-hover);
  font-weight: 600;
}

/* ── Nav: 3 top-level groups + submenus ── */
.nav-primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.nav-item-has-submenu {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0;
  margin: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link-on-dark);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-submenu-toggle::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  opacity: 0.75;
}
.nav-item-has-submenu.is-open .nav-submenu-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}
.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
  color: var(--link-on-dark-hover);
  outline: none;
}
.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.nav-item-has-submenu.is-open .nav-submenu {
  display: flex;
}
.nav-submenu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0;
  border-bottom: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-item-has-submenu.is-open .nav-submenu a {
    animation: navSubmenuFadeIn 0.35s var(--fx-ease-out) backwards;
  }
  .nav-item-has-submenu.is-open .nav-submenu li:nth-child(1) a { animation-delay: 0.03s; }
  .nav-item-has-submenu.is-open .nav-submenu li:nth-child(2) a { animation-delay: 0.06s; }
  .nav-item-has-submenu.is-open .nav-submenu li:nth-child(3) a { animation-delay: 0.09s; }
  .nav-item-has-submenu.is-open .nav-submenu li:nth-child(4) a { animation-delay: 0.12s; }
  .nav-item-has-submenu.is-open .nav-submenu li:nth-child(5) a { animation-delay: 0.15s; }
}
@keyframes navSubmenuFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-landing-group-label {
  display: none;
}
.lang-switcher a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--link-on-dark-hover);
}
.lang-switcher a.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.lang-sep {
  color: var(--text-on-dark-subtle);
  pointer-events: none;
  opacity: 0.5;
  flex-shrink: 0;
  user-select: none;
}
@media (min-width: 768px) {
  .nav a:not(.nav-cta):not([data-lang]) { padding: 0; border-bottom: none; }
  .nav-primary {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem 0.5rem;
    width: auto;
    flex-shrink: 0;
  }
  .nav-item-has-submenu {
    border-bottom: none;
    overflow: visible;
  }
  .nav-submenu-toggle {
    width: auto;
    padding: 0.35rem 0.5rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
  }
  .nav-submenu-toggle::after {
    margin-left: 0.15rem;
  }
  .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12.5rem;
    margin-top: 0.35rem;
    padding: 0.35rem 0;
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity 0.22s var(--fx-ease-out), transform 0.22s var(--fx-ease-out), visibility 0.22s;
  }
  .nav-submenu a {
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
    color: var(--card-foreground);
    white-space: nowrap;
    border-bottom: none;
  }
  .nav-submenu a:hover,
  .nav-submenu a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--link-on-dark-hover);
  }
  .nav-submenu a[aria-current="page"] {
    color: var(--link-on-dark-hover);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-item-has-submenu:hover .nav-submenu,
  .nav-item-has-submenu:focus-within .nav-submenu,
  .nav-item-has-submenu.is-open .nav-submenu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav-item-has-submenu.is-open .nav-submenu-toggle,
  .nav-item-has-submenu:hover .nav-submenu-toggle,
  .nav-item-has-submenu:focus-within .nav-submenu-toggle {
    color: var(--link-on-dark-hover);
  }
}
#lang-switcher {
  width: 100%;
}
.lang-switcher {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.375rem 0.5rem;
  border-bottom: none;
}
@media (min-width: 768px) {
  #lang-switcher { width: auto; }
  .lang-switcher {
    padding: 0;
    border-bottom: none;
  }
  .lang-switcher a {
    min-width: 0;
    min-height: 0;
    padding: 0.35rem 0.25rem;
  }
}
.nav-search-wrap {
  position: relative;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .nav-search-wrap { padding: 0; border-bottom: none; }
}
.nav-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--link-on-dark);
  cursor: pointer;
}
.nav-search-trigger:hover { color: var(--link-on-dark-hover); }
.nav-search-trigger svg { width: 1.125rem; height: 1.125rem; }
.nav-search-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 110;
  width: min(90vw, 18rem);
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.nav-search-popover[hidden] { display: none; }
.nav-search-popover .popover-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  display: block;
  margin-bottom: 0.5rem;
}
.nav-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-cta { width: 100%; margin-top: 1rem; white-space: nowrap; }
.nav .btn-cta {
  background: var(--primary-foreground);
  color: var(--primary) !important;
}
@media (min-width: 768px) {
  .nav-cta {
    width: auto;
    margin-top: 0;
    font-size: 0.75rem;
    padding: 0.45rem 0.65rem;
    line-height: 1.2;
    text-align: center;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.625rem 1.5rem;
  min-height: 2.75rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #ffffff;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  opacity: 0.92;
  box-shadow: var(--shadow-md), var(--glow-accent-soft);
}
.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--secondary);
  border-color: rgba(125, 224, 230, 0.28);
}
.btn-cta {
  background: #ffffff;
  color: var(--primary-foreground) !important;
}
.btn-cta:hover {
  opacity: 0.95;
  filter: brightness(1.05);
}
.btn-hero-light {
  background: #ffffff;
  color: var(--primary-foreground);
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), var(--glow-accent-soft);
}
.btn-hero-light:hover {
  opacity: 0.92;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.32), var(--glow-accent);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-hero-light.fx-btn-glow {
    animation: fxBtnGlowPulse 3.2s ease-in-out infinite;
  }
}
@keyframes fxBtnGlowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 0 16px rgba(125, 224, 230, 0.28); }
  50% { box-shadow: 0 6px 26px rgba(0, 0, 0, 0.32), 0 0 28px rgba(125, 224, 230, 0.42); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover,
  .btn-cta:hover,
  .btn-secondary:hover,
  .btn-hero-light:hover,
  .btn-submit-lead:hover {
    transform: translateY(-2px);
  }
  .btn-cta:hover,
  .btn-primary:hover,
  .btn-hero-light:hover {
    box-shadow: var(--shadow-md), var(--glow-accent);
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: none) {
  .btn-primary:active,
  .btn-cta:active,
  .btn-secondary:active,
  .btn-hero-light:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--glow-accent-soft);
  }
}

/* ── FOOTER ── */
.footer {
  background: var(--primary-dark);
  color: var(--text-on-dark-muted);
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-logo-img {
  display: block;
  height: 2rem;
  width: auto;
}
.footer-links {
  display: flex;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--link-on-dark);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--link-on-dark-hover);
  opacity: 1;
}
.footer-meta {
  font-size: 0.8rem;
  color: var(--text-on-dark-subtle);
}

/* ── CLUSTER / SUBPAGE LAYOUT ── */
.cluster-hero {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 4.75rem;
  background:
    radial-gradient(
      ellipse 100% 80% at 75% 40%,
      rgba(125, 224, 230, 0.1) 0%,
      rgba(168, 245, 181, 0.04) 35%,
      transparent 65%
    ),
    radial-gradient(
      ellipse at 90% 80%,
      rgba(122, 90, 168, 0.1) 0%,
      transparent 50%
    ),
    var(--background);
  color: var(--foreground);
  padding: 3.75rem 0 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cluster-hero {
    padding: 3.25rem 0 3rem;
    scroll-margin-top: 5.5rem;
  }
}
.cluster-hero::before {
  content: '';
  position: absolute;
  inset: -20% -5%;
  background:
    radial-gradient(ellipse 55% 50% at 85% 35%, rgba(125, 224, 230, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 80%, rgba(168, 245, 181, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.cluster-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--fx-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fx-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 72% 38%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 72% 38%, black 15%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.cluster-hero > * {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .cluster-hero.fx-hero-animated {
    background:
      radial-gradient(
        ellipse 100% 80% at 75% 40%,
        rgba(125, 224, 230, 0.14) 0%,
        rgba(168, 245, 181, 0.06) 35%,
        transparent 65%
      ),
      radial-gradient(
        ellipse at 90% 80%,
        rgba(122, 90, 168, 0.12) 0%,
        transparent 50%
      ),
      var(--background);
    background-size: 220% 220%;
    animation: fxHeroGradient 20s ease-in-out infinite alternate;
  }
  .cluster-hero.fx-hero-animated::before {
    animation: fxHeroAmbient 22s ease-in-out infinite alternate;
  }
}
@keyframes fxHeroGradient {
  0% { background-position: 0% 40%; }
  100% { background-position: 100% 60%; }
}
@keyframes fxHeroAmbient {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-2%, 2%) scale(1.05); opacity: 0.92; }
}
.cluster-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  background: var(--highlight-muted);
  border: 1px solid rgba(125, 224, 230, 0.35);
  color: var(--highlight);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.cluster-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.cluster-hero .sub {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.cluster-hero .hero-stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.cluster-hero .hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}
.cluster-hero .cta-sub {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
.cluster-hero .cta-sub a { color: var(--highlight-soft); }

.cluster-stats {
  padding: 2.25rem 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.cluster-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  text-align: center;
}
@media (min-width: 390px) {
  .cluster-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 768px) {
  .cluster-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.cluster-stat .n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.cluster-stat .l {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.cluster-section { padding: 3rem 0; }
.cluster-section.muted { background: var(--secondary); }
.cluster-section .eyebrow {
  display: block;
  text-align: center;
  color: var(--highlight);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.cluster-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  text-align: center;
  color: var(--foreground);
  margin-bottom: 2rem;
  line-height: 1.25;
}
.cluster-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cluster-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}
.cluster-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s var(--fx-ease-out), border-color 0.28s var(--fx-ease-out),
    transform 0.28s var(--fx-ease-out);
}
.cluster-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
  transition: left 0.55s var(--fx-ease-out), opacity 0.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .cluster-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md), 0 0 0 1px rgba(125, 224, 230, 0.22), var(--glow-accent-soft);
      border-color: rgba(125, 224, 230, 0.38);
    }
    .cluster-card:hover::after {
      left: 130%;
      opacity: 1;
    }
  }
  @media (hover: none) {
    .cluster-card:active {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md), var(--glow-accent-soft);
      border-color: rgba(125, 224, 230, 0.32);
    }
  }
}
.cluster-card .sn {
  font-size: 0.85rem;
  color: var(--highlight);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.cluster-card h3 {
  font-size: 1.15rem;
  color: var(--foreground);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.cluster-card p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}
.cluster-card .result {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.cluster-card .result b { color: var(--link-on-card); }
.cluster-section .section-sub {
  color: var(--text-on-dark-muted);
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cluster-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cluster-steps {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
}
.cluster-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--fx-ease-out), border-color 0.25s var(--fx-ease-out),
    transform 0.25s var(--fx-ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .cluster-step:hover {
      transform: translateY(-3px);
      border-color: rgba(125, 224, 230, 0.28);
      box-shadow: var(--shadow-md), var(--glow-accent-soft);
    }
  }
  @media (hover: none) {
    .cluster-step:active {
      transform: translateY(-2px);
      border-color: rgba(125, 224, 230, 0.28);
      box-shadow: var(--shadow-md), var(--glow-accent-soft);
    }
  }
}
.cluster-step .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--highlight);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cluster-step h3 {
  font-size: 1.05rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.cluster-step p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.cluster-problem {
  padding: 3rem 0;
  background: var(--secondary);
  text-align: center;
}
.cluster-problem .big-stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.cluster-problem h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin: 0.5rem 0 1rem;
}
.cluster-problem p {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted-foreground);
}

/* ── PARTNERS STRIP (genie emergence + hover smoke) ── */
#partners,
.partners-section {
  scroll-margin-top: 5.5rem;
}
.partners-section {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-section .container {
  position: relative;
  z-index: 1;
}
.partners-section .section-title {
  margin-bottom: 0.5rem;
  color: var(--text-on-dark);
}
.partners-section .section-sub {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--text-on-dark-muted);
}
.partners-section--cluster {
  padding: 2.5rem 0;
}
@media (prefers-reduced-motion: no-preference) {
  .partners-section::before,
  .partners-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(52px);
  }
  .partners-section::before {
    width: min(28rem, 55vw);
    height: min(18rem, 40vw);
    left: 6%;
    bottom: -22%;
    background: radial-gradient(circle, rgba(125, 224, 230, 0.22) 0%, transparent 70%);
    opacity: 0.34;
    animation: partnersGenieWispA 26s ease-in-out infinite alternate;
  }
  .partners-section::after {
    width: min(24rem, 48vw);
    height: min(16rem, 34vw);
    right: 4%;
    top: -28%;
    background: radial-gradient(circle, rgba(122, 90, 168, 0.18) 0%, transparent 72%);
    opacity: 0.3;
    animation: partnersGenieWispB 32s ease-in-out infinite alternate;
  }
}
@keyframes partnersGenieWispA {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  100% { transform: translate(3%, -4%) scale(1.08); opacity: 0.44; }
}
@keyframes partnersGenieWispB {
  0% { transform: translate(0, 0) scale(1); opacity: 0.28; }
  100% { transform: translate(-4%, 5%) scale(1.06); opacity: 0.4; }
}
.partners-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.5rem 0.75rem;
  color: var(--muted-foreground);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
@media (min-width: 640px) {
  .partners-strip {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0;
    gap: 1.5rem 2.25rem;
  }
}
.partners-strip .partner-genie {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  position: relative;
  isolation: isolate;
  padding: 0.35rem 0.55rem;
}
.partners-strip .partner-logo {
  position: relative;
  z-index: 1;
  display: block;
  height: 2rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  opacity: 0.58;
  filter: grayscale(1);
  transition:
    opacity 0.32s var(--fx-ease-out),
    filter 0.32s var(--fx-ease-out),
    transform 0.38s var(--fx-ease-out);
}
@media (min-width: 640px) {
  .partners-strip {
    gap: 1.75rem 2.75rem;
  }
  .partners-strip .partner-logo {
    height: 2.5rem;
    max-width: 9rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .partners-strip .partner-genie::before {
    content: '';
    position: absolute;
    inset: -14% -10%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(
      ellipse 82% 72% at 50% 88%,
      rgba(125, 224, 230, 0.32) 0%,
      rgba(122, 90, 168, 0.14) 44%,
      transparent 74%
    );
    opacity: 0;
    transform: translateY(14px) scale(0.82);
    transition: opacity 0.45s var(--fx-ease-out), transform 0.5s var(--fx-ease-out);
    pointer-events: none;
  }
  .partners-strip .partner-genie::after {
    content: '';
    position: absolute;
    inset: 2% 0;
    z-index: 2;
    border-radius: 4px;
    background: linear-gradient(
      105deg,
      transparent 36%,
      rgba(168, 245, 181, 0.45) 50%,
      transparent 64%
    );
    background-size: 220% 100%;
    background-position: 130% 0;
    opacity: 0;
    mix-blend-mode: soft-light;
    pointer-events: none;
  }
  .partners-strip .partner-genie:hover::before,
  .partners-strip .partner-genie:focus-within::before {
    opacity: 1;
    transform: translateY(-8px) scale(1.08);
    animation: partnerGenieSmoke 2.6s ease-in-out infinite alternate;
  }
  .partners-strip .partner-genie:hover::after,
  .partners-strip .partner-genie:focus-within::after {
    opacity: 1;
    animation: partnerGenieShimmer 0.85s var(--fx-ease-out) forwards;
  }
  .partners-strip .partner-genie:hover,
  .partners-strip .partner-genie:focus-within {
    animation: partnerGenieFloat 2.2s ease-in-out infinite alternate;
  }
}
@keyframes partnerGenieSmoke {
  0% { transform: translateY(-6px) scale(1); opacity: 0.82; }
  100% { transform: translateY(-12px) scale(1.14); opacity: 1; }
}
@keyframes partnerGenieFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
@keyframes partnerGenieShimmer {
  to { background-position: -28% 0; }
}
#partners .partners-strip .partner-genie.fx-reveal-when-visible {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity 0.65s var(--fx-ease-out),
    transform 0.7s var(--fx-ease-out),
    filter 0.6s var(--fx-ease-out);
}
#partners .partners-strip .partner-genie.fx-reveal-when-visible.fx-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.partners-strip .partner-genie:hover .partner-logo,
.partners-strip .partner-genie:focus-within .partner-logo {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(1) { transition-delay: 0.02s; }
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(2) { transition-delay: 0.06s; }
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(3) { transition-delay: 0.1s; }
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(4) { transition-delay: 0.14s; }
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(5) { transition-delay: 0.18s; }
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(6) { transition-delay: 0.22s; }
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(7) { transition-delay: 0.26s; }
#partners .partners-strip .partner-genie.fx-reveal-when-visible:nth-child(8) { transition-delay: 0.3s; }

.cluster-faq { padding: 3rem 0; }
.cluster-faq h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  text-align: center;
  color: var(--foreground);
  margin-bottom: 2rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--foreground);
  margin-bottom: 0.4rem;
}
.faq-item p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cluster-cta {
  padding: 3.5rem 0;
  background: var(--background);
  color: var(--text-on-dark);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cluster-cta h2 {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  color: var(--text-on-dark);
  margin-bottom: 0.6rem;
}
.cluster-cta .sub {
  color: var(--text-on-dark-muted);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.cluster-cta .det {
  font-size: 0.875rem;
  color: var(--text-on-dark-subtle);
  margin-top: 1rem;
  line-height: 1.6;
}

.lead-capture-section { padding: 2.5rem 0; background: var(--secondary); }
.lead-capture-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.lead-capture-text { flex: 1; }
.lead-capture-text h2 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  text-align: left;
}
.lead-capture-text p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.lead-benefits {
  list-style: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.lead-benefits li::before {
  content: '\2713\0020';
  color: var(--primary);
  font-weight: 600;
}
.lead-capture-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 240px;
}
.lead-capture-form input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
}
.lead-capture-form input::placeholder {
  color: var(--muted-foreground);
}
.lead-capture-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--highlight-muted);
}
.lead-capture-privacy {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  text-align: center;
  margin: 0;
}
.btn-submit-lead {
  background: #ffffff;
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-submit-lead:hover { opacity: 0.92; }
@media (max-width: 640px) {
  .lead-capture-card { flex-direction: column; }
  .lead-capture-form { min-width: 100%; }
}

/* ── CONTACT PAGE ── */
.page-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  scroll-margin-top: 5.5rem;
}
.page-main h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .page-main h1 { font-size: 2rem; } }
.page-main .subtitle {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}
.page-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.page-form input,
.page-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: var(--card);
  color: var(--foreground);
}
.page-form input::placeholder,
.page-form textarea::placeholder {
  color: var(--muted-foreground);
}
.page-form label {
  color: var(--text-on-dark);
}
.page-form textarea { min-height: 8rem; resize: vertical; }
.page-form .btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: inherit;
}
.feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.feedback.success {
  background: rgba(168, 245, 181, 0.1);
  border: 1px solid rgba(168, 245, 181, 0.28);
  color: #a8f5b5;
}
.feedback.error {
  background: rgba(227, 107, 107, 0.12);
  border: 1px solid rgba(227, 107, 107, 0.28);
  color: #f0a8a8;
}
.feedback.hidden { display: none; }

/* ── SEARCH PAGE ── */
.search-main { padding: 2rem 0 4rem; scroll-margin-top: 5.5rem; }
.search-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.search-form-row input[type="search"] {
  flex: 1 1 12rem;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--foreground);
}
.search-form-row input[type="search"]::placeholder {
  color: var(--muted-foreground);
}
.search-results article {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.search-results h2 { font-size: 1.125rem; text-align: left; margin-bottom: 0.25rem; }
.search-results a { color: var(--link-on-card); text-decoration: none; font-weight: 600; }
.search-results a:hover { color: var(--link-on-card-hover); text-decoration: underline; }

/* ── THANK YOU PAGE ── */
.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--background) 100%);
  padding: 2rem;
}
.thanks-card {
  text-align: center;
  max-width: 480px;
  padding: 3rem 2rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.thanks-brand {
  display: inline-flex;
  margin-bottom: 1.25rem;
}
.thanks-brand img {
  height: 3rem;
  width: auto;
  display: block;
}
.thanks-card .check {
  font-size: 3rem;
  color: var(--highlight);
  margin-bottom: 1rem;
}
.thanks-card h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.thanks-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.thanks-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.thanks-card a:hover { text-decoration: underline; }

/* ── LIGHT THEME (legal, policy) ── */
html.theme-light {
  --background: #ffffff;
  --foreground: #1a1a22;
  --card: #ffffff;
  --card-foreground: #1a1a22;
  --primary: #003d6e;
  --primary-dark: #002a4d;
  --primary-foreground: #ffffff;
  --secondary: #f4f6f8;
  --muted: #eef1f4;
  --muted-foreground: #4a5568;
  --body-medium: #3d4654;
  --highlight: #005a9e;
  --highlight-soft: #0070c4;
  --highlight-muted: rgba(0, 61, 110, 0.08);
  --border: rgba(0, 61, 110, 0.14);
  --border-strong: rgba(0, 61, 110, 0.22);
  --ring: rgba(0, 90, 158, 0.45);
  --text-on-dark: #1a1a22;
  --text-on-dark-muted: #4a5568;
  --text-on-dark-subtle: #5c6570;
  --link-on-dark: #003d6e;
  --link-on-dark-hover: #002a4d;
  --text-on-light: #1a1a22;
  --text-on-light-muted: #4a5568;
  --text-on-light-subtle: #5c6570;
  --link-on-light: #003d6e;
  --link-on-light-hover: #002a4d;
  --link-on-card: #003d6e;
  --link-on-card-hover: #002a4d;
}
html.theme-light body {
  background: var(--background);
  color: var(--text-on-light);
}
html.theme-light a:focus-visible,
html.theme-light button:focus-visible {
  outline-color: var(--highlight);
}
html.theme-light .legal-brand,
html.theme-light .legal-nav-link,
html.theme-light .legal-footer a {
  color: var(--link-on-light);
}
html.theme-light .legal-footer a:hover {
  color: var(--link-on-light-hover);
}
html.theme-light .legal-footer p,
html.theme-light .updated,
html.theme-light .pref-status {
  color: var(--text-on-light-muted);
}
html.theme-light .pref-btn {
  background: #ffffff;
  color: var(--link-on-light);
  border-color: var(--primary);
}
html.theme-light .pref-btn-primary {
  background: var(--primary);
  color: #ffffff;
}
html.theme-light .preferences-box {
  background: var(--secondary);
  border-color: var(--border);
  color: var(--text-on-light);
}

/* ── LEGAL PAGES ── */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 1rem; }
@media (min-width: 640px) { .legal-wrap { padding: 2rem; } }
.legal-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.legal-header a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-display);
}
.legal-header a:hover { text-decoration: underline; }
.legal-wrap h1 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}
@media (min-width: 640px) { .legal-wrap h1 { font-size: 1.75rem; } }
.legal-wrap h2 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}
.legal-wrap p { margin-bottom: 0.75rem; }
.legal-wrap .updated {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.legal-wrap ul { margin: 0 0 0.75rem 1.5rem; }
.legal-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0;
  background: var(--secondary);
}
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.625rem;
}
.legal-footer a {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.pref-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--primary);
  background: var(--card);
  color: var(--primary);
}
.pref-status {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.625rem;
}

/* ── SCROLL REVEAL & LINK MICRO-INTERACTIONS ── */
.fx-reveal-when-visible {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--fx-ease-out), transform 0.55s var(--fx-ease-out);
}
.fx-reveal-when-visible.fx-visible {
  opacity: 1;
  transform: translateY(0);
}
.cluster-stats-grid .fx-reveal-when-visible:nth-child(1) { transition-delay: 0.03s; }
.cluster-stats-grid .fx-reveal-when-visible:nth-child(2) { transition-delay: 0.08s; }
.cluster-stats-grid .fx-reveal-when-visible:nth-child(3) { transition-delay: 0.13s; }
.cluster-stats-grid .fx-reveal-when-visible:nth-child(4) { transition-delay: 0.18s; }
.cluster-cards .fx-reveal-when-visible:nth-child(1) { transition-delay: 0.04s; }
.cluster-cards .fx-reveal-when-visible:nth-child(2) { transition-delay: 0.1s; }
.cluster-cards .fx-reveal-when-visible:nth-child(3) { transition-delay: 0.16s; }
.cluster-steps .fx-reveal-when-visible:nth-child(1) { transition-delay: 0.02s; }
.cluster-steps .fx-reveal-when-visible:nth-child(2) { transition-delay: 0.08s; }
.cluster-steps .fx-reveal-when-visible:nth-child(3) { transition-delay: 0.14s; }

.cluster-section.muted {
  position: relative;
  overflow: hidden;
}
.cluster-section.muted::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 0% 50%, rgba(125, 224, 230, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.nav a:not(.nav-cta):not(.btn):not(.nav-submenu-toggle):not([data-lang]) {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.25s var(--fx-ease-out), color 0.2s ease, background-color 0.2s ease;
}
@media (min-width: 768px) {
  .nav a:not(.nav-cta):not(.btn):not(.nav-submenu-toggle):not([data-lang]) {
    padding: 0.35rem 0.15rem;
    min-height: 0;
    display: inline-flex;
  }
  .nav a:not(.nav-cta):not(.btn):not(.nav-submenu-toggle):not([data-lang]):hover,
  .nav a:not(.nav-cta):not(.btn):not(.nav-submenu-toggle):not([data-lang]):focus-visible {
    background-size: 100% 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
  .header { transition: none; }
  .btn-primary:hover,
  .btn-hero-light:hover,
  .cluster-card:hover,
  .cluster-step:hover { transform: none; }
  .cluster-hero.fx-hero-animated,
  .cluster-hero.fx-hero-animated::before,
  .btn-hero-light.fx-btn-glow { animation: none; }
  .fx-reveal-when-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .partners-section::before,
  .partners-section::after,
  .partners-strip .partner-genie::before,
  .partners-strip .partner-genie::after {
    display: none;
  }
  #partners .partners-strip .partner-genie.fx-reveal-when-visible {
    filter: none;
  }
  .partners-strip .partner-genie:hover,
  .partners-strip .partner-genie:focus-within {
    animation: none;
    transform: none;
  }
  .partners-strip .partner-logo {
    opacity: 0.75;
    filter: grayscale(1);
    transition: none;
    transform: none;
  }
  .partners-strip .partner-genie:hover .partner-logo,
  .partners-strip .partner-genie:focus-within .partner-logo {
    opacity: 0.85;
    filter: grayscale(0.4);
    transform: none;
  }
  .cluster-card::after { display: none; }
  .nav-submenu {
    transition: none;
    transform: none;
    animation: none;
  }
  .nav-item-has-submenu.is-open .nav-submenu a { animation: none; }
  .error-404-mark::before,
  .error-404-mark::after {
    display: none;
  }
}

/* ── 404 NOT FOUND ── */
.error-404-hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.error-404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.error-404-mark {
  margin: 0 auto 1.25rem;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.5rem;
}
.error-404-mark-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 18px rgba(125, 224, 230, 0.35));
}
@media (prefers-reduced-motion: no-preference) {
  .error-404-mark::before {
    content: '';
    position: absolute;
    inset: -18% -12%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(
      ellipse 82% 72% at 50% 88%,
      rgba(125, 224, 230, 0.28) 0%,
      rgba(122, 90, 168, 0.12) 44%,
      transparent 74%
    );
    opacity: 0.85;
    transform: translateY(6px) scale(0.95);
    pointer-events: none;
  }
}
.error-404-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.error-404-sep {
  opacity: 0.55;
}
.error-404-route {
  color: var(--muted-foreground);
}
.error-404-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
  max-width: 22ch;
}
.error-404-lead {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 0.5rem;
  line-height: 1.6;
}
.error-404-ai {
  font-size: 0.9375rem;
  color: rgba(125, 224, 230, 0.92);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.error-404-actions {
  margin-bottom: 1.25rem;
}
.error-404-cta-primary {
  min-height: 2.75rem;
  min-width: 12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
}
.error-404-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.error-404-links a:hover,
.error-404-links a:focus-visible {
  border-color: rgba(125, 224, 230, 0.45);
  color: var(--primary);
  background: rgba(125, 224, 230, 0.08);
}
.error-404-suggest {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}
.error-404-suggest h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.error-404-suggest-sub {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.error-404-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .error-404-suggest-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
.error-404-suggest-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 1rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--fx-ease-out);
}
.error-404-suggest-card:hover,
.error-404-suggest-card:focus-visible {
  border-color: rgba(125, 224, 230, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.error-404-suggest-kicker {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.error-404-suggest-label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.error-404-suggest-go {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--link-on-card, var(--primary));
}
