/* Hero motion layer — additive only; layout/typography untouched */

.aqwa-hero__parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.aqwa-hero__brand {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
  text-shadow: none;
  filter: none;
}

.aqwa-hero__brand-text {
  background: var(--aq-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.2));
}

.aqwa-hero__aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 20%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 45% at 55% 80%, rgba(59, 130, 246, 0.14), transparent 60%);
  animation: aqwa-hero-aurora 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.aqwa-hero__radial {
  position: absolute;
  inset: 18% 12%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14), transparent 68%);
  animation: aqwa-hero-breathe 7s ease-in-out infinite;
  will-change: opacity, transform;
}

.aqwa-hero__bloom {
  position: absolute;
  inset: 25% 20%;
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.1), transparent 55%);
  filter: blur(28px);
  animation: aqwa-hero-bloom 9s ease-in-out infinite;
  will-change: opacity;
}

.aqwa-hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: aqwa-hero-noise 8s steps(6) infinite;
  pointer-events: none;
}

.aqwa-hero__grid {
  animation: aqwa-hero-grid 28s linear infinite;
  will-change: transform, background-position;
  transform: translate3d(0, 0, 0);
}

.aqwa-hero__streak {
  position: absolute;
  width: 140%;
  height: 1.5px;
  left: -20%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.05), rgba(59, 130, 246, 0.75), rgba(139, 92, 246, 0.2), transparent);
  filter: blur(0.4px);
  opacity: 0;
  transform: rotate(-18deg) translate3d(-30%, 0, 0);
  will-change: transform, opacity;
}

.aqwa-hero__streak--a {
  top: 28%;
  animation: aqwa-hero-streak 7.5s ease-in-out infinite;
}

.aqwa-hero__streak--b {
  top: 62%;
  animation: aqwa-hero-streak 9.5s ease-in-out 3.2s infinite;
  transform: rotate(16deg) translate3d(-30%, 0, 0);
}

.aqwa-hero__flare {
  position: absolute;
  width: 180px;
  height: 180px;
  top: 12%;
  inset-inline-end: 18%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(34, 211, 238, 0.12) 35%, transparent 70%);
  filter: blur(2px);
  opacity: 0.35;
  animation: aqwa-hero-flare 14s ease-in-out infinite;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.aqwa-hero__cursor-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.06) 40%, transparent 70%);
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.aqwa-hero.is-pointer .aqwa-hero__cursor-glow {
  opacity: 1;
}

.aqwa-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.7;
}

.aqwa-hero__canvas--network {
  opacity: 0.45;
}

.aqwa-hero__wave {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: 140%;
  height: clamp(70px, 12vw, 120px);
  overflow: visible;
  opacity: 0.7;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
}

.aqwa-hero__wave-path {
  transform-origin: center;
  will-change: transform;
}

.aqwa-hero__wave-path--a {
  animation: aqwa-hero-wave-a 9s ease-in-out infinite;
}

.aqwa-hero__wave-path--b {
  animation: aqwa-hero-wave-b 11s ease-in-out infinite;
}

.aqwa-hero__identity {
  position: relative;
}

.aqwa-hero__brand {
  position: relative;
  display: inline-block;
}

.aqwa-hero__mark-wrap::before,
.aqwa-footer__mark-wrap::before,
.aqwa-footer__brand-glow {
  animation: aqwa-hero-logo-breathe 4.8s ease-in-out infinite;
}

.aqwa-logo--hero .aqwa-logo__mark,
.aqwa-logo--footer .aqwa-logo__mark {
  animation: aqwa-hero-logo-breathe 5.4s ease-in-out infinite;
  will-change: transform, filter;
}

.aqwa-nav__mark-wrap::before,
.aqwa-nav__brand-glow,
.aqwa-logo--nav .aqwa-logo__mark {
  animation: none;
}

.aqwa-hero__brand-glow {
  position: absolute;
  inset: -28% -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), rgba(139, 92, 246, 0.12) 45%, transparent 70%);
  filter: blur(18px);
  animation: aqwa-hero-logo-breathe 4.8s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.aqwa-hero__brand-text {
  position: relative;
  background: var(--aq-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aqwa-hero__content {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Hero CTA premium hover */
.aqwa-hero .aqwa-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--aq-ease),
    box-shadow 0.35s var(--aq-ease),
    border-color 0.35s ease,
    background 0.35s ease;
}

.aqwa-hero .aqwa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.7), transparent 80%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: aqwa-hero-border-shine 2.8s linear infinite;
  pointer-events: none;
}

