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

body {
  font-family: Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #89c9a4 0%, #5a9d7a 100%);
  min-height: 100vh;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  body {
    color: #f0f0f0;
    background: linear-gradient(135deg, #2d5a3d 0%, #1a3d28 100%);
  }

  .nav-links a {
    color: #f0f0f0;
  }

  .nav-links a:hover {
    color: #89c9a4;
  }

  .logo {
    color: #89c9a4;
  }

  header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
  }

  .features {
    background: #1a1a1a;
  }

  .features h2 {
    color: #f0f0f0;
  }

  .feature-card {
    background: #2a2a2a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  .feature-card h3 {
    color: #f0f0f0;
  }

  .feature-card p {
    color: #ccc;
  }

  .screenshots {
    background: #0f0f0f;
  }

  .screenshots h2 {
    color: #f0f0f0;
  }

  .screenshot-placeholder {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    color: #ccc;
  }

  footer {
    background: #1a1a1a;
  }

  .hero::before {
    opacity: 0.12;
  }

  .hero::after {
    opacity: 0.07;
  }
}

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

/* Header */
header {
  background: #c2e0ced3;
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2d5a3d;
}

.logo a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.logo a:visited {
  color: inherit;
}

.logo a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo a:focus-visible {
  outline: 2px solid #89c9a4;
  outline-offset: 2px;
  border-radius: 8px;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: block;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

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

.nav-links a {
  text-decoration: none;
  color: #35443c;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2d5a3d;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  color: #d0f3de;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hero_waves.svg");
  background-repeat: repeat;
  background-size: 320px 220px;
  background-position: 0 0;
  animation: wavesX320 3s linear infinite;
  opacity: 0.3;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hero_waves.svg");
  background-repeat: repeat;
  background-size: 240px 160px;
  background-position: 0 40px;
  animation: wavesX240 5s linear infinite;
  opacity: 0.2;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@keyframes wavesX240 {
  from {
    background-position: 0 40px;
  }

  to {
    background-position: 240px 40px;
  }
}

@keyframes wavesX320 {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 320px 0;
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 20px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 180px;
  margin-bottom: 1rem;
}

.btn-primary {
  background: #d0f3de;
  color: #2d5a3d;
  border: 3px solid #5a9d7a;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px 32px;
  min-width: 250px;
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-icon {
  font-size: 1.2rem;
}

.play-store-badge {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

.play-store-badge img {
  display: block;
  height: 64px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
  transition: filter 0.25s ease, transform 0.25s ease;
  will-change: filter, transform;
}

.play-store-badge:hover img,
.play-store-badge:focus-visible img {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transform: translateY(-2px);
}

.play-store-badge:active img {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
  transform: translateY(-1px);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: #dbfae9;
  color: #2d5a3d;
}

.features h2 {
  color: #2d5a3d;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.feature-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #c8f3da, #89c9a4);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #daf5e5;
  border: 1px solid #5a9d7a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #4c5f55;
}

.feature-card p {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  color: #4c5f55;
}

/* Screenshots Section */
.screenshots {
  padding: 80px 0;
  background: #f8f9fa;
}

.screenshots h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.screenshot-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.screenshot-placeholder {
  display: inline-block;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: #000;
}

.screenshot-placeholder img {
  display: block;
  height: 700px;
  width: auto;
  border-radius: 20px;
  object-fit: cover;
  /* min-width: 300px; */
}

.screenshot-placeholder:hover {
  opacity: 0.9;
}

/* Modal for enlarged screenshots */
.screenshot-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.screenshot-modal img {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.screenshot-modal.show {
  display: block;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {

  .hero::before,
  .hero::after {
    animation: none !important;
  }
}

/* Footer */
footer {
  background: #35443c;
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-text {
  text-align: center;
}

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

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #89c9a4;
}

#copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #4c5f55;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 160px;
  }
}
