: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-desktop.png");
}

.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%);
}

/* —— Top bar —— */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 1rem 0 0;
}

.topbar__brand {
  font-family: "Archivo Black", "Figtree", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
}

.topbar__nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible,
.topbar__nav a[aria-current="page"] {
  color: var(--accent);
}

/* —— Gate layout —— */
.gate {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2rem) 1.25rem 3rem;
}

.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;
}

.brand__lede a {
  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, blog, FAQ —— */
main {
  position: relative;
  z-index: 1;
}

.page {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.page-head {
  margin-bottom: 1.25rem;
}

.page-head h1 {
  margin: 0.2rem 0 0.7rem;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.page-head p,
.post p,
.seo p,
.seo li {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.seo {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto 1rem;
  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.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page .seo,
.post {
  width: 100%;
}

.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,
.seo ol {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.seo li + li {
  margin-top: 0.4rem;
}

.page-head a,
.page-head p {
  color: var(--muted);
}

.page-head a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-head a:hover,
.page-head a:focus-visible {
  border-bottom-color: currentColor;
}

.text-cta {
  display: inline-block;
  margin-top: 0.15rem;
  font-weight: 700;
}

.blog-intro {
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-card {
  padding: 0.95rem 0.9rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.blog-date {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
}

.blog-card p {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
}

.blog-link {
  font-size: 0.86rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.2rem 0 1rem;
}

.faq details {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.faq details[open] {
  border-color: rgba(62, 196, 176, 0.45);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.7rem 0 0.15rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  margin-bottom: 0.55rem;
}

.foot__links a {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.foot__links a:hover,
.foot__links a:focus-visible {
  color: var(--accent);
}

.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;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .btn,
  .seo {
    animation: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
