/* ==========================================================================
   Thawab Landing Page Stylesheet
   Modern Islamic Aesthetic with Fluid Responsive Design & Dark/Light Themes
   ========================================================================== */

/* --- CSS Variables & Theme Definitions --- */
:root {
  /* Color Palette - User Specifications */
  --primary-teal: #0D5C63;
  --primary-teal-rgb: 13, 92, 99;
  --primary-dark: #093F44;
  --primary-dark-rgb: 9, 63, 68;
  --primary-light: #167d87;
  --primary-soft: rgba(13, 92, 99, 0.08);

  --accent-gold: #C68B59;
  --accent-gold-rgb: 198, 139, 89;
  --accent-gold-hover: #b37947;
  --accent-gold-light: #f7ede2;
  --accent-gold-glow: rgba(198, 139, 89, 0.25);

  /* Light Mode Colors */
  --bg-body: #F4F6F9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(226, 232, 240, 0.9);
  --border-light: rgba(241, 245, 249, 0.8);

  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-on-primary: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(13, 92, 99, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 35px -10px rgba(13, 92, 99, 0.12), 0 10px 20px -8px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 10px 25px rgba(198, 139, 89, 0.28);
  --shadow-teal: 0 12px 30px rgba(13, 92, 99, 0.25);

  /* Typography */
  --font-family-base: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Cairo', 'Tajawal', sans-serif;
  --font-family-quran: 'Amiri', 'Traditional Arabic', serif;

  /* Sizing & Transitions */
  --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.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-height: 80px;
  --container-max-width: 1240px;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-body: #12181F;
  --bg-surface: #1C242E;
  --bg-surface-elevated: #242E3B;
  --bg-surface-glass: rgba(28, 36, 46, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --primary-soft: rgba(13, 92, 99, 0.25);
  --accent-gold-light: rgba(198, 139, 89, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 25px rgba(198, 139, 89, 0.2);
  --shadow-teal: 0 12px 30px rgba(13, 92, 99, 0.35);
}

/* --- Base & Reset --- */
*, *::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-family-base);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(13, 92, 99, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(198, 139, 89, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(13, 92, 99, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(198, 139, 89, 0.08) 0%, transparent 40%);
}

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

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

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

button, input {
  font-family: inherit;
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Section Spacing & Headers --- */
.section {
  padding: 5rem 0;
  position: relative;
}

@media (min-width: 992px) {
  .section {
    padding: 7rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(var(--primary-teal-rgb), 0.15);
}

[data-theme="dark"] .section-tag {
  background: rgba(13, 92, 99, 0.25);
  color: #5ce1e6;
  border-color: rgba(92, 225, 230, 0.2);
}

.section-tag.gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-color: rgba(var(--accent-gold-rgb), 0.25);
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.6rem;
  }
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-dark));
  color: #FFFFFF;
  box-shadow: var(--shadow-teal);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(13, 92, 99, 0.35);
  color: #FFFFFF;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #aa7344);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(198, 139, 89, 0.4);
  color: #FFFFFF;
}

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

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

[data-theme="dark"] .btn-outline:hover {
  color: #5ce1e6;
  border-color: #5ce1e6;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(13, 92, 99, 0.15);
  background: #ffffff;
  padding: 2px;
}

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

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-teal);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.brand-name span {
  color: var(--accent-gold);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.98rem;
}

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

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #5ce1e6;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--border-color);
  transform: rotate(15deg);
}

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

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

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  gap: 5px;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Body Scroll Lock When Menu Open --- */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* --- Mobile Drawer Backdrop Overlay --- */
.mobile-drawer-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-height));
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
  z-index: 999;
  padding: 1.25rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-teal-rgb), 0.3) transparent;
}

.mobile-drawer::-webkit-scrollbar {
  width: 5px;
}

.mobile-drawer::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-drawer::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-teal-rgb), 0.25);
  border-radius: 10px;
}

