/* Test-only futuristic luxury hero for hero-test.html.
   The production homepage and shared CSS remain unchanged. */

.hero-test-page {
  background: #ffffff;
}

.hero-test-page #page-reveal {
  display: none;
}

/* Disable CSS cross-fade on slide containers — GSAP handles all content transitions */
.hero-test-page .hero-slide {
  transition: none;
}

.hero-test-page .nav-link.active::after {
  background: linear-gradient(90deg, #ef233c, #ff3b45);
  box-shadow: 0 0 18px rgba(239, 35, 60, 0.62);
}

.hero-test-page .nav-cta-btn {
  background: linear-gradient(135deg, #ef233c, #d71920 58%, #ff3b45);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(239, 35, 60, 0.32);
}

.test-hero {
  /* Layer 1: dark luxury radial-gradient base for the engineering-lab atmosphere. */
  position: relative;
  isolation: isolate;
  height: 100svh;
  overflow: hidden;
  padding: calc(var(--navbar-height) + 20px) 0 80px;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 44%, rgba(58, 205, 255, 0.22), transparent 30%),
    radial-gradient(circle at 62% 68%, rgba(239, 35, 60, 0.16), transparent 36%),
    radial-gradient(ellipse 45% 30% at 35% 42%, rgba(255, 255, 255, 0.035), transparent 68%),
    linear-gradient(135deg, #020817 0%, #061733 45%, #020611 100%);
  font-family: "Inter", "Montserrat", Arial, sans-serif;
}

.test-hero::before,
.test-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.test-hero::before {
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 71% 50%, rgba(139, 231, 255, 0.2), transparent 18%),
    radial-gradient(circle at 76% 76%, rgba(239, 35, 60, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%),
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.06), transparent 22%);
}

.test-hero::after {
  inset: auto 9% 74px 9%;
  height: 1px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 69, 0.84), rgba(139, 231, 255, 0.52), transparent);
  box-shadow:
    0 0 24px rgba(239, 35, 60, 0.45),
    0 0 34px rgba(60, 200, 255, 0.22);
}

.test-hero-bg,
.test-hero-bg > div {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.test-hero-bg {
  z-index: -4;
  overflow: hidden;
  /* Own layer — scroll parallax shifts this container every frame. */
  will-change: transform;
}

.test-hero-bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 8%, rgba(239, 35, 60, 0.1), transparent 28%),
    radial-gradient(circle at 100% 8%, rgba(239, 35, 60, 0.09), transparent 30%),
    radial-gradient(circle at 96% 92%, rgba(239, 35, 60, 0.11), transparent 34%),
    linear-gradient(115deg, rgba(239, 35, 60, 0.045), transparent 34%, rgba(239, 35, 60, 0.05) 72%, transparent);
  mix-blend-mode: screen;
}

.test-bg-grid {
  /* Layer 2: animated blueprint/grid overlay with low-opacity engineering lines. */
  z-index: 1;
  background-image:
    linear-gradient(rgba(139, 231, 255, 0.064) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 231, 255, 0.064) 1px, transparent 1px),
    linear-gradient(125deg, transparent 0 48%, rgba(255, 255, 255, 0.045) 49%, transparent 51% 100%);
  background-size: 58px 58px, 58px 58px, 260px 260px;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 34%, rgba(0, 0, 0, 0.86) 64%, rgba(0,0,0,.66) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 34%, rgba(0, 0, 0, 0.86) 64%, rgba(0,0,0,.66) 100%);
  opacity: 0.38;
  transform: translate3d(0, 0, 0);
  animation:
    gridDrift 46s linear infinite,
    gridBreath 11s ease-in-out infinite;
  will-change: transform, opacity;
}

.test-bg-blueprint {
  left: auto;
  right: 4%;
  top: 15%;
  bottom: auto;
  width: 58vw;
  height: 70vh;
  z-index: 2;
  opacity: 0.26;
  background:
    linear-gradient(rgba(139, 231, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 231, 255, 0.12) 1px, transparent 1px),
    linear-gradient(transparent 49.7%, rgba(255,255,255,.1) 50%, transparent 50.3%),
    linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.08) 50%, transparent 50.3%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
  animation: blueprintDrift 44s linear infinite alternate;
  will-change: transform;
}

