: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%, 8.5rem);
  height: auto;
  margin: 0 auto 0.35rem;
  border-radius: 0.75rem;
  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:nth-child(4) { animation-delay: 0.42s; }

.btn--private {
  --accent: var(--red);
  --accent-hi: var(--red-hi);
}

.btn--telegram {
  --accent: var(--telegram);
  --accent-hi: var(--telegram-hi);
}

.btn--recover {
  --accent: var(--teal-deep);
  --accent-hi: var(--teal);
}

.btn--register {
  --accent: #6741d9;
  --accent-hi: #7c5cff;
}

.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%, 7.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .btn,
  .seo {
    animation: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}


/* =========================================================
   INTERNAL PAGES
   ========================================================= */

.page {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 70px;
}

.page__header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.page__eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page__title {
  margin: 0;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(72, 184, 204, 0.2);
}

.page__intro {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}


/* —— Internal page content —— */

.content {
  width: min(100%, 760px);
  margin: 0 auto;
}

.content section {
  margin-bottom: 2.5rem;
}

.content h2 {
  margin: 0 0 0.8rem;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--teal);
}

.content h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.content p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.content p:last-child {
  margin-bottom: 0;
}

.content a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.content a:hover,
.content a:focus-visible {
  color: #7ad4e4;
  text-decoration: underline;
}


/* —— Content cards —— */

