:root {
  color-scheme: dark;
  --bg: #020303;
  --text: #f7fff9;
  --muted: #9aa7a2;
  --cyan: #32d6da;
  --lime: #46ff83;
  --red: #ff5c5c;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

body {
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  color: var(--text);
  background: transparent;
}

/* Video background */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(2, 3, 3, 0.78);
  pointer-events: none;
}

body::before {
  position: fixed;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(50, 214, 218, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 24px rgba(50, 214, 218, 0.16);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 47%, rgba(70, 255, 131, 0.16), transparent 7rem),
    radial-gradient(circle at 50% 45%, rgba(50, 214, 218, 0.11), transparent 17rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 100% 4px;
  opacity: 0.72;
}

.shell {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100dvh;
  place-items: center;
  padding: clamp(12px, 2vh, 28px) 20px;
  overflow: hidden;
}

.waitlist {
  display: flex;
  width: min(100%, 520px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.5vh, 36px) 0;
  text-align: center;
}

.logo-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(56px, 10vh, 96px);
  height: clamp(56px, 10vh, 96px);
}

.logo-wrap::before {
  position: absolute;
  inset: 4%;
  z-index: -1;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(70, 255, 131, 0.45), rgba(50, 214, 218, 0.2) 46%, transparent 72%);
  filter: blur(30px);
}

.logo {
  display: block;
  width: clamp(56px, 10vh, 96px);
  height: clamp(56px, 10vh, 96px);
  background: transparent;
  object-fit: contain;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(16px, 3vh, 56px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 5.35rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro {
  max-width: 32rem;
  margin: clamp(10px, 1.5vh, 22px) 0 0;
  color: #c8d2cf;
  font-size: clamp(0.9rem, 2.5vw, 1.18rem);
  font-weight: 700;
  line-height: 1.4;
}

.mark {
  width: 48px;
  height: 2px;
  margin-top: clamp(12px, 2vh, 28px);
  background: rgba(50, 214, 218, 0.75);
}

.prize-highlight {
  color: var(--lime);
  font-weight: 900;
}

.prize-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: clamp(8px, 1.2vh, 16px) 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prize-sep {
  color: rgba(200, 210, 207, 0.4);
}

.prize-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
}

.prize-link:hover {
  color: var(--lime);
}

.signup {
  width: min(100%, 420px);
  margin-top: clamp(16px, 3vh, 48px);
}

label {
  display: block;
  margin-bottom: clamp(6px, 1vh, 12px);
  color: #c8d2cf;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.name-row {
  margin-bottom: clamp(8px, 1.5vh, 16px);
}

input,
button {
  min-height: clamp(44px, 6.5vh, 56px);
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(50, 214, 218, 0.48);
  padding: 0 18px;
  color: var(--text);
  text-align: center;
  background: rgba(0, 0, 0, 0.74);
  outline: none;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(50, 214, 218, 0.2);
}

button {
  border: 1px solid rgba(70, 255, 131, 0.7);
  padding: 0 24px;
  color: var(--text);
  background: rgba(70, 255, 131, 0.16);
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
}

button:hover {
  color: #041006;
  background: var(--lime);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.info-trigger {
  min-height: clamp(36px, 5vh, 44px);
  margin-top: clamp(4px, 1vh, 8px);
  border-color: rgba(50, 214, 218, 0.54);
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.78rem;
}

.info-trigger:hover {
  color: #041012;
  background: var(--cyan);
}

.message {
  min-height: 20px;
  margin: clamp(6px, 1vh, 14px) 0 0;
  color: #c8d2cf;
  font-weight: 700;
  font-size: 0.9rem;
}

.message[data-state="success"] {
  color: var(--lime);
}

.message[data-state="error"] {
  color: var(--red);
}

::selection {
  color: #050505;
  background: var(--cyan);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.modal-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  width: min(100%, 560px);
  min-height: 560px;
  max-height: calc(100vh - 40px);
  flex-direction: column;
  border: 1px solid rgba(50, 214, 218, 0.62);
  border-radius: 8px;
  padding: 34px;
  background:
    radial-gradient(circle at 76% 20%, rgba(70, 255, 131, 0.2), transparent 12rem),
    radial-gradient(circle at 12% 86%, rgba(50, 214, 218, 0.16), transparent 13rem),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    #020303;
  background-size: auto, auto, 100% 5px, auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.modal-panel::before {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(70, 255, 131, 0.18);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-color: rgba(50, 214, 218, 0.5);
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.72rem;
}

.carousel {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 400px;
  flex: 1;
  align-items: center;
  padding: 40px 0 24px;
}

.slide {
  display: none;
  width: 100%;
}

.slide.is-active {
  display: block;
}

.slide h2 {
  max-width: 30rem;
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 7vw, 3.65rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.slide p:not(.eyebrow) {
  max-width: 29rem;
  margin: 20px 0 0;
  color: #c8d2cf;
  font-size: clamp(0.98rem, 3vw, 1.1rem);
  font-weight: 750;
  line-height: 1.5;
}

.slide-count {
  margin: 0 0 20px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.slide ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.slide li {
  position: relative;
  min-height: 38px;
  border: 1px solid rgba(50, 214, 218, 0.24);
  border-radius: 8px;
  padding: 10px 12px 10px 34px;
  color: #e8f4ee;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.slide li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(70, 255, 131, 0.78);
}

.carousel-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.nav-button {
  min-height: 44px;
  width: 116px;
  padding: 0 14px;
  font-size: 0.72rem;
}

.nav-button:last-child {
  justify-self: end;
}

.carousel-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.carousel-dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(200, 210, 207, 0.28);
}

.carousel-dots span.is-active {
  width: 28px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(70, 255, 131, 0.6);
}

body.modal-open {
  overflow: hidden; /* already hidden, keeps modal scroll contained */
}

@media (max-width: 620px) {
  .shell {
    padding: 18px;
  }

  .modal-panel {
    min-height: min(600px, calc(100vh - 40px));
    padding: 28px 20px 20px;
  }

  .modal-close {
    top: 18px;
    right: 18px;
  }

  .carousel-controls {
    grid-template-columns: 1fr 1fr;
  }

  .carousel-status {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .nav-button {
    grid-row: 2;
  }
}

/* Social proof popup */
.social-proof-popup {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(2, 3, 3, 0.92);
  border: 1px solid rgba(50, 214, 218, 0.35);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(50, 214, 218, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 280px;
  pointer-events: none;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.social-proof-popup.sp-hidden {
  opacity: 0;
  transform: translateY(8px);
}

@media (max-width: 620px) {
  .social-proof-popup {
    bottom: auto;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    max-width: calc(100vw - 2rem);
  }

  .social-proof-popup.sp-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
}

.social-proof-popup .sp-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
}

.social-proof-popup .sp-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.social-proof-popup .sp-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.social-proof-popup .sp-action {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

.social-proof-popup .sp-action span {
  color: var(--lime);
  font-weight: 600;
}

.social-proof-popup .sp-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-left: auto;
  animation: sp-pulse 2s infinite;
}

@keyframes sp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
