/* Dewology - Modern Skincare Styles */
:root {
  --black: #1a1a1a;
  --gray: #333;
  --light-gray: #f5f5f7;
  --white: #fff;
  --accent: #000;
  --button-hover: #222;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--black);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--white); /* Fallback background color */
}

.fullpage-lander {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  padding: 2.5rem 3rem;
  box-sizing: border-box;
  position: relative; /* For potential overlay if needed */
  z-index: 1;
  background-image: url('../images/bg.png'); /* UPDATED PATH */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 2.5rem;
  opacity: 0; /* For animation */
  animation: fadeInNav 0.6s ease-out 0.5s forwards;
  position: relative; /* Ensure header is above background */
  z-index: 2;
}

.logo {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nav-button {
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}

.nav-button:hover,
.nav-button:focus {
  background: var(--button-hover);
  transform: scale(1.03);
}

.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 5vh;
  position: relative; /* Ensure hero content is above background */
  z-index: 2;
}

.hero-content h1,
.hero-content p.tagline,
.hero-content p.launch-info {
  opacity: 0;
  transform: translateY(20px);
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--black);
  margin-top: 0;
  margin-bottom: 1.75rem;
  letter-spacing: -0.022em;
  line-height: 1.18;
  max-width: 680px;
  animation: fadeInRise 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s forwards;
}

.hero-content p.tagline {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInRise 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s forwards;
}

.launch-info {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInRise 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s forwards;
}

/* Keyframes for animations */
@keyframes fadeInRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(20,20,20,0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  color: var(--black);
  padding: 3rem;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 45px rgba(0,0,0,0.25);
}

.close-button {
  color: #999;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
  color: var(--black);
}

.modal h2 {
  font-size: 1.9rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.modal p {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 0;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 0.95rem 1.15rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: var(--light-gray);
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
  background-color: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

.email-form button[type="submit"] {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  font-weight: 500;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}

.email-form button[type="submit"]:hover,
.email-form button[type="submit"]:focus {
  background: var(--button-hover);
  transform: scale(1.03);
}

/* Modal Success State Styles */
.modal-form-content,
.modal-success-content {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.modal-content.is-success .modal-form-content {
  opacity: 0;
  transform: scale(0.95); /* Optional: slightly shrink form content as it fades */
  pointer-events: none; /* Prevent interaction when hidden */
  height: 0; /* Collapse height */
  overflow: hidden; /* Prevent content from showing during transition */
}

.modal-content.is-success .modal-success-content {
  display: flex !important; /* Override inline style */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
}

.modal-success-content {
  opacity: 0;
  transform: scale(0.95);
  /* display: none; will be handled by JS adding .is-success and inline style removal */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.checkmark-svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.checkmark-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-message {
  font-size: 1.25rem;
  color: var(--black);
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    max-width: 90%;
  }
  .hero-content p.tagline,
  .launch-info {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .fullpage-lander {
    padding: 2rem;
  }
  header {
    animation-delay: 0.3s;
  }
  .hero-content h1 {
    font-size: 3rem;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
    animation-delay: 0.1s;
  }
  .hero-content p.tagline {
    font-size: 1.1rem;
    max-width: 90%;
    margin-bottom: 1.5rem;
    animation-delay: 0.2s;
  }
  .launch-info {
    font-size: 0.9rem;
  }
  .logo {
    font-size: 1.7rem;
  }
  .nav-button {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }
  .modal-content {
    padding: 2rem;
    max-width: 85%;
  }
  .modal h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .fullpage-lander {
    padding: 1.5rem;
  }
  header {
    animation-delay: 0.2s;
  }
  .hero-content h1 {
    font-size: 2.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    animation-delay: 0s;
  }
  .hero-content p.tagline {
    font-size: 1rem;
    margin-bottom: 1rem;
    animation-delay: 0.1s;
  }
  .launch-info {
    font-size: 0.85rem;
    animation-delay: 0.2s;
  }
  .logo {
    font-size: 1.5rem;
  }
  .nav-button {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
  }
  .modal h2 {
    font-size: 1.5rem;
  }
  .modal p {
    font-size: 0.9rem;
  }
} 