:root {
  --bg: #090706;
  --card-start: rgba(94, 165, 104, 0.8);
  --card-end: rgba(186, 165, 107, 0.66);
  --card-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  --text: #f7f5ef;
  --muted: rgba(247, 245, 239, 0.94);
  --input-bg: rgba(42, 56, 43, 0.64);
  --input-border: rgba(255, 255, 255, 0.84);
  --button-start: #64d98a;
  --button-end: #a7eac7;
}

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

html {
  min-height: 100%;
  background-color: var(--bg);
  overscroll-behavior: none;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(27, 17, 14, 0.24), transparent 44%), var(--bg);
  overscroll-behavior: none;
  color: var(--text);
  font-family: "Space Mono", "Consolas", "Courier New", monospace;
}

.waitlist-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 2rem;
}

.mesh-layer {
  position: absolute;
  inset: auto;
  width: 52vw;
  height: 52vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(105px);
  opacity: 0.92;
  mix-blend-mode: screen;
  will-change: transform;
}

.mesh-red {
  top: 12%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.95) 0%, rgba(204, 19, 19, 0.72) 34%, transparent 72%);
  animation: float-red 10s ease-in-out infinite alternate;
}

.mesh-orange {
  top: -14%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 126, 20, 0.96) 0%, rgba(218, 102, 17, 0.74) 36%, transparent 74%);
  animation: float-orange 12s ease-in-out infinite alternate;
}

.mesh-green {
  left: 24%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(145, 255, 128, 0.95) 0%, rgba(104, 190, 92, 0.72) 35%, transparent 76%);
  animation: float-green 11s ease-in-out infinite alternate;
}

.waitlist-card {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  padding: 3rem 3.2rem 2.7rem;
  border-radius: 30px;
  background:
    linear-gradient(115deg, rgba(87, 142, 92, 0.82) 0%, rgba(136, 194, 145, 0.54) 40%, rgba(190, 172, 107, 0.64) 100%);
  box-shadow: var(--card-shadow);
}

.waitlist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

h1 {
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.waitlist-copy,
.waitlist-note {
  margin: 1.35rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  line-height: 1.6;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.35rem;
  align-items: center;
  width: min(100%, 470px);
  margin: 2.35rem auto 0;
}

.waitlist-form input {
  width: 100%;
  padding: 1rem 1.45rem;
  border: 2px solid var(--input-border);
  border-radius: 999px;
  background: var(--input-bg);
  color: rgba(247, 245, 239, 0.95);
  font-size: 1rem;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(255, 255, 255, 0.05);
}

.waitlist-form input::placeholder {
  color: rgba(247, 245, 239, 0.58);
}

.waitlist-form input:focus {
  box-shadow:
    0 0 0 3px rgba(200, 255, 221, 0.14),
    0 8px 20px rgba(255, 255, 255, 0.05);
}

.waitlist-form button {
  padding: 1rem 1.55rem;
  border: 0;
  border-radius: 999px;
  color: #09110b;
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.waitlist-note {
  min-height: 1.4em;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.confirmation-page {
  overflow: hidden;
}

.confirmation-card {
  width: min(100%, 610px);
  text-align: center;
}

.confirmation-card .waitlist-copy {
  margin-top: 0.9rem;
}

.confirmation-icon {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 1.7rem auto 1.9rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #2cb8ff 0%, #277cff 58%, #7f63ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.confirmation-check {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  border: 6px solid #aad74d;
  border-radius: 50%;
}

.confirmation-check::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 5px;
  width: 13px;
  height: 24px;
  border-right: 6px solid #aad74d;
  border-bottom: 6px solid #aad74d;
  transform: rotate(42deg);
}

.confirmation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  padding: 1rem 1.45rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(49, 69, 52, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float-red {
  0% {
    transform: translate3d(-5%, -4%, 0) scale(1);
  }
  35% {
    transform: translate3d(12%, 4%, 0) scale(1.08);
  }
  70% {
    transform: translate3d(4%, 18%, 0) scale(0.94);
  }
  100% {
    transform: translate3d(16%, 8%, 0) scale(1.02);
  }
}

@keyframes float-orange {
  0% {
    transform: translate3d(0, -8%, 0) scale(1.02);
  }
  30% {
    transform: translate3d(-10%, 5%, 0) scale(1.12);
  }
  68% {
    transform: translate3d(-4%, 16%, 0) scale(0.98);
  }
  100% {
    transform: translate3d(-14%, 9%, 0) scale(1.06);
  }
}

@keyframes float-green {
  0% {
    transform: translate3d(-6%, 0, 0) scale(0.98);
  }
  32% {
    transform: translate3d(8%, -10%, 0) scale(1.14);
  }
  72% {
    transform: translate3d(-10%, -18%, 0) scale(0.96);
  }
  100% {
    transform: translate3d(4%, -8%, 0) scale(1.08);
  }
}

@media (max-width: 700px) {
  .waitlist-card {
    width: min(100%, 540px);
    padding: 2.35rem 1.5rem 2rem;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    gap: 1rem;
  }

  .waitlist-form button {
    width: 100%;
  }

  .mesh-layer {
    width: 78vw;
    height: 78vw;
    min-width: 280px;
    min-height: 280px;
    filter: blur(84px);
  }

  .confirmation-icon {
    width: 96px;
    height: 96px;
    margin: 1.5rem auto 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-layer {
    animation: none;
  }
}

