@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Chivo:wght@100;200;300;400&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette */
  --brand-premium: #ffd700; /* primary.premium */
  --primary-color: #b48a78; /* primary.link / active */
  --secondary-color: #6c5e53; /* secondary.foreground */
  --text-color: #4e3b2c; /* primary.foreground */
  --text-light: #8a7a6d; /* primary.foregroundMuted */
  --background: #f8f5f2; /* primary.background */
  --background-alt: #fffdfa; /* card.background */
  --border-color: #e7ded9; /* primary.border */
  --success-color: #7ec49d; /* primary.yes */
  --warning-color: #eabf7b; /* primary.no */
  --accent-color: #c9a995; /* primary.accent */
  --secondary-background: #f3ede7; /* secondary.background */
  --secondary-accent: #f7d9c4; /* secondary.accent */
  --card-back: #f5ede6; /* card.backBackground */
  --card-forms: #bfae9e; /* card.forms */
  --card-description: #bfae9e; /* card.description */
  --card-progress: #f2e6d8; /* card.progressbar */
  --card-accent: #ffe8d6; /* card.accent */
  --button-icon: #ffffff; /* primary.buttonIcon */
  --border-radius: 12px;
  /* Warm tinted shadows aligned with brand */
  --shadow: 0 4px 6px -1px rgba(78, 59, 44, 0.1),
    0 2px 4px -1px rgba(78, 59, 44, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(78, 59, 44, 0.12),
    0 4px 6px -2px rgba(78, 59, 44, 0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo h1 {
  font-family: "Chivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  color: #000000;
  font-weight: 300; /* thin weight */
  letter-spacing: 0.2px;
  margin: 0;
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  /* Warm gradient matching brand (peach -> coffee-rose) */
  background: linear-gradient(
    135deg,
    var(--secondary-accent) 0%,
    var(--primary-color) 100%
  );
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center; /* vertically center badges */
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; /* allow vertical centering */
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn img {
  display: block;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--background-alt);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(62%) sepia(20%) saturate(600%)
    hue-rotate(340deg) brightness(90%) contrast(85%);
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Adjust specific icons for visual balance - keep container height consistent */
.feature-icon[src*="target.svg"] {
  width: 80px;
  /* height stays 60px to maintain alignment */
}

.feature-icon[src*="bookmark.svg"],
.feature-icon[src*="volume.svg"] {
  width: 50px;
  /* height stays 60px to maintain alignment */
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Screenshots Section */
.screenshots {
  padding: 5rem 0;
  background: var(--background);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.screenshot-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--background-alt);
}

/* Download Section */
.download {
  padding: 5rem 0;
  background: var(--background-alt);
  text-align: center;
}

.download-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center; /* vertically center badges */
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex; /* allow vertical centering */
  align-items: center;
  transition: transform 0.3s;
}

.download-btn:hover {
  transform: translateY(-3px);
}

.download-btn img {
  display: block;
}

/* Footer */
footer {
  background: var(--text-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}

/* Legal Pages Styles */
.legal-page {
  padding: 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.legal-page h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.legal-page h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.legal-page p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.legal-page ul {
  margin-bottom: 1rem;
  margin-left: 2rem;
  color: var(--text-light);
}

.legal-page ul li {
  margin-bottom: 0.5rem;
}

.legal-page a {
  color: var(--primary-color);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .legal-page {
    padding: 2rem 1rem;
  }

  .legal-page h1 {
    font-size: 2rem;
  }
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.8em;
  margin-left: 0.5em;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: var(--background-alt);
}

/* Legal Pages Styles */
.legal-page {
  padding: 4rem 0 2rem;
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.legal-content h3 {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.info-block {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.info-block p {
  margin-bottom: 1rem;
}

.info-block ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.info-block li {
  margin-bottom: 0.5rem;
}

.back-link {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-links .active {
  font-weight: bold;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0.5rem;
  }

  .dropdown-toggle::after {
    content: "";
  }

  .legal-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .nav-links li {
    margin: 0.25rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .legal-page {
    padding: 2rem 0;
  }

  .legal-content {
    margin: 0;
    padding: 1rem;
  }

  .legal-content h1 {
    font-size: 1.75rem;
  }
}
