/* ThunderHost motion layer — 3D tilt, depth parallax and ambient effects in the panel's style.
   Everything here is decorative; fx.js only adds classes/vars and does nothing under reduced motion. */

/* ---------- Ambient: drifting star field (as on the panel login) ---------- */
.fx-stars {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(165, 243, 252, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 260px 40px, rgba(147, 197, 253, 0.7), transparent),
    radial-gradient(1px 1px at 330px 210px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 360px 280px;
  animation: fx-drift 90s linear infinite;
}

.fx-stars--slow {
  opacity: 0.35;
  background-size: 540px 430px;
  animation: fx-drift-slow 160s linear infinite;
}

@keyframes fx-drift {
  to {
    transform: translate3d(-360px, -280px, 0);
  }
}

@keyframes fx-drift-slow {
  to {
    transform: translate3d(-540px, -430px, 0);
  }
}

/* ---------- Ambient: cursor spotlight ---------- */
.fx-spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(600px circle at var(--cx, 50%) var(--cy, 30%), rgba(34, 211, 238, 0.07), transparent 60%);
}

.fx-ready .fx-spotlight {
  opacity: 1;
}

/* ---------- Hero: perspective grid floor ---------- */
.hero,
.subpage-hero {
  isolation: isolate;
}

.fx-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -2px;
  height: 34%;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
  perspective: 520px;
  perspective-origin: 50% 0%;
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
}

.fx-floor::before {
  content: "";
  position: absolute;
  inset: 0 0 -60% 0;
  transform-origin: 50% 0%;
  transform: rotateX(72deg);
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.32) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: fx-floor-run 3.2s linear infinite;
}

.fx-floor::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), rgba(37, 99, 235, 0.7), transparent);
  filter: blur(1px);
  box-shadow: 0 0 24px 4px rgba(34, 211, 238, 0.35);
}

.subpage-hero .fx-floor {
  height: 45%;
  opacity: 0.5;
}

@keyframes fx-floor-run {
  to {
    background-position: 0 64px, 0 0;
  }
}

/* ---------- Hero: lightning flash (th-bolt rhythm) ---------- */
.fx-flash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 70% 10%, rgba(165, 243, 252, 0.16), transparent 70%);
  opacity: 0;
  animation: fx-bolt 9s ease infinite;
}

@keyframes fx-bolt {

  0%,
  86%,
  100% {
    opacity: 0;
  }

  88% {
    opacity: 1;
  }

  89.5% {
    opacity: 0.15;
  }

  91% {
    opacity: 0.85;
  }

  94% {
    opacity: 0;
  }
}

/* ---------- 3D tilt cards (same recipe as .th-tilt on the panel) ---------- */
.fx-tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.fx-tilt:not([data-aos]),
.fx-tilt[data-aos].aos-animate {
  transform: perspective(900px) translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.fx-tilt.fx-tilting {
  transition: transform 0.12s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out !important;
}

.fx-tilt.fx-tilting {
  box-shadow: var(--th-shadow-lg), 0 0 34px -12px rgba(var(--th-accent-rgb), 0.6) !important;
  border-color: rgba(var(--th-accent-rgb), 0.35) !important;
}

.fx-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.11), rgba(34, 211, 238, 0.05) 35%, transparent 60%);
  mix-blend-mode: screen;
}

.fx-tilting>.fx-glare {
  opacity: 1;
}

/* icons float above the card surface */
.fx-tilt .stat-icon,
.fx-tilt .home-cat-icon,
.fx-tilt .why-icon,
.fx-tilt .service-box-icon {
  transform: translateZ(28px);
  transition: transform 0.3s var(--th-ease, ease);
}

/* ---------- Hero showcase: depth parallax ---------- */
.hero-showcase {
  perspective: 1100px;
}

.fx-showcase {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.fx-showcase.fx-tilting {
  transition: transform 0.1s ease-out;
}

.fx-showcase .showcase-img {
  transform: scale(1.09) translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px), 0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-showcase .floating-badge {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 14px);
}

.fx-showcase.fx-tilting .showcase-img,
.fx-showcase.fx-tilting .floating-badge {
  transition-duration: 0.1s;
}

