/* Google Fonts: DM Serif Display (400,italic), Cormorant Garamond (400,500,600,italic), Inter (400,500,600,700) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Warm Minimal Palette */
  --bg-primary: #FDFBFA;
  --bg-card: #FFFFFF;
  --bg-accent: #FFF5F3;
  --bg-dark: #2D2226;
  --bg-dark-card: #3A2F33;
  
  --accent-rose: #E8677D;
  --accent-rose-hover: #D4526E;
  --accent-rose-light: rgba(232, 103, 125, 0.08);
  --accent-gold: #C9A96E;
  --accent-gold-light: #E8D5B5;
  
  --text-dark: #2D2226;
  --text-body: #4A3B40;
  --text-muted: #7A6B70;
  --text-light: #FDFBFA;
  --text-light-muted: rgba(253, 251, 250, 0.7);
  
  --border-light: #F0E6EA;
  --border-accent: rgba(232, 103, 125, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(45, 34, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 34, 38, 0.08);
  --shadow-lg: 0 16px 40px rgba(45, 34, 38, 0.12);
  --shadow-glow: 0 0 30px rgba(232, 103, 125, 0.15);
  
  --font-heading: 'DM Serif Display', serif;
  --font-accent: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-rose-light) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-rose);
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  position: relative;
  z-index: 2;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.script-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent-rose);
}

.badge {
  display: inline-flex;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.content-section {
  margin-bottom: 100px;
  opacity: 1;
  transform: none;
}

.hero-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 32px 0 48px;
  gap: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.subsection {
  margin-bottom: 64px;
  opacity: 1;
  transform: none;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 28px;
}

.section-dark {
  background: linear-gradient(135deg, #FFF0F3, #FFE4EC);
  color: var(--text-dark);
  padding: 80px 32px;
  border-radius: var(--radius-lg);
  margin: 0 -24px 100px;
  border: 1px solid var(--border-light);
}

.section-dark .section-title,
.section-dark .subsection-title {
  color: var(--text-dark);
}

.section-dark .section-subtitle {
  color: var(--text-muted);
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: 48px auto;
  max-width: 120px;
}

.section-divider--light {
  background: rgba(255,255,255,0.12);
}

.js-loaded .content-section, 
.js-loaded .subsection {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-loaded .content-section.visible, 
.js-loaded .subsection.visible {
  opacity: 1;
  transform: none;
}

.pulsing-heart {
  display: inline-block;
  animation: heart-pulse 2s ease-in-out infinite;
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.floating-element {
  animation: float 5s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .app-container {
    padding: 16px 18px 60px;
  }
  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
  .content-section {
    margin-bottom: 60px;
  }
  .section-dark {
    padding: 60px 24px;
    margin: 0 -18px 80px;
  }
}
