@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #0d3b2e;
  --primary-light: #155e49;
  --primary-dark: #07231b;
  --primary-gradient: linear-gradient(135deg, #07231b 0%, #0d3b2e 50%, #155e49 100%);
  --accent-gold: #cba245;
  --accent-gold-light: #e6cb7a;
  --accent-gold-dark: #a67f25;
  --accent-gradient: linear-gradient(135deg, #cba245 0%, #e6cb7a 50%, #b88d31 100%);
  
  --bg-page: #f8faf9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f0f5f2;
  
  --text-main: #192b23;
  --text-muted: #5c7066;
  --text-light: #94a39b;
  --text-white: #ffffff;
  
  --border-color: #e2ece7;
  --border-focus: #cba245;
  
  --shadow-sm: 0 2px 8px rgba(13, 59, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 59, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(13, 59, 46, 0.12);
  --shadow-gold: 0 8px 25px rgba(203, 162, 69, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-quran: 'Amiri', serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-arabic);
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* LTR override for English section if needed */
[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--primary);
}

.logo-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--accent-gold-dark);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #07231b;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(203, 162, 69, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
  background: var(--bg-subtle);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
}

.btn-white:hover {
  background: #f8faf9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--primary-gradient);
  color: var(--text-white);
  padding: 80px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(203, 162, 69, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#d4af37 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(203, 162, 69, 0.15);
  border: 1px solid rgba(203, 162, 69, 0.4);
  border-radius: var(--radius-full);
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent-gold-light);
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #c4d7cd;
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.playstore-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.playstore-badge-btn:hover {
  background: #111111;
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.playstore-badge-btn svg {
  width: 28px;
  height: 28px;
}

.playstore-badge-texts {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.playstore-badge-sub {
  font-size: 0.65rem;
  color: #9ca3af;
  letter-spacing: 0.5px;
}

.playstore-badge-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: #c4d7cd;
}

/* Hero Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-wrap {
  position: relative;
  width: 300px;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
}

.phone-screen-img {
  width: 100%;
  height: auto;
  border-radius: 36px;
  border: 8px solid #1a1a1a;
  display: block;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  animation: float 4s ease-in-out infinite alternate;
}

.floating-card-1 {
  bottom: 40px;
  right: -25px;
}

.floating-card-2 {
  top: 60px;
  left: -35px;
  animation-delay: -2s;
}

.floating-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Section Header */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold-light);
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--primary);
  color: var(--accent-gold);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* App Showcase / Screenshots */
.showcase {
  background: #f0f5f2;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 8px 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 8px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: #e2ece7;
  border-radius: 4px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

.screenshot-item {
  flex: 0 0 260px;
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  background: #ffffff;
  border: 4px solid #ffffff;
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Reciters Showcase */
.reciters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.reciter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.reciter-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.reciter-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  border: 2px solid var(--border-color);
}

.reciter-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.reciter-style {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(203, 162, 69, 0.2) 0%, transparent 70%);
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-desc {
  font-size: 1.1rem;
  color: #c4d7cd;
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--accent-gold);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  user-select: none;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--accent-gold-dark);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.footer {
  background: #07231b;
  color: #c4d7cd;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-title {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.9rem;
  color: #94a39b;
  margin-top: 16px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #94a39b;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-gold-light);
  padding-right: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #71847a;
}

/* ========================================================
   Privacy Policy Specific Styles
   ======================================================== */
.policy-page {
  padding: 60px 0 100px;
  background: var(--bg-page);
}

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}

.policy-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #e8f5ed;
  color: #0d5c3f;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.policy-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.policy-meta-item strong {
  color: var(--primary);
}

.policy-lang-toggle {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
}

.lang-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.policy-section {
  margin-bottom: 40px;
}

.policy-sec-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-sec-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold-dark);
}

.policy-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.policy-list {
  padding-right: 24px;
  margin-bottom: 20px;
}

.policy-list li {
  margin-bottom: 10px;
  color: var(--text-muted);
  line-height: 1.7;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.policy-table th,
.policy-table td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.policy-table th {
  background: #f0f5f2;
  font-weight: 700;
  color: var(--primary);
}

.policy-alert {
  background: #f9f6ee;
  border-right: 4px solid var(--accent-gold);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  color: #634b12;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================================
   Responsive Breakpoints
   ======================================================== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas,
  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reciters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.1rem;
  }

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

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

  .cta-banner {
    padding: 40px 24px;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .policy-card {
    padding: 32px 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
