:root {
  --sx-cream: #ffffff;
  --sx-cream-strong: #f7fff4;
  --sx-green: #66ef6d;
  --sx-green-deep: #30cf45;
  --sx-green-soft: #c8ffd0;
  --sx-lime: #deff5c;
  --sx-lime-deep: #b9e633;
  --sx-page-green: #63ea69;
  --sx-page-green-deep: #56dd5d;
  --sx-pink: #ff4fb6;
  --sx-pink-deep: #d61d86;
  --sx-firefly: #fff26f;
  --sx-black: #111111;
  --sx-ink-light: rgba(17, 17, 17, 0.96);
  --sx-ink-muted: rgba(17, 17, 17, 0.68);
  --sx-white: #ffffff;
  --sx-gray-soft: rgba(17, 17, 17, 0.72);
  --sx-border: 2.5px solid #111111;
  --sx-border-thick: 3px solid #111111;
  --sx-radius: 16px;
  --sx-radius-lg: 20px;
  --sx-radius-xl: 24px;
  --sx-radius-full: 9999px;
  --sx-font-heading: 'Unbounded', system-ui, sans-serif;
  --sx-font-body: 'Sora', system-ui, sans-serif;
  --sx-shadow: 4px 4px 0 #111111;
  --sx-shadow-sm: 2px 2px 0 #111111;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sx-font-body);
  color: var(--sx-ink-light);
  background:
    radial-gradient(circle at top right, rgba(222, 255, 92, 0.24), transparent 18%),
    radial-gradient(circle at 18% 28%, rgba(48, 207, 69, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(200, 255, 208, 0.24), transparent 22%),
    linear-gradient(180deg, var(--sx-page-green) 0%, #61e567 44%, var(--sx-page-green-deep) 100%);
}

.waitlist-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.wl-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wl-firefly {
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 218, 1) 0%, rgba(255, 242, 111, 0.96) 42%, rgba(255, 242, 111, 0) 76%);
  box-shadow:
    0 0 12px rgba(255, 245, 145, 0.95),
    0 0 28px rgba(255, 242, 111, 0.82),
    0 0 46px rgba(255, 210, 70, 0.38);
  opacity: 0.9;
  animation:
    wl-float 11s linear infinite,
    wl-blink 2.6s ease-in-out infinite;
}

.wl-firefly::after {
  content: '';
  position: absolute;
  inset: -0.28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 145, 0.26), transparent 72%);
}

.wl-firefly-1 {
  top: 8%;
  left: 10%;
}

.wl-firefly-2 {
  top: 14%;
  right: 8%;
  animation-delay: -1.2s, -0.4s;
}

.wl-firefly-3 {
  top: 26%;
  left: 16%;
  animation-delay: -4.2s, -1s;
}

.wl-firefly-4 {
  top: 32%;
  right: 14%;
  animation-delay: -2.8s, -1.2s;
}

.wl-firefly-5 {
  top: 48%;
  left: 7%;
  animation-delay: -6s, -0.8s;
}

.wl-firefly-6 {
  top: 58%;
  right: 10%;
  animation-delay: -3.6s, -1.4s;
}

.wl-firefly-7 {
  top: 70%;
  left: 18%;
  animation-delay: -7.5s, -0.6s;
}

.wl-firefly-8 {
  top: 76%;
  right: 18%;
  animation-delay: -5.4s, -1.1s;
}

.wl-firefly-9 {
  top: 88%;
  left: 34%;
  animation-delay: -8.5s, -0.9s;
}

.wl-firefly-10 {
  top: 22%;
  left: 52%;
  animation-delay: -2s, -0.5s;
}

.wl-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(120, 239, 125, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  z-index: 20;
}

.wl-nav-logo {
  color: var(--sx-black);
  text-decoration: none;
  font-family: var(--sx-font-heading);
  font-size: 1rem;
  font-weight: 800;
}

.wl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.wl-brand-inline {
  margin-top: 0.18rem;
  justify-content: center;
}

.wl-logo-wordmark {
  display: inline-block;
  letter-spacing: -0.06em;
}

.wl-logo-accent {
  color: var(--sx-pink);
}

.wl-nav-tag {
  display: none;
  color: rgba(17, 17, 17, 0.65);
  font-size: 0.72rem;
  font-weight: 600;
}

.wl-nav-cta {
  min-width: 9.5rem;
  padding: 0.62rem 0.85rem;
  border: var(--sx-border-thick);
  border-radius: var(--sx-radius-full);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 255, 244, 0.98));
  box-shadow: var(--sx-shadow);
  font: 700 0.66rem var(--sx-font-heading);
  color: var(--sx-black);
  cursor: pointer;
}

.wl-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 5.15rem 0 0.85rem;
}

.wl-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.55;
  pointer-events: none;
}

.wl-glow-one {
  top: 5rem;
  right: 1rem;
  width: 7rem;
  height: 7rem;
  background: rgba(222, 255, 92, 0.42);
}

