* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

:root {
  --move-x: 0deg;
  --move-y: 0deg;
  --transition: 1.5s cubic-bezier(.05, .5, 0, 1);
  --cyan: #49d9ff;
  --pink: #ff4eb8;
  --ice: #eef8ff;
  --muted: rgba(238, 248, 255, 0.78);
  --panel: rgba(3, 10, 18, 0.68);
  --line: rgba(255, 255, 255, 0.18);
}

@font-face {
  font-family: kamerik-3d;
  src: url(../fonts/kamerik205-heavy.woff2);
  font-weight: 900;
}

@font-face {
  font-family: merriweather-italic-3d;
  src: url(../fonts/merriweather-regular-italic.woff2);
}

@keyframes titleGlow {
  0% {
    color: var(--ice);
    text-shadow: 0 0 18px rgba(73, 217, 255, 0.28), 0 12px 35px rgba(0, 0, 0, 0.72);
  }

  100% {
    color: #ffd8ef;
    text-shadow: 0 0 24px rgba(255, 78, 184, 0.36), 0 12px 35px rgba(0, 0, 0, 0.72);
  }
}

html,
body {
  min-height: 100%;
}

body {
  background: #020509;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.logo {
  position: fixed;
  top: 28px;
  left: 34px;
  z-index: 20;
  width: 74px;
  height: 74px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.58));
  opacity: 0.96;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.layers {
  min-height: 100svh;
  perspective: 1000px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.layers::before,
.layers::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.layers::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(73, 217, 255, 0.18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 78, 184, 0.13), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(0deg, rgba(2, 5, 9, 0.86) 0%, rgba(2, 5, 9, 0.12) 48%, rgba(2, 5, 9, 0.52) 100%);
}

.layers::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 26%, transparent 82%);
  opacity: 0.18;
}

.layers__container {
  height: 100svh;
  min-height: 620px;
  transform-style: preserve-3d;
  transform: rotateX(var(--move-y)) rotateY(var(--move-x));
  will-change: transform;
  transition: transform var(--transition);
}

.layers__item {
  position: absolute;
  inset: -5vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-position: center;
  background-size: cover;
}

.layer-1 {
  transform: translateZ(95px) scale(0.92);
}

.layer-3 {
  z-index: 5;
  transform: translateZ(180px) scale(0.84);
  padding-left: 10vw;
  padding-right: 10vw;
}

.layer-4 {
  z-index: 6;
  transform: translateZ(190px) scale(0.92);
}

.layer-5 {
  z-index: 7;
  transform: translateZ(150px) translateY(-90px) translateX(90px) scale(0.92);
  opacity: 0.44;
  mix-blend-mode: screen;
}

.layer-6 {
  z-index: 8;
  transform: translateZ(80px);
  opacity: 0.34;
}

.hero-content {
  width: min(760px, 100%);
  margin-top: 32px;
  text-align: left;
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(73, 217, 255, 0.34);
  border-radius: 8px;
  background: rgba(6, 16, 28, 0.42);
  color: #bdefff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content h1 {
  font-family: kamerik-3d, Arial, Helvetica, sans-serif;
  color: var(--ice);
  font-size: 5.75rem;
  line-height: 0.93;
  letter-spacing: 0;
  animation: titleGlow 5s ease-in-out infinite alternate;
}

.hero-content__p {
  max-width: 690px;
  margin-top: 24px;
  color: var(--muted);
  font-family: merriweather-italic-3d, Georgia, serif;
  font-size: 1.34rem;
  line-height: 1.58;
  letter-spacing: 0;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button-start,
.button-about {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  cursor: pointer;
  font: 700 0.95rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button-start {
  background: linear-gradient(135deg, rgba(255, 78, 184, 0.92), rgba(73, 217, 255, 0.88));
  box-shadow: 0 18px 38px rgba(73, 217, 255, 0.18), 0 10px 26px rgba(255, 78, 184, 0.2);
}

.button-about {
  background: rgba(6, 16, 28, 0.58);
}

.button-start:hover,
.button-about:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 42px rgba(73, 217, 255, 0.22), 0 12px 30px rgba(255, 78, 184, 0.22);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-signals span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.46);
  color: rgba(238, 248, 255, 0.86);
  font-size: 0.86rem;
  line-height: 1;
}

.layer-4,
.layer-5,
.layer-6 {
  pointer-events: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.68);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: min(430px, calc(100vw - 32px));
  transform: translate(-50%, -50%) scale(0.96);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 15, 25, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 34px rgba(73, 217, 255, 0.14);
  color: #eef8ff;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.modal.show,
.modal-overlay.show {
  visibility: visible;
  opacity: 1;
}

.modal.show {
  transform: translate(-50%, -50%) scale(1);
}

.modal dt {
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: kamerik-3d, Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.modal dd {
  color: rgba(238, 248, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.close-btn {
  min-height: 40px;
  margin-top: 20px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #e63b92;
  color: white;
  cursor: pointer;
  font: 700 0.92rem/1 Arial, Helvetica, sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.close-btn:hover {
  background: #ff4eb8;
  box-shadow: 0 12px 28px rgba(255, 78, 184, 0.28);
  transform: translateY(-1px);
}

.telegram-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  padding: 12px;
  border-radius: 8px;
  background: #0088cc;
}

.telegram-login-button img {
  height: 20px;
  margin-right: 10px;
}

@media (max-width: 900px) {
  .logo {
    top: 18px;
    left: 18px;
    width: 58px;
    height: 58px;
  }

  .layers__container {
    min-height: 700px;
  }

  .layer-3 {
    align-items: flex-end;
    padding: 120px 28px 78px;
  }

  .layer-5,
  .layer-6 {
    opacity: 0.24;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .hero-content__p {
    font-size: 1.08rem;
    line-height: 1.52;
  }
}

@media (max-width: 560px) {
  .layers__container {
    min-height: 680px;
  }

  .layer-3 {
    padding: 112px 20px 54px;
  }

  .hero-kicker {
    font-size: 0.68rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content__p {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .button-start,
  .button-about {
    flex: 1 1 130px;
  }

  .hero-signals span {
    font-size: 0.78rem;
  }
}
