*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

:root {
  font-family: Inter, sans-serif;
  font-feature-settings:
    'liga' 1,
    'calt' 1;
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: InterVariable, sans-serif;
  }
}

body {
  background-color: #000000;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  min-height: fit-content;
  padding: 16px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.title {
  font-size: 128px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.subtitle {
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Background animation */
.background {
  position: absolute;
  z-index: -1;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  overflow: hidden;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 1000ms;
}

.background.visible {
  opacity: 1;
}

.animation {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Waitlist */
.waitlist {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrap input {
  height: 44px;
  width: 100%;
  min-width: 280px;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  color: inherit;
  font: inherit;
  font-size: 16px;
  padding: 0 52px 0 16px;
  outline: 0 solid #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-wrap input:focus {
  outline-width: 1px;
}

.input-wrap input:disabled {
  cursor: not-allowed;
}

.suffix {
  position: absolute;
  right: 16px;
  z-index: 30;
}

#join-button {
  flex: none;
  width: 144px;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  padding: 8px 24px;
  cursor: pointer;
  transition: transform 150ms, background-color 150ms;
}

#join-button:active {
  transform: scale(0.98);
}

#join-button:disabled {
  cursor: not-allowed;
  background: #9ca3af;
}

#button-text {
  display: inline-block;
  transition:
    opacity 200ms,
    transform 200ms;
}

#button-text.swap {
  opacity: 0;
  transform: scale(0.9);
}

.error {
  position: absolute;
  bottom: -48px;
  color: #ef4444;
}

/* Socials */
.socials {
  position: absolute;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials a {
  display: flex;
  padding: 8px;
  color: inherit;
}

.socials svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 1023px) {
  .title {
    font-size: 100px;
  }
  .subtitle {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .title {
    font-size: 72px;
  }
  .subtitle {
    font-size: 24px;
  }
  .waitlist-row {
    flex-direction: column;
  }
}
