:root {
  --bg: #0c1014;
  --ink: #f2f6f8;
  --muted: #9aadb8;
  --accent: #3ec4b0;
  --accent-soft: rgba(62, 196, 176, 0.18);
  --green: #249a3c;
  --green-hi: #2fb34a;
  --red: #d62828;
  --red-hi: #ea3a3a;
  --telegram: #1e96d0;
  --telegram-hi: #2aa8e4;
  --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: "Figtree", 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: -28px;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.1);
  filter: blur(16px) saturate(0.8) brightness(0.48);
}

.bg__img--desktop {
  background-image: url("assets/bg-mobile.jpg");
}

.bg__img--mobile {
  display: none;
  background-image: url("assets/bg-mobile.jpg");
}

.bg__blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 22%, rgba(62, 196, 176, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(12, 16, 20, 0.5) 0%, rgba(12, 16, 20, 0.82) 52%, rgba(12, 16, 20, 0.96) 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.5rem;
  padding: clamp(1.25rem, 3.5vw, 2rem) 1.25rem 4rem;
}

.brand {
  text-align: center;
  max-width: min(36rem, 100%);
  animation: rise 0.9s var(--ease) both;
}

.brand__logo {
  display: block;
  width: min(100%, 19.5rem);
  height: auto;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.6));
}

.brand__name {
  margin: 0 0 0.15rem;
  font-family: "Archivo Black", "Figtree", sans-serif;
  font-size: clamp(2.1rem, 7vw, 2.85rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 2px 28px rgba(62, 196, 176, 0.28);
}

.brand__title {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--accent);
}

.brand__lede {
  margin: 0.7rem auto 0;
  max-width: 28rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.brand__lede strong {
  color: var(--accent);
  font-weight: 700;
}

/* —— CTA buttons —— */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(100%, var(--max));
}

.btn {
  --accent-btn: var(--green);
  --accent-btn-hi: var(--green-hi);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.45rem;
  padding: 0.9rem 1.15rem 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, var(--accent-btn-hi) 0%, var(--accent-btn) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.38);
  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-btn: var(--red);
  --accent-btn-hi: var(--red-hi);
}

.btn--telegram {
  --accent-btn: var(--telegram);
  --accent-btn-hi: var(--telegram-hi);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 18px 40px rgba(0, 0, 0, 0.48);
  filter: brightness(1.06);
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
}

.btn__icon svg {
  width: 100%;
  height: 100%;
}

.btn__label {
  flex: 1;
  text-align: center;
  font-size: clamp(0.8rem, 3.3vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: 1.25;
  padding-right: 1.7rem;
}

/* —— SEO block —— */
.seo {
  width: min(100%, 36rem);
  margin-top: 2.25rem;
  padding: 1.35rem 1.15rem 1.15rem;
  border: 1px solid rgba(62, 196, 176, 0.2);
  border-radius: 1rem;
  background: rgba(12, 16, 20, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: rise 1s var(--ease) 0.4s both;
}

@media (min-height: 780px) {
  .seo {
    margin-top: 3rem;
  }
}

.seo h2 {
  margin: 0 0 0.65rem;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--accent);
}

.seo p,
.seo li {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.seo p {
  margin-bottom: 0.85rem;
}

.seo ul {
  margin: 0;
  padding-left: 1.15rem;
}

.seo li + li {
  margin-top: 0.4rem;
}

.seo a {
  color: var(--accent);
  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: #7ee0d0;
  border-bottom-color: currentColor;
}

.seo strong {
  color: var(--ink);
  font-weight: 700;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1.5rem;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(154, 173, 184, 0.7);
}

@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(13px) saturate(0.85) brightness(0.45);
  }

  .brand__logo {
    width: min(100%, 17.5rem);
  }

  .seo {
    padding: 1.15rem 0.95rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .btn,
  .seo {
    animation: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
