:root {
  --motion-cyan: #08c8ca;
  --motion-blue: #5f8295;
  --motion-line: rgba(8, 200, 202, 0.24);
  --motion-surface: rgba(7, 20, 28, 0.78);
}

body {
  isolation: isolate;
}

.laplace-dynamic {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
  color: var(--motion-cyan);
}

.laplace-dynamic__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.laplace-dynamic__svg,
.laplace-electric-pulse {
  display: none !important;
}

.laplace-dynamic__progress {
  position: absolute;
  z-index: 2;
  top: 70px;
  right: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(91, 125, 141, 0.12);
}

.laplace-dynamic__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--motion-cyan) 28%, #72e4e0);
  box-shadow: 0 0 12px rgba(8, 200, 202, 0.5);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.laplace-signal__route,
.laplace-signal__branch {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.laplace-signal__route--ghost {
  stroke: var(--motion-line);
  stroke-width: 1;
  stroke-dasharray: 3 9;
}

.laplace-signal__route--live {
  stroke: url(#laplace-signal-gradient);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(8, 200, 202, 0.36));
}

.laplace-signal__branch {
  display: none;
  stroke: rgba(8, 200, 202, 0.3);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.laplace-signal__nodes circle {
  display: none;
  fill: var(--motion-cyan);
  opacity: 0.06;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 5px rgba(8, 200, 202, 0.7));
}

.laplace-core {
  display: none;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
  filter: url(#laplace-core-glow);
}

.laplace-core__halo {
  fill: rgba(8, 200, 202, 0.08);
  stroke: rgba(8, 200, 202, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.laplace-core__shape {
  fill: rgba(8, 200, 202, 0.88);
  stroke: rgba(224, 250, 251, 0.82);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.laplace-core__shard {
  fill: rgba(95, 130, 149, 0.76);
  transform-box: fill-box;
  transform-origin: center;
}

.laplace-core__nucleus {
  fill: #e8ffff;
  filter: drop-shadow(0 0 5px var(--motion-cyan));
  transform-box: fill-box;
  transform-origin: center;
}

.laplace-core__shape,
.laplace-core__shard,
.laplace-core__halo,
.laplace-signal__nodes circle {
  transition: fill 260ms ease, stroke 260ms ease, color 260ms ease;
}

.laplace-core__targets {
  visibility: hidden;
}

.laplace-electric-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  opacity: 0.84;
  transform-origin: center;
  will-change: transform;
}

.laplace-electric-pulse__field,
.laplace-electric-pulse__ring,
.laplace-electric-pulse__nucleus {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.laplace-electric-pulse__field {
  inset: -17px;
  border: 1px solid rgba(8, 200, 202, 0.16);
  background: radial-gradient(circle, rgba(8, 200, 202, 0.14), transparent 68%);
  box-shadow: 0 0 24px rgba(8, 200, 202, 0.14);
}

.laplace-electric-pulse__ring {
  inset: 0;
  border: 1px solid rgba(8, 200, 202, 0.72);
  box-shadow:
    0 0 7px rgba(8, 200, 202, 0.44),
    inset 0 0 7px rgba(8, 200, 202, 0.18);
}

.laplace-electric-pulse__ring--outer {
  animation: laplace-electric-ring 2.6s ease-in-out infinite;
}

.laplace-electric-pulse__ring--inner {
  inset: 9px;
  border-color: rgba(222, 255, 255, 0.74);
  animation: laplace-electric-ring 2.6s 0.4s ease-in-out infinite reverse;
}

.laplace-electric-pulse__ring--outer::after {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: #eaffff;
  box-shadow: 0 0 8px 2px var(--motion-cyan);
  transform: translateX(-50%);
}

.laplace-electric-pulse__nucleus {
  inset: 18px;
  background: #edffff;
  box-shadow:
    0 0 6px 2px var(--motion-cyan),
    0 0 15px rgba(8, 200, 202, 0.7);
}

@keyframes laplace-electric-ring {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.94;
    transform: scale(1.12);
  }
}

.laplace-mouse-follower {
  position: fixed;
  z-index: 7;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-80px, -80px, 0);
  transition: opacity 220ms ease;
  will-change: transform;
}

.laplace-mouse-follower.is-visible {
  opacity: 1;
}

.laplace-mouse-follower__bolt {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px rgba(8, 200, 202, 0.3));
  overflow: visible;
  shape-rendering: geometricPrecision;
  transform: scale(1);
  transition: transform 160ms ease;
  user-select: none;
}

.laplace-mouse-follower.is-pressed .laplace-mouse-follower__bolt {
  transform: scale(0.84);
}

[data-theme="light"] .laplace-mouse-follower__bolt,
.light-mode .laplace-mouse-follower__bolt {
  mix-blend-mode: normal;
}

.laplace-dynamic__label {
  position: absolute;
  top: 48%;
  right: 3rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border-right: 1px solid rgba(8, 200, 202, 0.42);
  color: var(--motion-blue);
  font-family: var(--font-mono, monospace);
  text-align: right;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.64;
  transform: translateY(-50%);
}

.laplace-dynamic__label span {
  color: var(--motion-cyan);
  font-size: 0.62rem;
}

.laplace-dynamic__label strong {
  font-size: 0.66rem;
  font-weight: 700;
}

.laplace-dynamic.is-lape-active .laplace-dynamic__label,
.laplace-dynamic.is-contact-active .laplace-dynamic__label {
  opacity: 0.92;
}

[data-theme="light"] .laplace-dynamic,
.light-mode .laplace-dynamic {
  --motion-line: rgba(0, 142, 151, 0.2);
  --motion-blue: #496c7d;
}

[data-theme="light"] .laplace-core__shape,
.light-mode .laplace-core__shape {
  stroke: rgba(3, 62, 69, 0.72);
}

.service-card,
.platform,
.diagnostic,
.about,
.faq-item,
footer {
  position: relative;
}

.service-card__signal {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(8, 200, 202, 0.62);
  border-radius: 50%;
  background: rgba(8, 200, 202, 0.18);
  box-shadow: 0 0 0 5px rgba(8, 200, 202, 0.06);
  transform-origin: center;
}

.services.is-motion-active .service-card__signal {
  box-shadow: 0 0 0 7px rgba(8, 200, 202, 0.08), 0 0 18px rgba(8, 200, 202, 0.34);
}

.platform-motion-scan {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(8, 200, 202, 0.09), transparent);
  transform: translateX(-115%);
}

.diagnostic-motion-route {
  position: absolute;
  z-index: 0;
  inset: 8% 0;
  width: 100%;
  height: 84%;
  pointer-events: none;
  opacity: 0.5;
}

.diagnostic-motion-route path {
  fill: none;
  stroke: rgba(8, 200, 202, 0.42);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.diagnostic-motion-route__branch {
  stroke-dasharray: 5 8;
}

.identity-motion-mark {
  position: absolute;
  z-index: 0;
  top: 16%;
  right: 7%;
  width: 76px;
  height: 76px;
  pointer-events: none;
}

.identity-motion-mark i,
.identity-motion-mark b {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 38px;
  height: 1px;
  background: rgba(8, 200, 202, 0.45);
  transform-origin: left center;
}

.identity-motion-mark b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(8, 200, 202, 0.07);
}

.faq-item__signal {
  position: absolute;
  right: 3rem;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--motion-cyan), transparent 72%);
  opacity: 0;
  transform: scaleX(0.15);
  transform-origin: left center;
}

