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

:root {
  --bg-dark: #01060f;
  --bg-dark-rgb: 1, 6, 15;
  --bg-card: rgba(6, 17, 34, 0.65);
  --bg-card-hover: rgba(10, 26, 51, 0.85);
  --gold-primary: #e6c280;
  --gold-primary-rgb: 230, 194, 128;
  --gold-secondary: #c5a059;
  --text-primary: #ffffff;
  --text-muted: #8fa0ba;
  --border-gold: rgba(230, 194, 128, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);
  --glow-gold: 0 0 20px rgba(230, 194, 128, 0.25);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --phone-bg: #030a16;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(10, 28, 58, 0.4) 0%, rgba(var(--bg-dark-rgb), 1) 70%);
  background-attachment: fixed;
}

/* RTL Support */
[dir="rtl"] {
  --font-serif: 'Playfair Display', 'Traditional Arabic', 'Simplified Arabic', serif;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-gold {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(var(--bg-dark-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b1c37 0%, #030c1b 100%);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  overflow: hidden;
}

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

.logo-icon-img-footer {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  object-fit: cover;
}

.cta-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid var(--border-gold);
  object-fit: cover;
  box-shadow: var(--glow-gold);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-primary);
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-secondary);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
}

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

.lang-selector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s;
}

.lang-selector:hover {
  border-color: var(--border-gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #030c1b;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: var(--glow-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(230, 194, 128, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(230, 194, 128, 0.03);
}

.btn-outline:hover {
  background: rgba(230, 194, 128, 0.1);
  border-color: var(--gold-primary);
}

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

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/hero_bg.png') no-repeat center top;
  background-size: cover;
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
}

.hero-title span {
  display: block;
}

.hero-title span.italic {
  font-style: italic;
  color: var(--gold-primary);
  font-weight: 400;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
}

.badge-item:hover {
  border-color: var(--border-gold);
  color: var(--gold-primary);
  background: rgba(230, 194, 128, 0.05);
}

.badge-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-secondary);
}

/* Feature Grid Section */
.features-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-tag {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-gold);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(230, 194, 128, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

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

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: var(--gold-primary);
  transition: all 0.3s;
}

.feature-card:hover .feature-icon-wrapper svg {
  fill: #030c1b;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.feature-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.25s;
}

.feature-card:hover .feature-learn-more {
  gap: 0.75rem;
}

/* Interactive Demo Title Section */
.demo-intro {
  text-align: center;
  padding: 80px 0 20px;
}

.demo-intro h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.demo-intro p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

/* Phone Mockup Area */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 100px;
}

.iphone-mockup {
  position: relative;
  width: 360px;
  height: 740px;
  border-radius: 48px;
  background: #000000;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 12px #1c1c1e, 0 0 0 13px #2c2c2e, var(--glow-gold);
  padding: 11px;
  overflow: hidden;
  user-select: none;
  animation: float 6s ease-in-out infinite;
}

/* iPhone Notch / Dynamic Island */
.iphone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.iphone-camera {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #080f26;
  border: 1px solid #1a233a;
}