[data-theme="dark"] .mobile-drawer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .mobile-drawer {
  background: #1C242E;
  box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--text-primary);
  background: transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-teal);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .mobile-nav-icon {
  background: rgba(13, 92, 99, 0.35);
  color: #5ce1e6;
}

.mobile-nav-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  line-height: 1.2;
}

.mobile-nav-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--primary-soft);
  border-color: rgba(var(--primary-teal-rgb), 0.15);
}

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

.mobile-nav-link:hover .mobile-nav-icon,
.mobile-nav-link.active .mobile-nav-icon {
  background: var(--primary-teal);
  color: #FFFFFF;
}

[data-theme="dark"] .mobile-nav-link:hover,
[data-theme="dark"] .mobile-nav-link.active {
  background: rgba(13, 92, 99, 0.25);
  border-color: rgba(92, 225, 230, 0.2);
}

[data-theme="dark"] .mobile-nav-link:hover .mobile-nav-title,
[data-theme="dark"] .mobile-nav-link.active .mobile-nav-title {
  color: #5ce1e6;
}

[data-theme="dark"] .mobile-nav-link:hover .mobile-nav-icon,
[data-theme="dark"] .mobile-nav-link.active .mobile-nav-icon {
  background: #0D5C63;
  color: #5ce1e6;
}

.mobile-drawer-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.mobile-download-btn {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
  justify-content: center;
}

.mobile-drawer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.mobile-drawer-note svg {
  color: #10B981;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero {
    padding-top: calc(var(--header-height) + 4.5rem);
    padding-bottom: 6rem;
  }
}

.hero-bg-accent {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 92, 99, 0.12) 0%, rgba(13, 92, 99, 0) 70%);
  top: -150px;
  left: -200px;
  pointer-events: none;
  z-index: -1;
}

.hero-bg-accent-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 139, 89, 0.1) 0%, rgba(198, 139, 89, 0) 70%);
  bottom: -100px;
  right: -150px;
  pointer-events: none;
  z-index: -1;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

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

