/* Prelaunch Page Styles */

body {
  background: linear-gradient(180deg, #101423 0%, #283157 100%);
  font-family: 'DIN Next LT Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  background-color: #101423;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.background-grid {
  position: fixed;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 2000px;
  opacity: 0.15;
  mix-blend-mode: luminosity;
  filter: grayscale(100%) brightness(1.2);
  -webkit-filter: grayscale(100%) brightness(1.2);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.background-grid__inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  -webkit-mask-image:linear-gradient(to bottom, black, black 35%, transparent);
  mask-image: linear-gradient(to bottom, black, black 35%, transparent);
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.grid-column:nth-child(1) { padding-top: 0; }
.grid-column:nth-child(2) { padding-top: 55px; }
.grid-column:nth-child(3) { padding-top: 110px; }
.grid-column:nth-child(4) { padding-top: 165px; }
.grid-column:nth-child(5) { padding-top: 220px; }
.grid-column:nth-child(6) { padding-top: 165px; }
.grid-column:nth-child(7) { padding-top: 110px; }
.grid-column:nth-child(8) { padding-top: 55px; }
.grid-column:nth-child(9) { padding-top: 0; }

.grid-column img {
  width: 90px;
  height: 130px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  opacity: 0;
  animation: cardSlideIn 0.8s ease-out forwards;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-column:nth-child(1) img:nth-child(1) { animation-delay: 0.5s; }
.grid-column:nth-child(1) img:nth-child(2) { animation-delay: 0.8s; }

.grid-column:nth-child(2) img:nth-child(1) { animation-delay: 0.2s; }
.grid-column:nth-child(2) img:nth-child(2) { animation-delay: 0.6s; }

.grid-column:nth-child(3) img:nth-child(1) { animation-delay: 0.4s; }
.grid-column:nth-child(3) img:nth-child(2) { animation-delay: 0.9s; }

.grid-column:nth-child(4) img:nth-child(1) { animation-delay: 0.1s; }
.grid-column:nth-child(4) img:nth-child(2) { animation-delay: 0.7s; }

.grid-column:nth-child(5) img:nth-child(1) { animation-delay: 0.3s; }
.grid-column:nth-child(5) img:nth-child(2) { animation-delay: 1s; }

.grid-column:nth-child(6) img:nth-child(1) { animation-delay: 0.6s; }
.grid-column:nth-child(6) img:nth-child(2) { animation-delay: 0.2s; }

.grid-column:nth-child(7) img:nth-child(1) { animation-delay: 0.8s; }
.grid-column:nth-child(7) img:nth-child(2) { animation-delay: 0.4s; }

.grid-column:nth-child(8) img:nth-child(1) { animation-delay: 0.5s; }
.grid-column:nth-child(8) img:nth-child(2) { animation-delay: 0.1s; }

.grid-column:nth-child(9) img:nth-child(1) { animation-delay: 0.7s; }
.grid-column:nth-child(9) img:nth-child(2) { animation-delay: 0.3s; }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wordRise {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-only {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.word-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word-animate {
  display: inline-block;
  opacity: 0;
  animation: wordRise 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: var(--word-delay);
}

.prelaunch__logo.animate-fade-in {
  animation-delay: 0.1s;
}

.prelaunch__heading h2.animate-slide-up {
  animation-delay: 0.5s;
}

.prelaunch__description.animate-slide-up {
  animation-delay: 0.7s;
}

.prelaunch__form.animate-fade-only {
  animation-delay: 0.9s;
}

.prelaunch__social.animate-fade-only {
  animation-delay: 1.1s;
}

main.prelaunch {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 190px 20px 0;
  flex: 1;
}

.prelaunch__logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 38px;
}

.prelaunch__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.prelaunch__content {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.prelaunch__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.prelaunch__heading h1 {
  font-family: 'Gotham Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  overflow: hidden;
}

.prelaunch__heading h2 {
  font-family: 'Gotham Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.prelaunch__description {
  width: 100%;
}

.prelaunch__description p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.prelaunch__form {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-top: 24px;
}

.form__input-wrapper {
  position: relative;
  width: 100%;
  background: rgba(179, 195, 255, 0.15);
  /* backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); */
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
  border: 2px solid transparent;
}

.form__icon {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  flex-shrink: 0;
  transition: fill 0.3s;
  fill: rgba(255, 255, 255, 0.6);
  order: -1;
}

.form__input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 8px;
  min-width: 0;
  order: 0;
}

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

.form__input-wrapper:has(#emailInput.idle) {
  border-color: rgba(255, 255, 255, 0.1);
}

#emailInput.idle ~ svg {
  fill: rgba(255, 255, 255, 0.6);
}

.form__input-wrapper:has(#emailInput.typing) {
  border-color: #006aff;
}

#emailInput.typing ~ svg {
  fill: #006aff;
}

.form__input-wrapper:has(#emailInput.invalid) {
  border-color: #ff0059;
}

#emailInput.invalid ~ svg {
  fill: #ff0059;
}

.form__input-wrapper:has(#emailInput.valid) {
  border-color: #00ff80;
}

#emailInput.valid ~ svg {
  fill: #00ff80;
}