.fx-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.10) 45%, transparent 60%);
  background-size: 250% 100%;
  background-position: calc(100% - var(--px, 0) * 40% - 50%) 0;
}

.hero-showcase .floating-badge {
  animation: fx-float 5s ease-in-out infinite;
}

.hero-showcase .badge-bottom-left {
  animation-delay: -1.6s;
}

.hero-showcase .badge-bottom-right {
  animation-delay: -3.2s;
}

@keyframes fx-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ---------- Scroll reveal in 3D + working stagger delays ---------- */
[data-aos] {
  transition-duration: 0.75s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-ready [data-aos="fade-up"]:not(.aos-animate) {
  transform: perspective(900px) translateY(36px) rotateX(14deg);
}

.fx-ready [data-aos="zoom-in"]:not(.aos-animate) {
  transform: perspective(900px) scale(0.92) rotateX(10deg);
}

[data-aos-delay="50"] {
  transition-delay: 50ms;
}

[data-aos-delay="100"] {
  transition-delay: 100ms;
}

[data-aos-delay="150"] {
  transition-delay: 150ms;
}

[data-aos-delay="200"] {
  transition-delay: 200ms;
}

[data-aos-delay="250"] {
  transition-delay: 250ms;
}

[data-aos-delay="300"] {
  transition-delay: 300ms;
}

[data-aos-delay="350"] {
  transition-delay: 350ms;
}

[data-aos-delay="400"] {
  transition-delay: 400ms;
}

/* ---------- Logo: bob + lightning flash on hover (panel's th-logo) ---------- */
.nav-logo-img {
  animation: fx-logo-bob 4s ease-in-out infinite;
}

@keyframes fx-logo-bob {

  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(2px);
  }
}

.logo-icon-wrap {
  position: relative;
}

.logo-icon-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(165, 243, 252, 0.55), transparent 65%);
  opacity: 0;
}

.nav-logo:hover .logo-icon-wrap::after {
  animation: fx-logo-flash 0.9s ease-out;
}

@keyframes fx-logo-flash {

  0%,
  100% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  30% {
    opacity: 0.15;
  }

  45% {
    opacity: 0.9;
  }

  70% {
    opacity: 0;
  }
}

/* ---------- Status dots: soft pulse ring ---------- */
.status-ok .status-pulse-dot,
.badge-status-dot,
.pulse-green {
  animation: fx-pulse 1.8s ease-out infinite;
}

@keyframes fx-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 230, 184, 0.6);
  }

  100% {
    box-shadow: 0 0 0 8px rgba(46, 230, 184, 0);
  }
}

/* ---------- Primary buttons: light sweep ---------- */
.btn-primary,
.nav-panel-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before,
.nav-panel-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
}

.btn-primary:hover::before,
.nav-panel-btn:hover::before {
  transform: translateX(120%);
  transition: transform 0.7s ease;
}

/* ---------- Gradient headline shimmer ---------- */
.hero-title .gradient-text,
.subpage-heading .gradient-text {
  background-image: linear-gradient(90deg, #22d3ee 0%, #3b82f6 35%, #a5f3fc 50%, #3b82f6 65%, #22d3ee 100%);
  background-size: 220% 100%;
  animation: fx-shimmer-text 7s ease-in-out infinite;
}

@keyframes fx-shimmer-text {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ---------- Reduced motion / touch ---------- */
@media (prefers-reduced-motion: reduce) {

  .fx-stars,
  .fx-floor::before,
  .fx-flash,
  .nav-logo-img,
  .hero-showcase .floating-badge,
  .status-ok .status-pulse-dot,
  .badge-status-dot,
  .pulse-green,
  .hero-title .gradient-text,
  .subpage-heading .gradient-text {
    animation: none !important;
  }

  .fx-flash,
  .fx-spotlight {
    display: none;
  }
}

@media (hover: none),
(pointer: coarse) {
  .fx-spotlight {
    display: none;
  }
}

@media (max-width: 768px) {
  .fx-floor {
    height: 40%;
  }

  .fx-stars--slow {
    display: none;
  }
}

/* ---------- Home hero: scrolling server room ---------- */
.fx-dc {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
  perspective-origin: 50% 40%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 18%, #000 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.fx-dc::after {
  /* keeps the headline readable on the left */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 22% 50%, rgba(11, 26, 43, 0.82) 0%, rgba(11, 26, 43, 0.55) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(11, 26, 43, 0.35), transparent 25%, transparent 75%, rgba(11, 26, 43, 0.85));
}

.fx-dc-floor {
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  height: 78%;
  transform: rotateX(10deg);
  transform-style: preserve-3d;
}

.fx-dc-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 14px;
  width: max-content;
  animation: fx-dc-scroll 70s linear infinite;
}

