/* ===================================================================
   تطبيق مُصحفي (Moshafy) - ملف التنسيقات الرئيسي (style.css)
   المطور: Walid Fekry | https://walid-fekry.com/
   =================================================================== */

/* ==================== 1. DESIGN TOKENS & CSS VARIABLES ==================== */
:root {
  /* Fonts */
  --font-heading: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-quran: 'Amiri', 'Traditional Arabic', serif;

  /* Primary Emerald & Teal Palette */
  --primary-emerald: #0D5C75;
  --primary-emerald-hover: #084357;
  --primary-emerald-light: #167a99;
  --primary-green: #059669;
  --primary-green-light: #10b981;
  --primary-emerald-soft: rgba(13, 92, 117, 0.08);

  /* Luxury Gold Palette */
  --accent-gold: #D4AF37;
  --accent-gold-hover: #b89222;
  --accent-gold-light: #FFF8E7;
  --accent-gold-soft: rgba(212, 175, 55, 0.15);
  --accent-gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D4AF37 50%, #B48418 100%);
  --accent-emerald-gradient: linear-gradient(135deg, #0D5C75 0%, #059669 100%);

  /* Light Theme Surfaces & Backgrounds */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-subtle: #F1F5F9;

  /* Light Theme Typography */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Borders & Dividers */
  --border-color: rgba(13, 92, 117, 0.12);
  --border-focus: rgba(212, 175, 55, 0.6);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
  --shadow-emerald: 0 10px 30px rgba(13, 92, 117, 0.25);

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 2. DARK MODE OVERRIDES ==================== */
[data-theme="dark"] {
  --bg-primary: #0A0F1D;
  --bg-secondary: #131B2E;
  --bg-card: #141E34;
  --bg-card-hover: #1A2642;
  --bg-glass: rgba(19, 27, 46, 0.88);
  --bg-subtle: #1E293B;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --primary-emerald: #10B981;
  --primary-emerald-hover: #059669;
  --primary-emerald-light: #34d399;
  --primary-emerald-soft: rgba(16, 185, 129, 0.12);

  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-gold-light: #292011;
  --accent-gold-soft: rgba(245, 158, 11, 0.16);

  --border-color: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(245, 158, 11, 0.6);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 10px 30px rgba(245, 158, 11, 0.2);
  --shadow-emerald: 0 10px 30px rgba(16, 185, 129, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.35;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

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

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold) !important; }
.text-emerald { color: var(--primary-green) !important; }
.text-sky { color: #38bdf8 !important; }
.is-hidden { display: none !important; }

/* ==================== 4. AMBIENT BACKGROUND & PATTERNS ==================== */
.islamic-pattern-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.035;
  background-image: radial-gradient(var(--primary-emerald) 1px, transparent 1px),
                    radial-gradient(var(--accent-gold) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

[data-theme="dark"] .islamic-pattern-bg {
  opacity: 0.06;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
}

.glow-1 {
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-emerald) 0%, transparent 70%);
}

.glow-2 {
  top: 40%;
  left: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  opacity: 0.15;
}

/* ==================== 5. BUTTONS & UI ELEMENTS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent-emerald-gradient);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 92, 117, 0.35);
  filter: brightness(1.08);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Google Play Store Badge */
.btn-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #0F172A;
  color: #FFFFFF !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .btn-store-badge {
  background: #1E293B;
  border-color: rgba(212, 175, 55, 0.3);
}

.btn-store-badge .btn-icon {
  font-size: 1.85rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-store-badge .btn-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.btn-store-badge .btn-label {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.btn-store-badge .btn-title {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.btn-store-badge .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.btn-store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.btn-store-badge:hover .btn-shine {
  left: 150%;
}

/* ==================== 6. HEADER & NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Brand */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 2px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-emerald);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

[data-theme="dark"] .brand-name {
  color: #FFFFFF;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2.5px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-emerald);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--accent-gold);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  transform: rotate(15deg);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: inline-block; }

[data-theme="dark"] .theme-toggle-btn .sun-icon { display: inline-block; color: #F59E0B; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }

/* Mobile Menu Hamburger */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle-btn .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==================== 7. HERO SECTION ==================== */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-item .stars {
  color: #F59E0B;
  display: flex;
  gap: 2px;
  font-size: 0.85rem;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
}

/* ==================== 8. PHONE MOCKUP FRAME ==================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.mockup-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-gold) 0%, var(--primary-emerald) 60%, transparent 80%);
  filter: blur(50px);
  opacity: 0.25;
  z-index: 0;
}

.phone-case {
  position: relative;
  z-index: 1;
  background: #111827;
  border: 11px solid #1E293B;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
              inset 0 0 0 2px rgba(255, 255, 255, 0.1),
              0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  height: 640px;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .phone-case {
  border-color: #273549;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              0 0 30px rgba(212, 175, 55, 0.15);
}

.phone-top-bar {
  height: 26px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.phone-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #1f2937;
  border: 2px solid #374151;
  position: absolute;
  right: 42%;
}

.phone-speaker {
  width: 50px;
  height: 4px;
  border-radius: 4px;
  background: #374151;
}

.phone-screen {
  flex: 1;
  background: #0D5C75;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-img-src {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-home-indicator {
  height: 16px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-home-indicator::after {
  content: '';
  width: 100px;
  height: 4px;
  background: #4B5563;
  border-radius: 4px;
}

/* Fallback App UI Mockup */
.phone-app-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0D5C75 0%, #064052 100%);
  color: #FFFFFF;
  padding: 1rem 0.85rem;
  box-sizing: border-box;
  font-family: var(--font-body);
}

.app-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.app-ui-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-gold);
}

.app-ui-surah-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 0.75rem 0;
}

.surah-ornament {
  font-family: var(--font-quran);
  font-size: 1.5rem;
  color: var(--accent-gold);
  line-height: 1;
}

.surah-meta {
  font-size: 0.75rem;
  color: #CBD5E1;
  margin-top: 4px;
}

.app-ui-quran-text {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-family: var(--font-quran);
  font-size: 1.15rem;
  line-height: 2;
  text-align: justify;
  text-align-last: center;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.app-ui-player {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  margin: 0.65rem 0 0.5rem;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.reciter-avatar {
  width: 28px;
  height: 28px;
  background: var(--accent-gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.reciter-name {
  font-weight: 700;
  color: #FFFFFF;
}

.player-surah {
  color: #94A3B8;
  font-size: 0.7rem;
}

.player-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gold);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.player-btn {
  color: #CBD5E1;
  font-size: 0.85rem;
}

.player-btn.btn-play {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.app-ui-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 0.4rem;
  font-size: 0.65rem;
  color: #94A3B8;
}

.app-ui-bottom-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.app-ui-bottom-nav span.active {
  color: var(--accent-gold);
}

/* Floating Badges around mockup */
.floating-badge {
  position: absolute;
  z-index: 5;
  background: var(--bg-card);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border-color);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.floating-badge i {
  font-size: 1.4rem;
}

.floating-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

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

.badge-top-right {
  top: 15%;
  right: -35px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 12%;
  left: -40px;
  animation-delay: 2s;
}

/* ==================== PROMO VIDEO SECTION ==================== */
.promo-video-section {
  padding: 5rem 0 4rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Video Showcase Wrapper */
.video-showcase-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Decorative Glows */
.video-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.video-glow-1 {
  width: 350px;
  height: 350px;
  background: var(--accent-gold);
  top: -80px;
  right: -120px;
  animation: videoGlowPulse 6s ease-in-out infinite;
}

.video-glow-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-emerald);
  bottom: -60px;
  left: -100px;
  animation: videoGlowPulse 6s ease-in-out infinite 3s;
}

@keyframes videoGlowPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(1.15); }
}

/* Video Frame */
.video-frame {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.video-frame:hover {
  box-shadow: var(--shadow-lg), var(--shadow-gold), 0 0 0 1px var(--accent-gold);
  transform: translateY(-4px);
}

/* Ornamental Borders */
.video-frame-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px 8px;
}

.video-frame-ornament.bottom-ornament {
  padding: 8px 20px 12px;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
  opacity: 0.4;
}

.ornament-icon {
  font-size: 1.3rem;
  color: var(--accent-gold);
  opacity: 0.7;
  line-height: 1;
}

.bottom-ornament .ornament-icon {
  font-size: 0.95rem;
  font-family: var(--font-quran);
}

/* Video Player Wrapper */
.video-player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

/* Video Thumbnail Overlay */
.video-thumbnail-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--transition-normal);
}