.aqwa-hero .aqwa-btn:hover,
.aqwa-hero .aqwa-btn:focus-visible {
  transform: scale(1.03);
}

.aqwa-hero .aqwa-btn:hover::before,
.aqwa-hero .aqwa-btn:focus-visible::before {
  opacity: 1;
}

.aqwa-hero .aqwa-btn--primary:hover,
.aqwa-hero .aqwa-btn--primary:focus-visible {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 36px rgba(34, 211, 238, 0.45),
    0 12px 30px rgba(59, 130, 246, 0.28);
}

.aqwa-hero .aqwa-btn--ghost:hover,
.aqwa-hero .aqwa-btn--ghost:focus-visible {
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.18);
}

.aqwa-btn--magnetic {
  will-change: transform;
}

/* Nav elegant underline (micro, non-layout) */
.aqwa-nav__menu > a:not(.aqwa-btn) {
  position: relative;
}

.aqwa-nav__menu > a:not(.aqwa-btn)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aq-cyan), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--aq-ease);
  opacity: 0.85;
}

.aqwa-nav__menu > a:not(.aqwa-btn):hover::after,
.aqwa-nav__menu > a:not(.aqwa-btn):focus-visible::after {
  transform: scaleX(1);
}

@keyframes aqwa-hero-aurora {
  0% { transform: translate3d(-2%, 1%, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(2%, -2%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); opacity: 0.9; }
}

@keyframes aqwa-hero-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes aqwa-hero-bloom {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

@keyframes aqwa-hero-noise {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-1%, 1%, 0); }
  40% { transform: translate3d(1%, -1%, 0); }
  60% { transform: translate3d(-0.5%, -1%, 0); }
  80% { transform: translate3d(1%, 0.5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes aqwa-hero-grid {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}

@keyframes aqwa-hero-streak {
  0%, 8% { opacity: 0; transform: rotate(-18deg) translate3d(-40%, 0, 0); }
  18% { opacity: 0.9; }
  42% { opacity: 0.55; transform: rotate(-18deg) translate3d(35%, 0, 0); }
  55%, 100% { opacity: 0; transform: rotate(-18deg) translate3d(55%, 0, 0); }
}

@keyframes aqwa-hero-flare {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.2; }
  40% { transform: translate3d(-40px, 30px, 0) scale(1.15); opacity: 0.45; }
  70% { transform: translate3d(20px, -20px, 0) scale(1); opacity: 0.3; }
}

@keyframes aqwa-hero-wave-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-1.5%, -6px, 0); }
}

@keyframes aqwa-hero-wave-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(1.5%, 5px, 0); }
}

@keyframes aqwa-hero-logo-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes aqwa-hero-border-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aqwa-hero__aurora,
  .aqwa-hero__radial,
  .aqwa-hero__bloom,
  .aqwa-hero__noise,
  .aqwa-hero__grid,
  .aqwa-hero__streak,
  .aqwa-hero__flare,
  .aqwa-hero__wave-path,
  .aqwa-hero__brand-glow,
  .aqwa-nav__brand-glow,
  .aqwa-footer__brand-glow,
  .aqwa-hero__mark-wrap::before,
  .aqwa-nav__mark-wrap::before,
  .aqwa-footer__mark-wrap::before,
  .aqwa-logo--hero .aqwa-logo__mark,
  .aqwa-logo--nav .aqwa-logo__mark,
  .aqwa-logo--footer .aqwa-logo__mark,
  .aqwa-hero .aqwa-btn::before {
    animation: none !important;
  }

  .aqwa-hero__canvas,
  .aqwa-hero__cursor-glow,
  .aqwa-hero__streak,
  .aqwa-hero__flare,
  .aqwa-hero__noise {
    display: none !important;
  }

  .aqwa-hero .aqwa-btn:hover,
  .aqwa-hero .aqwa-btn:focus-visible {
    transform: none;
  }
}

@media (max-width: 700px) {
  .aqwa-hero__canvas--network,
  .aqwa-hero__flare {
    display: none;
  }

  .aqwa-hero__canvas--particles {
    opacity: 0.45;
  }
}