.fx-dc-track--back {
  top: -6%;
  bottom: 18%;
  opacity: 0.45;
  filter: blur(1.5px);
  transform: translateZ(-260px) scale(1.2);
  animation-duration: 110s;
  animation-direction: reverse;
}

@keyframes fx-dc-scroll {
  to {
    transform: translateX(-50%);
  }
}

.fx-dc-track--back {
  animation-name: fx-dc-scroll-back;
}

@keyframes fx-dc-scroll-back {
  from {
    transform: translateZ(-260px) scale(1.2) translateX(0);
  }

  to {
    transform: translateZ(-260px) scale(1.2) translateX(-50%);
  }
}

.fx-rack {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  height: 100%;
  padding: 16px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, #13263b 0%, #0c1a2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 4px #0a1624, 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

.fx-rack::before {
  /* rack label strip */
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: rgba(34, 211, 238, 0.35);
}

.fx-unit {
  position: relative;
  flex: 1 1 0;
  min-height: 10px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 6px) 34px 50% / calc(100% - 44px) 50% no-repeat,
    linear-gradient(180deg, #1a3049, #12233a);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fx-unit i {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: fx-led 1.6s steps(2, jump-none) infinite;
}

.fx-unit i:nth-child(1) {
  left: 7px;
}

.fx-unit i:nth-child(2) {
  left: 16px;
  background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee;
  animation-duration: 0.9s;
}

.fx-unit i.amber {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation-duration: 2.8s;
}

.fx-unit.glow {
  background: linear-gradient(180deg, #1c3b5c, #12304d);
  border-color: rgba(34, 211, 238, 0.25);
}

@keyframes fx-led {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

.fx-dc-beam {
  /* light sweeping along the aisle */
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  left: -30%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.10), transparent);
  animation: fx-dc-beam 9s ease-in-out infinite;
}

@keyframes fx-dc-beam {
  to {
    left: 110%;
  }
}

.hero-container {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .fx-dc::after {
    background: rgba(11, 26, 43, 0.72);
  }

  .fx-rack {
    width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .fx-dc-track,
  .fx-unit i,
  .fx-dc-beam {
    animation: none !important;
  }
}

/* the blurred back row is barely visible; static LEDs there halve the animation cost */
.fx-dc-track--back .fx-unit i {
  animation: none;
}

/* ---------- Thunder: 3D wolf mascot (wolf3d.js), shared base ---------- */
.wolf3d {
  position: absolute;
  z-index: 6;
  width: 260px;
  height: 312px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.wolf3d.is-ready {
  opacity: 1;
  transform: none;
}

.wolf3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.wolf-bubble {
  position: absolute;
  top: 6px;
  left: -48px;
  z-index: 1;
  max-width: 210px;
  padding: 9px 13px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(16, 36, 58, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 24px -10px rgba(34, 211, 238, 0.6);
  color: #f2f7fb;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  backdrop-filter: blur(10px);
  animation: fx-float 4s ease-in-out infinite;
}

.wolf-bubble.pop {
  animation: wolf-pop 0.45s cubic-bezier(0.22, 1.6, 0.36, 1), fx-float 4s ease-in-out 0.45s infinite;
}

@keyframes wolf-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* bubble on the wolf's other side for left-pointing poses */
.wolf3d[data-thunder="point-left"]:not(.wolf3d--panel) .wolf-bubble {
  left: auto;
  right: 82%;
  border-radius: 14px 14px 4px 14px;
}

/* home hero: thumbs-up next to the game card */
.hero-showcase {
  position: relative;
}

.hero-showcase .badge-bottom-right {
  top: 14px;
  right: 14px;
  bottom: auto;
}

.wolf3d--hero {
  right: -46px;
  bottom: 84px;
  width: 190px;
  height: 228px;
}

.wolf3d--hero .wolf-bubble {
  left: -96px;
  top: 18px;
}

/* home promo banner: points at the discount code */
.promo-action-banner {
  position: relative;
  overflow: visible;
  padding-right: 170px;
}

.wolf3d--promo {
  right: 0;
  bottom: -10px;
  width: 160px;
  height: 192px;
}

.wolf3d--promo .wolf-bubble {
  top: 10px;
  right: 82%;
  left: auto;
  white-space: nowrap;
  max-width: none;
}

/* discord call-to-action (every page): waves */
.discord-card {
  position: relative;
  overflow: visible;
}

.wolf3d--discord {
  right: 24px;
  bottom: -4px;
  width: 180px;
  height: 216px;
}

.wolf3d--discord .wolf-bubble {
  left: -70px;
}

/* panel page: points down-left at the live demo */
.panel-demo-section {
  position: relative;
}

.wolf3d--panel {
  right: max(220px, calc(50% - 640px));
  top: -128px;
  width: 140px;
  height: 168px;
}

body:has(.wolf3d--panel) .wolf3d--subhero {
  display: none;
}

.wolf3d--panel .wolf-bubble,
.wolf3d[data-thunder="point-left"].wolf3d--panel .wolf-bubble {
  left: 75%;
  right: auto;
  top: 14px;
  white-space: nowrap;
  max-width: none;
  border-radius: 14px 14px 14px 4px;
}

/* subpage heroes: waves from the right edge */
.subpage-hero-container {
  position: relative;
}

.wolf3d--subhero {
  right: -20px;
  bottom: -100px;
  width: 180px;
  height: 216px;
}

.wolf3d--subhero .wolf-bubble {
  top: -28px;
  right: -142px;
  left: auto;
  white-space: nowrap;
  border-radius: 14px 14px 14px 4px;
}

@media (max-width: 1359px) {
  .wolf3d--subhero {
    display: none;
  }
}

@media (max-width: 1240px) {
  .wolf3d--hero {
    right: -18px;
    width: 176px;
    height: 211px;
  }
}

@media (max-width: 1100px) {
  .wolf3d--discord {
    width: 160px;
    height: 192px;
    right: 0;
  }
}

@media (max-width: 991px) {
  .wolf3d--hero {
    right: -4px;
    bottom: 84px;
    width: 150px;
    height: 180px;
  }

  .wolf3d--hero .wolf-bubble {
    left: -96px;
    top: 10px;
    font-size: 0.76rem;
  }

  .promo-action-banner {
    padding-right: 24px;
    padding-bottom: 170px;
  }

  .wolf3d--promo {
    right: 50%;
    margin-right: -80px;
    width: 160px;
    height: 192px;
    bottom: -10px;
  }

  .wolf3d--promo .wolf-bubble {
    right: auto;
    left: -30px;
    top: -24px;
  }

  .wolf3d--panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .discord-card {
    padding-bottom: 200px;
  }

  .wolf3d--discord {
    right: 50%;
    margin-right: -85px;
    width: 170px;
    height: 204px;
    bottom: -4px;
  }

  .wolf3d--discord .wolf-bubble {
    left: -90px;
  }
}

@media (max-width: 480px) {
  .wolf3d--hero {
    width: 130px;
    height: 156px;
    bottom: 96px;
  }

  .wolf-bubble {
    max-width: 150px;
    font-size: 0.74rem;
  }

  .wolf3d--hero .wolf-bubble {
    left: -84px;
    top: 4px;
  }
}

/* ======================================================================
   Performance layer (overrides the rules above).
   Continuous motion uses transform/opacity only, so the GPU composites it
   without repainting; costly backdrop blurs are gone outside the navbar.
   ====================================================================== */

/* one star layer, only one tile larger than the screen, looped with transform */
.fx-stars {
  inset: auto;
  top: -280px;
  left: -360px;
  width: calc(100vw + 360px);
  height: calc(100vh + 280px);
  opacity: 0.5;
  will-change: transform;
  animation: fx-drift-tile 60s linear infinite;
}

.fx-stars--slow {
  display: none;
}

@keyframes fx-drift-tile {
  to {
    transform: translate3d(360px, 280px, 0);
  }
}

/* fixed-size glow moved by fx.js with transform (was a full-screen gradient repainted on every mouse move) */
.fx-spotlight {
  inset: auto;
  left: 0;
  top: 0;
  width: 700px;
  height: 700px;
  opacity: 1;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.07), transparent 60%);
  will-change: transform;
  transform: translate3d(-9999px, 0, 0);
}

/* hero floor grid: the inner tile slides with transform instead of animating background-position */
.fx-floor::before {
  content: none;
}

.fx-floor>i {
  position: absolute;
  inset: 0 0 -60% 0;
  transform-origin: 50% 0%;
  transform: rotateX(72deg);
  overflow: hidden;
}

.fx-floor>i::before {
  content: "";
  position: absolute;
  inset: -64px 0 0 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.32) 1px, transparent 1px);
  background-size: 64px 64px;
  will-change: transform;
  animation: fx-floor-slide 3.2s linear infinite;
}