.video-thumbnail-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.video-thumbnail-overlay:hover .video-thumb-img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

/* Play Button */
.video-play-btn {
  position: relative;
  z-index: 5;
  width: 88px;
  height: 88px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  animation: playRingPulse 2.5s ease-out infinite;
}

.play-btn-ring.ring-2 {
  animation-delay: 1.2s;
}

@keyframes playRingPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.play-btn-inner {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B48418 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.play-btn-inner i {
  font-size: 1.6rem;
  color: #fff;
  margin-right: -3px; /* optical center for play icon */
  margin-left: 3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-play-btn:hover .play-btn-inner {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.65), 0 0 0 6px rgba(255, 255, 255, 0.3);
}

/* Video Duration Badge */
.video-duration-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
}

.video-duration-badge i {
  color: var(--accent-gold);
  font-size: 0.75rem;
}

/* YouTube Iframe Container */
.video-iframe-container {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.video-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* Video Feature Pills */
.video-features-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.video-feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.video-feature-pill:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--accent-gold);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.video-feature-pill i {
  font-size: 1rem;
}

/* ==================== 9. STATS BANNER ==================== */
.stats-section {
  padding: 2.5rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-emerald-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  background: var(--primary-emerald-soft);
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.stat-card:hover .stat-icon-wrap {
  background: var(--accent-gold);
  color: #000000;
  transform: scale(1.08) rotate(5deg);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-emerald);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

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

.stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== 10. SECTION HEADERS ==================== */
.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.sub-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==================== 11. FEATURES GRID ==================== */
.features-section {
  padding: 6rem 0;
}

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

.feature-card {
  background: var(--bg-card);
  padding: 2.25rem 1.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.5);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--accent-emerald-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-emerald);
  transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--accent-gold-gradient);
  color: #000;
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.feature-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex: 1;
}

