:root {
  --primary-color: #2A9D8F;
  --text-color: #2D3748;
  --background-light: #FFFFFF;
  --card-background: #F0F4F8;
  --card-border: #CBD5E0;
  --text-secondary: rgba(45, 55, 72, 0.8);
  --button-active: #238779;
  --button-shadow: #B2F5EA;
  --spacing-unit: 2rem;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background-light);
  color: var(--text-color);
  line-height: 1.6;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-unit);
  padding-bottom: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.logo {
  margin: var(--spacing-unit) 0;
}

.logo img {
  width: 120px;
  height: auto;
}

h1 {
  font-size: 3.5rem;
  margin: var(--spacing-unit) 0;
  font-weight: 700;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--text-color);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-unit);
  margin-top: var(--spacing-unit) * 2;
}

.feature {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  padding: var(--spacing-unit);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(45, 127, 249, 0.1);
}

.feature h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature p {
  color: var(--text-secondary);
}

.privacy-policy {
  text-align: left;
}

.privacy-policy h1 {
  text-align: center;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  padding: var(--spacing-unit);
  border-radius: 12px;
}

.policy-content section {
  margin-bottom: var(--spacing-unit);
}

.policy-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.policy-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.policy-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.policy-content a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.back-link:hover {
  background: var(--card-background);
  text-decoration: none;
}

.app-store-button {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: calc(var(--spacing-unit) * 1.5);
}

.app-store-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 280px;
  height: 100px;
}

.app-store-button a:hover {
  opacity: 0.95;
  transform: scale(1.05);
  background: var(--card-background);
  border: 1px solid var(--card-border);
}

.app-store-button img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 60px;
  object-fit: contain;
}

/* Google Play badge specific styling */
.app-store-button img[alt="Get it on Google Play"] {
  height: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .app-store-button {
    flex-direction: column;
  }
  
  .app-store-button img {
    height: 60px;
  }
  
  .app-store-button img[alt="Get it on Google Play"] {
    height: 60px;
  }
  
  .app-store-button a {
    width: 240px;
    height: 85px;
    padding: 1.25rem;
  }
  
  .app-store-button img {
    max-width: 90%;
    max-height: 90%;
  }
}

footer {
  margin-top: var(--spacing-unit);
  padding: var(--spacing-unit);
  text-align: center;
  border-top: 1px solid rgba(10, 126, 164, 0.1);
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: calc(var(--spacing-unit) * 2) 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  padding: 0.75rem;
  transition: transform 0.2s ease;
}

.screenshot:hover {
  transform: translateY(-5px);
}

.screenshot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(45, 127, 249, 0.1);
}

@media (max-width: 1024px) {
  .screenshots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .screenshots {
    grid-template-columns: 1fr;
  }
  
  .screenshot img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
}