/* Variables */
:root {
  --primary-color: #d17171;
  --dark-color: #2b2b2b;
  --darker-color: #1a1a1a;
  --text-color: #666;
  --light-text-color: #999;
  --border-color: #ddd;
  --background-color: #fff;
  --white: #fff;
  --transition-base: 0.3s ease;
  --transition-transform: 0.2s ease;
  --breakpoint-mobile: 640px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 3rem;
  text-align: center;
}

.animation-video {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* Typography */
.heading {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #fc8ea0 0%, #e92731 50%, #9979be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.description {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Email form */
.email-form {
  display: flex;
  align-items: center;
  max-width: 620px;
  width: 100%;
  height: 64px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 100px; /* full pill shape */
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  padding: 6px 12px;
}

.email-input {
  flex: 1;
  padding: 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 400;
  border: none;
  outline: none;
  background: transparent;
  color: #111;
}

.email-input::placeholder {
  color: #999;
}

.submit-button {
  height: 100%;
  padding: 0 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #2e2e2e 0%, #1b1b1b 100%);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
  background: linear-gradient(180deg, #1b1b1b 0%, #000 100%);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Thank you message */
.thank-you-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.thank-you-message.show {
  opacity: 1;
  visibility: visible;
}

.thank-you-content {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.thank-you-message.show .thank-you-content {
  transform: scale(1);
}

.thank-you-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fc8ea0 0%, #e92731 50%, #9979be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.thank-you-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
}

.logo {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.875rem;
  color: var(--light-text-color);
  letter-spacing: 0.02em;
}

/* Responsive design */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 120px);
  }

  .heading {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
  }

  .description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  .email-form {
    flex-direction: column;
    height: auto;
    padding: 0;
    gap: 12px;
    max-width: 100%;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .email-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid #e5e5e5;
    background: #fff;
    height: 56px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .email-input:focus {
    border-color: #d17171;
    box-shadow: 0 0 0 3px rgba(209, 113, 113, 0.1);
    outline: none;
  }

  .submit-button {
    width: 100%;
    height: 56px;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 4px;
  }

  .animation-video {
    width: 140px;
    height: 140px;
    margin-bottom: 0.5rem;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  .logo {
    width: 150px;
  }

  .copyright {
    font-size: 0.8rem;
  }

  /* Thank you message mobile adjustments */
  .thank-you-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .thank-you-content h2 {
    font-size: 1.5rem;
  }

  .thank-you-content p {
    font-size: 1rem;
  }
}