.test-bg-blueprint::before,
.test-bg-blueprint::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
}

.test-bg-blueprint::before {
  width: min(620px, 45vw);
  aspect-ratio: 1;
  right: 9%;
  top: 9%;
  border: 1px solid rgba(139, 231, 255, 0.34);
  box-shadow:
    inset 0 0 0 58px rgba(139, 231, 255, 0.035),
    inset 0 0 0 112px rgba(139, 231, 255, 0.02),
    0 0 72px rgba(60, 200, 255, 0.14);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(139, 231, 255, 0.16) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(139, 231, 255, 0.12) 50%, transparent 50.2%);
}

.test-bg-blueprint::after {
  width: min(330px, 24vw);
  aspect-ratio: 1;
  right: 28%;
  top: 25%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.tech-label {
  position: absolute;
  color: rgba(183, 192, 209, 0.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.label-one { top: 12%; left: 23%; }
.label-two { top: 26%; right: 8%; }
.label-three { top: 56%; right: 4%; }
.label-four { bottom: 20%; left: 18%; }

.test-bg-red-streaks {
  /* Layer 3: diagonal red energy streaks moving behind the product.
     Animated via transform (compositor-only) — the extra left inset gives the
     translateX loop room so the layer edge never enters the viewport. */
  inset: -18% -30% -12% -60%;
  z-index: 3;
  mix-blend-mode: screen;
  transform: rotate(-12deg);
  will-change: transform;
}

/* Both gradients in each layer share one tile width, so a single translateX
   of exactly one tile loops seamlessly. */
.streaks-fast {
  background:
    repeating-linear-gradient(90deg, transparent 0 210px, rgba(255, 50, 70, 0.0) 252px, rgba(255, 50, 70, 0.92) 292px, rgba(255, 130, 140, 0.32) 326px, transparent 412px),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 60, 76, 0.0) 172px, rgba(255, 60, 76, 0.68) 213px, rgba(255, 160, 166, 0.18) 246px, transparent 410px);
  background-size: 520px 100%, 520px 100%;
  filter: blur(0.8px);
  opacity: 0.27;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.32) 24%, rgba(0,0,0,.72) 56%, rgba(0,0,0,.42) 86%, rgba(0,0,0,.18) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.32) 24%, rgba(0,0,0,.72) 56%, rgba(0,0,0,.42) 86%, rgba(0,0,0,.18) 100%);
  animation: streakShiftFast 10s linear infinite;
}

.streaks-slow {
  background:
    repeating-linear-gradient(90deg, transparent 0 240px, rgba(239, 35, 60, 0) 318px, rgba(239, 35, 60, 0.46) 398px, rgba(255, 95, 112, 0.18) 478px, transparent 640px),
    repeating-linear-gradient(90deg, transparent 0 347px, rgba(255, 59, 69, 0.38) 430px, transparent 628px);
  background-size: 760px 100%, 760px 100%;
  filter: blur(18px);
  opacity: 0.22;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.24) 20%, rgba(0,0,0,.66) 54%, rgba(0,0,0,.38) 90%, rgba(0,0,0,.16) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.24) 20%, rgba(0,0,0,.66) 54%, rgba(0,0,0,.38) 90%, rgba(0,0,0,.16) 100%);
  animation: streakShiftSlow 18s linear infinite;
}

.test-bg-blue-glow {
  /* Layer 4: cool airflow glow around the product and platform. */
  z-index: 4;
  background:
    radial-gradient(ellipse 30% 38% at 75% 49%, rgba(139, 231, 255, 0.54), rgba(60, 200, 255, 0.18) 38%, transparent 72%),
    radial-gradient(ellipse 43% 12% at 76% 78%, rgba(60, 200, 255, 0.58), transparent 70%),
    linear-gradient(104deg, transparent 52%, rgba(90, 215, 255, 0.2) 61%, transparent 72%),
    linear-gradient(167deg, transparent 48%, rgba(139, 231, 255, 0.14) 55%, transparent 66%);
  filter: blur(9px);
  opacity: 0.62;
  animation: blueGlowPulse 7.5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.test-bg-particles {
  /* Layer 5: sparse red/blue cinematic dust particles. */
  z-index: 5;
}

.test-bg-particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 18px var(--c);
  opacity: 0.42;
  animation: particleFloat var(--d) ease-in-out infinite;
  will-change: transform, opacity;
}

