:root {
  --bg-color: #FCFBF8; /* Lighter cream for desktop */
  --nav-bg-color: rgba(252, 251, 248, 0.6); /* 60% opacity of desktop bg */
  --primary-color: #A0856C;
  --text-color: #333333;
  --text-light: #666666;
  --g1-color: rgba(160, 133, 108, 0.6);
  --g2-color: rgba(160, 133, 108, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--nav-bg-color);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px); /* Frosted glass effect */
  padding: 1.2rem 0; /* Increased height */
  z-index: 1000;
  border-bottom: 1px solid rgba(160, 133, 108, 0.2);
}

.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}



.nav-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* Accounts for mobile browser address bar without jumping on scroll */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.logo {
  font-weight: 300;
  font-size: clamp(36px, 8vw, 72px);
  letter-spacing: 0.18em;
  color: var(--primary-color);
  user-select: none;
  animation: fadeInDown 1.2s ease-out;
  margin-bottom: 1.5rem; /* Increased spacing */
  margin-left: 0.18em;
}

.logo .g1 { color: var(--g1-color); }
.logo .g2 { color: var(--g2-color); }

.tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem); /* Even smaller font size */
  color: var(--text-light);
  margin-bottom: 3rem;
  animation: fadeInUp 1.2s ease-out 0.3s both;
  font-weight: 300;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 1.2rem;
  animation: fadeInUp 1.2s ease-out 0.6s both;
  flex-wrap: wrap;
  justify-content: center;
}

.store-btn-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-btn-link:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

.store-badge {
  height: 48px; /* Standard badge height */
  width: auto;
  display: block;
}

/* Scroll Chevron */
.scroll-chevron-wrapper {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  margin-left: -20px; /* Use margin instead of transform to avoid conflicting with fadeInUp */
  z-index: 999;
  color: var(--primary-color);
  animation: fadeInUp 1.2s ease-out 1.2s both; /* Animates in after badges */
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.scroll-chevron-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-chevron {
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Features Desktop (Side-by-side) */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.carousel-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem; /* Increased vertical space between images and description */
  padding: 0;
}

.feature-image {
  width: 100%;
  max-width: 300px; /* Decreased to add more space between images */
  display: flex;
  justify-content: center;
  position: relative;
}

.feature-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(160, 133, 108, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
}

.feature-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(160, 133, 108, 0.15);
}

.feature-text h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); /* Reduced heading font size */
  color: var(--primary-color);
  margin-bottom: 1.2rem; /* Increased margin to visually balance with paragraph spacing */
  font-weight: 600;
  line-height: 1.2;
}

.feature-text p {
  font-size: 0.85rem; /* Smaller font size */
  color: var(--text-light);
  line-height: 1.7;
  max-width: 300px; /* Reduced width of the descriptions, but wider than 280px */
  margin: 0 auto 0.8rem; /* Match the gap used by the heading */
}

.feature-text p:last-child {
  margin-bottom: 0;
}

.carousel-indicators {
  display: none; /* Hidden on desktop */
}

.indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: var(--primary-color);
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 8rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact-content {
  text-align: center;
  flex: 1;
}

.contact-content h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-content p {
  font-size: 0.85rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.email-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.email-link:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.contact-content .data-deletion {
  font-size: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 0;
  max-width: 450px;
  opacity: 0.8;
}

/* Footer Bottom Layout */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 8rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(160, 133, 108, 0.2);
}

.copyright {
  font-size: 0.75rem;
}

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

.copyright a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  font-size: 0.75rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

/* Legal Pages */
.legal-container {
  max-width: 800px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
  color: var(--text-color);
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-content h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.legal-content p, .legal-content ul, .legal-content li {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1rem;
}

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

.legal-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-content a:hover {
  text-decoration: none;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive Tablet & Mobile */

@media (max-width: 900px) {
  /* Carousel */
  .carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-container::-webkit-scrollbar {
    display: none;
  }

  .feature-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 1.5rem; /* Padding on all sides to prevent shadow clipping */
  }

  .feature-image {
    max-width: 100%; /* Take up more width on mobile */
  }

  .feature-image img {
    box-shadow: 0 8px 24px rgba(160, 133, 108, 0.15); /* Smaller shadow to fit within padding */
  }

  .carousel-indicators {
    display: flex; /* Show indicators on mobile */
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --bg-color: #F5F2EA; /* Slightly richer cream to counteract OLED brightness */
    --nav-bg-color: rgba(245, 242, 234, 0.6); /* 60% opacity of mobile bg */
  }

  .nav-links {
    gap: 2rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }
  
  .hero {
    padding-bottom: 10rem; /* Shifts the vertically-centered content slightly higher */
  }

  .store-buttons {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem; /* Reduce gap to ensure they fit side-by-side */
  }

  .store-badge {
    height: 40px; /* Meet exact minimum height guidelines for digital display */
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
