:root {
  --background-color: #000;
  --text-primary: #fff;
  --text-secondary: #ffffff99;
}

html {
  font-family: "Merriweather", serif;
}

body {
  height: 100dvh;
  width: 100dvw;
  box-sizing: border-box;
  background-color: var(--background-color);
  background-image: url("sources/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-primary);
  overflow: hidden;
  margin: 0;
}

section {
  margin: 0;
  height: 100dvh;
  width: 100dvw;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.title {
  font-size: 1rem;
  text-align: left;
  opacity: 0.5;
}

h2 {
  font-size: 2rem;
  margin: 0;
}

.hook {
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.email-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.email-container {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.email-input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 14px;
  backdrop-filter: blur(10px);
}

.email-input::placeholder {
  color: var(--text-secondary);
}

.email-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.join-button {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #2672d5, #7a52a6);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.join-button:hover {
  transform: translateY(-2px);
}

.join-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.app-preview {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Inter", sans-serif;
  color: var(--text-secondary);
  opacity: 0.6;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 1rem;
  text-align: left;
}

.footer .privacy-policy {
  color: var(--text-secondary);
  text-decoration: underline;
  opacity: 0.4;
}

.scroll-container {
  height: calc(100dvh + 3800px);
}

.scroll-content {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

.scroll-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

.scroll-line.visible {
  opacity: 0.5;
}

.scroll-line.email-group.visible {
  opacity: 1;
}

.message {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 1rem;
  padding-top: 4px;
  padding-left: 12px;
}

.message.show {
  opacity: 1;
}

.message.success {
  color: #4ade80;
}

.message.error {
  color: #f87171;
}

.back-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.back-nav:hover {
  opacity: 1;
}

.back-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

.back-text {
  font-weight: 400;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  background-image: url("sources/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.modal-icon {
  opacity: 0;
  transform: scale(0.8);
}

.modal.show .modal-icon {
  animation: iconAppear 0.6s ease forwards, iconPulse 2s ease-in-out infinite;
  animation-delay: 0s, 0.6s;
}

.modal-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  opacity: 0;
}

.modal.show .modal-text {
  animation: textFadeIn 2s ease forwards;
  animation-delay: 0.5s;
}

@keyframes iconAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes textFadeIn {
  to {
    opacity: 0.5;
  }
}
