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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: #ffffff;
  background: #050505;
  overflow: hidden;
}

#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: #050505;
}

#vanta-bg canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.glass {
  width: min(36rem, 100%);
  padding: 2.75rem 2.5rem 2.35rem;
  border-radius: 4px;
  background: rgba(8, 10, 12, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

h1 {
  font-style: italic;
}

.logo-heavy,
.logo-light {
  margin: 0;
  padding: 0;
}

.logo-heavy {
  font-weight: 800;
}

.logo-light {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

.subhead {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: rgba(255, 255, 255, 0.62);
}

.cta {
  display: grid;
  margin-top: 1.85rem;
}

.waitlist,
.confirmation {
  grid-area: 1 / 1;
  transition: opacity 480ms ease;
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.waitlist.is-done {
  opacity: 0;
  pointer-events: none;
}

.waitlist-row {
  display: flex;
  gap: 0.625rem;
}

.cf-turnstile {
  min-height: 65px;
}

.confirmation {
  margin: 0;
  align-self: center;
  justify-self: center;
  width: 100%;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
}

.confirmation.is-visible {
  opacity: 1;
}

input,
button {
  height: 2.875rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9375rem;
}

input {
  flex: 1;
  min-width: 0;
  padding: 0 0.9rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

input:focus {
  border-color: #0bd863;
  background: rgba(11, 216, 99, 0.06);
}

button {
  padding: 0 1.15rem;
  border: 0;
  background: #0bd863;
  color: #041208;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover {
  background: #2ef08a;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: default;
  transform: none;
  background: rgba(11, 216, 99, 0.72);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #0bd863;
  outline-offset: 2px;
}

.status {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  letter-spacing: -0.011em;
  color: #0bd863;
}

@media (prefers-reduced-motion: reduce) {
  .waitlist,
  .confirmation {
    transition: none;
  }
}

.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;
}

@media (max-width: 520px) {
  .glass {
    padding: 2rem 1.25rem 1.5rem;
  }

  .waitlist-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  input[type="email"] {
    min-height: 50px;  
    padding: 12px 16px; 
    font-size: 16px; 
  }
}