/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-primary: #1a6b4e;
  --color-primary-light: #e8f5ef;
  --color-primary-dark: #0f4a35;
  --color-accent: #d4a847;
  --color-text: #1e1e1e;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #8a8a8a;
  --color-border: #e8e6e1;
  --color-hero-bg: linear-gradient(
  135deg,
  #b7d0db 0%,
  #8fb0bf 35%,
  #e8d3a6 70%,
  #f5f7fa 100%
);
  /* --color-hero-bg: linear-gradient(
    135deg,
    #1F3D2B 0%,
    #5D6B61 40%,
    #C7A35B 75%,
    #F6F1E8 100%
  ); */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  transition: color var(--transition);
}

.navbar.scrolled .logo {
  color: var(--color-text);
}

.logo-icon {
  font-size: 1.4rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: all var(--transition);
}

.navbar.scrolled .lang-toggle {
  color: var(--color-text);
  border-color: var(--color-border);
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.15);
}

.navbar.scrolled .lang-toggle:hover {
  background: var(--color-primary-light);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.navbar:not(.scrolled) .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.navbar:not(.scrolled) .btn-primary:hover {
  background: #f0f0f0;
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* === HERO === */
.hero {
  position: relative;
  background: var(--color-hero-bg);
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-text {
  color: #fff;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-bg-pattern {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  z-index: 1;
}

/* Phone mockup */
.phone-mockup {
  width: 280px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
}

.phone-screen {
  background: #fff;
  border-radius: 26px;
  padding: 24px 20px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.mock-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mock-verse {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

.mock-surah {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.mock-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 400;
}

.mock-progress {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  margin: 24px 0 8px;
  overflow: hidden;
}

.mock-progress-bar {
  width: 43%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
}

.mock-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* === SECTIONS === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* === FEATURES === */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* === JOURNEYS === */
.journeys {
  padding: 100px 0;
  background: var(--color-primary-light);
}

.journeys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.journey-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

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

.journey-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.journey-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.journey-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.journey-info {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
}

/* === STATS === */
.stats {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

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

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* === QUOTE === */
.quote-section {
  padding: 100px 0;
  background: var(--color-hero-bg);
  color: #fff;
  text-align: center;
}

.main-quote {
  max-width: 700px;
  margin: 0 auto;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 2rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 400;
  opacity: 0.95;
}

.quote-translation {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 20px;
  font-style: italic;
}

.main-quote cite {
  font-size: 0.85rem;
  opacity: 0.6;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* === DOWNLOAD === */
.download {
  padding: 100px 0;
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-text);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  min-width: 200px;
}

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

.store-icon {
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-small {
  font-size: 0.65rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-name {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

/* === FOOTER === */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin: 12px 0;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  margin-top: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .phone-mockup {
    width: 240px;
  }

  .arabic-text {
    font-size: 1.5rem;
  }

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

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

  .stat-number {
    font-size: 2rem;
  }

  .container {
    padding: 0 16px;
  }
}
