:root {
  --bg: #050605;
  --lime: #c6ff3a;
  --lime-hot: #9dff00;
  --ink: #071003;
  --text: #f3f6ee;
  --muted: rgba(236, 240, 230, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
}

.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background:
    radial-gradient(ellipse 70% 26% at 50% 100%, rgba(198, 255, 58, 0.16), transparent 64%),
    radial-gradient(ellipse 46% 38% at 50% 40%, rgba(157, 255, 0, 0.07), transparent 70%),
    var(--bg);
}

.tech {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198, 255, 58, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 58, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 50% 46%, transparent 18%, #000 68%);
}

.tech-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  animation: drift 24s ease-in-out infinite;
}

.ticks {
  opacity: 0.55;
}

.nodes {
  opacity: 0.7;
}

.marks {
  opacity: 0.55;
}

.blip {
  transform-box: fill-box;
  transform-origin: center;
  animation: blip 3.8s ease-in-out infinite;
}

.blip:nth-child(2) { animation-delay: 0.6s; }
.blip:nth-child(3) { animation-delay: 1.3s; }
.blip:nth-child(4) { animation-delay: 2s; }
.blip:nth-child(5) { animation-delay: 2.6s; }
.blip:nth-child(6) { animation-delay: 1.7s; }

.bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(198, 255, 58, 0.45);
}

.bracket-tl { top: 28px; left: 28px; border-right: 0; border-bottom: 0; }
.bracket-tr { top: 28px; right: 28px; border-left: 0; border-bottom: 0; }
.bracket-bl { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.bracket-br { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }

.glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(620px, 92vw);
  height: min(620px, 92vw);
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 255, 0, 0.2) 0%, rgba(157, 255, 0, 0.05) 42%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: pulse 6.5s ease-in-out infinite;
}

.stage {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 48px));
  padding: 48px 0 56px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: min(268px, 68vw);
  margin: 0 auto 36px;
}

.orbit {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(198, 255, 58, 0.16);
  border-top-color: rgba(198, 255, 58, 0.9);
  animation: spin 16s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px dashed rgba(198, 255, 58, 0.28);
  animation: spin 30s linear infinite reverse;
}

.avatar {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  animation: avatar-pulse 5s ease-in-out infinite;
}

h1 {
  display: inline-block;
  font-family: Sora, sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-indent: 0.12em;
}

h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 14px rgba(198, 255, 58, 0.85);
  animation: line-pulse 5s ease-in-out infinite;
}

.lead {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.15vw, 22px);
  font-weight: 400;
  line-height: 1.55;
}

.lead span {
  display: block;
}

.lead span + span {
  margin-top: 8px;
}

.join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 16px 34px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(5, 6, 5, 0.72);
  color: var(--lime);
  font-family: Sora, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  box-shadow: 0 0 24px rgba(157, 255, 0, 0.16);
  animation: btn-pulse 3.4s ease-in-out infinite;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.page:hover .join,
.page:focus-visible .join {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 40px rgba(198, 255, 58, 0.42);
  animation: none;
}

.page:focus-visible {
  outline: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -58%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1.05);
  }
}

@keyframes avatar-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(198, 255, 58, 0.28),
      0 0 36px rgba(157, 255, 0, 0.2),
      0 0 90px rgba(157, 255, 0, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(198, 255, 58, 0.6),
      0 0 58px rgba(157, 255, 0, 0.4),
      0 0 130px rgba(157, 255, 0, 0.16);
  }
}

@keyframes btn-pulse {
  0%,
  100% { box-shadow: 0 0 18px rgba(157, 255, 0, 0.12); }
  50% { box-shadow: 0 0 32px rgba(198, 255, 58, 0.38); }
}

@keyframes line-pulse {
  0%,
  100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes blip {
  0%,
  100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (max-width: 640px) {
  .bracket { display: none; }

  .tech-svg { opacity: 0.28; }

  .stage {
    width: min(820px, calc(100% - 28px));
    padding: 28px 0 36px;
  }

  .avatar-wrap {
    margin-bottom: 26px;
  }

  h1::after {
    margin-top: 16px;
  }

  .lead {
    margin-top: 20px;
    font-size: 17px;
  }

  .join {
    margin-top: 28px;
    padding: 14px 22px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-svg,
  .blip,
  .glow,
  .orbit,
  .orbit::after,
  .avatar,
  h1::after,
  .join {
    animation: none;
  }
}
