/* Modern Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dynamic Luxury Background & Smoothly Harmonized 20-Pattern Morphing Animation */
@keyframes luxuryBackgroundMorph {
  0%, 5% {
      /* 1. Plaid (Fine linear intersecting lines) */
      background-color: #e5c69c;
      background-image: 
          repeating-linear-gradient(45deg, rgba(128, 0, 32, 0.03) 0, rgba(128, 0, 32, 0.03) 2px, transparent 0, transparent 20px),
          repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.04) 0, rgba(212, 175, 55, 0.04) 2px, transparent 0, transparent 20px);
      background-size: 50px 50px;
  }
  10% {
      /* 2. Ikat (Soft blurred diagonal lines) */
      background-color: #e2c299;
      background-image: repeating-linear-gradient(135deg, rgba(128, 0, 32, 0.03) 0px, rgba(128, 0, 32, 0.03) 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
      background-size: 40px 40px;
  }
  15% {
      /* 3. Cross tee (Clean grid lines) */
      background-color: #dfbe96;
      background-image: 
          linear-gradient(90deg, rgba(128, 0, 32, 0.04) 1px, transparent 1px), 
          linear-gradient(0deg, rgba(128, 0, 32, 0.04) 1px, transparent 1px);
      background-size: 25px 25px;
  }
  20% {
      /* 4. Fret (Geometric interconnected lines) */
      background-color: #dcba94;
      background-image: 
          linear-gradient(0deg, rgba(212, 175, 55, 0.05) 2px, transparent 2px), 
          linear-gradient(90deg, rgba(212, 175, 55, 0.05) 2px, transparent 2px);
      background-size: 30px 30px;
  }
  25% {
      /* 5. Lattice (Diagonal grid lines) */
      background-color: #d8b691;
      background-image: 
          linear-gradient(45deg, rgba(128, 0, 32, 0.04) 25%, transparent 25%), 
          linear-gradient(-45deg, rgba(128, 0, 32, 0.04) 25%, transparent 25%);
      background-size: 35px 35px;
  }
  30% {
      /* 6. Checkers (Filled grid squares) */
      background-color: #d5b28e;
      background-image: 
          linear-gradient(45deg, rgba(128, 0, 32, 0.05) 25%, transparent 25%), 
          linear-gradient(-45deg, rgba(128, 0, 32, 0.05) 25%, transparent 25%), 
          linear-gradient(45deg, transparent 75%, rgba(128, 0, 32, 0.05) 75%), 
          linear-gradient(-45deg, transparent 75%, rgba(128, 0, 32, 0.05) 75%);
      background-size: 40px 40px;
      background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  }
  35% {
      /* 7. Basket weave (Interlaced block texture) */
      background-color: #d2ae8b;
      background-image: 
          linear-gradient(0deg, rgba(128, 0, 32, 0.04) 50%, transparent 50%), 
          linear-gradient(90deg, rgba(212, 175, 55, 0.04) 50%, transparent 50%);
      background-size: 20px 20px;
  }
  40% {
      /* 8. Reverse criss cross (Diagonal cross-hatch) */
      background-color: #ceaa88;
      background-image: 
          linear-gradient(135deg, rgba(128, 0, 32, 0.04) 25%, transparent 25%), 
          linear-gradient(315deg, rgba(128, 0, 32, 0.04) 25%, transparent 25%);
      background-size: 40px 40px;
  }
  45% {
      /* 9. Moroccan tile (Curved geometric grid) */
      background-color: #cba686;
      background-image: 
          radial-gradient(circle at 100% 50%, transparent 20%, rgba(128, 0, 32, 0.04) 21%, rgba(128, 0, 32, 0.04) 34%, transparent 35%, transparent), 
          radial-gradient(circle at 0% 50%, transparent 20%, rgba(128, 0, 32, 0.04) 21%, rgba(128, 0, 32, 0.04) 34%, transparent 35%, transparent);
      background-size: 40px 40px;
  }
  50% {
      /* 10. Greek key (Rectangular geometric meander) */
      background-color: #c8a283;
      background-image: 
          linear-gradient(0deg, rgba(128, 0, 32, 0.04) 50%, transparent 50%), 
          linear-gradient(90deg, rgba(128, 0, 32, 0.04) 50%, transparent 50%);
      background-size: 30px 30px;
  }
  55% {
      /* 11. Bead and reel (Linear segmented dashes) */
      background-color: #c59e80;
      background-image: linear-gradient(90deg, rgba(128, 0, 32, 0.05) 4px, transparent 4px, transparent 12px, rgba(128, 0, 32, 0.05) 12px, rgba(128, 0, 32, 0.05) 16px, transparent 16px);
      background-size: 30px 30px;
  }
  60% {
      /* 12. Polka dot (Discrete soft dots) */
      background-color: #c29a7d;
      background-image: radial-gradient(rgba(128, 0, 32, 0.05) 20%, transparent 20%);
      background-size: 30px 30px;
  }
  65% {
      /* 13. Clover (Rounded petal clusters) */
      background-color: #bf977a;
      background-image: 
          radial-gradient(circle, rgba(128, 0, 32, 0.04) 10px, transparent 11px), 
          radial-gradient(circle, rgba(128, 0, 32, 0.04) 10px, transparent 11px);
      background-size: 40px 40px;
      background-position: 0 0, 20px 20px;
  }
  70% {
      /* 14. Reverse clover (Inverted petal clusters) */
      background-color: #bc9378;
      background-image: 
          radial-gradient(circle, rgba(212, 175, 55, 0.05) 12px, transparent 13px), 
          radial-gradient(circle, rgba(128, 0, 32, 0.04) 6px, transparent 7px);
      background-size: 50px 50px;
      background-position: 25px 25px, 0 0;
  }
  75% {
      /* 15. Aboriginal (Fine dotted fields) */
      background-color: #b99075;
      background-image: 
          radial-gradient(circle, rgba(128, 0, 32, 0.05) 3px, transparent 4px), 
          radial-gradient(circle, rgba(212, 175, 55, 0.04) 6px, transparent 7px);
      background-size: 20px 20px;
      background-position: 0 0, 10px 10px;
  }
  80% {
      /* 16. Vermicular (Wiggly organic textures) */
      background-color: #bc9378;
      background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(128, 0, 32, 0.04) 10px, transparent 20px);
      background-size: 40px 40px;
  }
  85% {
      /* 17. Palmette (Fan-shaped organic motifs) */
      background-color: #bf977a;
      background-image: radial-gradient(ellipse at center, rgba(128, 0, 32, 0.05) 0%, transparent 70%);
      background-size: 50px 50px;
  }
  90% {
      /* 18. La Florentina (Ornate damask arches) */
      background-color: #c59e80;
      background-image: 
          radial-gradient(circle at 50% 0%, rgba(128, 0, 32, 0.05) 20%, transparent 50%), 
          radial-gradient(circle at 50% 100%, rgba(128, 0, 32, 0.05) 20%, transparent 50%);
      background-size: 60px 60px;
  }
  95% {
      /* 19. Scales (Overlapping curved arcs) */
      background-color: #d2ae8b;
      background-image: radial-gradient(circle at 50% 100%, transparent 15px, rgba(128, 0, 32, 0.04) 16px, rgba(128, 0, 32, 0.04) 22px, transparent 23px);
      background-size: 30px 30px;
      background-position: 0 0, 15px 15px;
  }
  100% {
      /* 20. Plaid (Seamless loop back) */
      background-color: #e5c69c;
      background-image: 
          repeating-linear-gradient(45deg, rgba(128, 0, 32, 0.03) 0, rgba(128, 0, 32, 0.03) 2px, transparent 0, transparent 20px),
          repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.04) 0, rgba(212, 175, 55, 0.04) 2px, transparent 0, transparent 20px);
      background-size: 50px 50px;
  }
}

