/* ============================================
   LIVELY WAITLIST — style.css
   Exact spec: 1920×1080, lavender silk + gold
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #D8C1E5; /* fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

/* ─── BACKGROUND SVG ─── */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bg-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ─── PAGE CENTER ─── */
.page-center {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 24px;
}

/* ─── CONTENT CARD ─── */
.content-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 660px;
  width: 100%;
  margin-top: -24px;
}

/* ─── LOGO ─── */
.logo-wrap {
  width: 120px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  animation: floatLogo 4s ease-in-out infinite;
}

/* Real logo image — mix-blend-mode:screen removes the black background */
.logo-img {
  width: 120px;
  height: 110px;
  object-fit: contain;
  mix-blend-mode: screen;
  /* Glow: White, 20-30% opacity, 25-35px blur */
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.25)) brightness(0.88) contrast(1.1) saturate(1.15);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

/* ─── TAGLINE ─── */
.tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #BA9046;
  margin-bottom: 14px;
  opacity: 0.95;
}

/* ─── HEADLINE ─── */
.headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(46px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.18;
  color: #5A3F6F;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.gold-word {
  background: linear-gradient(to bottom, #F7DD9A 0%, #D5A448 50%, #B8822C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* ─── DIVIDER ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.divider-line {
  display: block;
  width: 60px;
  height: 0.5px;
}

.divider-line:first-child {
  background: linear-gradient(to right, transparent, #D2A14A);
}

.divider-line:last-child {
  background: linear-gradient(to left, transparent, #D2A14A);
}

/* ─── SUBTEXT ─── */
.subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 150;
  line-height: 1.7;
  color: #56427C;
  opacity: 0.8;
  margin-bottom: 28px;
}

/* ─── FORM ─── */
.waitlist-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 530px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(80, 0, 120, 0.15), 0 1px 8px rgba(0,0,0,0.08);
}

.email-field-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 0 16px;
  gap: 10px;
}

.mail-icon {
  flex-shrink: 0;
  opacity: 0.72;
}

.email-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #65507F;
  padding: 17px 0;
  min-width: 0;
}

.email-input::placeholder {
  color: #65507F;
  font-weight: 500;
}

.email-field-wrap:focus-within {
  outline: 2px solid rgba(214, 175, 95, 0.4);
  outline-offset: -1px;
}

/* JOIN WAITLIST BUTTON */
.join-btn {
  flex-shrink: 0;
  background: linear-gradient(to right, #F5D790 0%, #DBAD55 50%, #C98C2E 100%);
  color: #5A3F6F;
  border: none;
  outline: none;
  padding: 0 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: filter 0.2s ease, transform 0.15s ease;
  min-width: 158px;
  min-height: 56px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.join-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.join-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.join-btn.loading .btn-text { opacity: 0; }
.join-btn.loading .btn-loader { display: block; }

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Form error */
.form-error {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  color: #b03a2e;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.form-error.visible { opacity: 1; }

/* ─── PRIVACY NOTE ─── */
.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: #56437D;
  opacity: 1;
  margin-top: 14px;
}

.lock-icon { flex-shrink: 0; opacity: 0.75; }

/* ─── SUCCESS TOAST ─── */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #fff;
  border-radius: 50px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(80, 0, 120, 0.18);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2E1A5E;
  z-index: 100;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── STATES ─── */
#initial-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#success-state {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
}

.success-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  color: #4E3A73;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.success-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: #C9A15A;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.95;
}

.success-subtext {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: #5C477F;
  margin-bottom: 30px;
  opacity: 0.8;
}

.success-signature {
  font-family: 'Allura', cursive;
  font-size: 38px;
  color: #5A417E;
  margin-bottom: 20px;
}

.heart-icon {
  opacity: 0.85;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  body { overflow: auto; }

  .page-center {
    height: auto;
    min-height: 100vh;
    padding: 52px 20px 64px;
  }

  .content-card { margin-top: 0; }

  .headline { font-size: clamp(28px, 7.5vw, 40px); }

  .input-group {
    flex-direction: column;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
    gap: 10px;
  }

  .email-field-wrap {
    border-radius: 6px;
    box-shadow: 0 2px 16px rgba(80, 0, 120, 0.12);
  }

  .join-btn {
    border-radius: 6px;
    min-height: 52px;
    box-shadow: 0 4px 20px rgba(190, 149, 68, 0.35);
  }

  .toast {
    width: calc(100% - 40px);
    justify-content: center;
    white-space: normal;
    text-align: center;
    bottom: 20px;
  }
}
