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

:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

body {
  font-family: "Cairo", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
}

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

/* Header */
header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

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

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn i {
  width: 24px;
  height: 24px;
}

.download-btn i {
  width: 24px;
  height: 24px;
}

.requirements h3 i {
  width: 20px;
  height: 20px;
}

.social-link i {
  width: 20px;
  height: 20px;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo {
    font-size: 1.5rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .hadith {
  font-size: 1.25rem;
  color: var(--primary-700);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero .hadith-source {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-700);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Download Section */
.download-section {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  max-width: 800px;
  margin: 0 auto;
}

.download-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  text-align: center;
}

.download-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--primary-600);
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-600);
}

.download-btn:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

.requirements {
  background: var(--gray-50);
  border-radius: 0.75rem;
  border-right: 4px solid var(--primary-500);
  overflow: hidden;
}

.requirements-toggle {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  font-family: inherit;
  transition: background 0.3s ease;
}

.requirements-toggle:hover {
  background: var(--gray-100);
}

.toggle-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--primary-600);
}

.requirements-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.requirements-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.requirements-content.active {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.requirements-list {
  list-style: none;
  padding: 0;
}

.requirements-list li {
  padding: 0.5rem 0;
  color: var(--gray-700);
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.requirements-list li::before {
  content: "✓";
  color: var(--primary-600);
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: white;
}

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

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

.feature-card {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-200);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.75rem;
}

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

.feature-card p {
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 1.05rem;
}

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

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

.screenshot-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.screenshot-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.screenshot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  display: block;
  background: linear-gradient(135deg, var(--primary-50), var(--gray-50));
}

.screenshot-title {
  padding: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
}

/* Why Section */
.why-section {
  padding: 5rem 0;
  background: white;
}

.why-content {
  max-width: 800px;
  margin: 0 auto;
}

.why-card {
  background: var(--primary-50);
  padding: 2.5rem;
  border-radius: 1rem;
  border-right: 6px solid var(--primary-600);
}

.why-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  padding: 1rem 0;
  color: var(--gray-800);
  font-size: 1.1rem;
  display: flex;
  align-items: start;
  gap: 1rem;
  border-bottom: 1px solid var(--primary-200);
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list li::before {
  content: "✦";
  color: var(--primary-600);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Footer */
footer {
  background: var(--gray-900);
  color: white;
  padding: 3rem 0 1.5rem;
}

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

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-400);
}

.footer-section p,
.footer-section a:not(.social-link) {
  color: var(--gray-300);
  text-decoration: none;
  line-height: 1.8;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:not(.social-link):hover {
  color: var(--primary-400);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.social-link:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

.social-link[title="WhatsApp"]:hover {
  background: #25d366;
}

.social-link i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  color: var(--gray-400);
}

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

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

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

  .download-buttons {
    grid-template-columns: 1fr;
  }

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}
