/* Aqua.Tech HP-02B — Interactive signature hero polish */
.aqua-signature-hero {
  box-sizing: border-box;
  --aqua-shift-x: 0px;
  --aqua-shift-y: 0px;
  --aqua-shift-x-soft: 0px;
  --aqua-shift-y-soft: 0px;
  --aqua-shift-x-inverse: 0px;
  --aqua-shift-y-inverse: 0px;
  --aqua-runtime-rotate-x: 0deg;
  --aqua-runtime-rotate-y: 0deg;
  --aqua-pointer-x: 50%;
  --aqua-pointer-y: 50%;
  --aqua-runtime-pointer-x: 50%;
  --aqua-runtime-pointer-y: 50%;
}

.aqua-hero-pointer-light {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: min(34rem, 52vw);
  aspect-ratio: 1;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(137, 206, 255, 0.13) 0%,
    rgba(0, 180, 255, 0.055) 36%,
    transparent 70%
  );
  opacity: 0;
  transform: translate3d(
    calc(var(--aqua-pointer-x) - 50%),
    calc(var(--aqua-pointer-y) - 50%),
    0
  );
  transition: opacity 360ms ease;
  will-change: transform, opacity;
}

.aqua-signature-hero.is-pointer-active .aqua-hero-pointer-light {
  opacity: 1;
}

.aqua-hero-subtitle {
  color: rgba(222, 236, 252, 0.82);
}

.aqua-hero-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --aqua-btn-x: 50%;
  --aqua-btn-y: 50%;
}

.aqua-hero-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    170px circle at var(--aqua-btn-x) var(--aqua-btn-y),
    rgba(255, 255, 255, 0.28),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.aqua-hero-btn:hover::after,
.aqua-hero-btn:focus-visible::after {
  opacity: 1;
}

.aqua-hero-btn:focus-visible {
  outline: 2px solid rgba(137, 206, 255, 0.9);
  outline-offset: 4px;
}

.aqua-signature-hero .aqua-hero-btn:active {
  transform: translateY(0) scale(0.985);
}

html[dir="rtl"] .aqua-hero-kicker {
  direction: rtl;
  letter-spacing: 0;
  font-family: "Manrope", "Alexandria", system-ui, sans-serif;
}

.aqua-hero-grid,
.aqua-hero-aura {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aqua-runtime-window {
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    box-shadow 360ms ease;
}

.aqua-hero-grid {
  transform: translate3d(var(--aqua-shift-x-soft), var(--aqua-shift-y-soft), 0);
}

.aqua-hero-aura-one {
  transform: translate3d(var(--aqua-shift-x), var(--aqua-shift-y), 0);
}

.aqua-hero-aura-two {
  transform: translate3d(var(--aqua-shift-x-inverse), var(--aqua-shift-y-inverse), 0);
}

.aqua-runtime-window {
  transform: perspective(1100px)
    rotateX(var(--aqua-runtime-rotate-x))
    rotateY(var(--aqua-runtime-rotate-y));
  transform-style: preserve-3d;
  will-change: transform;
}

.aqua-runtime-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    230px circle at var(--aqua-runtime-pointer-x) var(--aqua-runtime-pointer-y),
    rgba(137, 206, 255, 0.1),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 260ms ease;
}

.aqua-hero-runtime:hover .aqua-runtime-window::after {
  opacity: 1;
}

.aqua-hero-runtime:hover .aqua-runtime-window {
  border-color: rgba(137, 206, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 38px 96px rgba(0, 0, 0, 0.46),
    0 0 64px rgba(0, 180, 255, 0.13);
}

html.aqua-hero-motion .aqua-hero-kicker,
html.aqua-hero-motion .aqua-hero-title > span,
html.aqua-hero-motion .aqua-hero-subtitle,
html.aqua-hero-motion .aqua-hero-actions,
html.aqua-hero-motion .aqua-hero-proof,
html.aqua-hero-motion .aqua-runtime-caption {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 18px, 0);
}

html.aqua-hero-motion .aqua-hero-runtime {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(-24px, 18px, 0) scale(0.972);
}

html[dir="ltr"].aqua-hero-motion .aqua-hero-runtime {
  transform: translate3d(24px, 18px, 0) scale(0.972);
}

