:root {
  color-scheme: dark;
  font-family: "Inter", Arial, sans-serif;
  background: #08070a;
  color: #f8f5fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 42% 43% at 50% 44%, rgba(82, 26, 112, .24), transparent 78%),
    radial-gradient(ellipse 30% 28% at 50% 49%, rgba(142, 52, 192, .09), transparent 78%),
    #08070a;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.gate {
  width: min(100% - 40px, 480px);
  margin-top: -2px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 31px;
  color: #c9b8d5;
  font: 600 10px/1 "Inter", Arial, sans-serif;
  letter-spacing: 3.4px;
  text-transform: uppercase;
}

.status-dot {
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c797ec;
  box-shadow: 0 0 11px #a64fe2;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 76px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: 0;
}

h1 span {
  color: transparent;
  background: linear-gradient(180deg, #fff 4%, #e5d3f1 100%);
  background-clip: text;
}

.description {
  margin: 23px 0 31px;
  color: #aaa2b1;
  font-size: 13px;
  line-height: 1.7;
}

.key-form {
  padding: 10px;
  border: 1px solid #592278;
  border-radius: 16px;
  background: rgba(12, 10, 15, .84);
  box-shadow: 0 0 36px rgba(131, 39, 184, .13), 0 0 84px rgba(117, 31, 162, .1);
}

.input-wrap {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid #1a171e;
  border-radius: 11px;
  background: #050506;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-wrap:focus-within {
  border-color: #8c42ac;
  box-shadow: 0 0 0 3px rgba(152, 71, 191, .13);
}

.key-mark {
  position: absolute;
  left: 17px;
  color: #9c56b9;
  font: 600 10px "Inter", Arial, sans-serif;
  letter-spacing: 1.4px;
}

input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 16px 0 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f2eaf7;
  text-align: center;
  font: 600 12px "Inter", Arial, sans-serif;
  letter-spacing: 2.2px;
}

input::placeholder { color: #625a68; opacity: 1; }

button {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #28252b 0%, #48205f 52%, #28252b 100%);
  color: #fff;
  cursor: pointer;
  font: 800 11px "Inter", Arial, sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: filter .2s ease, transform .2s ease;
}

button:hover { filter: brightness(1.2); }
button:active { transform: scale(.993); }
button:focus-visible { outline: 2px solid #d7a4ef; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .7; }
.button-arrow { position: absolute; right: 20px; color: #e2c9f0; font-size: 17px; letter-spacing: 0; }

.result {
  display: none;
  margin: 13px 2px 3px;
  font: 600 12px "Inter", Arial, sans-serif;
  letter-spacing: .6px;
}

.result.visible { display: block; }
.result.success { color: #9be5bd; }
.result.invalid { color: #f08b9c; }

.discord-cta { margin-top: 22px; }
.discord-cta p { margin: 0 0 10px; color: #b7acbf; font-size: 12px; font-weight: 600; }
.discord-join { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #684184; border-radius: 9px; background: rgba(70, 38, 88, .62); box-shadow: inset 0 1px rgba(255,255,255,.08); color: #f5eafa; font-size: 11px; font-weight: 750; letter-spacing: 1.2px; text-decoration: none; text-transform: uppercase; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.discord-join:hover { transform: translateY(-1px); border-color: #a364c4; background: rgba(91, 47, 114, .78); }
.discord-join:focus-visible { outline: 2px solid #d7a4ef; outline-offset: 3px; }
.discord-join span { color: #e2c9f0; font-size: 16px; letter-spacing: 0; }

.footnote {
  margin-top: 27px;
  color: #706977;
  font: 500 10px "Inter", Arial, sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.lock-icon { color: #b873d3; margin-right: 6px; }
.separator { padding: 0 8px; color: #423a48; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .gate { width: min(100% - 32px, 420px); }
  .eyebrow { margin-bottom: 27px; }
  .description { margin: 19px 0 25px; }
  .key-form { padding: 8px; }
  .input-wrap { height: 54px; }
  input { padding-left: 39px; font-size: 10px; letter-spacing: 1.2px; }
  .key-mark { left: 12px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
