:root {
  --bg: #02070d;
  --ink: #f7fbff;
  --soft: rgba(226, 237, 248, 0.78);
  --muted: rgba(205, 220, 236, 0.64);
  --blue: #78b9ff;
  --blue-strong: #9fd1ff;
  --gold: #f5c377;
  --line: rgba(161, 205, 255, 0.24);
  --mx: 0;
  --my: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

img,
canvas {
  display: block;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 66% 30%, rgba(61, 118, 172, 0.3), transparent 32%),
    #02070d;
}

.background {
  position: absolute;
  inset: 0;
  z-index: -8;
  background-image: url("images/1.png");
  background-position: center center;
  background-size: cover;
  transform: translate3d(calc(var(--mx) * -7px), calc(var(--my) * -5px), 0) scale(1.035);
  filter: saturate(1.05) contrast(1.05);
  transition: transform 260ms ease-out;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(0, 3, 8, 0.94) 0%, rgba(0, 6, 14, 0.74) 29%, transparent 58%),
    linear-gradient(180deg, rgba(0, 5, 10, 0.18), rgba(0, 2, 7, 0.48));
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: auto -8% -12% -8%;
  height: 34%;
  z-index: -2;
  background: radial-gradient(ellipse at center, rgba(91, 180, 255, 0.26), transparent 58%);
  filter: blur(20px);
  animation: floorPulse 5.8s ease-in-out infinite;
  pointer-events: none;
}

.particle-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.82;
}

.light-beam {
  position: absolute;
  inset: -12% 23% 48% 40%;
  z-index: -3;
  background:
    linear-gradient(95deg, transparent 0 24%, rgba(205, 232, 255, 0.18) 34%, transparent 44% 100%),
    linear-gradient(103deg, transparent 0 40%, rgba(125, 195, 255, 0.16) 49%, transparent 59% 100%),
    linear-gradient(86deg, transparent 0 48%, rgba(233, 246, 255, 0.2) 55%, transparent 63% 100%);
  filter: blur(5px);
  opacity: 0.8;
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0);
  animation: beamShift 7.4s ease-in-out infinite;
  pointer-events: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(180deg, transparent 0, rgba(123, 193, 255, 0.055) 49%, transparent 51%) 0 0 / 100% 7px,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  mix-blend-mode: screen;
  opacity: 0.34;
  pointer-events: none;
  animation: scanDrift 9s linear infinite;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    radial-gradient(circle at 65% 39%, transparent 0 27%, rgba(0, 4, 9, 0.12) 52%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 41%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.content-panel {
  position: absolute;
  left: 6.7%;
  top: 17.2%;
  z-index: 8;
  width: min(49rem, 51vw);
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 8px), 0);
  transition: transform 220ms ease-out;
}

.domain {
  margin: 0;
  font-weight: 800;
  font-size: 5.9rem;
  line-height: 0.92;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 18px rgba(136, 194, 255, 0.28), 0 8px 28px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.domain span {
  background: linear-gradient(180deg, #ffffff 0%, #e6edf7 42%, #9aaabe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.domain strong {
  font-weight: 800;
  background: linear-gradient(180deg, #7ea7eb 0%, #4267a9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule {
  position: relative;
  width: min(18rem, 58%);
  height: 1px;
  margin: 2.25rem 0 2.25rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.05));
}

.rule::before,
.rule span {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #fff3cb;
  box-shadow: 0 0 10px 3px rgba(245, 195, 119, 0.64), 0 0 24px rgba(116, 181, 255, 0.38);
  transform: translateY(-50%);
}

.rule::before {
  right: 0;
  animation: pulsePoint 3.6s ease-in-out infinite;
}

.rule span {
  left: 48%;
  animation: slidePoint 4.8s ease-in-out infinite;
}

h1 {
  max-width: 49rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.18rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.82), 0 0 22px rgba(151, 200, 255, 0.17);
}

.lead {
  max-width: 34.5rem;
  margin: 2rem 0 0;
  color: var(--soft);
  font-size: 1.52rem;
  font-weight: 300;
  line-height: 1.42;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.signal-list {
  position: absolute;
  right: 5.1%;
  top: 22.6%;
  z-index: 8;
  display: grid;
  gap: 2.35rem;
  width: 18rem;
  transform: translate3d(calc(var(--mx) * -9px), calc(var(--my) * 7px), 0);
  transition: transform 220ms ease-out;
}

.signal {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 5rem;
}

.signal::after {
  content: "";
  position: absolute;
  left: 3.2rem;
  right: 0;
  bottom: -0.8rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(145, 197, 255, 0.16), rgba(245, 195, 119, 0.46), rgba(145, 197, 255, 0));
}