html.aqua-hero-motion .aqua-hero-kicker,
html.aqua-hero-motion .aqua-hero-title > span,
html.aqua-hero-motion .aqua-hero-subtitle,
html.aqua-hero-motion .aqua-hero-actions,
html.aqua-hero-motion .aqua-hero-proof,
html.aqua-hero-motion .aqua-runtime-caption,
html.aqua-hero-motion .aqua-hero-runtime {
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.aqua-hero-motion.is-hero-entered .aqua-hero-kicker,
html.aqua-hero-motion.is-hero-entered .aqua-hero-title > span,
html.aqua-hero-motion.is-hero-entered .aqua-hero-subtitle,
html.aqua-hero-motion.is-hero-entered .aqua-hero-actions,
html.aqua-hero-motion.is-hero-entered .aqua-hero-proof,
html.aqua-hero-motion.is-hero-entered .aqua-runtime-caption,
html.aqua-hero-motion.is-hero-entered .aqua-hero-runtime {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

html.aqua-hero-motion .aqua-hero-kicker {
  transition-delay: 70ms;
}

html.aqua-hero-motion .aqua-hero-title > span:first-child {
  transition-delay: 170ms;
}

html.aqua-hero-motion .aqua-hero-title > span:nth-child(2) {
  transition-delay: 285ms;
}

html.aqua-hero-motion .aqua-hero-subtitle {
  transition-delay: 420ms;
}

html.aqua-hero-motion .aqua-hero-actions {
  transition-delay: 535ms;
}

html.aqua-hero-motion .aqua-hero-proof {
  transition-delay: 650ms;
}

html.aqua-hero-motion .aqua-hero-runtime {
  transition-delay: 210ms;
}

html.aqua-hero-motion .aqua-runtime-caption {
  transition-delay: 735ms;
}

html.aqua-hero-motion .aqua-runtime-command,
html.aqua-hero-motion .aqua-flow-stack li,
html.aqua-hero-motion .aqua-runtime-status {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

html.aqua-hero-motion .aqua-runtime-command,
html.aqua-hero-motion .aqua-flow-stack li,
html.aqua-hero-motion .aqua-runtime-status {
  transition:
    opacity 440ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}

html.aqua-hero-motion .aqua-runtime-command.is-terminal-visible,
html.aqua-hero-motion .aqua-flow-stack li.is-terminal-visible,
html.aqua-hero-motion .aqua-runtime-status.is-terminal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.aqua-flow-stack li.is-flow-active {
  border-color: rgba(137, 206, 255, 0.18);
  background: linear-gradient(90deg, rgba(0, 180, 255, 0.085), transparent 74%);
  box-shadow: inset 3px 0 0 rgba(0, 180, 255, 0.55);
}

.aqua-flow-stack li.is-flow-active .aqua-flow-index {
  border-color: rgba(137, 206, 255, 0.65);
  box-shadow:
    0 0 0 4px rgba(5, 20, 36, 0.7),
    0 0 22px rgba(0, 180, 255, 0.28);
}

.aqua-flow-stack li.is-flow-active .aqua-flow-state {
  color: #78f0c1;
  text-shadow: 0 0 12px rgba(85, 230, 174, 0.35);
}

.aqua-flow-stack li:hover {
  border-color: rgba(137, 206, 255, 0.14);
  background: linear-gradient(90deg, rgba(0, 180, 255, 0.06), transparent 76%);
}

.aqua-flow-stack li:hover .aqua-flow-index {
  border-color: rgba(137, 206, 255, 0.48);
}

.aqua-flow-tracer {
  fill: #dff5ff;
  opacity: 0;
  filter:
    drop-shadow(0 0 4px rgba(223, 245, 255, 0.95))
    drop-shadow(0 0 11px rgba(0, 180, 255, 0.9));
  transition: opacity 420ms ease;
}

.aqua-flow-tracer.is-flow-tracer-online {
  opacity: 0.92;
}

html.aqua-hero-motion .aqua-flow-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

html.aqua-hero-motion .aqua-flow-node.is-flow-node-visible {
  animation: aquaFlowNodeReveal 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.aqua-runtime-status.is-flow-online {
  animation: aquaFlowOnlineReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aqua-runtime-status.is-flow-online .aqua-runtime-status-light,
.aqua-hero-status-dot {
  animation: aquaStatusPulse 2.6s ease-in-out infinite;
}

@keyframes aquaFlowNodeReveal {
  0% {
    opacity: 0;
    transform: scale(0.25);
  }
  58% {
    opacity: 1;
    transform: scale(1.7);
  }
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes aquaFlowOnlineReveal {
  0% {
    box-shadow: 0 0 0 rgba(85, 230, 174, 0);
  }
  45% {
    box-shadow:
      0 0 0 1px rgba(85, 230, 174, 0.2),
      0 0 34px rgba(85, 230, 174, 0.16);
  }
  100% {
    box-shadow: 0 0 0 rgba(85, 230, 174, 0);
  }
}

@keyframes aquaStatusPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(85, 230, 174, 0.07),
      0 0 12px rgba(85, 230, 174, 0.48);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(85, 230, 174, 0.015),
      0 0 20px rgba(85, 230, 174, 0.72);
  }
}

@media (min-width: 921px) {
  html .aqua-signature-hero {
    min-height: max(680px, 100svh);
  }

  .aqua-signature-hero .aqua-hero-shell {
    margin-top: -1.8rem;
  }
}

@media (min-width: 921px) and (max-height: 760px) {
  html .aqua-signature-hero {
    min-height: 680px;
  }

  .aqua-signature-hero .aqua-hero-shell {
    margin-top: -0.65rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .aqua-hero-pointer-light {
    display: none;
  }

  .aqua-runtime-window,
  .aqua-hero-grid,
  .aqua-hero-aura {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aqua-hero-grid,
  .aqua-hero-aura,
  .aqua-hero-pointer-light,
  .aqua-runtime-window,
  .aqua-hero-btn,
  .aqua-hero-btn::after,
  .aqua-hero-status-dot,
  .aqua-runtime-status-light,
  .aqua-flow-node,
  .aqua-flow-tracer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .aqua-hero-pointer-light,
  .aqua-flow-tracer {
    display: none !important;
  }

  html.aqua-hero-motion .aqua-hero-kicker,
  html.aqua-hero-motion .aqua-hero-title > span,
  html.aqua-hero-motion .aqua-hero-subtitle,
  html.aqua-hero-motion .aqua-hero-actions,
  html.aqua-hero-motion .aqua-hero-proof,
  html.aqua-hero-motion .aqua-runtime-caption,
  html.aqua-hero-motion .aqua-hero-runtime,
  html.aqua-hero-motion .aqua-runtime-command,
  html.aqua-hero-motion .aqua-flow-stack li,
  html.aqua-hero-motion .aqua-runtime-status,
  html.aqua-hero-motion .aqua-flow-node {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}
