/* =========================================================
   مصحف المسلم - Muslim Quran
   Modern Design System & Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --brand: #0f4d34;
  --brand-rgb: 15, 77, 52;
  --brand-dark: #092e1f;
  --brand-deep: #051a11;
  --brand-light: #1b6848;
  --brand-soft: #eaf3ee;
  
  /* Noble Gold */
  --gold: #c59b3f;
  --gold-rgb: 197, 155, 63;
  --gold-light: #dfb75c;
  --gold-dark: #987224;
  --gold-soft: rgba(197, 155, 63, 0.12);
  --gold-glow: rgba(197, 155, 63, 0.25);

  /* Neutrals & Surfaces (Light) */
  --bg: #f9f7f2;
  --bg-alt: #f1ede2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --border: #e6dfce;
  --border-light: #f0ebd9;
  
  /* Typography Colors */
  --text: #17241d;
  --text-muted: #53645a;
  --text-light: #7c8e84;
  --text-inverse: #ffffff;

  /* Status & Accents */
  --success: #1d7a4d;
  --success-soft: #e6f5ed;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 77, 52, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 77, 52, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 77, 52, 0.12);
  --shadow-gold: 0 8px 30px rgba(197, 155, 63, 0.22);

  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-quran: 'Amiri', serif;
  --font-latin: 'Inter', system-ui, sans-serif;

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
:root[data-theme="dark"], html[data-theme="dark"] {
  --bg: #090f0c;
  --bg-alt: #0f1813;
  --surface: #141f19;
  --surface-raised: #1a2821;
  --surface-glass: rgba(20, 31, 25, 0.88);
  --border: #223329;
  --border-light: #1a2920;
  
  --text: #eef3ef;
  --text-muted: #9db2a5;
  --text-light: #6a7e72;

  --brand-soft: #14281e;
  --gold-soft: rgba(223, 183, 92, 0.14);
  --success-soft: #122b1d;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 32px rgba(197, 155, 63, 0.3);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

[lang="en"] body,
body[dir="ltr"] {
  font-family: var(--font-latin);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Typography Utilities */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-tag svg {
  width: 16px;
  height: 16px;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 14px;
}

.section-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 660px;
  margin-inline: auto;
  line-height: 1.75;
}

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

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  padding: 2px;
  border: 1px solid var(--border);
}

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

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
  white-space: nowrap;
}

[data-theme="dark"] .brand-title {
  color: #5ed69b;
}