.signal::before {
  content: "";
  position: absolute;
  left: 63%;
  bottom: -0.95rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #ffe0a0;
  box-shadow: 0 0 14px 3px rgba(245, 195, 119, 0.68);
  animation: pulsePoint 3.8s ease-in-out infinite;
}

.signal img {
  width: 3.35rem;
  height: 3.35rem;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.8;
  filter: drop-shadow(0 0 9px rgba(129, 198, 255, 0.76));
}

.signal p {
  margin: 0;
  color: rgba(232, 241, 252, 0.9);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.74);
}

.base-caption {
  position: absolute;
  left: 62.4%;
  bottom: 12.5%;
  z-index: 8;
  width: 22rem;
  margin: 0;
  transform: translateX(-50%);
  color: #9fd1ff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.27rem;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 11px rgba(116, 190, 255, 0.78), 0 0 28px rgba(116, 190, 255, 0.42);
  animation: captionGlow 4.4s ease-in-out infinite;
}

.holo {
  position: absolute;
  z-index: 3;
  width: 6.2rem;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.66;
  filter: drop-shadow(0 0 13px rgba(126, 199, 255, 0.8));
  pointer-events: none;
  animation: holoFloat 6.5s ease-in-out infinite;
}

.holo-book {
  left: 49.4%;
  top: 13.5%;
  width: 5.6rem;
  animation-delay: -1.2s;
}

.holo-globe {
  right: 20.7%;
  top: 17.2%;
  width: 5.3rem;
  animation-delay: -2.8s;
}

.holo-cap {
  left: 49%;
  top: 39%;
  width: 5.9rem;
  animation-delay: -3.7s;
}

.holo-code {
  right: 21.8%;
  top: 34.5%;
  width: 5.2rem;
  animation-delay: -0.4s;
}

.holo-network {
  right: 18.7%;
  bottom: 26.1%;
  width: 5.4rem;
  animation-delay: -4.4s;
}

.tower-emblem {
  position: absolute;
  left: 62.7%;
  top: 21.2%;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  width: 4.7rem;
  transform: translate(-50%, -50%) translate3d(calc(var(--mx) * -5px), calc(var(--my) * -4px), 0);
  color: rgba(196, 225, 255, 0.96);
  text-transform: uppercase;
  pointer-events: none;
  animation: emblemPulse 4.6s ease-in-out infinite;
}

.tower-emblem img {
  width: 4rem;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 13px rgba(127, 201, 255, 0.95));
  opacity: 0.88;
}

.tower-emblem span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.17rem;
  text-shadow: 0 0 10px rgba(127, 201, 255, 0.86);
}

.formula {
  position: absolute;
  right: 22.3%;
  top: 35.3%;
  z-index: 4;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-style: italic;
  color: rgba(198, 226, 255, 0.92);
  text-shadow: 0 0 15px rgba(130, 200, 255, 0.72), 0 0 34px rgba(130, 200, 255, 0.34);
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -5px), 0);
  pointer-events: none;
  animation: formulaDrift 5.7s ease-in-out infinite;
}

.formula sup {
  font-size: 0.55em;
}

@keyframes floorPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleX(0.94);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.04);
  }
}

@keyframes beamShift {
  0%,
  100% {
    opacity: 0.64;
    transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0) skewX(-3deg);
  }
  50% {
    opacity: 0.92;
    transform: translate3d(calc(var(--mx) * 10px + 1.1rem), calc(var(--my) * 8px), 0) skewX(2deg);
  }
}

@keyframes scanDrift {
  from {
    background-position: 0 0, -100vw 0;
  }
  to {
    background-position: 0 120px, 100vw 0;
  }
}

@keyframes pulsePoint {
  0%,
  100% {
    opacity: 0.62;
    transform: translateY(-50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.18);
  }
}

@keyframes slidePoint {
  0%,
  100% {
    opacity: 0.38;
    transform: translate(-5rem, -50%) scale(0.72);
  }
  50% {
    opacity: 1;
    transform: translate(3.6rem, -50%) scale(1);
  }
}

@keyframes captionGlow {
  0%,
  100% {
    opacity: 0.66;
  }
  50% {
    opacity: 1;
  }
}

@keyframes holoFloat {
  0%,
  100% {
    opacity: 0.48;
    transform: translate3d(calc(var(--mx) * 9px), calc(var(--my) * 7px), 0) scale(0.96);
  }
  50% {
    opacity: 0.82;
    transform: translate3d(calc(var(--mx) * 9px), calc(var(--my) * 7px - 0.8rem), 0) scale(1.03);
  }
}

