/* ========================================
   YU SLEEP - Dreamy Sleep Sanctuary
   CSS Variables & Base Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Quicksand:wght@300;400;500;600&display=swap');

:root {
  --deep-navy: #0a0a1a;
  --night-blue: #0f1629;
  --midnight-purple: #1a1035;
  --soft-purple: #2d1f4e;
  --lavender: #9b8dc4;
  --soft-lavender: #c4b8e0;
  --moon-gold: #f4e4bc;
  --star-white: #f0f0ff;
  --cream: #f5f0e8;
  --text-light: #e8e4f0;
  --text-muted: #a8a0c0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--night-blue) 30%, var(--midnight-purple) 70%, var(--soft-purple) 100%);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Stars Background Animation */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: var(--star-white);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 500; }

p { margin-bottom: 1rem; }

a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover { color: var(--moon-gold); }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,26,0.98) 0%, rgba(10,10,26,0) 100%);
  padding: 1.5rem 2rem;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--moon-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--soft-lavender);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--moon-gold); }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.8);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--deep-navy) 70%);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(155, 141, 196, 0.2);
  border: 1px solid rgba(155, 141, 196, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--soft-lavender);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(155, 141, 196, 0.3);
}

.hero h1 span {
  color: var(--moon-gold);
  font-style: italic;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--soft-purple) 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: all 0.4s ease;
  box-shadow: 0 4px 30px rgba(155, 141, 196, 0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(155, 141, 196, 0.6);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--soft-lavender);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 400;
  font-size: 0.95rem;
  border: 1px solid rgba(155, 141, 196, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--lavender);
  color: var(--moon-gold);
  background: rgba(155, 141, 196, 0.1);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--cream);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.moon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.moon-divider::before,
.moon-divider::after {
  content: '';
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
}

/* Product Section */
.product-section {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 16, 53, 0.5) 50%, transparent 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(155, 141, 196, 0.2);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(155, 141, 196, 0.3) 0%, transparent 60%);
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.product-info h2 {
  color: var(--moon-gold);
  margin-bottom: 0.5rem;
}

.product-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--soft-lavender);
  margin-bottom: 2rem;
}

.product-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.product-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.product-features li svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--lavender);
  margin-top: 2px;
}

.price-box {
  background: rgba(155, 141, 196, 0.1);
  border: 1px solid rgba(155, 141, 196, 0.2);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--moon-gold);
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.affiliate-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  opacity: 0.7;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  background: linear-gradient(135deg, rgba(26, 16, 53, 0.6) 0%, rgba(15, 22, 41, 0.6) 100%);
  border: 1px solid rgba(155, 141, 196, 0.15);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(155, 141, 196, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--soft-purple) 0%, var(--midnight-purple) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.benefit-card h3 {
  color: var(--cream);
  margin-bottom: 1rem;
  font-weight: 500;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Blog Preview */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: linear-gradient(135deg, rgba(26, 16, 53, 0.6) 0%, rgba(15, 22, 41, 0.6) 100%);
  border: 1px solid rgba(155, 141, 196, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 141, 196, 0.4);
}

.blog-card-content {
  padding: 2rem;
}

.blog-card h3 {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-category {
  background: rgba(155, 141, 196, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--lavender);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  gap: 0.8rem;
  color: var(--moon-gold);
}

/* Testimonial */
.testimonial-section {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 16, 53, 0.3) 50%, transparent 100%);
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 6rem;
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--lavender);
  opacity: 0.3;
  font-family: 'Cormorant Garamond', serif;
}

.testimonial-author {
  color: var(--moon-gold);
  font-size: 1.1rem;
}

.testimonial-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 8rem 0;
}

.cta-section h2 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Footer */
footer {
  background: rgba(10, 10, 26, 0.95);
  border-top: 1px solid rgba(155, 141, 196, 0.1);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-column h4 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--moon-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(155, 141, 196, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(26, 16, 53, 0.98) 0%, rgba(15, 22, 41, 0.98) 100%);
  border-top: 1px solid rgba(155, 141, 196, 0.2);
  padding: 1.5rem 2rem;
  z-index: 1000;
  display: none;
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 300px;
}

.cookie-content a {
  color: var(--lavender);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cookie-btn.accept {
  background: var(--lavender);
  color: white;
}

.cookie-btn.accept:hover {
  background: var(--soft-purple);
}

.cookie-btn.decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(155, 141, 196, 0.3);
}

.cookie-btn.decline:hover {
  border-color: var(--lavender);
  color: var(--soft-lavender);
}

/* Legal Pages */
.legal-page {
  padding: 8rem 0 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  color: var(--moon-gold);
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(155, 141, 196, 0.2);
}

.legal-page h2 {
  color: var(--cream);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Blog Page */
.blog-page {
  padding: 8rem 0 4rem;
}

.blog-page .hero-text {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-page .hero-text h1 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.blog-page .hero-text p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-article {
  background: linear-gradient(135deg, rgba(26, 16, 53, 0.6) 0%, rgba(15, 22, 41, 0.6) 100%);
  border: 1px solid rgba(155, 141, 196, 0.15);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.4s ease;
}

.blog-article:hover {
  border-color: rgba(155, 141, 196, 0.4);
}

.blog-article h2 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.blog-article .article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-article p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-content h3 {
  color: var(--soft-lavender);
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
}

.article-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .benefits-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .benefits-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero {
    padding: 6rem 1.5rem 3rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