@media (min-width: 992px) {
  .hero-content {
    text-align: right;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-badge .sparkle {
  color: var(--accent-gold);
}

.hero-title {
  font-size: 2.35rem;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-title .highlight {
  color: var(--primary-teal);
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .hero-title .highlight {
  color: #5ce1e6;
}

.hero-title .highlight-gold {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .hero-desc {
    margin-right: 0;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .hero-cta-group {
    justify-content: flex-start;
  }
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: #000000;
  color: #FFFFFF;
}

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

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

.play-store-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.play-store-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-trust {
    justify-content: flex-start;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  color: #10B981;
}

/* ==========================================================================
   Hero Visual / Interactive Smartphone Mockup
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #0F172A;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 
    0 30px 60px -12px rgba(13, 92, 99, 0.35),
    0 18px 36px -18px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  position: relative;
  transition: transform var(--transition-normal);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.phone-notch {
  width: 120px;
  height: 20px;
  background: #0F172A;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.phone-speaker {
  width: 40px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
}

.phone-camera {
  width: 8px;
  height: 8px;
  background: #1E293B;
  border-radius: 50%;
  border: 1px solid #334155;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #F4F6F9;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: var(--font-family-base);
}

[data-theme="dark"] .phone-screen {
  background: #12181F;
}

/* Inside Phone App UI Mockup */
.mock-app-header {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-dark));
  color: #FFFFFF;
  padding: 34px 16px 18px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 15px rgba(13, 92, 99, 0.2);
}

.mock-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mock-app-title {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-time {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

.mock-greeting {
  font-size: 0.75rem;
  opacity: 0.85;
}

.mock-hijri {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f7d5a3;
}

.mock-app-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.mock-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

.mock-progress-card {
  background: linear-gradient(135deg, #ffffff, #f7f9fb);
  border: 1px solid rgba(13, 92, 99, 0.12);
}

[data-theme="dark"] .mock-progress-card {
  background: #1C242E;
  border-color: rgba(255, 255, 255, 0.08);
}

.mock-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.mock-progress-bar-bg {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="dark"] .mock-progress-bar-bg {
  background: #334155;
}

.mock-progress-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-teal));
  border-radius: 4px;
}

.mock-hope-card {
  background: linear-gradient(135deg, rgba(198, 139, 89, 0.1), rgba(13, 92, 99, 0.05));
  border: 1px dashed rgba(198, 139, 89, 0.4);
  padding: 10px 12px;
}

.mock-hope-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.mock-hope-text {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-family: var(--font-family-quran);
  font-weight: 600;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  align-items: flex-start;
}

.mock-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-teal);
}

.mock-item-icon.gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

/* Floating Badges on Mockup */
.hero-floating-badge {
  position: absolute;
  background: var(--bg-surface);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  z-index: 5;
  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-floating-badge.badge-1 {
  top: 15%;
  right: -25px;
  animation-delay: 0s;
}

.hero-floating-badge.badge-2 {
  bottom: 20%;
  left: -25px;
  animation-delay: 2s;
}

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

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon.teal {
  background: var(--primary-soft);
  color: var(--primary-teal);
}

.badge-icon.gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

/* ==========================================================================
   Stats / Social Proof Section
   ========================================================================== */
.stats-section {
  padding: 2.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  position: relative;
}

@media (min-width: 768px) {
  .stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    height: 50%;
    width: 1px;
    background: var(--border-color);
  }
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-teal);
  margin-bottom: 0.35rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

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

.stat-number.gold {
  color: var(--accent-gold);
}

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

/* ==========================================================================
   Features Grid Section (8 Key Features)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

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

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: all var(--transition-bounce);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-teal);
  color: #FFFFFF;
}

.feature-icon-wrapper.gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

.feature-card:hover .feature-icon-wrapper.gold {
  background: var(--accent-gold);
  color: #FFFFFF;
}

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

.feature-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Deep Dive Feature Highlights (Detailed Showcase)
   ========================================================================== */
.deep-dive {
  padding: 4rem 0;
}

.deep-dive-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 992px) {
  .deep-dive-item {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }

  .deep-dive-item.reverse {
    direction: ltr;
  }

  .deep-dive-item.reverse > * {
    direction: rtl;
  }
}

.deep-dive-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.deep-dive-title {
  font-size: 2rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .deep-dive-title {
    font-size: 2.35rem;
  }
}

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

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.02rem;
}

.check-item svg {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Interactive Demos / Visual Panels in Deep Dives */
.interactive-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* 1. Dhikr Counter Widget */
.dhikr-widget {
  text-align: center;
}

.dhikr-header {
  margin-bottom: 1.5rem;
}

.dhikr-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--primary-soft);
  color: var(--primary-teal);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dhikr-phrase {
  font-family: var(--font-family-quran);
  font-size: 1.8rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.dhikr-benefit {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dhikr-counter-box {
  width: 160px;
  height: 160px;
  margin: 1.5rem auto;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-gold), inset 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-bounce);
  user-select: none;
}

.dhikr-counter-box:active {
  transform: scale(0.92);
}

.dhikr-count {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-teal);
  line-height: 1;
}

[data-theme="dark"] .dhikr-count {
  color: #5ce1e6;
}