@keyframes emblemPulse {
  0%,
  100% {
    opacity: 0.62;
    filter: brightness(0.95);
  }
  50% {
    opacity: 0.98;
    filter: brightness(1.18);
  }
}

@keyframes formulaDrift {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.92;
  }
}

@media (max-width: 1380px) {
  .content-panel {
    left: 5.5%;
    width: min(39rem, 48vw);
  }

  .domain {
    font-size: 4.95rem;
  }

  h1 {
    font-size: 3.05rem;
  }

  .lead {
    font-size: 1.32rem;
  }

  .signal-list {
    right: 3.4%;
    width: 16rem;
  }

  .signal p {
    font-size: 0.92rem;
  }
}

@media (max-width: 1080px) {
  .stage::before {
    background:
      linear-gradient(90deg, rgba(0, 3, 8, 0.94) 0%, rgba(0, 6, 14, 0.7) 45%, transparent 78%),
      linear-gradient(180deg, rgba(0, 5, 10, 0.28), rgba(0, 2, 7, 0.84));
  }

  .content-panel {
    top: 15%;
    width: min(36rem, 56vw);
  }

  .domain {
    font-size: 4.2rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .lead {
    max-width: 31rem;
    font-size: 1.17rem;
  }

  .signal-list {
    top: auto;
    right: 4%;
    bottom: 14%;
    gap: 1rem;
    width: 14rem;
  }

  .signal {
    min-height: 3.7rem;
    grid-template-columns: 2.7rem 1fr;
  }

  .signal img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .signal p {
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.12rem;
  }
}

@media (max-width: 780px) {
  .background {
    background-position: 61% center;
    transform: translate3d(calc(var(--mx) * -5px), calc(var(--my) * -4px), 0) scale(1.08);
  }

  .stage::before {
    background:
      linear-gradient(180deg, rgba(0, 3, 8, 0.88) 0%, rgba(0, 6, 14, 0.72) 55%, rgba(0, 2, 7, 0.44) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 68%);
  }

  .content-panel {
    left: 1.25rem;
    right: 1.25rem;
    top: 12%;
    width: auto;
  }

  .domain {
    font-size: 3.45rem;
  }

  .rule {
    margin: 1.45rem 0 1.5rem;
  }

  h1 {
    max-width: 31rem;
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .lead {
    max-width: 27rem;
    margin-top: 1.35rem;
    font-size: 1.05rem;
  }

  .signal-list {
    display: none;
  }

  .base-caption {
    left: 50%;
    bottom: 5.3%;
    width: 18rem;
    font-size: 0.72rem;
    letter-spacing: 0.19rem;
  }

  .holo {
    opacity: 0.58;
  }

  .holo-book,
  .holo-cap,
  .tower-emblem,
  .formula {
    display: none;
  }
}

@media (max-width: 520px) {
  .content-panel {
    left: 1rem;
    right: 1rem;
    top: 9.5%;
    width: min(21rem, calc(100vw - 2rem));
  }

  .domain {
    font-size: 2.45rem;
  }

  .desktop-break {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: 1.72rem;
  }

  .lead {
    max-width: 20rem;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .base-caption {
    width: min(13rem, calc(100vw - 2rem));
    font-size: 0.64rem;
    line-height: 1.65;
    letter-spacing: 0.13rem;
  }
}

@media (max-width: 360px) {
  .content-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .domain {
    font-size: 2.1rem;
  }

  h1 {
    font-size: 1.52rem;
  }

  .lead {
    max-width: 100%;
    font-size: 0.82rem;
  }

  .base-caption {
    width: 12.5rem;
    font-size: 0.6rem;
  }
}

@media (max-height: 760px) {
  .content-panel {
    top: 10.5%;
  }

  .domain {
    font-size: 4.45rem;
  }

  .rule {
    margin: 1.55rem 0 1.65rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  .lead {
    margin-top: 1.35rem;
    font-size: 1.13rem;
  }

  .base-caption {
    bottom: 8.2%;
  }
}

@media (max-height: 620px) {
  .signal-list,
  .base-caption {
    display: none;
  }

  .content-panel {
    top: 13%;
  }

  .domain {
    font-size: 3.7rem;
  }

  h1 {
    max-width: 34rem;
    font-size: 2.25rem;
  }
}

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

  .background,
  .content-panel,
  .signal-list,
  .light-beam {
    transition: none;
    transform: none;
  }
}