/* Centered Flexbox Layout with Ultra-Slow Hypnotic Pace (240s) */
body {
  animation: luxuryBackgroundMorph 240s ease-in-out infinite;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  transition: background-color 4s ease;
}

/* Container */
.coming-soon-container {
  max-width: 420px;
  width: 100%;
}

/* Minimal Logo with Diamond Glint Metallic Sheen */
@keyframes diamondGlint {
  0%, 65% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.brand-name {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-indent: 12px;
  position: relative;
  background: linear-gradient(90deg, #800020 0%, #ffdf73 50%, #800020 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: diamondGlint 5s ease-in-out infinite;
}

/* Coming Soon Text */
.status-text {
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  letter-spacing: 6px;
  color: #1B1212;
  text-transform: uppercase;
  opacity: 0.4;
  font-weight: 300;
  text-indent: 6px;
  margin-bottom: 3.5rem;
}

/* Capture Form Container */
.invite-form {
  width: 100%;
  margin-top: 1.5rem;
}

/* The Exclusive Invitation Header */
.form-header {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2d271f; 
  opacity: 0.7;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  transition: border-color 0.3s ease;
}

.input-group:focus-within {
  border-bottom: 1px solid rgba(212, 175, 55, 0.8);
}

.invite-form input[type="email"] {
  background: transparent;
  border: none;
  color: #800020;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 10px 40px 10px 0;
  width: 100%;
  outline: none;
  text-transform: uppercase;
}

.invite-form input[type="email"]::placeholder {
  color: rgba(128, 0, 32, 0.55);
  text-transform: uppercase;
  font-weight: 400;
}

/* Minimalistic Arrow Submit Button */
.invite-form button {
  background: transparent;
  border: none;
  color: #d4af37;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  right: 0;
  padding: 5px;
  transition: transform 0.3s ease;
}

.invite-form button:hover {
  transform: translateX(4px);
}

/* =========================================
 SUCCESS POPUP MODAL STYLES
 ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(27, 18, 18, 0.5);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: #e5c69c; 
  padding: 40px 30px;
  border: 1px solid rgba(128, 0, 32, 0.2);
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content h3 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #800020;
  margin-bottom: 1rem;
  font-weight: 300;
}

.modal-content p {
  font-size: 0.85rem;
  color: #1B1212;
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.close-modal-btn {
  background: transparent;
  border: 1px solid #800020;
  color: #800020;
  padding: 10px 24px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  background: #800020;
  color: #e5c69c;
}