.test-bg-glass-shine {
  /* Layer 6: large glossy diagonal shine for a premium reflective finish. */
  z-index: 6;
  width: 52%;
  left: -24%;
  right: auto;
  background:
    linear-gradient(100deg, transparent 0 24%, rgba(255, 255, 255, 0.07) 46%, transparent 68%),
    linear-gradient(100deg, transparent 20%, rgba(139, 231, 255, 0.032) 52%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-130%) rotate(12deg);
  animation: glassSweep 13s ease-in-out infinite;
  will-change: transform, opacity;
}

.test-hero-inner {
  position: relative;
  top: -10%;
  z-index: 8;
  /* Promoted to its own layer: the scroll parallax writes transform/opacity
     here every frame — without this the whole hero repaints on scroll. */
  will-change: transform, opacity;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding-left: clamp(48px, 7vw, 120px);
  padding-right: clamp(10px, 2vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(440px, 56fr);
  align-items: center;
  gap: clamp(14px, 2vw, 36px);
}

.test-hero-left {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.test-announcement {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 16px 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(139, 231, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test-announcement strong {
  overflow: hidden;
  color: rgba(245, 247, 251, 0.82);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-announcement i {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.test-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef233c;
  box-shadow: 0 0 0 5px rgba(239, 35, 60, 0.13), 0 0 24px rgba(239, 35, 60, 0.78);
}

.test-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  color: #ff3b45;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Slides also tag the eyebrow with .section-badge so the slide-transition
   choreography picks it up — neutralize the badge's light-pill styling here
   so every slide's eyebrow matches the clean line treatment. */
.test-hero .test-eyebrow.section-badge {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #ff3b45;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.test-hero .test-eyebrow.section-badge::before {
  display: none;
}

.test-eyebrow::after {
  content: "";
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, #ef233c, transparent);
  box-shadow: 0 0 18px rgba(239, 35, 60, 0.5);
}

.test-hero-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.8rem, 4.2vw, 4.8rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 26px 72px rgba(0, 0, 0, 0.48);
}

.test-hero-title span {
  display: block;
  white-space: nowrap;
}

.test-hero-title > span:last-child {
  padding-bottom: 0.06em;
  color: transparent;
  background: linear-gradient(180deg, #ff5b66 0%, #ef233c 45%, #c91420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 35px rgba(239, 35, 60, 0.2);
  filter: drop-shadow(0 0 20px rgba(239, 35, 60, 0.2));
}

.test-hero-copy {
  max-width: 560px;
  margin: 12px 0 0;
  color: #b8c2d6;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.7;
}

.test-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.test-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.test-btn:hover {
  transform: translateY(-2px);
}

.test-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff3b45, #ef233c 48%, #b80f18);
  box-shadow:
    0 18px 46px rgba(239, 35, 60, 0.42),
    0 0 18px rgba(239, 35, 60, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.test-btn-secondary {
  color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(2, 8, 23, 0.36);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.test-btn-secondary:hover {
  border-color: rgba(139, 231, 255, 0.44);
  box-shadow: 0 16px 40px rgba(60, 200, 255, 0.12);
}

.test-stats-card {
  display: flex;
  gap: 0;
  width: min(610px, 100%);
  max-width: 610px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 5% 0%, rgba(139, 231, 255, 0.16), transparent 42%),
    radial-gradient(circle at 84% 90%, rgba(239, 35, 60, 0.12), transparent 50%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.35),
    0 0 34px rgba(139, 231, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.test-stat {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 11px;
  align-items: center;
  padding: 13px 16px 12px;
}

.test-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22%;
  right: 0;
  width: 1px;
  height: 56%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.test-stat-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(245, 247, 251, 0.64);
  border: 1px solid rgba(245, 247, 251, 0.16);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.test-stat-value {
  display: block;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.45vw, 1.34rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.test-stat small {
  display: block;
  margin-top: 4px;
  color: #8d98aa;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.test-hero-right {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}

.test-product-orbit,
.test-product-glow,
.test-product-platform {
  position: absolute;
  pointer-events: none;
}

.test-product-orbit {
  width: min(560px, 80%);
  aspect-ratio: 1;
  border: 1px solid rgba(139, 231, 255, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(139, 231, 255, 0.18) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(139, 231, 255, 0.12) 50%, transparent 50.3%);
  box-shadow:
    0 0 90px rgba(60, 200, 255, 0.09),
    inset 0 0 70px rgba(60, 200, 255, 0.045);
  opacity: 0.72;
  transform: translateX(3vw);
}

.test-product-glow {
  width: 684px;
  height: 684px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(80, 215, 255, 0.35), rgba(18, 80, 130, 0.18) 35%, transparent 70%),
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.34), transparent 23%);
  filter: blur(30px);
  opacity: 0.9;
  transform: translateX(3vw);
  will-change: transform, opacity;
}

.test-product-platform {
  width: min(648px, 47vw);
  height: 153px;
  bottom: 5%;
  right: 3%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(50, 200, 255, 0.22), rgba(3, 12, 30, 0.65) 45%, transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  border-top: 1px solid rgba(139, 231, 255, 0.54);
  box-shadow:
    0 0 60px rgba(61, 200, 255, 0.28),
    0 28px 70px rgba(0,0,0,.58),
    inset 0 0 35px rgba(255, 255, 255, 0.08);
  filter: blur(2px);
  transform: perspective(920px) rotateX(64deg);
}

.test-product-platform::before,
.test-product-platform::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.test-product-platform::before {
  inset: 18% 10% 28%;
  border-radius: 50%;
  border-bottom: 2px solid rgba(139, 231, 255, 0.72);
  box-shadow: 0 12px 28px rgba(61, 200, 255, 0.38);
}

.test-product-platform::after {
  left: 11%;
  right: 4%;
  bottom: 28%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 35, 60, 0.88), rgba(255, 70, 85, 0.42), transparent);
  box-shadow: 0 0 20px rgba(239, 35, 60, 0.78);
  transform: rotate(-5deg);
}

.test-product-image {
  position: relative;
  z-index: 3;
  width: clamp(420px, 36vw, 680px);
  max-height: clamp(420px, 60vh, 580px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 30px rgba(80, 215, 255, 0.35))
    drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55));
  transform: translate3d(3vw, 0, 0);
  will-change: transform;
  /* Idle float + entrance are GSAP-driven (hero-test-gsap.js) for seamless motion. */
}

.test-certification-badge {
  position: absolute;
  z-index: 4;
  right: 6%;
  bottom: 150px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 19px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(185, 207, 232, 0.12);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(139, 231, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.test-certification-badge span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ef233c, #d71920);
  box-shadow: 0 0 24px rgba(239, 35, 60, 0.44);
}

.test-certification-badge strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.test-hero-bottom {
  /* Bottom curved foreground: red accent, blue edge glow, and scroll hint panel. */
  position: absolute;
  left: -5%;
  bottom: -15%;
  width: 110%;
  z-index: 7;
  height: 230px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(3,10,26,.55), rgba(1,5,14,.95));
  border-top: 1px solid rgba(139, 231, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 -20px 80px rgba(0,0,0,.45),
    0 -1px 28px rgba(60, 200, 255, 0.16);
}

.test-hero-bottom::before,
.test-hero-bottom::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.test-hero-bottom::before {
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef233c, #ff4655, transparent);
  box-shadow: 0 0 18px rgba(239,35,60,.8);
}

.test-hero-bottom::after {
  top: -18px;
  left: 50%;
  width: 36%;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(90, 215, 255, 0.22), transparent 68%);
  transform: translateX(-6%);
  filter: blur(12px);
}

.test-scroll-hint {
  position: absolute;
  top: 28px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: rgba(245, 247, 251, 0.6);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.test-scroll-hint em {
  font-style: normal;
}

.test-mouse {
  width: 18px;
  height: 28px;
  border: 1px solid rgba(245, 247, 251, 0.42);
  border-radius: 999px;
  position: relative;
}

.test-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: #ef233c;
  box-shadow: 0 0 12px rgba(239, 35, 60, 0.8);
  transform: translateX(-50%);
}

.hero-test-page .test-hero ~ .section,
.hero-test-page .test-hero ~ .cert-bar {
  background-color: #ffffff;
}

.hero-test-page .test-hero ~ .section-light,
.hero-test-page .test-hero ~ .category-bar {
  background-color: #f5f5f5;
}

@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-44px, 44px, 0); }
}

