:root {
  --text: #f7fbff;
  --muted: rgba(214, 232, 255, 0.74);
  --ice: #9de8ff;
  --shadow: rgba(0, 8, 24, 0.66);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050912;
  color: var(--text);
  font-family: Bahnschrift, "Trebuchet MS", "Segoe UI", sans-serif;
}

.launch-scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  isolation: isolate;
  perspective: 1200px;
  background: #050912;
}

.scene-bg {
  position: absolute;
  inset: -3vh -3vw;
  z-index: 0;
  background-image: url("./assets/inox-platform-opens-soon-4k.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.04);
  transform: translate3d(0, 0, -40px) scale(1.045);
  transform-origin: center;
  animation: sceneDrift 18s ease-in-out infinite alternate;
}

.launch-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.18), transparent 34%, rgba(3, 8, 18, 0.46)),
    radial-gradient(circle at 50% 55%, transparent 0 34%, rgba(2, 8, 18, 0.3) 78%);
}

.launch-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mix-blend-mode: screen;
  opacity: 0.28;
}

#snowCanvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.side-links {
  position: absolute;
  right: clamp(132px, 12vw, 230px);
  top: 58%;
  z-index: 4;
  display: grid;
  gap: 22px;
  transform: translateY(-50%);
}

.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(154px, 13vw, 210px);
  min-height: 50px;
  padding: 10px 18px;
  border: 1px solid rgba(157, 232, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 19, 38, 0.18), rgba(26, 70, 104, 0.46)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: rgba(245, 251, 255, 0.96);
  box-shadow:
    0 18px 42px rgba(0, 8, 24, 0.28),
    0 0 22px rgba(90, 185, 255, 0.18),
    inset 0 0 18px rgba(157, 232, 255, 0.08);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.arrow-link::before,
.arrow-link::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
}

.arrow-link::before {
  left: calc(100% - 2px);
  width: clamp(124px, 12vw, 230px);
  height: 2px;
  background:
    linear-gradient(90deg, rgba(157, 232, 255, 0.98), rgba(157, 232, 255, 0)),
    linear-gradient(90deg, rgba(78, 175, 255, 0.68), rgba(78, 175, 255, 0));
  box-shadow:
    0 0 10px rgba(102, 204, 255, 0.82),
    0 0 24px rgba(102, 204, 255, 0.36);
}

.arrow-link::after {
  left: calc(100% + 2px);
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(210, 248, 255, 0.95);
  border-left: 2px solid rgba(210, 248, 255, 0.95);
  transform: translateY(-50%) rotate(-45deg);
  filter:
    drop-shadow(0 0 6px rgba(102, 204, 255, 0.9))
    drop-shadow(0 0 18px rgba(102, 204, 255, 0.36));
}

.arrow-link:hover,
.arrow-link:focus-visible {
  transform: translateX(-6px);
  border-color: rgba(213, 248, 255, 0.78);
  box-shadow:
    0 20px 52px rgba(0, 8, 24, 0.36),
    0 0 34px rgba(90, 185, 255, 0.34),
    inset 0 0 22px rgba(157, 232, 255, 0.14);
  outline: none;
}

.arrow-mark {
  position: absolute;
  right: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(228, 252, 255, 0.95) 0 20%, rgba(97, 200, 255, 0.42) 42%, rgba(97, 200, 255, 0) 72%);
  box-shadow:
    0 0 18px rgba(116, 218, 255, 0.72),
    0 0 38px rgba(116, 218, 255, 0.22);
  transform: translateY(-50%);
}