.wl-glow-two {
  top: 9rem;
  left: 0.5rem;
  width: 6rem;
  height: 6rem;
  background: rgba(48, 207, 69, 0.34);
}

.wl-video-container,
.wl-hero-text,
.wl-signup-section {
  width: 100%;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.wl-video-container {
  position: relative;
}

.wl-video-wrapper {
  --morph-rotate-x: 0deg;
  --morph-rotate-y: 0deg;
  --morph-shift-x: 0px;
  --morph-shift-y: 0px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: var(--sx-border-thick);
  border-radius: var(--sx-radius-lg);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.52), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 79, 182, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(200, 255, 208, 0.54), transparent 35%),
    linear-gradient(180deg, #eefee9 0%, #d5f8c8 54%, #c4f2ba 100%);
  box-shadow: 8px 8px 0 #111111, 0 18px 42px rgba(0, 0, 0, 0.18);
  transform:
    perspective(1200px)
    rotateX(var(--morph-rotate-x))
    rotateY(var(--morph-rotate-y))
    translate3d(var(--morph-shift-x), var(--morph-shift-y), 0);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wl-video,
.wl-morph-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wl-morph-canvas {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.52), transparent 16%),
    radial-gradient(circle at 82% 18%, rgba(255, 79, 182, 0.14), transparent 18%),
    radial-gradient(circle at 50% 84%, rgba(17, 17, 17, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(245, 255, 241, 0.98) 0%, rgba(225, 255, 212, 0.98) 100%);
}

.wl-video-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.34;
  pointer-events: none;
  transform: perspective(700px) rotateX(68deg) scale(1.45) translateY(24%);
  transform-origin: center bottom;
}

.wl-video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at calc(50% + var(--morph-shift-x) * 0.35) calc(28% + var(--morph-shift-y) * 0.2),
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0) 24%
    ),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0), rgba(17, 17, 17, 0.1) 82%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.wl-morph-overlay {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 3;
  max-width: 8.5rem;
  transform: translate3d(calc(var(--morph-shift-x) * -0.12), calc(var(--morph-shift-y) * -0.12), 16px);
  transition: transform 180ms ease;
}

