:root {
  --ink: #07110d;
  --fog: #e8f2ea;
  --mist: #9fb5a6;
  --signal: #b8ff3c;
  --signal-2: #7ad7ff;
  --line: rgba(232, 242, 234, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--fog);
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 700px at 70% 20%, rgba(55, 120, 90, 0.35), transparent 60%),
    radial-gradient(900px 600px at 10% 80%, rgba(40, 90, 120, 0.28), transparent 55%),
    linear-gradient(155deg, #050a08 0%, #0c1713 42%, #0a1218 100%);
  overflow-x: hidden;
}

#scene3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(5, 10, 8, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 10, 8, 0.25) 0%, transparent 22%, transparent 70%, rgba(5, 10, 8, 0.85) 100%);
}

.site-header,
.hero,
.features-main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 3.5rem);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--fog);
  font-size: 0.92rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-social {
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--fog);
  background: rgba(8, 16, 12, 0.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn-social .social-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-social:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.btn-telegram:hover {
  background: #2bb0e0;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(43, 176, 224, 0.35);
}

.btn-discord:hover {
  background: #7289da;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(114, 137, 218, 0.35);
}

.btn-social:active {
  transform: translateY(0) scale(0.98);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.45);
  backdrop-filter: blur(10px);
}

.lang-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 2.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.lang-btn:hover {
  color: var(--fog);
}

.lang-btn.is-active {
  background: var(--signal);
  color: var(--ink);
}

.nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--signal);
}

.hero {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) 2.5rem;
}

.hero-copy {
  max-width: 34rem;
  animation: rise 1s var(--ease) both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.6rem, 14vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-shadow:
    0 0 40px rgba(184, 255, 60, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.45);
}

.lede {
  margin: 1.2rem 0 0;
  max-width: 30rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.55;
  color: var(--mist);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.98rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn-3d {
  position: relative;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  transform-style: preserve-3d;
  perspective: 600px;
  filter: drop-shadow(0 18px 28px rgba(184, 255, 60, 0.22));
  animation: btnFloat 3.2s var(--ease) infinite;
}

.btn-3d-face {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.7rem;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8ff9a 0%, #b8ff3c 42%, #8fd820 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(40, 90, 10, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translate3d(0, -6px, 0);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    filter 0.22s var(--ease);
}

.btn-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #6aa812 0%, #3f6f08 100%);
  transform: translate3d(0, 4px, -1px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(20, 40, 12, 0.35);
  z-index: 1;
}

.btn-3d::after {
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  transform: translate3d(0, -6px, 0);
  z-index: 3;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn-3d:hover .btn-3d-face {
  transform: translate3d(0, -9px, 0) rotateX(8deg);
  filter: brightness(1.05);
}

.btn-3d:hover::after {
  transform: translate3d(0, -9px, 0);
  opacity: 0.85;
}

.btn-3d:hover {
  filter: drop-shadow(0 22px 34px rgba(184, 255, 60, 0.34));
}

.btn-3d:active .btn-3d-face {
  transform: translate3d(0, -1px, 0) rotateX(2deg);
}

.btn-3d:active::after {
  transform: translate3d(0, -1px, 0);
  opacity: 0.35;
}

.btn-3d:active {
  filter: drop-shadow(0 8px 14px rgba(184, 255, 60, 0.2));
  animation: none;
}

.btn-3d.is-loading {
  pointer-events: none;
  opacity: 0.75;
  animation: none;
}

.btn-ghost {
  background: rgba(8, 16, 12, 0.35);
  color: var(--fog);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(184, 255, 60, 0.45);
  color: var(--signal);
}

.btn-ghost:active {
  transform: translateY(1px) scale(0.98);
}

.features-main {
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
}

.features-intro {
  max-width: 36rem;
  animation: rise 0.9s var(--ease) both;
}

.features-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.feature-rail {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
  max-width: 42rem;
}

.feature-block {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.95s var(--ease) both;
}

.feature-block:nth-child(1) {
  animation-delay: 0.08s;
}
.feature-block:nth-child(2) {
  animation-delay: 0.16s;
}
.feature-block:nth-child(3) {
  animation-delay: 0.24s;
}

.feature-tag {
  display: block;
  font-family: var(--font-mono);
  color: var(--signal-2);
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}

.feature-block h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.feature-block p {
  margin: 0;
  color: var(--mist);
  line-height: 1.55;
  max-width: 28rem;
}

.guide-flow {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem 0.5rem;
  max-width: 56rem;
}

.guide-step {
  flex: 1 1 9.5rem;
  min-width: 9rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 16, 12, 0.5);
  backdrop-filter: blur(10px);
  animation: rise 0.9s var(--ease) both;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateZ(0);
}

.guide-step:nth-child(1) {
  animation-delay: 0.05s;
}
.guide-step:nth-child(3) {
  animation-delay: 0.12s;
}
.guide-step:nth-child(5) {
  animation-delay: 0.19s;
}
.guide-step:nth-child(7) {
  animation-delay: 0.26s;
}

.guide-num {
  display: block;
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.06em;
}

.guide-step h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.guide-step p {
  margin: 0;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.45;
}

.guide-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  font-size: 1.35rem;
  font-weight: 700;
  opacity: 0.85;
  list-style: none;
  padding: 0 0.15rem;
  animation: rise 0.9s var(--ease) both;
}

.guide-cta {
  margin-top: 2.25rem;
}

@media (max-width: 720px) {
  .guide-arrow {
    display: none;
  }

  .guide-flow {
    flex-direction: column;
  }

  .guide-step {
    flex: 1 1 auto;
    width: 100%;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
  color: var(--mist);
  font-size: 0.88rem;
}

.btn-back {
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fog);
  background: rgba(8, 16, 12, 0.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s var(--ease);
}

.btn-back:hover {
  color: var(--ink);
  background: var(--signal);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(184, 255, 60, 0.28);
  transform: translateY(-2px);
}

.btn-back:active {
  transform: translateY(0) scale(0.98);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: calc(100vh - 6rem);
    align-items: flex-end;
    padding-bottom: 4rem;
  }

  .brand {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .btn-social span {
    display: none;
  }

  .btn-social {
    padding: 0.55rem;
    min-width: 2.35rem;
  }
}

@media (max-width: 560px) {
  .header-right {
    gap: 0.75rem;
  }

  .nav {
    gap: 0.85rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }
}