.feature-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.feature-pill {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .feature-pill {
  color: var(--accent-gold);
}

/* ==================== 12. APP MODULES SHOWCASE ==================== */
.modules-section {
  padding: 5rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.module-card {
  background: var(--bg-card);
  padding: 2.25rem 1.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.module-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.module-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.module-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.module-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-list li i {
  color: var(--primary-green);
  font-size: 0.9rem;
}

/* ==================== 13. LIVE TASBEEH PREVIEW ==================== */
.tasbeeh-preview-section {
  padding: 6rem 0;
}

.tasbeeh-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.tasbeeh-box::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-gold-soft) 0%, transparent 70%);
  pointer-events: none;
}

.tasbeeh-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.tasbeeh-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.dhikr-selector {
  margin-bottom: 2rem;
}

.dhikr-selector label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.dhikr-dropdown {
  width: 100%;
  max-width: 440px;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dhikr-dropdown:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-soft);
  outline: none;
}

.tasbeeh-tips {
  background: var(--bg-subtle);
  border-right: 4px solid var(--accent-gold);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

.tip-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Digital Rosary Device */
.tasbeeh-widget {
  display: flex;
  justify-content: center;
}

.tasbeeh-device {
  width: 280px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 4px solid var(--accent-gold);
  border-radius: 40px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4),
              inset 0 2px 4px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.device-screen {
  background: #c8d6b9;
  color: #1a2e16;
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 2px solid #8f9f7f;
  margin-bottom: 2rem;
}

.current-dhikr-display {
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.counter-display {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0.4rem 0;
  letter-spacing: 2px;
}

.target-display {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b5034;
}

/* Click Button */
.tasbeeh-click-btn {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent-emerald-gradient);
  border: 4px solid var(--accent-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
              inset 0 4px 6px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.1s ease;
  position: relative;
  overflow: hidden;
}

.tasbeeh-click-btn:active {
  transform: scale(0.92);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.tasbeeh-click-btn .click-text {
  font-size: 0.8rem;
  font-weight: 700;
}

.device-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-device-action {
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.btn-device-action:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* ==================== 14. SCREENSHOTS SHOWCASE ==================== */
.screenshots-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.screen-preview-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.screen-preview-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg);
}

.screen-preview-frame {
  height: 380px;
  background: #0F172A;
  border-radius: var(--radius-md);
  border: 3px solid #1E293B;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.screen-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 92, 117, 0.85);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  z-index: 5;
  backdrop-filter: blur(4px);
}

.screen-content-mockup {
  flex: 1;
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  text-align: right;
  font-size: 0.8rem;
}

/* Mockup Screens Specifics */
.screen-mockup-quran {
  background: linear-gradient(180deg, #0A4356 0%, #062b37 100%);
}

.sm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.sm-bismillah {
  font-family: var(--font-quran);
  font-size: 1.15rem;
  text-align: center;
  color: var(--accent-gold);
  margin: 0.5rem 0;
}

.sm-text {
  font-family: var(--font-quran);
  font-size: 0.95rem;
  line-height: 2;
  text-align: justify;
  text-align-last: center;
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  flex: 1;
}

.sm-footer {
  font-size: 0.68rem;
  color: #94A3B8;
  text-align: center;
  margin-top: 0.5rem;
}

/* Audio Screen */
.screen-mockup-audio {
  background: linear-gradient(180deg, #1E1B4B 0%, #0F172A 100%);
  align-items: center;
  text-align: center;
}

.sm-audio-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-emerald-gradient);
  border: 3px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #FFFFFF;
  margin: 1.5rem auto 1rem;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.sm-reciter-name {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sm-surah-name {
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.sm-audio-bar {
  width: 90%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.sm-bar-fill {
  width: 65%;
  height: 100%;
  background: var(--accent-gold);
  border-radius: 4px;
}

.sm-audio-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.1rem;
  color: #CBD5E1;
}

.sm-audio-controls .main-play {
  font-size: 2rem;
  color: var(--accent-gold);
}

/* Azkar Screen */
.screen-mockup-azkar {
  background: linear-gradient(180deg, #0F291E 0%, #061811 100%);
}

.sm-dhikr-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  margin-bottom: 0.75rem;
}

.sm-dhikr-text {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.sm-counter-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-green-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Quote Screen */
.screen-mockup-quote {
  background: linear-gradient(180deg, #2D1A10 0%, #150D07 100%);
}

.sm-quote-card {
  flex: 1;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
}

.sm-quote-bismillah {
  font-family: var(--font-quran);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.sm-quote-surah {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.sm-share-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.sm-share-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.screen-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.screen-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== 15. FAQ ACCORDION ==================== */
.faq-section {
  padding: 6rem 0;
}

.faq-accordion-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

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

.faq-question {
  width: 100%;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  transition: color var(--transition-fast);
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform var(--transition-normal), background var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--accent-gold);
  color: #000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.6rem 1.4rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.link-inline {
  color: var(--primary-emerald);
  font-weight: 700;
  text-decoration: underline;
}

[data-theme="dark"] .link-inline {
  color: var(--accent-gold);
}

/* ==================== 16. CALL TO ACTION (CTA) ==================== */
.cta-section {
  padding: 5rem 0;
}

.cta-banner {
  background: linear-gradient(135deg, #0D5C75 0%, #063949 50%, #0F172A 100%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(13, 92, 117, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  background-image: radial-gradient(#FFFFFF 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-logo-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cta-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-title {
  font-size: 2.65rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.cta-desc {
  font-size: 1.2rem;
  color: #E2E8F0;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

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

.cta-play-btn {
  background: var(--accent-gold-gradient) !important;
  color: #000000 !important;
  border: none;
}

.cta-play-btn .btn-title {
  color: #000000;
}

.cta-play-btn .btn-label {
  color: #3b2c04;
}

.cta-play-btn .btn-icon {
  color: #000000;
}

.cta-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #CBD5E1;
}

.cta-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cta-meta i {
  color: var(--accent-gold);
}

/* ==================== 17. FOOTER ==================== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-color);
  padding: 5.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-top-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  max-width: 90%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--primary-green), transparent);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

/* Col 1: About */
.footer-col-about {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-logo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-emerald);
  line-height: 1.1;
}

[data-theme="dark"] .footer-brand-name {
  color: #FFFFFF;
}

.footer-brand-name small {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-right: 6px;
  text-transform: uppercase;
}

.footer-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 4px;
}

[data-theme="dark"] .footer-brand-badge {
  color: var(--accent-gold);
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Developer Credential Card */
.footer-developer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
}

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

.dev-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dev-details {
  display: flex;
  flex-direction: column;
}

.dev-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dev-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.dev-link:hover {
  color: var(--accent-gold);
}

.dev-link i {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

/* Store Badge in Footer */
.footer-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  background: #0F172A;
  color: #FFFFFF !important;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-normal);
  width: fit-content;
}

[data-theme="dark"] .footer-store-pill {
  background: #1E293B;
  border-color: rgba(212, 175, 55, 0.3);
}

.footer-store-pill i {
  font-size: 1.15rem;
  color: #38bdf8;
}

.footer-store-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

/* Col 2: Navigation Links */
.footer-heading {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.footer-heading .heading-line {
  width: 38px;
  height: 3px;
  background: var(--accent-gold-gradient);
  border-radius: 2px;
  margin-top: 8px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1rem;
}

.footer-links-grid li a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 0.2rem 0;
}

.footer-links-grid li a i {
  font-size: 0.7rem;
  color: var(--accent-gold);
  transition: transform var(--transition-fast);
}

.footer-links-grid li a:hover {
  color: var(--primary-emerald);
  transform: translateX(-4px);
}

[data-theme="dark"] .footer-links-grid li a:hover {
  color: var(--accent-gold);
}

.footer-links-grid li a:hover i {
  transform: translateX(-2px);
}

/* Col 3: Contact & Channels */
.footer-text-sm {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-contact-pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-pill-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.95rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.contact-pill-item:hover {
  border-color: var(--accent-gold);
  transform: translateX(-4px);
  box-shadow: var(--shadow-xs);
  background: var(--bg-card);
}

.pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.email-icon {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
}

.telegram-icon {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.website-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-green);
}

.github-icon {
  background: rgba(13, 92, 117, 0.15);
  color: var(--primary-emerald);
}

[data-theme="dark"] .github-icon {
  color: var(--accent-gold);
}

.pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}

.pill-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pill-text span {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-pill-item:hover .pill-text span {
  color: var(--accent-gold);
}

/* Social Row */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* Islamic Decorative Divider */
.footer-divider-motif {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0 1.75rem;
  position: relative;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider-icon {
  font-family: var(--font-quran);
  font-size: 1.5rem;
  color: var(--accent-gold);
  padding: 0 1.25rem;
  user-select: none;
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-top: 0.5rem;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.copyright-text strong {
  color: var(--text-primary);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  font-weight: 500;
}

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

.sep {
  opacity: 0.5;
}

/* ==================== 18. BACK TO TOP BUTTON ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.1s linear;
}

/* ==================== 19. KEYFRAME ANIMATIONS ==================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== 20. RESPONSIVE DESIGN & MEDIA QUERIES ==================== */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

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

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

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

  .tasbeeh-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }

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

  .footer-col-about {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .mobile-toggle-btn {
    display: flex;
  }

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

  .nav-menu {
    position: fixed;
    top: 78px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 78px);
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.5rem;
    transition: right var(--transition-normal);
    flex-direction: column;
    align-items: flex-start;
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
  }

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

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

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

@media (max-width: 600px) {
  .features-grid,
  .modules-grid,
  .screenshots-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-col-about {
    grid-column: span 1;
  }

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

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

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-store-badge,
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-badge {
    display: none;
  }

  .cta-banner {
    padding: 3rem 1.25rem;
  }

  .tasbeeh-box {
    padding: 1.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-social-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}


/* ==================== PROMO VIDEO RESPONSIVE ==================== */
@media (max-width: 820px) {
  .promo-video-section {
    padding: 3.5rem 0 3rem;
  }

  .video-play-btn {
    width: 72px;
    height: 72px;
  }

  .play-btn-inner {
    width: 60px;
    height: 60px;
  }

  .play-btn-inner i {
    font-size: 1.3rem;
  }

  .video-features-row {
    gap: 10px;
  }

  .video-feature-pill {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .promo-video-section {
    padding: 2.5rem 0 2rem;
  }

  .video-frame {
    padding: 4px;
    border-radius: var(--radius-md);
  }

  .video-frame-ornament {
    padding: 8px 12px 6px;
    gap: 8px;
  }

  .video-frame-ornament.bottom-ornament {
    padding: 6px 12px 8px;
  }

  .ornament-icon {
    font-size: 1.1rem;
  }

  .video-play-btn {
    width: 64px;
    height: 64px;
  }

  .play-btn-inner {
    width: 52px;
    height: 52px;
  }

  .play-btn-inner i {
    font-size: 1.1rem;
  }

  .video-duration-badge {
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .video-features-row {
    gap: 8px;
    margin-top: 16px;
  }

  .video-feature-pill {
    padding: 7px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .video-feature-pill i {
    font-size: 0.85rem;
  }

  .video-glow-1,
  .video-glow-2 {
    width: 180px;
    height: 180px;
  }
}
