/* ==========================================================================
   Titli by Sakshi Uppal - Luxury Coming Soon Landing Page
   Aesthetic: High-Fashion Indian Boutique / Luxury Editorial / Feminine Softness
   ========================================================================== */

:root {
  /* Color Palette inspired by Titli Logo */
  --bg-ivory: #FAF7F2;
  --bg-cream: #F5EFE6;
  --color-obsidian: #1A1817;
  --color-charcoal: #4A443F;
  --color-taupe: #7D736A;

  /* Accent Colors */
  --orange-primary: #E86F3B;
  --coral-accent: #F0806E;
  --pink-accent: #D84A75;
  --magenta-deep: #B52B53;
  --gold-warm: #D4AF37;
  --gold-light: #F3E5C8;

  /* Gradients */
  --grad-sunset: linear-gradient(135deg, #E86F3B 0%, #D84A75 50%, #D4AF37 100%);
  --grad-gold: linear-gradient(135deg, #D4AF37 0%, #F3D99B 50%, #B89228 100%);
  --grad-text: linear-gradient(135deg, #1A1817 0%, #4A443F 100%);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Didot', 'Bodoni MT', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Shadows */
  --shadow-soft: 0 20px 50px rgba(26, 24, 23, 0.05);
  --shadow-glow: 0 10px 30px rgba(216, 74, 117, 0.12);
  --radius-pill: 100px;
}

/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-ivory);
  color: var(--color-obsidian);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==========================================================================
   Ambient Background Layer
   ========================================================================== */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 111, 59, 0.25) 0%, rgba(240, 128, 110, 0) 70%);
}

.orb-2 {
  bottom: -15%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(216, 74, 117, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
  animation-delay: -6s;
}

.orb-3 {
  top: 40%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(230, 197, 135, 0.3) 0%, rgba(245, 239, 230, 0) 70%);
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

.soft-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 24, 23, 0.015) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.7;
}

/* Canvas Layer */
#butterfly-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   Navigation & Controls
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 3rem;
  z-index: 20;
}

.nav-brand-small {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 1s ease 2s;
}

.hero-container.revealed ~ .top-nav .nav-brand-small {
  opacity: 0.85;
  transform: translateY(0);
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(250, 247, 242, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-pill);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.hero-container.revealed ~ .top-nav .control-btn {
  opacity: 1;
  transform: translateY(0);
}

.control-btn:hover {
  background: #FFFFFF;
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  box-shadow: 0 6px 20px rgba(232, 111, 59, 0.12);
  transform: translateY(-2px);
}

.control-btn svg {
  transition: transform 0.4s ease;
}

.control-btn:hover svg {
  transform: rotate(-180deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 920px;
  padding: 2.5rem 1.5rem;
  margin: 0 auto;
  text-align: center;

  /* Unveil Transition State */
  opacity: 0;
  filter: blur(16px);
  transform: scale(0.96) translateY(20px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-container.revealed {
  opacity: 1;
  filter: blur(0);
  transform: scale(1) translateY(0);
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

/* Logo Styling */
.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 25px rgba(26, 24, 23, 0.06));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

/* Headline Group */
.headline-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 760px;
}

.sub-caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange-primary);
  opacity: 0.9;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--color-obsidian);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.title-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 280px;
  margin: 0.4rem 0;
}

.title-separator .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.butterfly-icon-small {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseIcon 4s ease-in-out infinite;
}

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

.tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 300;
  color: var(--color-taupe);
  letter-spacing: 0.02em;
}

.subtitle strong {
  font-weight: 500;
  color: var(--color-obsidian);
}

/* ==========================================================================
   Email Subscription Form
   ========================================================================== */
.notify-section {
  width: 100%;
  max-width: 480px;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.notify-lead {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
}

.notify-form {
  width: 100%;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.35rem 0.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
}

.input-container:focus-within {
  border-color: var(--orange-primary);
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(232, 111, 59, 0.12);
}

#email-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-obsidian);
}

#email-input::placeholder {
  color: var(--color-taupe);
  opacity: 0.7;
}

.submit-btn {
  position: relative;
  padding: 0.85rem 1.8rem;
  background: var(--grad-sunset);
  border: none;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(216, 74, 117, 0.25);
  transition: all 0.35s ease;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(216, 74, 117, 0.35);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(0);
}

/* Spinner state */
.submit-btn.loading .btn-text {
  visibility: hidden;
}

.submit-btn.loading .btn-spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.form-feedback {
  font-size: 0.82rem;
  min-height: 1.2rem;
  margin-top: 0.4rem;
  transition: all 0.3s ease;
}

.form-feedback.success {
  color: #2E7D32;
}

.form-feedback.error {
  color: #C62828;
}

/* ==========================================================================
   Footer & Social Links
   ========================================================================== */
.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-charcoal);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--orange-primary);
  transform: translateY(-2px);
}

.social-dot {
  color: var(--color-taupe);
  opacity: 0.4;
  font-size: 0.8rem;
}

.copyright {
  font-size: 0.78rem;
  color: var(--color-taupe);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.9rem 1.8rem;
  background: rgba(26, 24, 23, 0.92);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 400;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Media Queries & Responsive Optimizations
   ========================================================================== */
@media (max-width: 768px) {
  .top-nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-brand-small {
    font-size: 0.95rem;
  }

  .hero-container {
    padding: 2rem 1.25rem;
  }

  .brand-logo-img {
    max-width: 250px;
  }

  .main-title {
    font-size: 3rem;
    letter-spacing: 0.1em;
  }

  .tagline {
    font-size: 1.4rem;
  }

  .notify-section {
    max-width: 100%;
  }

  .input-container {
    flex-direction: column;
    padding: 0.5rem;
    border-radius: 20px;
    gap: 0.5rem;
  }

  #email-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    text-align: center;
  }

  .submit-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 14px;
  }

  .social-links {
    gap: 0.8rem;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .glow-orb,
  .butterfly-icon-small,
  .control-btn,
  .hero-container,
  .brand-logo-img {
    animation: none !important;
    transition: opacity 0.5s ease !important;
    transform: none !important;
  }

  .hero-container {
    opacity: 1 !important;
    filter: none !important;
  }

  #butterfly-canvas {
    display: none;
  }
}
