:root {
  --bg: #0b0b10;
  --yellow: #FFBF26;
  --blue: #6392EE;
  --orange: #FF9D5E;
  --red: #FF6464;
  --green: #3AC884;
  --purple: #BF67FF;
  --teal: #3AACC8;
  --black: #1B1B1B;
  --dark-gray: #666666;
  --light-gray: #A8A8A8;
  --separator-gray: #EFEFEF;
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
  font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  height: calc(var(--vh, 1vh) * 100);
}
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.bottom-note {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.02em;
  user-select: none;
  z-index: 20;
  opacity: 0;
  animation: fadeIn 800ms ease-out 1000ms forwards;
  white-space: nowrap;
  padding: 0 16px;
}
.waitlist-cta {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 25;
  display: flex;
  justify-content: center;
  width: min(90vw, 320px);
  opacity: 1;
  transform: translate(-50%, 0);
}
.waitlist-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 14px;
  color: white;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  /* no load animation; tap triggers gelatine */
}
.waitlist-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}
.waitlist-button:hover {
  /* Hover visuals; animation added only on hover-capable devices */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .waitlist-button:hover {
    animation: gelatine 500ms ease-out;
  }
}
.waitlist-button:active {
  /* No wiggle when pressed */
  animation: none;
  transform: scale(0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.bottom-note a {
  color: inherit;
  text-decoration: none;
}
.bottom-note a:hover {
  text-decoration: none;
}

@supports (height: 100svh) {
  body { height: 100svh; }
  .scene { height: 100svh; }
}
.logo {
  display: block;
  width: min(64vw, 420px);
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
  opacity: 1;
  transform: translateY(-50px);
}

.logo.logo--enter {
  opacity: 0;
  transform: translateY(-2px);
  animation: fadeUp 700ms ease-out 150ms forwards;
}
.blurs {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px) saturate(140%);
}
.blob {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
  top: var(--y, 50%);
  left: var(--x, 50%);
  animation-duration: 48s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.blob.one {
  --x: 32%;
  --y: 35%;
  background: radial-gradient(circle at 30% 30%, #ff7ad9, #7a1fff 60%, transparent 65%);
  animation-name: moveOne;
  animation-duration: 48s;
  animation-delay: -6s;
}
.blob.two {
  --x: 70%;
  --y: 58%;
  background: radial-gradient(circle at 70% 70%, #7affc1, #00d1ff 55%, transparent 65%);
  animation-name: moveTwo;
  opacity: .45;
  animation-duration: 60s;
  animation-delay: -12s;
}
.blob.three {
  --x: 42%;
  --y: 74%;
  background: radial-gradient(circle at 40% 60%, #ffd07a, #ff4d4d 55%, transparent 65%);
  animation-name: moveThree;
  opacity: .35;
  animation-duration: 54s;
  animation-delay: -18s;
}
@keyframes moveOne {
  0% { transform: translate(-50%, -50%) translate(-12%, -8%) scale(1); }
  50% { transform: translate(-50%, -50%) translate(8%, -15%) scale(1.18) rotate(6deg); }
  100% { transform: translate(-50%, -50%) translate(-10%, 6%) scale(1.05); }
}
@keyframes moveTwo {
  0% { transform: translate(-50%, -50%) translate(10%, 6%) scale(1.08); }
  50% { transform: translate(-50%, -50%) translate(-12%, -2%) scale(1.22) rotate(10deg); }
  100% { transform: translate(-50%, -50%) translate(10%, -10%) scale(1.08); }
}
@keyframes moveThree {
  0% { transform: translate(-50%, -50%) translate(-10%, 0%) scale(1); }
  50% { transform: translate(-50%, -50%) translate(12%, 12%) scale(1.2) rotate(-8deg); }
  100% { transform: translate(-50%, -50%) translate(-8%, -6%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .logo { animation: none; opacity: 1; transform: translateY(-50px); }
  .bottom-note { animation: none; opacity: 1; transform: none; }
  .waitlist-button { animation: none; opacity: 1; transform: scale(1); }
  .logo.gelatine-play, .waitlist-button.gelatine-play { animation: none; }
  .waitlist-button:hover { animation: none; }
  .logo:hover { animation: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(-50px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeInOnly {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gelatine {
  from, to { transform: scale(1, 1); }
  25% { transform: scale(0.9, 1.1); }
  50% { transform: scale(1.1, 0.9); }
  75% { transform: scale(0.95, 1.05); }
}

/* Preserve logo's translate offset while bouncing */
@keyframes gelatineLogo {
  from, to { transform: translateY(-50px) scale(1, 1); }
  25% { transform: translateY(-50px) scale(0.9, 1.1); }
  50% { transform: translateY(-50px) scale(1.1, 0.9); }
  75% { transform: translateY(-50px) scale(0.95, 1.05); }
}
.logo.gelatine-play {
  animation: gelatineLogo 500ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .logo:hover {
    animation: gelatineLogo 500ms ease-out;
  }
}

/* Grow-in for button on load */
@keyframes grow {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.waitlist-button--enter {
  animation: grow 500ms ease-out 500ms both;
}

/* Tap-triggered animation helpers */
.waitlist-button.gelatine-play {
  animation: gelatine 500ms ease-out;
}

/* Preserve logo's translate offset while bouncing */
@keyframes gelatineLogo {
  from, to { transform: translateY(-50px) scale(1, 1); }
  25% { transform: translateY(-50px) scale(0.9, 1.1); }
  50% { transform: translateY(-50px) scale(1.1, 0.9); }
  75% { transform: translateY(-50px) scale(0.95, 1.05); }
}
.logo.gelatine-play {
  animation: gelatineLogo 500ms ease-out;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.waitlist-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.waitlist-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 24px 24px 0 0;
  background: rgba(14, 14, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  padding: 32px 24px 28px;
  overflow-y: auto;
  max-height: 90vh;
  transform: translateY(12px);
  transition: transform 200ms ease;
}
.waitlist-modal[aria-hidden="false"] .waitlist-sheet {
  transform: translateY(0);
}
.waitlist-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 26px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease, color 150ms ease;
}
.waitlist-close:hover,
.waitlist-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}
.waitlist-header {
  padding-right: 32px;
}
.waitlist-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}
.waitlist-header p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.waitlist-form {
  display: grid;
  gap: 18px;
}
.waitlist-field {
  display: grid;
  gap: 8px;
}
.waitlist-field label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.waitlist-field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 20, 28, 0.92);
  color: #fff;
  font-size: 16px;
  padding: 12px 15px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.waitlist-field input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent);
}
.waitlist-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
  outline: none;
  background: rgba(20, 20, 28, 1);
}
.waitlist-field input::placeholder {
  color: rgba(255, 255, 255, 0.1);
}
.waitlist-field .optional {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}
.waitlist-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
}
.waitlist-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 28, 0.95);
  appearance: none;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.waitlist-checkbox input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: transparent;
}
.waitlist-checkbox input[type="checkbox"]:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid rgba(6, 6, 10, 0.95);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.waitlist-checkbox label {
  font-size: 13px;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.72);
}
.waitlist-actions {
  margin-top: 4px;
}
.waitlist-submit {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.waitlist-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.waitlist-submit:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}
.waitlist-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.waitlist-feedback {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
.waitlist-feedback.error {
  color: var(--red);
}
.waitlist-feedback.success {
  color: var(--orange);
}

@media (min-width: 600px) {
  .waitlist-modal {
    align-items: center;
    padding: 40px;
  }
  .waitlist-sheet {
    border-radius: 24px;
    max-height: 85vh;
  }
  .waitlist-cta {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}



