/* ==========================================================================
   Dishvika — Design Tokens & Core Stylesheet
   Theme: Midnight Obsidian & Champagne Gold Luxury
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-deep: #07080c;
  --bg-surface: #0e1017;
  --bg-card: rgba(18, 21, 31, 0.65);
  --bg-card-hover: rgba(26, 30, 44, 0.8);

  --gold-300: #faecc8;
  --gold-400: #e5be73;
  --gold-500: #d4a754;
  --gold-600: #ad8231;
  --gold-gradient: linear-gradient(135deg, #faecc8 0%, #e5be73 50%, #b88628 100%);
  --gold-glow: rgba(229, 190, 115, 0.25);
  --gold-glow-strong: rgba(229, 190, 115, 0.45);

  --text-primary: #f8f9fa;
  --text-secondary: #a9b0c2;
  --text-muted: #697184;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 190, 115, 0.28);
  --border-gold-focus: rgba(229, 190, 115, 0.6);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations & Glassmorphism */
  --glass-blur: blur(20px);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(229, 190, 115, 0.08);

  /* Transition Curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s var(--ease-spring);
}

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Background Canvas & Ambient Lighting */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 1s ease;
}

.glow-top {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 167, 84, 0.18) 0%, rgba(13, 15, 23, 0) 70%);
}

.glow-bottom {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(140, 100, 210, 0.1) 0%, rgba(13, 15, 23, 0) 70%);
}

/* Layout Wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  animation: fadeInDown 0.8s var(--ease-spring) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-crest {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-smooth);
}

.brand:hover .brand-crest {
  transform: rotate(12deg) scale(1.05);
}

.crest-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.vip-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(229, 190, 115, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulseGlow 2s infinite ease-in-out;
}

/* ==========================================================================
   Main Content & Hero
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-section {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.8s var(--ease-spring) 0.1s both;
}

.eyebrow-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.eyebrow .eyebrow-line:last-child {
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.eyebrow-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  animation: fadeInUp 0.9s var(--ease-spring) 0.2s both;
}

.highlight-text {
  font-style: italic;
  font-weight: 400;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 0.1em;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.75rem;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeInUp 0.9s var(--ease-spring) 0.3s both;
}

/* ==========================================================================
   Live Countdown Timer
   ========================================================================== */
.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.25rem;
  animation: fadeInUp 0.9s var(--ease-spring) 0.4s both;
}

.countdown-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 14px 14px 0 0;
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.countdown-separator {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-500);
  opacity: 0.5;
  margin-top: -0.8rem;
}

/* ==========================================================================
   Newsletter & VIP Invitation Form
   ========================================================================== */
.signup-wrapper {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  animation: fadeInUp 0.9s var(--ease-spring) 0.5s both;
}

.signup-form {
  display: flex;
  gap: 0.6rem;
  background: rgba(14, 16, 23, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.signup-form:focus-within {
  border-color: var(--border-gold-focus);
  box-shadow: 0 0 25px var(--gold-glow);
}

.input-container {
  display: flex;
  align-items: center;
  flex: 1;
  padding-left: 1.1rem;
  gap: 0.65rem;
}

.input-icon {
  color: var(--gold-400);
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.email-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.75rem 0.25rem;
}

.email-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  border-radius: 40px;
  border: none;
  background: var(--gold-gradient);
  color: #121008;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), filter var(--transition-smooth);
  white-space: nowrap;
}

.submit-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px var(--gold-glow-strong);
  filter: brightness(1.06);
}

.submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  transition: transform var(--transition-smooth);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-privacy-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.lock-icon {
  font-size: 0.85rem;
}

/* ==========================================================================
   Teaser Cards Section
   ========================================================================== */
.teasers-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1020px;
  margin-top: 4.5rem;
  animation: fadeInUp 0.9s var(--ease-spring) 0.6s both;
}

.teaser-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  text-align: left;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
}

.teaser-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background-color: var(--bg-card-hover);
}

.teaser-card.highlight-card {
  border-color: rgba(229, 190, 115, 0.22);
}

.teaser-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 190, 115, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
  transition: background-color var(--transition-smooth), transform var(--transition-smooth);
}

.teaser-card:hover .teaser-icon {
  background: var(--gold-gradient);
  color: #121008;
  transform: scale(1.08);
}

.teaser-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.teaser-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.8s var(--ease-spring) 0.7s both;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.social-link:hover {
  color: var(--gold-300);
  border-color: var(--border-gold);
  background: rgba(229, 190, 115, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 190, 115, 0.15);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(18, 22, 34, 0.92);
  border: 1px solid var(--gold-400);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(120%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 100;
  max-width: 380px;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast.error-toast {
  border-color: #e57373;
}

.toast.error-toast .toast-icon {
  background: rgba(229, 115, 115, 0.15);
}

.toast-icon {
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(229, 190, 115, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.toast-message {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--gold-400); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .teasers-section {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 1.25rem;
    margin-top: 3.5rem;
  }
  
  .header {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 1.5rem 1rem;
  }

  .countdown-container {
    gap: 0.4rem;
  }

  .countdown-card {
    min-width: 68px;
    padding: 0.85rem 0.65rem;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  .countdown-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .countdown-separator {
    font-size: 1.2rem;
    margin-top: -0.5rem;
  }

  .signup-form {
    flex-direction: column;
    border-radius: 18px;
    padding: 0.6rem;
  }

  .input-container {
    padding-left: 0.6rem;
  }

  .submit-btn {
    width: 100%;
    border-radius: 12px;
    padding: 0.85rem 1rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
  }
}