.content__card {
  margin-bottom: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(72, 184, 204, 0.14);
  border-radius: 0.7rem;
  background: rgba(7, 8, 9, 0.62);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.content__card:hover {
  border-color: rgba(72, 184, 204, 0.24);
}


/* —— Button inside internal pages —— */

.content__card > .btn {
  width: min(100%, 28rem);
  margin-top: 1.25rem;
}


/* —— Back to homepage —— */

.back-home {
  display: block;
  width: fit-content;
  margin: 2.5rem auto 0;
  color: rgba(168, 180, 187, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-home:hover,
.back-home:focus-visible {
  color: var(--ink);
}


/* =========================================================
   INTERNAL PAGE FOOTER
   ========================================================= */

.page + .foot {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem 1rem 0.7rem;
  text-align: center;
  background: rgba(5, 6, 7, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.foot__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  max-width: 1100px;
  margin: 0 auto;
}

.foot__nav a {
  color: rgba(168, 180, 187, 0.78);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot__nav a:hover,
.foot__nav a:focus-visible {
  color: var(--ink);
}

.foot__nav .foot__top {
  color: rgba(168, 180, 187, 0.65);
  font-size: 1rem;
  line-height: 1;
}

.foot__copyright {
  margin: 0.65rem 0 0 !important;
  color: rgba(168, 180, 187, 0.55) !important;
  font-size: 0.7rem !important;
}

.heart {
  color: #ff3b81;
}


/* =========================================================
   INTERNAL PAGES — DO NOT AFFECT HOMEPAGE
   ========================================================= */

.page {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 32px));
  min-height: auto;
  margin: 0 auto;
  padding: 60px 0 70px;
}

.page__header {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.page__eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page__title {
  margin: 0;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--ink);
}

.page__intro {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}


/* Internal content */

.content {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.content section {
  margin: 0 0 2.5rem;
}

.content h2 {
  margin: 0 0 0.8rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--teal);
}

.content h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.content p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.content a:not(.btn) {
  color: var(--teal);
  text-decoration: none;
}

.content a:not(.btn):hover {
  color: #7ad4e4;
  text-decoration: underline;
}


/* Cards */

.content__card {
  width: 100%;
  margin-bottom: 1rem;
  padding: 1.5rem;
  background: rgba(7, 8, 9, 0.72);
  border: 1px solid rgba(72, 184, 204, 0.16);
  border-radius: 0.7rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}


/* IMPORTANT:
   Internal-page buttons are constrained.
   This does NOT change homepage buttons.
*/

.page .content__card > .btn {
  width: min(100%, 28rem);
  min-height: 3.4rem;
  margin-top: 1.25rem;
}


/* Back link */

.back-home {
  display: block;
  width: fit-content;
  margin: 2.5rem auto 0;
  color: rgba(168, 180, 187, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.back-home:hover {
  color: var(--ink);
}


/* Internal footer */

.page + .foot {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem 1rem 0.7rem;
  text-align: center;
  background: rgba(5, 6, 7, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.foot__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  max-width: 1100px;
  margin: 0 auto;
}

.foot__nav a {
  color: rgba(168, 180, 187, 0.78);
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
}

.foot__nav a:hover {
  color: var(--ink);
}

.foot__copyright {
  margin: 0.65rem 0 0 !important;
  color: rgba(168, 180, 187, 0.55) !important;
  font-size: 0.7rem !important;
}

.heart {
  color: #ff3b81;
}


@media (max-width: 720px) {

  .page {
    width: calc(100% - 28px);
    padding: 40px 0 50px;
  }

  .page__header {
    margin-bottom: 32px;
  }

  .page__title {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .page__intro {
    font-size: 0.9rem;
  }

  .content__card {
    padding: 1.15rem;
  }

  .foot__nav {
    gap: 0.5rem 1rem;
  }

}


/* =========================================================
   VERIFICATION LOADING GATE
   ========================================================= */

.verify {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #1c1c1c;
}

.verify .bg {
  display: none;
}

.verify-card {
  width: min(100%, 22.75rem);
  padding: 1.15rem 1.35rem 1.25rem;
  text-align: center;
  background: #2b2d2f;
  border: 1px solid rgba(72, 184, 204, 0.42);
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.verify-card__logo {
  display: block;
  width: min(100%, 11.75rem);
  height: auto;
  margin: 0 auto 0.7rem;
}

.verify-card__text {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.verify-spinner {
  width: 1.85rem;
  height: 1.85rem;
  margin: 0.85rem auto 0.15rem;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 18%,
    #fff 42%,
    rgba(255, 255, 255, 0.35) 68%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 60%);
          mask: radial-gradient(farthest-side, transparent 58%, #000 60%);
  animation: verify-spin 0.75s linear infinite;
}

@keyframes verify-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .verify-spinner {
    animation: none;
  }
}


/* =========================================================
   RECOVER / AUTH CARD (mockup — non-functional)
   ========================================================= */

.auth {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem 3rem;
}

.auth-card {
  position: relative;
  width: min(100%, 25.5rem);
  padding: 2.15rem 1.85rem 1.9rem;
  text-align: center;
  background: rgba(12, 14, 16, 0.74);
  border: 1px solid rgba(72, 184, 204, 0.22);
  border-radius: 1.1rem;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: rise 0.75s var(--ease) both;
}

.auth-card__badge {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow:
    0 10px 24px rgba(42, 143, 160, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-card__badge svg {
  width: 1.7rem;
  height: 1.7rem;
}

.auth-card__title {
  margin: 0;
  font-family: "Bebas Neue", "Outfit", sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
}

.auth-card__sub {
  margin: 0.6rem auto 0;
  max-width: 20rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffcf9c;
  background: rgba(224, 122, 25, 0.1);
  border: 1px solid rgba(255, 180, 100, 0.32);
  border-radius: 0.6rem;
}

.auth-note svg {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
}

.auth-form {
  margin: 1.35rem 0 0;
  text-align: left;
}

.auth-form__group + .auth-form__group {
  margin-top: 0.9rem;
}

.auth-form__label {
  display: block;
  margin: 0 0 0.4rem;
  color: #d6dde1;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-field {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__icon {
  position: absolute;
  left: 0.85rem;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted);
  pointer-events: none;
}

.auth-field__icon svg {
  width: 100%;
  height: 100%;
}

.auth-form__input {
  width: 100%;
  padding: 0.85rem 0.95rem 0.85rem 2.75rem;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  background: rgba(31, 34, 36, 0.9);
  border: 1px solid rgba(72, 184, 204, 0.3);
  border-radius: 0.65rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form__input::placeholder {
  color: rgba(168, 180, 187, 0.6);
}

.auth-form__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(72, 184, 204, 0.18);
}

.auth-form__submit {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1.15rem;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  border: none;
  border-radius: 0.65rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 28px rgba(0, 0, 0, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.auth-form__submit:hover,
.auth-form__submit:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-2px);
  outline: none;
}

.auth-form__submit:active {
  transform: translateY(0);
}

.auth-card__foot {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-card__foot a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.auth-card__foot a:hover,
.auth-card__foot a:focus-visible {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }
}