.dhikr-goal {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.dhikr-controls {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

/* 2. Asma Allah Widget */
.asma-widget {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.asma-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  gap: 0.65rem;
}

.asma-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  color: var(--text-primary);
  outline: none;
}

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

.asma-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.asma-card-name {
  font-family: var(--font-family-quran);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.asma-card-meaning {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.asma-detail-box {
  background: var(--primary-soft);
  border: 1px solid rgba(var(--primary-teal-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.asma-detail-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .asma-detail-title {
  color: #5ce1e6;
}

.asma-detail-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* 3. Islamic Quiz Widget */
.quiz-widget {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.quiz-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

.quiz-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-align: right;
  width: 100%;
}

.quiz-btn:hover:not(:disabled) {
  border-color: var(--primary-teal);
  background: var(--primary-soft);
  transform: translateX(-4px);
}

.quiz-btn.correct {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}

[data-theme="dark"] .quiz-btn.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #6EE7B7;
}

.quiz-btn.wrong {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #991B1B;
}

[data-theme="dark"] .quiz-btn.wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FCA5A5;
}

.quiz-feedback {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.9rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback.show {
  display: block;
}

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

/* ==========================================================================
   Testimonials / Reviews Section
   ========================================================================== */
.testimonials-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #F59E0B;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-teal), var(--accent-gold));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.active {
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  gap: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary-teal);
  color: #FFFFFF;
}

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

.faq-answer-inner {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-teal);
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 139, 89, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-banner-title {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-banner-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.cta-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 480px) {
  .cta-banner-buttons {
    flex-direction: row;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #091319;
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand .brand-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94A3B8;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: #5ce1e6;
  transform: translateX(-4px);
}

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

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-bounce);
}

.social-icon-btn:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(198, 139, 89, 0.3);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.heart-icon {
  color: #EF4444;
  display: inline-block;
  margin: 0 2px;
}

/* ==========================================================================
   Back To Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-teal);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-normal);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Rules
   Covers Large Phones, Medium Phones, Small Phones (iPhone SE, Galaxy), and Tablets
   ========================================================================== */

/* Tablets & Small Laptops (max-width: 991px) */
@media (max-width: 991px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    height: var(--header-height);
  }

  .nav-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .header-cta {
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3.5rem;
  }

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

  .hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .deep-dive-item {
    margin-bottom: 3.5rem;
  }

  .interactive-panel {
    padding: 1.5rem 1.25rem;
  }
}

/* Small & Standard Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-name span {
    font-size: 0.8rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .theme-toggle,
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }

  .mobile-menu-btn span {
    width: 18px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  .hero-badge {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.4rem;
    max-width: 100%;
  }

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

  .hero-desc {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

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

  .play-store-btn,
  .btn-outline.btn-lg {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }

  .phone-mockup {
    width: 275px;
    height: 550px;
    border-radius: 38px;
    padding: 10px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .hero-floating-badge.badge-1 {
    right: -10px;
    top: 6%;
    transform: scale(0.88);
  }

  .hero-floating-badge.badge-2 {
    left: -10px;
    bottom: 8%;
    transform: scale(0.88);
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

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

  .stat-label {
    font-size: 0.82rem;
  }

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

  .section-desc {
    font-size: 1rem;
  }

  .dhikr-counter-box {
    width: 140px;
    height: 140px;
  }

  .dhikr-count {
    font-size: 2.85rem;
  }

  .dhikr-phrase {
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}

/* Extra Small Phones (max-width: 360px - e.g., iPhone SE 1st gen, Galaxy Fold closed) */
@media (max-width: 360px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-name span {
    font-size: 0.72rem;
  }

  .brand-tagline {
    display: none; /* Hide tagline on ultra-narrow screens to keep header on one pristine row */
  }

  .theme-toggle,
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

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

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

  .hero-floating-badge.badge-1 {
    right: 0;
    top: 2%;
    transform: scale(0.8);
  }

  .hero-floating-badge.badge-2 {
    left: 0;
    bottom: 4%;
    transform: scale(0.8);
  }

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

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

  .mobile-drawer {
    padding: 1rem 0.85rem 1.5rem;
  }

  .mobile-nav-link {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .mobile-nav-icon {
    width: 34px;
    height: 34px;
  }

  .mobile-nav-title {
    font-size: 0.95rem;
  }

  .mobile-nav-desc {
    font-size: 0.72rem;
  }
}
