/* Two bounded, transform-only glows + animated cosmic wave ribbons + ReactVibe Ultra-Glass */
.home-vibes,
#vibeWavesCanvas,
.reactvibe-bg,
canvas#hubWavesCanvas,
.waves,
.wave {
  display: none !important;
}
body {
  isolation: isolate;
}
.home-vibes > span {
  position: absolute;
  width: min(1200px, 150vw);
  height: min(1050px, 140vw);
  border-radius: 50%;
  opacity: 0.85;
  will-change: transform;
}
.home-vibe-blue {
  top: -18%;
  left: -24%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.55), rgba(6, 182, 212, 0.22) 42%, transparent 70%);
  animation: home-blue-drift 18s ease-in-out infinite alternate;
}
.home-vibe-violet {
  right: -24%;
  bottom: -30%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.6), rgba(236, 72, 153, 0.25) 40%, transparent 70%);
  animation: home-violet-drift 22s ease-in-out infinite alternate;
}

/* ReactVibe Matrix Dot Grid & Dynamic Spotlight */
.home-vibes .dots-base {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.home-vibes .dots-spotlight {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 229, 255, 0.4) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  mask-image: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), black 0%, transparent 100%);
  pointer-events: none;
}
.home-vibes canvas#hubWavesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

/* Cosmic Animated Wave Ribbons */
.home-vibes svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  opacity: 0.65;
  overflow: visible;
  /* No drop-shadow filter here: a filtered, animated layer is re-rendered every frame (lag on tablets). */
}
.home-vibes svg path {
  fill: none;
  stroke-width: 2.2;
  will-change: transform;
}

.home-vibes svg path:nth-child(1) {
  stroke: url(#vibeGrad1);
  animation: waveMotion1 16s ease-in-out infinite alternate;
}
.home-vibes svg path:nth-child(2) {
  stroke: url(#vibeGrad2);
  animation: waveMotion2 20s ease-in-out infinite alternate;
}
.home-vibes svg path:nth-child(3) {
  stroke: url(#vibeGrad3);
  animation: waveMotion3 24s ease-in-out infinite alternate;
}

@keyframes waveMotion1 {
  0%   { transform: translate(0, 0) scaleY(1); }
  50%  { transform: translate(-40px, -22px) scaleY(1.12); }
  100% { transform: translate(30px, 14px) scaleY(0.92); }
}
@keyframes waveMotion2 {
  0%   { transform: translate(0, 0) scaleY(1); }
  50%  { transform: translate(35px, 26px) scaleY(0.88); }
  100% { transform: translate(-30px, -18px) scaleY(1.15); }
}
@keyframes waveMotion3 {
  0%   { transform: translate(0, 0) scaleY(1); }
  50%  { transform: translate(-25px, 18px) scaleY(1.08); }
  100% { transform: translate(45px, -24px) scaleY(0.95); }
}

@keyframes home-blue-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12%, 16%) scale(1.15); }
}
@keyframes home-violet-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-16%, -14%) scale(0.88); }
}

:is(html[data-anime-theme="light"], html[data-theme="light"]) .home-vibes > span {
  opacity: 0.35;
}
:is(html[data-anime-theme="light"], html[data-theme="light"]) .home-vibes svg {
  opacity: 0.25;
}

/* Motion toggles */
@media (prefers-reduced-motion: reduce) {
  .home-vibes > span,
  .home-vibes svg path {
    animation: none !important;
  }
}
html[data-motion="reduce"] .home-vibes > span,
html[data-motion="reduce"] .home-vibes svg path { animation: none !important; }
@media (max-width: 600px) {
  .home-vibes > span { opacity: 0.7; }
  .home-vibes svg { height: 45%; }
}

/* Reveal shared transparent backdrops */
html #app.shell,
.shell,
.content,
.home-page,
.home-welcome-layout {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* ReactVibe Ultra-Glass Hero */
.home-intro.reactvibe-hero {
  text-align: center;
  max-width: 980px;
  margin: 20px auto 48px;
  position: relative;
}
.hero-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
  margin-bottom: 22px;
}
.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: pulse 1.8s infinite;
}
.hero-title-gradient {
  font-size: clamp(38px, 5.2vw, 68px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -1.8px !important;
  margin: 15px 0 20px !important;
  color: #ffffff !important;
}
.hero-title-gradient em {
  font-style: normal;
  background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 35%, #818cf8 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.4));
}
.hero-subtitle-text {
  font-size: clamp(15px, 1.3vw, 18px) !important;
  line-height: 1.65 !important;
  color: rgba(240, 242, 248, 0.75) !important;
  max-width: 760px;
  margin: 0 auto 32px !important;
}
.hero-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.btn-hero-primary {
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00e5ff, #38bdf8, #818cf8);
  color: #06080e !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 35px rgba(0, 229, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 45px rgba(0, 229, 255, 0.6), 0 0 30px rgba(56, 189, 248, 0.5);
}
.btn-hero-primary .btn-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #06080e;
  color: #00e5ff;
  font-weight: 900;
}
.btn-hero-glass {
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}
.btn-hero-ghost {
  padding: 14px 24px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(240, 242, 248, 0.8) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #00e5ff, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-desc {
  font-size: 11px;
  font-weight: 600;
  color: rgba(240, 242, 248, 0.65);
  letter-spacing: 0.3px;
}
.stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
}

/* Ultra-Glass Service Cards */
.home-page .service-card {
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  background: rgba(15, 23, 42, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 28px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.home-page .service-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 229, 255, 0.25) !important;
  border-color: rgba(0, 229, 255, 0.6) !important;
}

/* Performance: the decorative glow and wave lines stop in a hidden tab */
html[data-motion-paused="true"] .home-vibes > span,
html[data-motion-paused="true"] .home-vibes svg path { animation-play-state: paused !important; }

/* Performance: animating each wave path inside the SVG repaints the whole wave picture every frame. The lines now
   stay still and the SVG layer as a whole sways (moving one composited layer is cheap); the glows drift without
   resizing. Same look, a fraction of the work. */
.home-vibes svg path { animation: none !important; will-change: auto !important; }
.home-vibes svg { width: 110% !important; left: -5% !important; will-change: transform; animation: home-wave-sway 14s ease-in-out infinite alternate; }
@keyframes home-wave-sway { from { transform: translate3d(-2.5%, 0, 0); } to { transform: translate3d(2.5%, -12px, 0); } }
@keyframes home-blue-drift { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(12%, 16%, 0); } }
@keyframes home-violet-drift { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-16%, -14%, 0); } }
html[data-motion-paused="true"] .home-vibes svg, html[data-home-motion-paused="true"] .home-vibes svg,
html[data-home-motion-paused="true"] .home-vibes > span { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .home-vibes svg { animation: none !important; } }
html[data-motion="reduce"] .home-vibes svg { animation: none !important; }