.brand-badge {
  display: none; /* Hidden — kept for dark-mode toggling but not shown in header */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #79e3ac;
  background: rgba(30, 60, 45, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.ctrl-btn:hover {
  color: var(--brand);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-lang {
  padding-inline: 12px;
  width: auto;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 12px rgba(var(--brand-rgb), 0.28);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-cta svg {
  width: 15px;
  height: 15px;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(var(--brand-rgb), 0.4);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
}

.menu-toggle {
  display: none;
  order: -1; /* Appears first on mobile */
}

/* =========================================================
   Nav Dropdown (Legal links)
   ========================================================= */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  overflow: hidden;
  z-index: 100;
}

[dir="ltr"] .nav-dropdown-menu {
  right: auto;
  left: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

[data-theme="dark"] .nav-dropdown-menu li a:hover {
  color: #79e3ac;
  background: rgba(30, 60, 45, 0.5);
}

.nav-dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

/* Footer legal links in footer-bottom */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.footer-legal-links a {
  color: #8fa597;
  transition: var(--transition);
}

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

.footer-legal-links span {
  color: #4a5e52;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: 60px 80px;
  background: radial-gradient(circle at 50% 10%, rgba(var(--brand-rgb), 0.07) 0%, transparent 65%);
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 50% 10%, rgba(24, 105, 73, 0.16) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  text-align: right;
}

[dir="ltr"] .hero-content {
  text-align: left;
}

.hero-waqf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-waqf-pill .pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 4px rgba(29, 122, 77, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(29, 122, 77, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(29, 122, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 122, 77, 0); }
}

.hero-waqf-pill span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-title .gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Feature Check Pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.pill-item svg {
  color: var(--success);
  width: 15px;
  height: 15px;
}

/* Store Download Badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: #101412;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  transition: var(--transition);
  text-decoration: none;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border-color: var(--gold);
}

.store-btn--web {
  background: linear-gradient(135deg, #0f3d29, #175e3f);
  border-color: rgba(197, 155, 63, 0.45);
}

.store-btn--web:hover {
  background: linear-gradient(135deg, #144e35, #1e754f);
  border-color: var(--gold);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
}

[dir="ltr"] .store-text {
  text-align: left;
}

.store-caption {
  font-size: 0.7rem;
  opacity: 0.78;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Smartphone Mockup Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 290px;
  height: 590px;
  background: #111a15;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 77, 52, 0.35),
              0 0 0 1px rgba(197, 155, 63, 0.3),
              inset 0 0 0 3px #28372e;
  transition: var(--transition);
}

.phone-mockup:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 35px 75px -15px rgba(15, 77, 52, 0.45),
              0 0 0 1px var(--gold),
              inset 0 0 0 3px #28372e;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  background: #090e0b;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #ffffff;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* App icon display mode */
.phone-screen--icon {
  background: linear-gradient(145deg, #0f4d34 0%, #1b6848 50%, #0a3324 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen--icon img {
  width: 68%;
  height: auto;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.mockup-floating-card {
  position: absolute;
  bottom: 24px;
  right: -30px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: float 4s ease-in-out infinite;
}

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

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.floating-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================================
   Stats & Highlights Bar
   ========================================================= */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 30px;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 12px 16px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

[data-theme="dark"] .stat-number {
  color: #5ed69b;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* =========================================================
   The 8 Specialized Quran Editions Showcase
   ========================================================= */
.section-editions {
  padding-block: 90px 100px;
}

.editions-tabs-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-block: 36px 40px;
  scrollbar-width: thin;
  justify-content: center;
}

.edition-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.edition-tab-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}

.edition-tab-btn.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
}

.edition-tab-btn.active .tab-badge {
  background: var(--gold);
  color: #ffffff;
}

.tab-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.edition-viewer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.edition-viewer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 50%, var(--brand) 100%);
}

.edition-info {
  text-align: right;
}

[dir="ltr"] .edition-info {
  text-align: left;
}

.edition-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.edition-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.edition-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.edition-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.edition-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.edition-features-list li svg {
  color: var(--success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.edition-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.edition-image-box img {
  max-height: 400px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.edition-image-box img:hover {
  transform: scale(1.02);
}

/* =========================================================
   Features Grid (All In One Features)
   ========================================================= */
.section-features {
  padding-block: 90px;
  background: var(--bg-alt);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  text-align: right;
}

[dir="ltr"] .feature-card {
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--gold-rgb), 0.4);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

[data-theme="dark"] .feature-icon-wrap {
  background: #1b2f24;
  color: #6fe1a6;
}

.feature-card:hover .feature-icon-wrap {
  background: var(--gold);
  color: #ffffff;
  transform: scale(1.08);
}

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

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

/* =========================================================
   Reciters & Audio Showcase
   ========================================================= */
.section-reciters {
  padding-block: 90px 100px;
}

.reciters-card-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.reciter-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-block: 24px 34px;
}

.reciter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.reciter-pill:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.reciters-features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 20px;
}

.rf-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rf-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rf-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.rf-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   Smart Khatmah Feature Section
   ========================================================= */
.section-khatmah {
  padding-block: 90px;
  background: var(--bg-alt);
}

.khatmah-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 40px;
}

.khatmah-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.khatmah-step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.khatmah-step-item:hover {
  border-color: var(--gold);
  transform: translateX(-4px);
}

[dir="ltr"] .khatmah-step-item:hover {
  transform: translateX(4px);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.khatmah-visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.khatmah-visual-card img {
  max-height: 360px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
}

.sunset-callout {
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

/* =========================================================
   Integrated Legal & Policies Hub (Merged Policy & Terms)
   ========================================================= */
.section-legal-hub {
  padding-block: 90px 110px;
}

.legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-top: 36px;
}

.legal-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.legal-tab-switch {
  display: flex;
  gap: 10px;
}

.legal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legal-tab-btn:hover {
  color: var(--text);
}

.legal-tab-btn.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.28);
}

.legal-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-lang-switch {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.legal-lang-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.btn-standalone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  padding: 6px 10px;
}

[data-theme="dark"] .btn-standalone {
  color: #6fe1a6;
}

