:root {
  --bg: #070809;
  --ink: #f4f7f8;
  --muted: #a8b4bb;
  --teal: #48b8cc;
  --teal-deep: #2a8fa0;
  --green: #2f9e44;
  --green-hi: #3bb554;
  --red: #e03131;
  --red-hi: #f03e3e;
  --telegram: #229ed9;
  --telegram-hi: #2eb0ef;
  --max: 28rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* —— Blurred forum background —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__img {
  position: absolute;
  inset: -24px;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  filter: blur(14px) saturate(0.85) brightness(0.55);
}

.bg__img--desktop {
  background-image: url("assets/bg-desktop.png");
}

.bg__img--mobile {
  display: none;
  background-image: url("assets/bg-mobile.jpg");
}

.bg__blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 28%, rgba(7, 8, 9, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.55) 0%, rgba(7, 8, 9, 0.78) 48%, rgba(7, 8, 9, 0.92) 100%);
}

/* —— Gate layout —— */
.gate {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: clamp(1.25rem, 3.5vw, 2rem) 1.25rem 4rem;
}

.brand {
  text-align: center;
  max-width: min(34rem, 100%);
  animation: rise 0.9s var(--ease) both;
}

.brand__logo {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.brand__title {
  margin: 0;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: clamp(1.85rem, 6vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(72, 184, 204, 0.25);
}

.brand__lede {
  margin: 0.55rem auto 0;
  max-width: 26rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.brand__lede strong {
  color: var(--teal);
  font-weight: 600;
}

/* —— CTA buttons —— */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(100%, var(--max));
}

.btn {
  --accent: var(--green);
  --accent-hi: var(--green-hi);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.1rem 0.85rem 0.95rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    filter 0.28s var(--ease);
  animation: rise 0.85s var(--ease) both;
}

.btn:nth-child(1) { animation-delay: 0.12s; }
.btn:nth-child(2) { animation-delay: 0.22s; }
.btn:nth-child(3) { animation-delay: 0.32s; }

.btn--private {
  --accent: var(--red);
  --accent-hi: var(--red-hi);
}

.btn--telegram {
  --accent: var(--telegram);
  --accent-hi: var(--telegram-hi);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 36px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
}

.btn__icon svg {
  width: 100%;
  height: 100%;
}

.btn__label {
  flex: 1;
  text-align: center;
  font-size: clamp(0.82rem, 3.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  padding-right: 1.65rem;
}

/* —— SEO block (below fold on short screens) —— */
.seo {
  width: min(100%, 36rem);
  margin-top: 2.5rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(72, 184, 204, 0.22);
  animation: rise 1s var(--ease) 0.4s both;
}

@media (min-height: 780px) {
  .seo {
    margin-top: 3.25rem;
  }
}

.seo h2 {
  margin: 0 0 0.55rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--teal);
}

.seo p,
.seo li {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.seo p {
  margin-bottom: 0.75rem;
}

.seo ul {
  margin: 0;
  padding-left: 1.15rem;
}

.seo li + li {
  margin-top: 0.35rem;
}

.seo a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.seo a:hover,
.seo a:focus-visible {
  color: #7ad4e4;
  border-bottom-color: currentColor;
}

.seo strong {
  color: var(--ink);
  font-weight: 600;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1.5rem;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(168, 180, 187, 0.65);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .bg__img--desktop {
    display: none;
  }

  .bg__img--mobile {
    display: block;
    filter: blur(12px) saturate(0.9) brightness(0.5);
  }

  .brand__logo {
    width: min(100%, 18rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .btn,
  .seo {
    animation: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