@keyframes blueprintDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-14px, 10px, 0) scale(1.015); }
}

/* One full gradient tile per cycle, so each loop wraps seamlessly. */
@keyframes streakShiftFast {
  from { transform: rotate(-12deg) translateX(-520px); }
  to   { transform: rotate(-12deg) translateX(0); }
}

@keyframes streakShiftSlow {
  from { transform: rotate(-12deg) translateX(-760px); }
  to   { transform: rotate(-12deg) translateX(0); }
}

@keyframes blueGlowPulse {
  from { opacity: .5; transform: translateX(3vw) scale(.98); }
  to { opacity: .74; transform: translateX(3vw) scale(1.025); }
}

@keyframes particleFloat {
  from { transform: translate3d(0, 14px, 0); opacity: .1; }
  50% { opacity: .42; }
  to { transform: translate3d(28px, -56px, 0); opacity: .04; }
}

@keyframes glassSweep {
  from { transform: translateX(-130%) rotate(12deg); opacity: 0; }
  35% { opacity: .22; }
  to { transform: translateX(130%) rotate(12deg); opacity: 0; }
}

@keyframes gridBreath {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.52; }
}


/* ══════════════════════════════════════════════════════════════════════════
   MOTION ENHANCEMENTS — masked title reveal, micro-interactions, idle motion
══════════════════════════════════════════════════════════════════════════ */