/* Summary Checkmarks */
.legal-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.legal-fact {
  background: var(--success-soft);
  border: 1px solid rgba(29, 122, 77, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.legal-fact svg {
  color: var(--success);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Legal Content Blocks */
.legal-content-panel {
  display: none;
}

.legal-content-panel.active {
  display: block;
}

.legal-article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 16px;
  background: var(--surface-raised);
}

.legal-article-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .legal-article-card h3 {
  color: #6fe1a6;
}

.legal-num {
  color: var(--gold);
  font-weight: 700;
}

.legal-article-card p {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-article-card ul {
  padding-inline-start: 22px;
  margin-block: 8px;
}

.legal-article-card li {
  margin-block: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact / Support Card inside Legal */
.legal-support-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.support-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.support-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.support-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-contact:hover {
  background: var(--brand-light);
}

/* =========================================================
   Call To Action Section (Download Now)
   ========================================================= */
.section-cta {
  padding-block: 90px;
  background: linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-deep) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.cta-content {
  text-align: right;
}

[dir="ltr"] .cta-content {
  text-align: left;
}

.cta-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 30px;
}

.cta-qr-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.qr-placeholder {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.qr-placeholder:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.qr-code-img {
  width: 155px;
  height: 155px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.qr-caption {
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.95;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #090f0c;
  color: #ecf2ee;
  padding-block: 60px 30px;
  border-top: 1px solid #1a2920;
}

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

.footer-brand p {
  color: #8fa597;
  font-size: 0.92rem;
  line-height: 1.75;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #8fa597;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid #16241c;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: #718679;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */

/* Large desktops: 1200px+ - already fine */

/* Tablets/medium desktop: max 1100px */
@media (max-width: 1100px) {
  .nav-link {
    font-size: 0.82rem;
    padding: 5px 8px;
  }

  .nav-links {
    gap: 2px;
  }

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

  .footer-top > .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* Tablets: max 992px */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-links.open .nav-link {
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-links.open .nav-dropdown {
    width: 100%;
  }

  .nav-links.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding-inline-start: 16px;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 2px;
  }

  .nav-links.open .nav-dropdown-menu li a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

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

  .hero-content {
    text-align: center;
    order: 1;
  }

  [dir="ltr"] .hero-content {
    text-align: center;
  }

  .hero-visual {
    order: 2;
  }

  .hero-pills,
  .store-badges {
    justify-content: center;
  }

  .hero-waqf-pill {
    margin-inline: auto;
  }

  .edition-viewer-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .edition-image-box {
    order: -1;
  }

  .edition-info {
    text-align: center;
  }

  [dir="ltr"] .edition-info {
    text-align: center;
  }

  .khatmah-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .cta-content {
    text-align: center;
  }

  [dir="ltr"] .cta-content {
    text-align: center;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .mockup-floating-card {
    right: 0;
    left: auto;
  }

  [dir="ltr"] .mockup-floating-card {
    left: 0;
    right: auto;
  }
}

/* Small tablets / large phones: max 768px */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 68px;
  }

  .container {
    padding-inline: 16px;
  }

  .hero-section {
    padding-block: 40px 60px;
  }

  .section-editions,
  .section-features,
  .section-reciters,
  .section-khatmah,
  .section-legal-hub,
  .section-cta {
    padding-block: 60px;
  }

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

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

  .reciters-card-wrapper {
    padding: 28px 20px;
  }

  .legal-box {
    padding: 24px 18px;
  }

  .legal-nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .legal-tab-switch {
    width: 100%;
  }

  .legal-tab-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  .legal-actions-right {
    justify-content: space-between;
  }

  .legal-summary-cards {
    grid-template-columns: 1fr;
  }

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

  .phone-mockup {
    width: 240px;
    height: 490px;
  }

  .btn-header-cta {
    display: none;
  }

  .store-btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
  }
}

/* Mobile phones: max 480px */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .nav-wrap {
    height: 60px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .ctrl-btn {
    width: 34px;
    height: 34px;
  }

  .btn-lang {
    font-size: 0.75rem;
    padding-inline: 10px;
  }

  .hero-section {
    padding-block: 28px 48px;
  }

  .hero-waqf-pill {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .hero-pills {
    gap: 8px;
  }

  .pill-item {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .phone-mockup {
    width: 210px;
    height: 430px;
    border-radius: 36px;
  }

  .mockup-floating-card {
    display: none;
  }

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

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

  .section-editions,
  .section-features,
  .section-reciters,
  .section-khatmah,
  .section-legal-hub,
  .section-cta {
    padding-block: 48px;
  }

  .stats-bar {
    padding-block: 20px;
  }

  .edition-viewer-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .editions-tabs-wrapper {
    gap: 6px;
    margin-block: 24px 28px;
  }

  .edition-tab-btn {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .tab-badge {
    display: none;
  }

  .edition-title {
    font-size: 1.45rem;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .reciters-card-wrapper {
    padding: 20px 14px;
  }

  .reciter-pill {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

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

  .khatmah-visual-card {
    padding: 20px 16px;
  }

  .khatmah-step-item {
    padding: 16px 14px;
  }

  .legal-box {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .legal-article-card {
    padding: 16px 14px;
  }

  .section-cta {
    padding-block: 48px;
  }

  .cta-qr-box {
    padding: 20px;
  }

  .site-footer {
    padding-block: 40px 20px;
  }

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

  .legal-support-card {
    flex-direction: column;
  }
}

/* Very small phones: max 360px */
@media (max-width: 360px) {
  .container {
    padding-inline: 12px;
  }

  .store-btn {
    max-width: 100%;
  }

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

  .phone-mockup {
    width: 180px;
    height: 370px;
    border-radius: 28px;
  }
}

/* Wide screens: min 1400px */
@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
  }

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

  .phone-mockup {
    width: 320px;
    height: 640px;
  }
}
