: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;
  --line: rgba(72, 184, 204, 0.22);
  --panel: rgba(10, 14, 16, 0.78);
  --max: 28rem;
  --content: 42rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--teal);
}

/* —— 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.82) 48%, rgba(7, 8, 9, 0.96) 100%);
}

/* —— Site header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 9, 0.72);
  border-bottom: 1px solid rgba(72, 184, 204, 0.14);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.site-header__brand img {
  display: block;
  border-radius: 0.3rem;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.85rem;
}

.site-header__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.site-header__cta {
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  background: linear-gradient(180deg, var(--green-hi), var(--green));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
  filter: brightness(1.06);
  color: #fff !important;
}

/* —— Gate / hero —— */
.gate {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3.5vw, 2.25rem) 1.25rem 3.5rem;
}

.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(2rem, 6.5vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 2px 28px rgba(72, 184, 204, 0.3);
}

.brand__lede {
  margin: 0.65rem auto 0;
  max-width: 24rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  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;
}

/* —— Content sections —— */
.content {
  position: relative;
  z-index: 1;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.block {
  margin-top: 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  animation: rise 1s var(--ease) both;
}

.block:first-child {
  border-top: none;
  padding-top: 0.5rem;
}

.block h2 {
  margin: 0 0 0.7rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--teal);
}

.block__intro {
  margin: -0.15rem 0 1rem;
}

.block p,
.block li,
.block dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.block p + p {
  margin-top: 0.85rem;
}

.block strong {
  color: var(--ink);
  font-weight: 600;
}

.block a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.block a:hover,
.block a:focus-visible {
  color: #7ad4e4;
  border-bottom-color: currentColor;
}

.steps,
.checklist {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.steps li + li,
.checklist li + li {
  margin-top: 0.65rem;
}

.paths {
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
}

.paths dt {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.paths dd {
  margin: 0;
}

.block--note p {
  font-size: 0.9rem;
  color: rgba(168, 180, 187, 0.9);
}

/* —— FAQ —— */
.faq {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.faq__item {
  border: 1px solid rgba(72, 184, 204, 0.18);
  border-radius: 0.55rem;
  background: var(--panel);
  overflow: hidden;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.05rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-right: 2.4rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 500;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item summary:hover,
.faq__item summary:focus-visible {
  color: #fff;
  outline: none;
}

.faq__item p {
  padding: 0 1.05rem 1.05rem;
  margin: 0;
  border-top: none;
}

/* —— Site footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  border-top: 1px solid rgba(72, 184, 204, 0.16);
  background: rgba(5, 6, 7, 0.88);
}

.site-footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.75rem;
}

.site-footer__brand strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--ink);
}

.site-footer__brand p {
  margin: 0.35rem 0 0;
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1.75rem;
}

.site-footer__nav h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.site-footer__nav a {
  display: block;
  width: fit-content;
  margin-top: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.site-footer__copy {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  line-height: 1.5;
  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);
  }

  .site-header__nav a:not(.site-header__cta) {
    display: none;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .site-footer__nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .btn,
  .block {
    animation: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
