:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --gold: #efbf04;
  --gold-light: #ffd83d;
  --ink: #070806;
  --text: #f8f8f2;
  --muted: #a7a79e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -16%, rgba(239, 191, 4, 0.12), transparent 34rem),
    linear-gradient(180deg, #090a08 0%, #050605 100%);
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(239, 191, 4, 0.08);
  filter: blur(110px);
}

.glow--top {
  top: -20rem;
  left: calc(50% - 14rem);
}

.glow--bottom {
  right: -18rem;
  bottom: -21rem;
}

.word-reveal {
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  contain: strict;
  -webkit-mask-image: radial-gradient(
    circle 95px at var(--mouse-x) var(--mouse-y),
    black 0%,
    rgba(0, 0, 0, 0.78) 22%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.14) 72%,
    rgba(0, 0, 0, 0.04) 86%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 95px at var(--mouse-x) var(--mouse-y),
    black 0%,
    rgba(0, 0, 0, 0.78) 22%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.14) 72%,
    rgba(0, 0, 0, 0.04) 86%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition:
    opacity 260ms ease,
    visibility 0s linear 260ms;
}

.word-reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.word-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hidden-word {
  position: absolute;
  top: var(--word-y, 50%);
  left: var(--word-x, 50%);
  color: #c9c9c3;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: var(--word-size, 0.72rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  opacity: var(--word-opacity, 0.14);
  transform: translate(-50%, -50%) rotate(var(--word-rotation, 0deg));
  white-space: nowrap;
  user-select: none;
}

.hidden-word--gold {
  color: #b99a18;
}

.landing {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), 760px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(3rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: arrive 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wordmark {
  display: block;
  width: clamp(13.5rem, 49vw, 24rem);
  height: auto;
}

.rule {
  width: min(15rem, 48vw);
  height: 1px;
  margin: clamp(2rem, 5vh, 3.25rem) 0 clamp(1.8rem, 4vh, 2.75rem);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.rule span {
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0 auto;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(239, 191, 4, 0.6);
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 8vw, 5.75rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.045em;
  text-indent: 0.045em;
}

h1 span {
  display: block;
  margin-top: 0;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-shadow: 0 0 42px rgba(239, 191, 4, 0.12);
}

.message {
  max-width: 610px;
  margin: clamp(1.75rem, 4vh, 2.5rem) auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.discord-link {
  min-height: 3.75rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding: 0.9rem 1.25rem 0.9rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--gold);
  border-radius: 0.7rem;
  background: var(--gold);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 rgba(239, 191, 4, 0);
  color: #111105;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.discord-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.discord-link:hover {
  transform: translateY(-2px);
  background: var(--gold-light);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(239, 191, 4, 0.13);
}

.discord-link:hover svg {
  transform: translateX(3px);
}

.discord-link:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .landing {
    width: min(calc(100% - 2rem), 760px);
  }

  .discord-link {
    width: 100%;
    max-width: 22rem;
  }

  .grid {
    background-size: 52px 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal {
    display: none;
  }

  .landing {
    animation: none;
  }

  .discord-link,
  .discord-link svg {
    transition: none;
  }
}
