/* Aqurio — critical CSS (inlined-equivalent, served first)
 * Design tokens, reset, base typography, announcement bar, sticky dark nav, hero, buttons.
 * Aligned 1:1 with the Netlify wireframe reference, with our real brand tokens.
 */

:root {
  /* Palette — primary */
  --color-teal: #0F4C5C;
  --color-coral: #FF5A6F;

  /* UI / Neutral — Dark Mode */
  --color-bg-dark-mode: #0A1A1F;
  --color-surface-dark: #0F2C33;
  --color-subtle-ui-dark: #133840;
  --color-text-primary-dark: #EAF6F8;
  --color-text-secondary-dark: #9FBCC3;
  --color-link-dark: #FFC857;

  /* UI / Neutral — Light Mode */
  --color-bg-light: #F7F9FA;
  --color-surface-light: #FFFFFF;
  --color-subtle-ui: #E6ECEF;
  --color-text-primary: #0B1F24;
  --color-text-secondary: #4F6B73;
  --color-link: #3B3FCF;
  --color-link-hover: #2F34C9;
  --color-link-visited: #3B9ECF;

  /* Palette — secondary (Aqurio brand accents) */
  --color-electric-indigo: #5B5FFF;   /* Aqurio Electric Indigo */
  --color-signal-yellow: #FFC857;     /* Aqurio Signal Yellow */
  --color-mint-green: #2EC4B6;        /* Aqurio Mint Green */
  --color-vivid-violet: #9B5DE5;      /* Aqurio Vivid Violet */
  /* Legacy aliases */
  --color-indigo: #5B5FFF;
  --color-yellow: #FFC857;
  --color-mint: #2EC4B6;
  --color-violet: #9B5DE5;

  /* Tinted surfaces */
  --color-teal-tint: #E6F2F4;             /* Light teal tint — used in Why Aqurio, etc. */

  /* Light surfaces */
  --color-bg: #ECEDEF;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F5F5;
  --color-surface-3: #EAEBEE;
  --color-fill: #D8D9DD;
  --color-fill-dark: #B0B3BA;
  --color-border: #C5C7CC;

  /* Dark surfaces */
  --color-bg-deep: #0A1A1F;
  --color-bg-dark: #1C1C1C;
  --color-bg-dark-2: #16181F;
  --color-bg-nav: #22272E;
  --color-bg-final: #0F1116;
  --color-bg-final-2: #1F232B;

  /* Text */
  --color-text: #2E3038;
  --color-text-muted: #7A7D87;
  --color-text-label: #9B9EA8;
  --color-text-on-dark: rgba(255, 255, 255, 0.92);
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.55);
  --color-text-on-dark-subtle: rgba(255, 255, 255, 0.25);

  /* Gradients */
  --gradient-core:   linear-gradient(135deg, #0F4C5C 0%, #2EC4B6 100%);
  --gradient-energy: linear-gradient(90deg,  #FF5A6F 0%, #FFC857 100%);
  --gradient-depth:  linear-gradient(180deg, #0A1A1F 0%, #0F4C5C 60%, #133840 100%);
  --gradient-final: linear-gradient(135deg, #0F1116 0%, #1F232B 100%);

  /* Typography — Lora for H1/H2 display (Anne's selection, Zoran 2026-05-22), Poppins for body copy. Both from Google Fonts. */
  --font-primary: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Layout */
  --container-max: 1360px;
  --container-padding: 24px;
  --nav-h: 68px;
  --announce-h: 0px;
  --sticky-top: calc(var(--announce-h) + var(--nav-h));

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(35, 75, 90, 0.10);

  /* Motion */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
p, li { font-size: 16px; }
h1, h2, h3, h4, h5, h6 { font-weight: 400 !important; }
/* Eyebrow taglines and em accents inside titles share the same mint accent.
   Also covers any ::before dot/line decoration on eyebrows. */
[class*="eyebrow"] { display: inline-flex !important; align-items: center !important; gap: 9px !important; color: #FF5A6F !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.14em !important; text-transform: uppercase !important; margin-bottom: 16px !important; }
[class*="eyebrow"]::before { content: "" !important; width: 10px !important; height: 10px !important; background: #FF5A6F !important; flex-shrink: 0 !important; }
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em { color: #FF5A6F !important; font-style: normal !important; }
.em--inherit { color: inherit !important; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none !important; }
a:hover, a:active, a:focus { text-decoration: none !important; }
a:visited { text-decoration: none !important; }
a:not(.btn):not(.hub-card):not(.solution-intro__card):not(.platform-foundations__pill):not(.blog-card):not(.blog-top__featured), a:not(.btn):not(.hub-card):not(.solution-intro__card):not(.platform-foundations__pill):not(.blog-card):not(.blog-top__featured):hover, a:not(.btn):not(.hub-card):not(.solution-intro__card):not(.platform-foundations__pill):not(.blog-card):not(.blog-top__featured):active, a:not(.btn):not(.hub-card):not(.solution-intro__card):not(.platform-foundations__pill):not(.blog-card):not(.blog-top__featured):visited, a:not(.btn):not(.hub-card):not(.solution-intro__card):not(.platform-foundations__pill):not(.blog-card):not(.blog-top__featured):focus { border-bottom: none !important; }
*, *::before, *::after { text-decoration: none; }
/* Body text links — 16px (excludes nav, footer, cards, buttons, dropdowns) */
a:not(.btn):not(.nav__logo):not(.nav__item):not([class*="nav__"]):not([class*="footer__"]):not([class*="mega-menu"]):not([class*="card"]):not([class*="leadership__"]):not([class*="testimonial__"]):not([class*="fresh-perspectives__card"]):not([class*="dropdown"]) {
  font-size: 16px;
}
/* Dropdown/mega-menu links — 14px */
.mega-menu a, .mega-menu__item a, .mega-menu__sidebar-list a,
.mega-menu__sidebar-link, .mega-menu__cta-bar a { font-size: 14px !important; }

/* Text links — data-theme system (light backgrounds) */
[data-theme="light"] a:not(.btn):not(.platform-foundations__pill) { color: #3B3FCF !important; }
[data-theme="light"] a:not(.btn):not(.platform-foundations__pill):hover { color: #2F34C9 !important; }
[data-theme="light"] a:not(.btn):not(.platform-foundations__pill):visited { color: #3B9ECF !important; }
/* Text links — data-theme system (dark backgrounds) */
[data-theme="dark"] a:not(.btn) { color: #FFC857 !important; }
[data-theme="dark"] a:not(.btn):hover { color: #FFB31A !important; }
[data-theme="dark"] a:not(.btn):visited { color: #FF5757 !important; }
[data-theme="dark"] a.hero-trust__tagline,
[data-theme="dark"] a.hero-trust__tagline:visited { color: #ffffff !important; }
[data-theme="dark"] a.hero-trust__tagline:hover { color: rgba(255,255,255,0.8) !important; }
/* Mega-menu visited — keep same as default text color */
.mega-menu a:visited { color: var(--color-text) !important; }

/* Mega-menu links stay their natural color — not overridden by link rules */
.mega-menu a { color: var(--color-text) !important; }
.footer a { color: inherit; }
.footer a:hover { color: #ffffff !important; }
input, select, textarea, button { font: inherit; }
ul, ol { list-style: none; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--color-bg-nav);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { top: 0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }

/* ───────── ANNOUNCEMENT BAR ───────── */
.announce {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: linear-gradient(to right, var(--color-coral), #ffc857);
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  padding: 0 24px;
  color: #333333;
  font-size: 14px;
  font-weight: var(--weight-medium);
}
.announce__inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.announce__icon { width: 16px; height: 16px; flex-shrink: 0; }
.announce__close {
  flex-shrink: 0;
  margin-left: auto;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity var(--t-fast);
}
.announce__close:hover { opacity: 1; }
.announce strong { font-weight: var(--weight-bold); }
.announce__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.announce__link:hover { text-decoration-thickness: 2px; }

/* ───────── NAV LOGO ANIMATIONS ───────── */
#nav-mark-petals {
  transform-box: fill-box; transform-origin: center;
  animation: burstIn 1.2s cubic-bezier(0.34,1.56,0.64,1) 0s both, petalPulse 2.4s ease-in-out 1.4s infinite;
}
#nav-mark-star {
  transform-box: fill-box; transform-origin: center;
  animation: starBurst 0.5s cubic-bezier(0.34,1.8,0.64,1) 0.8s both, spinFast 0.8s ease-out 0.8s, rotateCW 6s linear 1.6s infinite;
}
#nav-logotype { animation: slamRight 0.45s cubic-bezier(0.22,1,0.36,1) 1.1s both; }
#nav-small-star {
  transform-box: fill-box; transform-origin: center;
  animation: starBurst 0.4s cubic-bezier(0.34,2,0.64,1) 1.35s both, rotateCCW 4s linear 1.8s infinite;
}
@keyframes burstIn   { 0%{transform:scale(0) rotate(45deg);opacity:0} 60%{transform:scale(1.15) rotate(-5deg);opacity:1} 100%{transform:scale(1) rotate(0);opacity:1} }
@keyframes starBurst { 0%{transform:scale(0) rotate(-270deg);opacity:0} 70%{transform:scale(1.4) rotate(15deg);opacity:1} 100%{transform:scale(1) rotate(0);opacity:1} }
@keyframes spinFast  { from{transform:rotate(0deg)} to{transform:rotate(720deg)} }
@keyframes slamRight { 0%{transform:translateX(-40px);opacity:0;clip-path:inset(0 100% 0 0)} 100%{transform:translateX(0);opacity:1;clip-path:inset(0 0% 0 0)} }
@keyframes rotateCW  { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes rotateCCW { from{transform:rotate(0deg)} to{transform:rotate(-360deg)} }
@keyframes petalPulse{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }

/* ───────── NAV (sticky, dark) ───────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: none;
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  padding: 0 var(--container-padding);
  transition: background var(--t-fast);
}
.nav:hover { background: rgba(0, 0, 0, 1); }
.nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 4px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.nav__logo-img { display: block; height: 30px; width: auto; }
.nav__logo svg { display: block; height: 36px; width: 110px; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__item[data-menu="resources"] { display: none; }
.mega-menu__col:has(.mega-menu__promo) { display: none; }
.nav__item {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: #ffffff;
  padding: 0 14px;
  height: 100%;
  cursor: pointer;
  position: static;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  border-radius: 0;
}
.nav__item:hover,
.nav__item.is-open {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}
.nav__item .caret {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform var(--t-base);
}
.nav__item .caret svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  flex-shrink: 0;
}
.nav__item.is-open .caret { transform: rotate(180deg); }
.nav__search {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  margin-left: 8px;
}
.nav__search:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.nav__toggle {
  display: none;
  padding: 8px;
  color: #fff;
  margin-left: auto;
}
/* Morphing hamburger → X */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.nav__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
/* Open → X morphing */
.nav--mobile-open .nav__burger-line--top {
  transform: translateY(8px) rotate(45deg);
}
.nav--mobile-open .nav__burger-line--mid {
  opacity: 0;
  transform: scaleX(0);
}
.nav--mobile-open .nav__burger-line--bot {
  transform: translateY(-8px) rotate(-45deg);
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: none;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}
/* Buttons no longer lift on hover */

/* ── Star cursor overlay ── */
@keyframes star-spin { to { transform: rotate(360deg); } }
.star-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
}
.star-cursor svg {
  animation: star-spin 8s linear infinite;
  transform-origin: 50% 50%;
  display: block;
}
.star-cursor--visible { opacity: 0.8; }
@media (prefers-reduced-motion: reduce) {
  .star-cursor svg { animation: none; }
}

/* ── Animated arrow inside links ── */
.link-arrow {
  position: relative;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}
/* shaft */
.link-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
  transition: width 200ms ease;
}
/* head — positioned with left so it stays connected to shaft */
.link-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  box-sizing: border-box;
  transition: left 200ms ease;
}
/* Trigger animation on any ancestor hover */
a:hover .link-arrow::before,
:hover > .link-arrow::before { width: 16px; }
a:hover .link-arrow::after,
:hover > .link-arrow::after { left: 11px; }

/* Force mega-menu link arrows to use text color (not visited blue) */
.mega-menu .link-arrow::before { background: var(--color-text) !important; }
.mega-menu .link-arrow::after { border-color: var(--color-text) !important; }

/* ── Animated arrow inside buttons ── */
.btn-arrow {
  position: relative;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
  display: inline-block;
}
/* shaft */
.btn-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
  transition: width 200ms ease;
}
/* head — positioned with left so it stays connected to shaft */
.btn-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  box-sizing: border-box;
  transition: left 200ms ease;
}
:hover > .btn-arrow::before,
.btn:hover .btn-arrow::before { width: 16px; }
:hover > .btn-arrow::after,
.btn:hover .btn-arrow::after { left: 11px; }
.btn--sm { font-size: 12px; padding: 7px 16px; }
.btn--lg { font-size: 14px; padding: 14px 28px; }

.btn--nav-outline,
.btn--nav-solid { font-size: 14px; padding-top: 12px; padding-bottom: 12px; }
.btn--nav-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--nav-outline:hover { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: #fff; }

/* CTA buttons */
.btn--nav-solid { background: #ffc857; border-color: #ffc857; color: #333333 !important; }
.btn--nav-solid:hover { background: #FFB31A; border-color: #FFB31A; color: #333333 !important; }

/* Yellow solid */
.btn--yellow { background: #ffc857; border-color: #ffc857; color: #333333 !important; }
.btn--yellow:hover { background: #FFB31A; border-color: #FFB31A; color: #333333 !important; box-shadow: none; }

/* Yellow outline */
.btn--yellow-outline { background: transparent; border-color: #ffc857; color: #ffc857; }
.btn--yellow-outline:hover { background: transparent; border-color: #FFB31A; color: #FFB31A; }

/* White solid (dark backgrounds) */
.btn--white { background: #fff; border-color: #fff; color: #333333; }
.btn--white:hover { background: rgba(255,255,255,0.9); border-color: #fff; color: #333333; box-shadow: none; }

/* Ghost */
.btn--ghost { background: transparent; border-color: #ffc857; color: #ffc857; }
.btn--ghost:hover { background: transparent; border-color: #FFB31A; color: #FFB31A; }
/* Hub-hero CTA buttons — yellow */
.hub-hero__ctas .btn--yellow { background: #ffc857; border-color: #ffc857; color: #333333; }
.hub-hero__ctas .btn--yellow:hover { background: #FFB31A; border-color: #FFB31A; color: #333333; }
.hub-hero__ctas .btn--white-outline { border-color: #ffc857; color: #ffc857; }
.hub-hero__ctas .btn--white-outline:hover { background: transparent; border-color: #FFB31A; color: #FFB31A; }

/* All hero CTA containers — yellow button design */
.hub-hero__ctas .btn,
.subhero__ctas .btn,
.demo-hero__ctas .btn { background: #ffc857; border-color: #ffc857; color: #333333; }
.hub-hero__ctas .btn:hover,
.subhero__ctas .btn:hover,
.demo-hero__ctas .btn:hover { background: #FFB31A; border-color: #FFB31A; color: #333333; }
/* Second button — outline style (only when there are 2+ CTAs; a lone CTA stays solid yellow) */
.hub-hero__ctas .btn:last-child:not(:only-child),
.subhero__ctas .btn:last-child:not(:only-child),
.demo-hero__ctas .btn:last-child:not(:only-child) { background: transparent; border-color: #ffc857; color: #ffc857; }
.hub-hero__ctas .btn:last-child:not(:only-child):hover,
.subhero__ctas .btn:last-child:not(:only-child):hover,
.demo-hero__ctas .btn:last-child:not(:only-child):hover { background: transparent; border-color: #FFB31A; color: #FFB31A; }

/* Hero "Our Solutions" outline button — yellow */
.hero__cta-group .btn--yellow-outline {
  border-color: #ffc857;
  color: #ffc857;
}
.hero__cta-group .btn--yellow-outline:hover {
  background: transparent;
  border-color: #FFB31A;
  color: #FFB31A;
}

.btn--white-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn--white-outline:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* ───────── HERO ───────── */
.hero {
  background: url('/images/heroBG.TEST.01.svg') center center / 80% auto no-repeat, radial-gradient(ellipse at center, #165F70 0%, #0C3D4C 35%, #081E26 65%, #040D10 100%);
  padding: 180px 24px 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, #0A1A1F 100%);
  pointer-events: none;
  z-index: 2;
}
.hero__sphere {
  position: absolute;
  top: 50%; left: 50%;
  width: 820px; height: 820px;
  margin-top: -410px; margin-left: -410px;
  opacity: 0.18;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: none;
  will-change: transform;
}
@media (min-width: 1280px) {
  .hero__sphere { width: 1040px; height: 1040px; margin-top: -520px; margin-left: -520px; }
}
@media (min-width: 1600px) {
  .hero__sphere { width: 1240px; height: 1240px; margin-top: -620px; margin-left: -620px; }
}
.hero__sphere-flow {
  transform-origin: 300px 300px;
  transform-box: fill-box;
  animation: hero-sphere-counter 45s linear infinite;
}
@keyframes hero-sphere-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hero-sphere-counter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.hero__content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mint);
  margin-bottom: 28px;
}
.hero__headline {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.3 !important;
  white-space: normal;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 28px;
  max-width: 1200px;
}
.hero__headline em { color: var(--color-coral); font-style: italic; font-weight: inherit; }
.hero__headline-accent { color: var(--color-coral); font-style: normal; }
.hero__headline-accent em { color: var(--color-coral) !important; font-style: italic !important; }

/* Tablet */
@media (max-width: 960px) {
  .hero__headline { font-size: clamp(24px, 3.6vw, 36px); }
}
.hero__subhead {
  font-size: 20px;
  line-height: 1.55;
  color: #ffffff;
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero__cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Hero scroll-down indicator */
.hero__scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px !important;
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  animation: hero-scroll-hint 2.6s ease-in-out infinite;
  z-index: 3;
}
.hero__scroll:hover { color: rgba(255, 255, 255, 0.85); }
.hero__scroll svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hero-scroll-hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}
@media (min-width: 1600px) { .hero__scroll { display: inline-flex; } }

/* ───────── MOBILE ───────── */
@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__actions .btn--nav-outline { display: none; }
  /* Also hide the solid CTA button so actions area doesn't crowd the toggle */
  .nav__actions .btn--nav-solid { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .hero__headline { max-width: 100%; }

  /* Mobile open state — full screen sheet */
  .nav--mobile-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #0A1A1F;
    padding: 24px 24px 100px;
    gap: 0;
    overflow-y: auto;
    z-index: 299;
  }

  /* FIX Bug 1: stack nav__item children vertically (override desktop flex) */
  .nav--mobile-open .nav__item {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
  }
  .nav--mobile-open .nav__item > span:first-child {
    display: block;
    font-size: 16px;
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.92);
    padding: 4px 32px 4px 0;
  }
  .nav--mobile-open .nav__item .caret {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    transition: transform var(--t-base);
    display: flex;
    align-items: center;
  }
  .nav--mobile-open .nav__item .caret svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255,255,255,0.7);
    stroke-width: 2;
  }
  .nav--mobile-open .nav__item.is-open .caret {
    top: 14px;
    transform: rotate(180deg);
  }

  /* FIX Bug 2: override desktop width + transform on mega-menu */
  .nav--mobile-open .mega-menu {
    position: static;
    display: block;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }
  .nav--mobile-open .nav__item.is-open .mega-menu {
    max-height: 2000px;
    padding: 12px 0 4px;
    transform: none;
    width: 100%;
    overflow: visible;
  }

  /* Stack mega-menu sidebar + right vertically */
  .nav--mobile-open .mega-menu__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Sidebar: full-width, transparent (was 240px light card) */
  .nav--mobile-open .mega-menu__sidebar {
    width: 100%;
    background: transparent;
    padding: 8px 0;
    gap: 8px;
  }
  .nav--mobile-open .mega-menu__sidebar h3 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
  }
  .nav--mobile-open .mega-menu__sidebar p {
    color: rgba(255, 255, 255, 0.55);
  }
  .nav--mobile-open .mega-menu__sidebar-link,
  .nav--mobile-open .mega-menu__sidebar-link:visited {
    color: rgba(255, 255, 255, 0.92) !important;
  }
  .nav--mobile-open .mega-menu__sidebar-list a,
  .nav--mobile-open .mega-menu__sidebar-list a:visited {
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .nav--mobile-open .mega-menu .link-arrow::before { background: rgba(255, 255, 255, 0.55) !important; }
  .nav--mobile-open .mega-menu .link-arrow::after { border-color: rgba(255, 255, 255, 0.55) !important; }

  /* Right column: full-width, stacked columns instead of 3-column horizontal */
  .nav--mobile-open .mega-menu__right {
    width: 100%;
    padding: 0;
  }
  .nav--mobile-open .mega-menu__cols {
    flex-direction: column;
    gap: 16px;
  }
  .nav--mobile-open .mega-menu__col {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
  }
  .nav--mobile-open .mega-menu__col:last-child,
  .nav--mobile-open .mega-menu__col:has(+ .mega-menu__col:last-child) {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .nav--mobile-open .mega-menu__col-label {
    color: rgba(255, 255, 255, 0.45);
  }
  .nav--mobile-open .mega-menu__item-title {
    color: rgba(255, 255, 255, 0.92);
  }
  .nav--mobile-open .mega-menu__item-desc {
    color: rgba(255, 255, 255, 0.55);
  }

  /* Hide promo "Featured" column on mobile (decorative; saves vertical space) */
  .nav--mobile-open .mega-menu__col:has(.mega-menu__promo) {
    display: none;
  }

  /* Bottom "Learn more →" CTA bar — keep but restyle for dark background */
  .nav--mobile-open .mega-menu__cta-bar {
    border-top-color: rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-top: 4px;
  }
  .nav--mobile-open .mega-menu a,
  .nav--mobile-open .mega-menu a:visited {
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .nav--mobile-open .mega-menu__cta-bar a,
  .nav--mobile-open .mega-menu__cta-bar a:visited {
    color: rgba(255, 255, 255, 0.92) !important;
  }

  /* FIX Bug 3: X-icon swap when nav is open */
  .nav__toggle-icon--close {
    display: none;
  }
  /* Old icon rules removed — burger animation handles open/close state */

  /* Mobile nav CTA bar — pinned to bottom of screen when nav open */
  .nav--mobile-open .nav__actions {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: #0A1A1F;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px max(24px, env(safe-area-inset-bottom));
    margin-left: 0;
  }
  .nav--mobile-open .nav__actions .btn--nav-solid {
    display: flex;
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .body--nav-locked {
    overflow: hidden;
  }
}

/* ───────── HERO MOBILE ───────── */
@media (max-width: 768px) {
  .hero {
    padding: 130px 20px 60px;
    min-height: auto;
    background-size: 120% auto;
  }
  .hero__headline {
    font-size: 32px;
    letter-spacing: -0.01em;
  }
  .hero__subhead {
    font-size: 18px;
  }
  .hero__cta-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero__cta-group .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 130px 16px 48px;
  }
  .hero__headline {
    font-size: 28px;
  }
  .hero__subhead {
    font-size: 16px;
  }
}

/* ───────── REDUCED MOTION ───────── */
@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;
  }
}