#emailForm.is-loading .form__submit {
  opacity: 0.7;
  cursor: not-allowed;
}

.form__submit {
  position: relative;
  flex-shrink: 0;
  background: #1a4cff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(70, 120, 255, 0.9);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(70, 120, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(70, 120, 255, 0);
  }
}

.form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

@media (hover: hover) {
  .form__submit:hover:not(:disabled) {
    background: #3366ff;
    animation: none;
  }
}

.form__message-success,
.form__message-error {
  position: absolute;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.form__message-success {
  top: 10px;
  color: #00ff80;
}

.form__message-error {
  top: 66px;
  color: #ff0059;
}

.success .form__input-wrapper {
  opacity: 0;
  pointer-events: none;
}

.success .form__message-success,
.error .form__message-error {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.prelaunch__social {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.social__icon {
  position: relative;
  width: 36px;
  height: 36px;
  background: rgba(179, 195, 255, 0.15);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
}

.social__icon img {
  width: 20px;
  height: 20px;
  display: block;
}

@media (hover: hover) {
  .social__icon:hover {
    background: rgba(179, 195, 255, 0.25);
    transform: translateY(-2px);
  }
}

.social__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #c7cbdc;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  color: #101423;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.social__icon.coming-soon:hover .social__tooltip {
  opacity: 1;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 32px;
}

footer p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

@media (min-width: 600px) {
  .background-grid__inner {
    gap: 20px;
    -webkit-mask-image:linear-gradient(to bottom, black, black 35%, transparent 50%);
    mask-image: linear-gradient(to bottom, black, black 35%, transparent 50%);
  }

  .grid-column {
    gap: 20px;
  }

  .grid-column img {
    width: 176px;
    height: 256px;
  }

  main.prelaunch {
    justify-content: center;
    padding: 120px 20px 30px;
  }

  .prelaunch__logo {
    width: 128px;
    height: 65px;
  }

  .prelaunch__heading h1 {
    font-size: 116px;
  }

  .prelaunch__heading h2 {
    font-size: 34px;
  }

  .prelaunch__description p {
    font-size: 20px;
  }

  .prelaunch__content {
    max-width: 767px;
  }

  .prelaunch__form {
    max-width: 469px;
    margin-top: 32px;
  }

  .form__icon {
    margin-left: 16px;
  }

  .form__input-wrapper input {
    padding: 12px 8px;
  }

  .form__submit {
    padding: 12px 24px;
    height: 44px;
  }
}

@media (min-width: 600px) and (min-height: 900px) and (orientation: landscape) {
  .background-grid__inner {
    -webkit-mask-image:linear-gradient(to bottom, black, black 35%, transparent 60%);
    mask-image: linear-gradient(to bottom, black, black 35%, transparent 60%);
  }
}

@media (min-width: 1800px) {
  .background-grid {
    max-width: unset;
  }

  .background-grid__inner {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    -webkit-mask-image:linear-gradient(to bottom, black, black 35%, transparent 50%);
    mask-image: linear-gradient(to bottom, black, black 35%, transparent 50%);
  }

  .grid-column img {
    width: 100%;
    min-width: 176px;
    height: auto;
    aspect-ratio: 176 / 256;
  }
}

@media (min-width: 1800px) and (min-height: 1000px) and (orientation: landscape) {
  .background-grid__inner {
    -webkit-mask-image:linear-gradient(to bottom, black, black 35%, transparent 60%);
    mask-image: linear-gradient(to bottom, black, black 35%, transparent 60%);
  }
}

@media (min-height: 860px) and (orientation: landscape) {
  .prelaunch__logo {
    top: 90px;
  }

  footer {
    padding: 16px 20px 60px;
  }
}

@media (min-height: 1020px) and (orientation: landscape) {
  .prelaunch__content {
    position: relative;
    top: -65px;
  }
}