/* Time, Signal, Battery Icons on iPhone Header */
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 90;
  font-family: var(--font-sans);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-right svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Phone Screen */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: var(--phone-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: radial-gradient(circle at top, rgba(230, 194, 128, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Phone Inner Screens Container */
.phone-screens-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding-top: 44px;
  padding-bottom: 64px;
}

.phone-view {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: calc(100% - 108px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.30s ease, transform 0.30s ease;
  transform: translateY(10px);
  overflow-y: auto;
  padding: 16px;
  z-index: 10;
}

/* Hide scrollbar inside phone view */
.phone-view::-webkit-scrollbar {
  display: none;
}

.phone-view.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Bottom Tab Navigation inside Phone */
.phone-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(4, 12, 28, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 80;
  padding-bottom: 6px;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
}

.phone-nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s;
}

.phone-nav-item span {
  font-size: 0.6rem;
  font-weight: 500;
}

.phone-nav-item.active {
  color: var(--gold-primary);
}

.phone-nav-item.active svg {
  transform: scale(1.1);
}

/* Phone View Elements: Prayer */
.phone-greeting {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.phone-username {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.phone-location-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--gold-secondary);
  margin-bottom: 12px;
}

.phone-location-bar svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.phone-date-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.phone-date-card span.hijri {
  color: var(--gold-primary);
  font-weight: 600;
}

.phone-tracker-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

.tracker-dots {
  display: flex;
  gap: 6px;
}

.tracker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.tracker-dot.completed {
  background: var(--gold-primary);
  box-shadow: 0 0 5px rgba(var(--gold-primary-rgb), 0.5);
}

/* Prayer Time Big Card */
.prayer-time-card {
  background: linear-gradient(135deg, rgba(8, 22, 45, 0.8) 0%, rgba(4, 12, 26, 0.8) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.prayer-time-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(230, 194, 128, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.prayer-card-header {
  font-size: 0.7rem;
  color: var(--gold-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.prayer-card-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.prayer-card-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prayer-card-countdown {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.phone-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-action-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action-btn:hover {
  background: rgba(230, 194, 128, 0.05);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.quick-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Phone View: Quran */
.phone-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-section-title span.arabic {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.quran-translation-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: -8px;
}

.quran-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quran-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quran-item:hover {
  border-color: var(--border-gold);
  background: rgba(230,194,128,0.03);
}

.quran-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quran-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(230, 194, 128, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.quran-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quran-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quran-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.quran-arabic-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold-secondary);
}

/* Surah Viewer View */
.surah-viewer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.back-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
}

.back-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.surah-title-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.bismillah-card {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.ayah-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.ayah-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 10px;
}

.ayah-arabic {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-align: right;
  line-height: 1.8;
  color: var(--text-primary);
}

.ayah-translation {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Phone View: Qibla */
.compass-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  gap: 14px;
}

.compass-bearing-card {
  text-align: center;
}

.compass-bearing-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.compass-bearing-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.compass-bearing-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.compass-outer {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: radial-gradient(circle, rgba(11,28,58,0.2) 0%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-face {
  position: absolute;
  width: 170px;
  height: 170px;
  transition: transform 0.25s ease-out;
}

.compass-needle {
  position: absolute;
  width: 10px;
  height: 140px;
  z-index: 5;
  pointer-events: none;
}

.compass-turn-instruction {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.compass-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.compass-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  padding: 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.compass-btn.active,
.compass-btn:hover {
  background: rgba(230,194,128,0.05);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.mosque-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.7rem;
}

.mosque-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(230,194,128,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.mosque-card-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.mosque-card-details {
  display: flex;
  flex-direction: column;
}

.mosque-card-name {
  font-weight: 600;
  color: var(--text-primary);
}

.mosque-card-distance {
  color: var(--text-muted);
}

/* Phone View: Calendar */
.intention-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}

.intention-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.intention-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.intention-input-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.intention-input {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  outline: none;
}

.intention-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.intention-add-btn {
  background: var(--gold-primary);
  color: #030c1b;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.7rem;
  cursor: pointer;
}

.intention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intention-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 0.6rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.intention-chip:hover {
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.intention-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.intention-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
}

.intention-item-text {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.intention-item-text.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

.intention-item-checkbox {
  width: 12px;
  height: 12px;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intention-item-checkbox.checked::after {
  content: '✓';
  color: var(--gold-primary);
  font-size: 8px;
}

.intention-delete-btn {
  background: none;
  border: none;
  color: #ff5e62;
  cursor: pointer;
  font-size: 0.75rem;
}

.calendar-coming-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.coming-up-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
}

.coming-up-date {
  font-size: 0.6rem;
  color: var(--gold-secondary);
}

.coming-up-name {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-primary);
}

/* Phone View: Learn */
.learn-badge {
  background: rgba(230,194,128,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
}

.learn-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.learn-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.learn-btn:hover {
  background: rgba(230,194,128,0.05);
  border-color: var(--border-gold);
}

.learn-btn-green {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.2);
}

.learn-btn-green:hover {
  background: rgba(16,185,129,0.15);
  border-color: rgb(16,185,129);
}

.learn-btn svg {
  width: 14px;
  height: 14px;
}

.learn-path-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.learn-path-card:hover {
  border-color: var(--border-gold);
  background: rgba(230,194,128,0.03);
}

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

.learn-path-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.learn-path-subtitle {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--gold-secondary);
}

.learn-path-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Phone View: Tasbih */
.tasbih-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  text-align: center;
}

.tasbih-phrase-arabic {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.tasbih-phrase-english {
  font-size: 0.9rem;
  font-weight: 600;
}

.tasbih-phrase-meaning {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tasbih-click-zone {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(230,194,128,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
}

.tasbih-click-zone:active {
  transform: scale(0.96);
}

.tasbih-bead-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: rotate(0deg);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tasbih-counter {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tasbih-counter-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tasbih-phrase-selectors {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.tasbih-phrase-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.55rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tasbih-phrase-btn.active,
.tasbih-phrase-btn:hover {
  background: rgba(230,194,128,0.05);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.tasbih-lifetime {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.tasbih-lifetime strong {
  color: var(--gold-primary);
}

/* Founder Story Section */
.founder-section {
  padding: 100px 0;
  position: relative;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 4rem 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.founder-img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.founder-img-wrapper {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  padding: 6px;
  background: rgba(3, 10, 22, 0.8);
  box-shadow: var(--glow-gold);
  overflow: hidden;
}

.founder-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 35%;
}

.founder-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  color: var(--gold-primary);
  line-height: 1.4;
}

.founder-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-title-text {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.founder-p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* CTA Download Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-container {
  background: radial-gradient(circle at center, rgba(11,28,58,0.4) 0%, transparent 80%);
  padding: 4rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid var(--border-gold);
  background: #030c1b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  margin-bottom: 0.5rem;
}

.cta-logo svg {
  width: 44px;
  height: 44px;
  fill: var(--gold-primary);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
}

.cta-desc {
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000000;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  text-align: left;
}

.app-store-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.app-store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-meta {
  display: flex;
  flex-direction: column;
}

.btn-meta .sub {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.btn-meta .main {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  background: rgba(2, 9, 20, 0.95);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 2rem;
}

/* Subpages Styling */
.subpage-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.subpage-container {
  padding-bottom: 100px;
}

.subpage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Standalone Quran styles */
.quran-search-bar {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  outline: none;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: border-color 0.25s;
}

.quran-search-bar:focus {
  border-color: var(--gold-primary);
}

.quran-grid-standalone {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Standalone Qibla styles */
.qibla-standalone-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.qibla-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qibla-compass-card-standalone {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.compass-outer-standalone {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  background: radial-gradient(circle, rgba(11,28,58,0.25) 0%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-face-standalone {
  position: absolute;
  width: 280px;
  height: 280px;
  transition: transform 0.25s ease-out;
}

.compass-needle-standalone {
  position: absolute;
  width: 16px;
  height: 240px;
  z-index: 5;
  pointer-events: none;
}

/* Standalone Calendar styles */
.calendar-standalone-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.calendar-main-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hijri-calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hijri-calendar-table th,
.hijri-calendar-table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.hijri-calendar-table th {
  background: rgba(230,194,128,0.05);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.hijri-calendar-table td {
  font-size: 0.9rem;
}

.hijri-calendar-table td.today {
  background: rgba(230,194,128,0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
}

.hijri-calendar-table td .gregorian-date {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Standalone Learn styles */
.learn-standalone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.study-paths-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

/* Standalone Privacy styles */
.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.privacy-content h2 {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.privacy-content p strong {
  color: var(--text-primary);
}

.privacy-content ul {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .hero-subtitle {
    margin: 0 auto;
  }

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

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

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

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

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

  .qibla-standalone-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calendar-standalone-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

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

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

  .quran-grid-standalone {
    grid-template-columns: 1fr;
  }

  .study-paths-grid {
    grid-template-columns: 1fr;
  }

  .iphone-mockup {
    transform: scale(0.9);
    margin: -30px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

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

  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }

  .iphone-mockup {
    transform: scale(0.8);
    margin: -60px 0;
  }
}