@keyframes fx-floor-slide {
  to {
    transform: translate3d(0, 64px, 0);
  }
}

/* server room: pre-rendered strips (fx.js) slid sideways, LED blink = cross-fade of a second strip */
.fx-dc {
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.fx-dc-track {
  display: block;
  height: 100%;
  width: calc(var(--strip-ratio, 4.6) * 2 * 100%);
  /* width is set relative to height via aspect-ratio below; keep the old flex rules from applying */
  gap: 0;
}

.fx-dc-track {
  width: auto;
  aspect-ratio: calc(var(--strip-ratio, 4.6) * 2);
  will-change: transform;
}

.fx-dc-track--back {
  filter: none;
}

.fx-dc-layer {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.fx-dc-layer--blink {
  animation: fx-dc-blink 1.4s steps(2, jump-none) infinite;
  will-change: opacity;
}

@keyframes fx-dc-blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.fx-dc-beam {
  will-change: transform;
  animation-name: fx-dc-beam-t;
  left: 0;
}

@keyframes fx-dc-beam-t {
  from {
    transform: translate3d(-100%, 0, 0);
  }

  to {
    transform: translate3d(400%, 0, 0);
  }
}

.fx-dc.is-paused .fx-dc-track,
.fx-dc.is-paused .fx-dc-layer--blink,
.fx-dc.is-paused .fx-dc-beam {
  animation-play-state: paused;
}

/* headline gradient stays, but no longer re-paints text every frame */
.hero-title .gradient-text,
.subpage-heading .gradient-text {
  animation: none;
  background-size: 100% 100%;
  background-image: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
}

/* status dots: box-shadow pulses repaint; keep them static */
.status-ok .status-pulse-dot,
.badge-status-dot,
.pulse-green {
  animation: none;
}

/* cards only promote to their own layer while actually tilting */
.fx-tilt {
  will-change: auto;
}

.fx-tilt.fx-tilting {
  will-change: transform;
}

/* backdrop blur is the single most expensive effect over moving backgrounds: navbar only */
main *,
footer *,
.top-promo-bar,
.wolf-bubble,
.wolf3d,
.fx-showcase .floating-badge {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

:root {
  --th-glass: rgba(16, 36, 58, 0.9);
}

.glass-badge {
  background: rgba(8, 18, 34, 0.92);
}

.wolf-bubble {
  background: rgba(16, 36, 58, 0.97);
}

.navbar {
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

/* fixed body backgrounds force a full repaint on every scroll step */
body {
  background-attachment: scroll;
}

@media (prefers-reduced-motion: reduce) {

  .fx-stars,
  .fx-floor>i::before,
  .fx-dc-track,
  .fx-dc-layer--blink,
  .fx-dc-beam {
    animation: none !important;
  }
}