.arrow-link span:last-child {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 8px;
  padding-left: 4px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(157, 232, 255, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(7, 18, 35, 0.28), rgba(29, 78, 113, 0.42)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent);
  box-shadow:
    0 16px 36px rgba(0, 8, 24, 0.28),
    0 0 20px rgba(90, 185, 255, 0.14),
    inset 0 0 16px rgba(157, 232, 255, 0.08);
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(213, 248, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(0, 8, 24, 0.34),
    0 0 30px rgba(90, 185, 255, 0.28),
    inset 0 0 18px rgba(157, 232, 255, 0.14);
  outline: none;
}

.social-link img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-link-telegram img {
  width: 24px;
  height: 24px;
}

.social-link-x img {
  filter:
    invert(1)
    drop-shadow(0 0 8px rgba(157, 232, 255, 0.42));
}

.contact-link {
  position: absolute;
  right: clamp(20px, 2.2vw, 36px);
  bottom: clamp(18px, 2.3vh, 34px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(157, 232, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(5, 13, 28, 0.34), rgba(28, 72, 105, 0.32)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: rgba(246, 251, 255, 0.94);
  text-decoration: none;
  box-shadow:
    0 18px 42px rgba(0, 8, 24, 0.3),
    0 0 22px rgba(90, 185, 255, 0.12),
    inset 0 0 16px rgba(157, 232, 255, 0.06);
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(213, 248, 255, 0.62);
  box-shadow:
    0 20px 48px rgba(0, 8, 24, 0.36),
    0 0 30px rgba(90, 185, 255, 0.24),
    inset 0 0 18px rgba(157, 232, 255, 0.12);
  outline: none;
}

.contact-link span {
  color: rgba(178, 220, 246, 0.74);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-link strong {
  color: rgba(248, 252, 255, 0.96);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@keyframes sceneDrift {
  from {
    transform: translate3d(-0.45vw, -0.25vh, -40px) scale(1.045) rotateX(0.3deg);
  }

  to {
    transform: translate3d(0.45vw, 0.35vh, -40px) scale(1.058) rotateX(-0.25deg);
  }
}

@media (max-width: 720px) {
  .launch-scene {
    min-height: 100vh;
    min-height: 100svh;
  }

  .scene-bg {
    inset: -2vh -74vw;
    background-image: url("./assets/inox-platform-opens-soon-4k.png");
    background-size: cover;
    background-position: 51% 48%;
    transform: translate3d(0, 0, -40px) scale(1.015);
    animation: mobileSceneDrift 16s ease-in-out infinite alternate;
  }

  .launch-scene::before {
    background:
      linear-gradient(180deg, rgba(3, 8, 18, 0.1), transparent 32%, rgba(3, 8, 18, 0.72)),
      radial-gradient(circle at 50% 58%, transparent 0 28%, rgba(2, 8, 18, 0.42) 82%);
  }

  .side-links {
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(20px, env(safe-area-inset-bottom));
    width: min(82vw, 310px);
    transform: translateX(-50%);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .arrow-link {
    width: 100%;
    min-height: 52px;
    padding: 10px 16px;
    border-radius: 10px;
    background:
      linear-gradient(90deg, rgba(8, 19, 38, 0.5), rgba(26, 70, 104, 0.62)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent);
  }

  .arrow-link::before,
  .arrow-link::after,
  .arrow-mark {
    display: none;
  }

  .arrow-link span:last-child {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .social-links {
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 0;
  }

  .social-link {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .contact-link {
    right: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 34px;
    padding: 7px 12px;
    transform: translateX(50%);
  }

  .contact-link:hover,
  .contact-link:focus-visible {
    transform: translateX(50%) translateY(-2px);
  }

  .contact-link span {
    font-size: 9px;
  }

  .contact-link strong {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .scene-bg {
    inset: -2vh -92vw;
    background-position: 51% 48%;
  }

  .side-links {
    width: min(86vw, 300px);
    bottom: max(58px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 640px) and (max-width: 720px) {
  .side-links {
    bottom: 54px;
    gap: 8px;
  }

  .arrow-link {
    min-height: 46px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .contact-link {
    bottom: 10px;
  }
}

@keyframes mobileSceneDrift {
  from {
    transform: translate3d(-0.6vw, -0.2vh, -40px) scale(1.01);
  }

  to {
    transform: translate3d(0.6vw, 0.3vh, -40px) scale(1.025);
  }
}