.wl-morph-label {
  margin: 0;
  font-family: var(--sx-font-heading);
  font-size: clamp(0.9rem, 3.9vw, 1.45rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.wl-morph-sound-toggle {
  right: 12px;
  bottom: 12px;
  z-index: 3;
  transform: translate3d(calc(var(--morph-shift-x) * -0.08), calc(var(--morph-shift-y) * -0.08), 36px);
  transition: transform 180ms ease;
}

.wl-sound-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--sx-border);
  background: linear-gradient(135deg, #f8ff8e 0%, var(--sx-lime) 100%);
  box-shadow: 4px 4px 0 #111111, 0 10px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.wl-sound-icon {
  font-size: 1rem;
}

.wl-hero-text {
  text-align: center;
}

.wl-hero-title {
  display: grid;
  gap: 0.1rem;
  margin: 0 0 0.45rem;
  font-family: var(--sx-font-heading);
  font-size: clamp(1.65rem, 9vw, 2.3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.wl-title-line,
.wl-title-word-wrap {
  display: block;
}

.wl-title-word-wrap {
  min-height: 1.2em;
}

.wl-title-word {
  display: inline-block;
  padding: 0.12em 0.4em 0.18em;
  border: var(--sx-border);
  border-radius: var(--sx-radius-full);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(221, 255, 92, 0.38));
  box-shadow: var(--sx-shadow-sm);
  transition: opacity 220ms ease, transform 220ms ease;
  color: var(--sx-black);
}

.wl-title-word.is-switching {
  opacity: 0;
  transform: translateY(-8px);
}

.wl-hero-subtitle {
  max-width: 17.5rem;
  margin: 0 auto;
  color: var(--sx-ink-light);
  font-size: 0.85rem;
  line-height: 1.52;
  font-weight: 600;
}

.wl-hero-note {
  margin: 0.55rem auto 0;
  max-width: 14rem;
  color: rgba(17, 17, 17, 0.76);
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wl-story-link {
  color: var(--sx-black);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.wl-story-link:hover,
.wl-story-link:focus-visible {
  color: var(--sx-pink);
}

.wl-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.1rem;
  border: 0;
  background: transparent;
  color: var(--sx-black);
  cursor: pointer;
}

.wl-scroll-cue span {
  font-family: var(--sx-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.wl-signup-section {
  padding-top: 0.6rem;
  padding-bottom: 3rem;
}

.wl-signup-card {
  max-width: 330px;
  margin: 0 auto;
  padding: 1.35rem 0.95rem;
  border: var(--sx-border-thick);
  border-radius: var(--sx-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 244, 0.98) 100%);
  box-shadow: 8px 8px 0 #111111, 0 18px 42px rgba(0, 0, 0, 0.12);
  color: var(--sx-black);
}

.wl-signup-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.wl-signup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border: var(--sx-border);
  border-radius: var(--sx-radius-full);
  background: linear-gradient(135deg, #f6ffab 0%, var(--sx-lime) 100%);
  box-shadow: var(--sx-shadow-sm);
  font: 700 0.62rem var(--sx-font-heading);
  letter-spacing: 0.12em;
  color: var(--sx-black);
}

.wl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sx-green-deep);
}

.wl-signup-title {
  margin: 0 0 0.6rem;
  font-family: var(--sx-font-heading);
  font-size: 1rem;
  line-height: 1.1;
}

.wl-signup-desc,
.wl-success-msg {
  margin: 0;
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.wl-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.wl-input-group label {
  display: block;
  margin-bottom: 0.4rem;
  font: 700 0.6rem var(--sx-font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wl-optional {
  color: rgba(255, 241, 231, 0.48);
}

.wl-input-group input {
  width: 100%;
  padding: 0.76rem 0.82rem;
  border: var(--sx-border);
  border-radius: var(--sx-radius);
  font: 500 0.84rem var(--sx-font-body);
  color: var(--sx-black);
  background: rgba(255, 255, 255, 0.96);
}

.wl-input-group input:focus {
  outline: 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(99, 239, 109, 0.24);
}

.wl-input-group input::placeholder {
  color: rgba(17, 17, 17, 0.35);
}

.wl-error-text {
  min-height: 1em;
  margin: 0.25rem 0 0;
  color: #e53e3e;
  font-size: 0.72rem;
  font-weight: 600;
}

.wl-submit-error {
  text-align: center;
}

.wl-submit-btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.82rem 1rem;
  border: var(--sx-border-thick);
  border-radius: var(--sx-radius);
  background: linear-gradient(135deg, #f5ffab 0%, var(--sx-lime) 62%, var(--sx-lime-deep) 100%);
  box-shadow: var(--sx-shadow);
  font: 800 0.76rem var(--sx-font-heading);
  color: var(--sx-black);
  cursor: pointer;
}

.wl-nav-cta:hover,
.wl-nav-cta:focus-visible,
.wl-submit-btn:hover,
.wl-submit-btn:focus-visible,
.wl-footer-socials a:hover,
.wl-footer-socials a:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 6px 6px 0 #111111;
}

.wl-submit-btn:disabled {
  cursor: wait;
  opacity: 0.9;
}

.wl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl-success {
  text-align: center;
  padding: 1rem 0;
}

.wl-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border: var(--sx-border);
  border-radius: 50%;
  background: linear-gradient(135deg, #f3ff95 0%, var(--sx-lime) 70%, var(--sx-green-deep) 100%);
  box-shadow: var(--sx-shadow-sm);
  font-family: var(--sx-font-heading);
  font-size: 1.4rem;
  color: var(--sx-white);
}

.wl-success-title {
  margin: 0 0 0.6rem;
  font-family: var(--sx-font-heading);
  font-size: 1.1rem;
}

.wl-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1rem 2rem;
  text-align: center;
}

.wl-footer-logo {
  font-family: var(--sx-font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--sx-ink-light);
}

.wl-footer-socials {
  display: flex;
  gap: 0.75rem;
}

.wl-footer-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: var(--sx-border);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(222, 255, 92, 0.28));
  box-shadow: var(--sx-shadow-sm);
  color: var(--sx-black);
  text-decoration: none;
}

.wl-footer-copy {
  margin: 0;
  color: var(--sx-ink-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

main,
.wl-footer {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .wl-nav {
    padding: 1rem 1.5rem;
  }

  .wl-nav-logo {
    font-size: 1.25rem;
  }

  .wl-nav-tag {
    display: inline;
  }

  .wl-hero {
    gap: 1rem;
    padding-top: 6rem;
  }

  .wl-video-container,
  .wl-hero-text,
  .wl-signup-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .wl-video-container {
    max-width: 620px;
  }

  .wl-morph-overlay {
    left: 1.1rem;
    bottom: 0.95rem;
    max-width: 10.5rem;
  }

  .wl-hero-subtitle {
    max-width: 22rem;
    font-size: 0.98rem;
  }

  .wl-signup-card {
    max-width: 390px;
    padding: 1.75rem 1.35rem;
  }
}

@media (max-width: 767px) {
  .wl-glow {
    filter: blur(28px);
  }
}

@keyframes wl-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }
  25% {
    transform: translate3d(18px, -18px, 0) scale(1.08);
  }
  50% {
    transform: translate3d(-14px, -34px, 0) scale(0.96);
  }
  75% {
    transform: translate3d(20px, -12px, 0) scale(1.1);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }
}

@keyframes wl-blink {
  0%, 100% {
    opacity: 0.28;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-firefly {
    animation: none;
    opacity: 0.6;
  }
}
