:root {
  --bg: #06111c;
  --bg-2: #0b1b2d;
  --card: rgba(12, 22, 39, 0.86);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f4f6fb;
  --muted: #9daac0;
  --gold: #d7aa3c;
  --gold-bright: #ffe3a1;
  --telegram: #2ea7e0;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
  --page-gradient:
    radial-gradient(circle at 20% 18%, rgba(34, 158, 217, 0.18), transparent 0 18%),
    radial-gradient(circle at 82% 12%, rgba(215, 170, 60, 0.14), transparent 0 14%),
    radial-gradient(circle at 50% 82%, rgba(23, 125, 178, 0.16), transparent 0 22%),
    linear-gradient(180deg, #04101a 0%, var(--bg) 42%, var(--bg-2) 100%);
  --ambient-a: radial-gradient(circle, rgba(215, 170, 60, 0.34), transparent 68%);
  --ambient-b: radial-gradient(circle, rgba(46, 167, 224, 0.28), transparent 70%);
  --ambient-c: radial-gradient(circle, rgba(102, 214, 255, 0.16), transparent 64%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--page-gradient);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.08"><defs><style>.doodle { stroke: white; stroke-width: 1.5; fill: none; }</style></defs><circle class="doodle" cx="40" cy="30" r="8"/><path class="doodle" d="M 80 20 Q 85 35 80 50"/><path class="doodle" d="M 120 15 L 135 40 L 120 50"/><circle class="doodle" cx="160" cy="35" r="6"/><path class="doodle" d="M 20 80 L 40 85 L 35 100"/><rect class="doodle" x="70" y="75" width="15" height="20" transform="rotate(-15 77 85)"/><circle class="doodle" cx="150" cy="90" r="10"/><path class="doodle" d="M 30 140 Q 35 150 40 140"/><path class="doodle" d="M 90 130 L 110 145 L 100 150"/><circle class="doodle" cx="160" cy="145" r="7"/><path class="doodle" d="M 50 170 L 70 175 L 60 185"/></svg>'),
    repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255,255,255,0.02) 100px, rgba(255,255,255,0.02) 200px);
  background-size: 200px 200px, 100%;
  opacity: 0.3;
}

@supports (background-blend-mode: multiply) {
  body::before {
    background-blend-mode: multiply;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.04), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-one {
  top: 8%;
  left: -110px;
  background: var(--ambient-a);
}

.ambient-two {
  right: -100px;
  bottom: 8%;
  background: var(--ambient-b);
  animation-delay: -7s;
}

.ambient-three {
  top: 38%;
  left: 42%;
  width: 460px;
  height: 460px;
  background: var(--ambient-c);
  opacity: 0.26;
  animation-delay: -10s;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 42vh;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
  z-index: -1;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0 54%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: -1;
}

.join-card {
  width: min(100%, 420px);
  padding: 30px 28px 26px;
  border-radius: 34px;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(24, 29, 40, 0.95), var(--card));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    var(--shadow);
  backdrop-filter: blur(28px) saturate(140%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.join-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(34, 158, 217, 0.16), transparent 34%);
  opacity: 0.9;
  pointer-events: none;
}

.join-card::before,
.join-card::after,
.ambient,
body::before,
body::after {
  transform: translateZ(0);
}

.join-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding: 1px;
  box-sizing: border-box;
}

.page-logo {
  width: 124px;
  height: 124px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 10px rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 1;
}

.join-button__icon svg {
  width: 22px;
  height: 22px;
}

.join-card h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
}

.description {
  display: grid;
  gap: 6px;
  margin-top: -2px;
}

.description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.description-note {
  color: var(--text);
  margin-top: 2px !important;
}

.join-button {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #52c0ff, #229ed9 52%, #177db2);
  box-shadow:
    0 18px 40px rgba(34, 158, 217, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  position: relative;
  overflow: hidden;
}

.join-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 18%, transparent 36%);
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.join-button:hover::before {
  transform: translateX(120%);
}

.join-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow:
    0 22px 44px rgba(34, 158, 217, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.join-button__icon {
  display: inline-flex;
}

.footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f0f5fd;
    --bg-2: #e5ecf7;
    --card: rgba(255, 255, 255, 0.95);
    --card-border: rgba(46, 122, 204, 0.12);
    --text: #0d1117;
    --muted: #5a6d7d;
    --page-gradient:
      radial-gradient(circle at 18% 16%, rgba(46, 167, 224, 0.08), transparent 0 16%),
      radial-gradient(circle at 82% 14%, rgba(215, 170, 60, 0.06), transparent 0 14%),
      radial-gradient(circle at 52% 80%, rgba(102, 214, 255, 0.07), transparent 0 20%),
      linear-gradient(180deg, #f9fbfe 0%, var(--bg) 50%, var(--bg-2) 100%);
    --ambient-a: radial-gradient(circle, rgba(215, 170, 60, 0.1), transparent 68%);
    --ambient-b: radial-gradient(circle, rgba(46, 167, 224, 0.1), transparent 70%);
    --ambient-c: radial-gradient(circle, rgba(102, 214, 255, 0.06), transparent 64%);
    --shadow: 0 24px 60px rgba(17, 30, 48, 0.1);
  }

  body {
    color: var(--text);
  }

  body::before {
    opacity: 0.15;
  }

  body::after {
    background:
      radial-gradient(circle at 50% 20%, rgba(17, 30, 48, 0.03), transparent 24%),
      linear-gradient(135deg, transparent 40%, rgba(17, 30, 48, 0.02), transparent 60%);
    mix-blend-mode: darken;
    opacity: 0.35;
  }

  .join-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--card));
    box-shadow:
      0 18px 40px rgba(17, 30, 48, 0.08),
      0 0 0 1px rgba(46, 122, 204, 0.08) inset;
    border-color: rgba(46, 122, 204, 0.15);
  }

  .join-card::before {
    background:
      radial-gradient(circle at top, rgba(46, 122, 204, 0.12), transparent 32%),
      radial-gradient(circle at bottom left, rgba(34, 158, 217, 0.08), transparent 34%);
  }

  .page-logo {
    background: rgba(17, 30, 48, 0.02);
    border-color: rgba(46, 122, 204, 0.1);
  }

  .join-button {
    background: linear-gradient(135deg, #4db8f7, #1e96d2 52%, #157ab8);
    box-shadow:
      0 16px 32px rgba(30, 150, 210, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .join-button:hover {
    box-shadow:
      0 20px 40px rgba(30, 150, 210, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .description p {
    color: #2a3f5f;
  }

  .description-note {
    color: #5a6d7d;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .join-button::before {
    animation: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 16px;
  }

  .join-card {
    padding: 24px 18px 22px;
    border-radius: 28px;
  }

  .page-logo {
    width: 104px;
    height: 104px;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -18px, 0) scale(1.04);
  }
}