/* ── Masked title lines (spans wrapped by hero-test-gsap.js) ──
   clip-path only hides content below the line box, so long lines are
   never cut horizontally on wide screens. */
.test-hero-title .line-mask {
  clip-path: inset(-0.35em -200% 0 -200%);
}

.test-hero-title .line-inner {
  display: block;
  will-change: transform;
}

/* When wrapped, the gradient moves to the inner span so it travels with the
   text during the reveal. The parent keeps the drop-shadow glow. */
.test-hero-title > span:last-child.line-mask {
  background: none;
}

.test-hero-title > span:last-child .line-inner {
  color: transparent;
  background: linear-gradient(180deg, #ff5b66 0%, #ef233c 45%, #c91420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

/* Shimmer as a translating overlay band (compositor-only) instead of
   animating background-position on clipped text, which repaints every frame. */
.test-hero-title > span:last-child .line-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: titleShimmer 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes titleShimmer {
  0%, 52% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

/* ── Announcement chip: live pulse via expanding ring (transform/opacity,
   compositor-only — animating box-shadow repaints every frame) ── */
.test-dot {
  position: relative;
}

.test-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(239, 35, 60, 0.45);
  animation: dotPing 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  will-change: transform, opacity;
}

@keyframes dotPing {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

.test-announcement {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.test-announcement:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 231, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(139, 231, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ── Buttons: shine sweep on hover + tactile press ── */
.test-btn {
  position: relative;
  overflow: hidden;
}

.test-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.test-btn:hover::before {
  left: 130%;
}

.test-btn svg {
  transition: transform 0.25s ease;
}

.test-btn:hover svg {
  transform: translateX(3px);
}

.test-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ── Stats card: icon glow on hover ── */
.test-stat-icon {
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.test-stat:hover .test-stat-icon {
  color: #ffffff;
  border-color: rgba(139, 231, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 20px rgba(139, 231, 255, 0.28);
}

/* ── Scroll hint: animated wheel dot ── */
.test-mouse::after {
  animation: mouseWheel 1.9s ease-in-out infinite;
}

@keyframes mouseWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  60% { opacity: 0; transform: translate(-50%, 9px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ── Idle ambience: accent line breathes, tech labels pulse ── */
.test-hero::after {
  animation: accentLineGlow 4.5s ease-in-out infinite;
}

@keyframes accentLineGlow {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.tech-label {
  animation: labelPulse 7s ease-in-out infinite;
}

.label-two { animation-delay: 1.6s; }
.label-three { animation-delay: 3.2s; }
.label-four { animation-delay: 4.8s; }

@keyframes labelPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ── Pointer-parallax target ── */
.test-hero-right {
  will-change: transform;
}

/* ══════════════════════════════════════════════════════════════════════════
   CINEMATIC LAYERS — aurora, light rays, vignette, orbit satellites
══════════════════════════════════════════════════════════════════════════ */

/* ── Aurora: slow-rotating conic wash of brand cyan/red ── */
.test-bg-aurora {
  inset: -12%;
  z-index: 0;
  background: conic-gradient(from 0deg at 68% 50%,
    transparent 0deg,
    rgba(60, 200, 255, 0.12) 50deg,
    transparent 115deg,
    rgba(239, 35, 60, 0.10) 170deg,
    transparent 235deg,
    rgba(139, 231, 255, 0.08) 300deg,
    transparent 360deg);
  filter: blur(32px);
  mix-blend-mode: screen;
  transform: translateZ(0);
  animation: auroraSpin 40s linear infinite;
  will-change: transform;
}

@keyframes auroraSpin {
  to { transform: rotate(360deg) translateZ(0); }
}

/* ── Light rays falling from above the product ── */
.test-bg-rays {
  z-index: 2;
  background: conic-gradient(from 196deg at 76% -12%,
    transparent 0deg 7deg,
    rgba(139, 231, 255, 0.075) 10deg,
    transparent 13deg 19deg,
    rgba(255, 255, 255, 0.055) 23deg,
    transparent 27deg 33deg,
    rgba(60, 200, 255, 0.065) 37deg,
    transparent 41deg);
  mix-blend-mode: screen;
  animation: raysPulse 9s ease-in-out infinite;
}

@keyframes raysPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

/* ── Cinematic vignette: darkened corners pull focus to the center ── */
.test-bg-vignette {
  z-index: 7;
  background: radial-gradient(ellipse 115% 92% at 50% 42%, transparent 52%, rgba(1, 4, 12, 0.6) 100%);
}

/* ── Orbit satellites: glowing nodes circling the product ── */
.test-orbit-spinner {
  position: absolute;
  width: min(700px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translateX(3vw);
  animation: orbitSpin 26s linear infinite;
  will-change: transform;
}

@keyframes orbitSpin {
  from { transform: translateX(3vw) rotate(0deg); }
  to { transform: translateX(3vw) rotate(360deg); }
}

.test-orbit-node {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #8be7ff;
  box-shadow:
    0 0 12px rgba(139, 231, 255, 0.95),
    0 0 30px rgba(60, 200, 255, 0.55);
}

.test-orbit-node::after {
  /* comet trail, tangent to the orbit */
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 74px;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(270deg, rgba(139, 231, 255, 0.75), transparent);
  filter: blur(0.5px);
}

.test-orbit-node.node-2 {
  top: auto;
  bottom: -3px;
  width: 5px;
  height: 5px;
  background: #ff5a66;
  box-shadow:
    0 0 10px rgba(255, 90, 102, 0.95),
    0 0 26px rgba(239, 35, 60, 0.5);
}

.test-orbit-node.node-2::after {
  right: auto;
  left: 5px;
  width: 56px;
  background: linear-gradient(90deg, rgba(255, 90, 102, 0.7), transparent);
}

/* ── Stats card: rotating gradient border light ── */
@property --stats-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.test-stats-card {
  position: relative;
}

.test-stats-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--stats-angle),
    transparent 0deg 250deg,
    rgba(139, 231, 255, 0.85) 295deg,
    rgba(239, 35, 60, 0.55) 325deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  /* Breathing opacity instead of animating the conic angle — custom-property
     animation forces style recalc + repaint on every frame. */
  animation: statsBorderBreathe 7s ease-in-out infinite;
  will-change: opacity;
}

@keyframes statsBorderBreathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ── Platform: breathing scanner ring ── */
.test-product-platform::before {
  animation: platformPulse 4.2s ease-in-out infinite;
}

@keyframes platformPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ── Mobile performance: drop the heaviest blur layers ── */
@media (max-width: 768px) {
  .test-bg-aurora,
  .test-bg-rays {
    display: none;
  }

  .test-orbit-node::after,
  .test-orbit-node.node-2::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .test-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    padding-left: clamp(36px, 6vw, 72px);
    gap: 34px;
  }

  .test-hero-right {
    min-height: 570px;
  }

  .test-product-image {
    width: min(558px, 98%);
  }

  .test-product-glow {
    width: min(612px, 100%);
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 991px) {
  .test-hero {
    /* Stacked layout is taller than the viewport — let the hero grow so
       stats, product image, and badge are never clipped by overflow:hidden */
    height: auto;
    min-height: 100svh;
    padding: calc(var(--navbar-height) + 38px) 24px 140px;
  }

  /* The curve's -15% offset scales with the taller auto-height hero and
     would push the scroll hint out of view — use a fixed offset instead. */
  .test-hero-bottom {
    bottom: -60px;
  }

  /* Slides are absolutely stacked for the desktop cross-fade; on mobile the
     active slide must size the hero, so it flows in the layout instead. */
  .test-hero .hero-slider {
    min-height: 0;
    height: auto;
  }

  .test-hero .hero-slide {
    position: relative;
    inset: auto;
    display: none;
  }

  .test-hero .hero-slide.active {
    display: flex;
  }

  .test-hero-inner {
    top: 0;
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    padding: 0;
  }

  .test-hero-left {
    max-width: 760px;
    transform: none;
  }

  .test-hero-right {
    min-height: 500px;
    order: 2;
  }

  .test-product-image {
    width: min(504px, 90%);
  }

  .test-product-glow {
    width: min(558px, 96%);
  }

  .test-product-platform {
    width: min(558px, 88vw);
    right: 50%;
    transform: translateX(50%) perspective(920px) rotateX(64deg);
  }

  .tech-label {
    opacity: 0.6;
  }

  .label-two,
  .label-three {
    display: none;
  }
}

@media (max-width: 768px) {
  .test-hero {
    padding: calc(var(--navbar-height) + 28px) 20px 128px;
  }

  .test-announcement {
    width: 100%;
    justify-content: flex-start;
    font-size: 11px;
  }

  .test-announcement strong {
    min-width: 0;
  }

  .test-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .test-stats-card {
    flex-direction: column;
  }

  .test-stat:not(:last-child)::after {
    top: auto;
    right: 22px;
    bottom: 0;
    left: 22px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  }

  .test-hero-right {
    min-height: 430px;
  }

  .test-product-platform {
    bottom: 54px;
    height: 132px;
  }

  .test-certification-badge {
    right: 0;
    bottom: 92px;
  }

  /* Keep the slider controls clear of the certification badge */
  .test-hero .hero-slider-controls {
    bottom: 8px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .test-hero-title {
    font-size: clamp(2.5rem, 13.5vw, 3.6rem);
  }

  .test-hero-copy {
    font-size: 1rem;
  }

  .test-hero-right {
    min-height: 360px;
  }

  .test-product-image {
    width: min(405px, 96%);
  }

  .test-product-glow {
    width: min(423px, 104%);
  }

  .test-product-platform {
    width: min(423px, 98vw);
    height: 96px;
  }

  .test-bg-red-streaks {
    opacity: 0.42;
  }

  .test-bg-blueprint::before {
    width: 430px;
    right: -34%;
    top: 48%;
  }

  .label-one,
  .label-four {
    display: none;
  }

  .test-certification-badge {
    padding: 11px 13px;
  }

  .test-certification-badge strong {
    font-size: 10px;
  }
}

/* ── Performance: idle hero costs nothing ──
   Inactive carousel slides are fully skipped by the renderer, and once the
   hero is scrolled out of view (`hero-asleep`, toggled by hero-test-gsap.js)
   every decorative animation pauses and the bg layer stack stops painting. */
.test-hero .hero-slide:not(.active) {
  visibility: hidden;
}

.test-hero.hero-asleep .test-hero-bg {
  visibility: hidden;
}

.test-hero.hero-asleep *,
.test-hero.hero-asleep *::before,
.test-hero.hero-asleep *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-test-page *,
  .hero-test-page *::before,
  .hero-test-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