.footer-motion-signature {
  position: absolute;
  right: 2rem;
  bottom: 1rem;
  display: flex;
  gap: 4px;
  width: 52px;
}

.footer-motion-signature i {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--motion-cyan);
  transform-origin: left center;
}

html[data-motion-profile="compact"] .laplace-dynamic__label,
html[data-motion-profile="compact"] .laplace-signal__branch,
html[data-motion-profile="compact"] .laplace-signal__nodes circle:nth-child(n + 7) {
  display: none;
}

html[data-motion-profile="compact"] .laplace-dynamic__svg,
html[data-motion-profile="compact"] .laplace-electric-pulse {
  display: none;
}

html[data-motion-profile="compact"] .laplace-signal__route {
  opacity: 0.52;
}

html[data-motion-profile="reduced"] .laplace-dynamic,
html[data-motion-profile="off"] .laplace-dynamic,
html[data-motion-profile="reduced"] .service-card__signal,
html[data-motion-profile="off"] .service-card__signal,
html[data-motion-profile="reduced"] .platform-motion-scan,
html[data-motion-profile="off"] .platform-motion-scan,
html[data-motion-profile="reduced"] .diagnostic-motion-route,
html[data-motion-profile="off"] .diagnostic-motion-route,
html[data-motion-profile="reduced"] .identity-motion-mark,
html[data-motion-profile="off"] .identity-motion-mark {
  display: none !important;
}

@media (max-width: 760px) {
  .laplace-dynamic__progress {
    top: 62px;
  }

  .laplace-signal__route,
  .laplace-signal__branch {
    opacity: 0.28;
  }

  .laplace-signal__nodes {
    opacity: 0;
  }

  .laplace-core {
    display: none;
  }

  .laplace-dynamic::after {
    display: none;
  }

  .laplace-electric-pulse {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    opacity: 0.72;
  }

  .laplace-electric-pulse__field {
    inset: -9px;
  }

  .laplace-electric-pulse__ring--inner {
    inset: 6px;
  }

  .laplace-electric-pulse__nucleus {
    inset: 11px;
  }

  .service-card__signal {
    top: 0.8rem;
    right: 0.8rem;
    width: 6px;
    height: 6px;
  }

  .diagnostic-motion-route,
  .identity-motion-mark,
  .footer-motion-signature {
    display: none;
  }

  .laplace-mouse-follower {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .laplace-dynamic__label {
    display: none;
  }

  .laplace-signal__route {
    opacity: 0.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laplace-dynamic,
  .service-card__signal,
  .platform-motion-scan,
  .diagnostic-motion-route,
  .identity-motion-mark,
  .footer-motion-signature {
    display: none !important;
  }

  .laplace-electric-pulse__ring {
    animation: none;
  }

  .laplace-mouse-follower {
    display: none !important;
  }
}
