:root {
  --bg: #0b0f12;
  --ink: #f4f1ea;
  --muted: #a8b0b6;
  --accent: #e8a45a;
  --accent-hi: #f0b978;
  --accent-soft: rgba(232, 164, 90, 0.16);
  --green: #2a9e4a;
  --green-hi: #36b358;
  --red: #c73c3c;
  --red-hi: #dc4d4d;
  --telegram: #1a8fc4;
  --telegram-hi: #27a3db;
  --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: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* —— Full-bleed blurred background —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__img {
  position: absolute;
  inset: -36px;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.14);
  filter: blur(20px) saturate(0.72) brightness(0.38);
  animation: drift 28s ease-in-out infinite alternate;
}

.bg__img--desktop {
  background-image: url("assets/bg-desktop.jpg");
}

.bg__img--mobile {
  display: none;
  background-image: url("assets/bg-mobile.jpg");
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.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 70% 48% at 50% 18%, rgba(232, 164, 90, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(11, 15, 18, 0.45) 0%, rgba(11, 15, 18, 0.82) 48%, rgba(11, 15, 18, 0.97) 100%);
}

/* —— Gate —— */
.gate {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.55rem;
  padding: clamp(1.35rem, 3.5vw, 2.1rem) 1.25rem 3.5rem;
}

.brand {
  text-align: center;
  max-width: min(38rem, 100%);
  animation: rise 0.95s var(--ease) both;
}

.brand__logo {
  display: block;
  width: min(100%, 8.75rem);
  height: auto;
  margin: 0 auto 0.85rem;
  border-radius: 1.15rem;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.65));
  animation: logo-in 1.1s var(--ease) both;
}

.brand__name {
  margin: 0;
  font-family: "Bebas Neue", "Manrope", sans-serif;
  font-size: clamp(3rem, 11vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(232, 164, 90, 0.22);
}

.brand__title {
  margin: 0.35rem 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--accent);
}

.brand__tag {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 176, 182, 0.85);
}

.brand__lede {
  margin: 0.85rem auto 0;
  max-width: 30rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.brand__lede a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.brand__lede a:hover,
.brand__lede a:focus-visible {
  color: var(--accent-hi);
  border-bottom-color: currentColor;
}

.brand__lede strong {
  color: inherit;
  font-weight: 700;
}

/* —— CTAs —— */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  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.5rem;
  padding: 0.95rem 1.2rem 0.95rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, 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.18),
    0 14px 32px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    filter 0.28s var(--ease);
  animation: rise 0.9s var(--ease) both;
}

.btn:nth-child(1) { animation-delay: 0.14s; }
.btn:nth-child(2) { animation-delay: 0.24s; }
.btn:nth-child(3) { animation-delay: 0.34s; }

.btn--register {
  --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);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 42px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0);
}

.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.78rem, 3.2vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  padding-right: 1.7rem;
}

/* —— SEO / notes —— */
.seo,
.notes {
  width: min(100%, 38rem);
  margin-top: 1.75rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(232, 164, 90, 0.22);
  animation: rise 1s var(--ease) 0.42s both;
}

.notes {
  margin-top: 1.1rem;
  animation-delay: 0.52s;
}

.seo h2,
.notes h2 {
  margin: 0 0 0.7rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--accent);
}

.seo p,
.seo li,
.notes p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.seo p {
  margin-bottom: 0.9rem;
}

.seo ul {
  margin: 0.15rem 0 0;
  padding-left: 1.15rem;
}

.seo li + li {
  margin-top: 0.45rem;
}

.seo a,
.notes 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,
.notes a:hover,
.notes a:focus-visible {
  color: var(--accent-hi);
  border-bottom-color: currentColor;
}

.seo strong,
.notes strong {
  color: var(--ink);
  font-weight: 700;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1.6rem;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(168, 176, 182, 0.65);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.14) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.18) translate3d(0, -1.5%, 0);
  }
}

@media (max-width: 720px) {
  .bg__img--desktop {
    display: none;
  }

  .bg__img--mobile {
    display: block;
    background-position: center top;
    filter: blur(15px) saturate(0.8) brightness(0.36);
  }

  .brand__logo {
    width: min(100%, 7.25rem);
  }

  .gate {
    gap: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .brand__logo,
  .btn,
  .seo,
  .notes,
  .bg__img {
    animation: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
