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

:root {
  --primary: #0B2922;
  --primary-light: #1A4D40;
  --accent: #D4AF37;
  --accent-light: #F0D87A;
  --surface: #FFFFFF;
  --bg: #F2F4F3;
  --text-dark: #121212;
  --text-medium: #4A4A4A;
  --text-muted: #9E9E9E;
  --font: 'Outfit', sans-serif;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.gold { color: var(--accent); }
.premium-badge {
  background: linear-gradient(135deg, #D4AF37, #F0D87A);
  color: #0B2922;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 4px;
}

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(11, 41, 34, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.7rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; font-size: 1.05rem; }
.nav-logo-icon { font-size: 1.5rem; }
.nav-logo strong { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,175,55,0.4); }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 4rem 5rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 25px 25px, rgba(212,175,55,0.05) 2px, transparent 0);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.glow-1 { width: 500px; height: 500px; background: rgba(212,175,55,0.08); top: -100px; right: 200px; }
.glow-2 { width: 300px; height: 300px; background: rgba(26,77,64,0.5); bottom: -50px; left: 100px; }

.hero-content { flex: 1; max-width: 580px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--accent);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 1.5rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.6);
  line-height: 1.7; margin-bottom: 2.5rem; font-weight: 400;
}

.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-play {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent);
  color: var(--primary);
  padding: 0.9rem 1.8rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 8px 30px rgba(212,175,55,0.4);
}
.btn-play:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212,175,55,0.5); }
.btn-play svg { flex-shrink: 0; }
.btn-play-text { display: flex; flex-direction: column; }
.btn-play-text small { font-size: 0.7rem; font-weight: 500; opacity: 0.7; }
.btn-play-text strong { font-size: 0.95rem; }

.btn-learn {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  transition: color 0.2s;
}
.btn-learn:hover { color: white; }

.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 500; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* === PHONE MOCKUP === */
.hero-phone { flex-shrink: 0; position: relative; z-index: 2; }
.phone-frame {
  width: 280px; height: 560px;
  background: #0d1f1a;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
  animation: floatPhone 4s ease-in-out infinite;
}
@keyframes floatPhone { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.phone-notch {
  width: 80px; height: 24px;
  background: #0d1f1a;
  border-radius: 0 0 16px 16px;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10;
  border: 2px solid rgba(255,255,255,0.06);
  border-top: none;
}

.phone-screen { height: 100%; background: #f2f4f3; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column; }

.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 20px 12px;
  background: var(--primary);
}
.app-location { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); font-size: 0.7rem; font-weight: 600; }
.location-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.app-settings-icon { display: flex; flex-direction: column; gap: 4px; }
.dot-line { width: 18px; height: 2px; background: rgba(255,255,255,0.4); border-radius: 2px; }

.app-hero-section {
  background: var(--primary);
  text-align: center; padding: 16px 20px 32px;
}
.next-prayer-label { font-size: 0.5rem; color: var(--accent); font-weight: 700; letter-spacing: 1.5px; margin-bottom: 4px; }
.countdown { font-size: 2.2rem; font-weight: 200; color: white; letter-spacing: -1px; }
.current-prayer { font-size: 0.6rem; color: rgba(255,255,255,0.45); margin-top: 4px; }

.prayer-list-card {
  flex: 1; background: white; margin: -16px 12px 0; border-radius: 20px;
  padding: 12px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.prayer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 4px; border-bottom: 1px solid #f5f5f5; position: relative;
}
.prayer-row:last-child { border-bottom: none; }
.prayer-name { font-size: 0.65rem; color: #4A4A4A; font-weight: 600; }
.prayer-time { font-size: 0.7rem; color: #121212; font-weight: 500; }
.prayer-time-left { flex: 1; }
.active-prayer { background: rgba(212,175,55,0.06); border-radius: 10px; padding: 7px 10px; border-bottom: none !important; }
.active-bar { width: 3px; height: 16px; background: var(--accent); border-radius: 3px; margin-right: 8px; }
.active-name { color: var(--primary) !important; font-weight: 800 !important; }
.active-time { color: var(--accent) !important; font-weight: 800 !important; }

.app-bottom-nav {
  background: white; display: flex; justify-content: space-around; align-items: center;
  padding: 10px 20px; border-top: 1px solid #f0f0f0;
}
.nav-item { font-size: 1rem; opacity: 0.5; }
.active-nav { opacity: 1; }

/* Float chips */
.float-chip {
  position: absolute;
  background: white;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.chip-1 { top: 120px; left: -80px; animation: floatChip1 3s ease-in-out infinite; }
.chip-2 { bottom: 150px; right: -70px; animation: floatChip2 3.5s ease-in-out infinite; }
@keyframes floatChip1 { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(0deg); } }
@keyframes floatChip2 { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-6px) rotate(0deg); } }

/* === FEATURES === */
.features { padding: 8rem 0; background: white; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15; margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 4rem; max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); border-color: rgba(212,175,55,0.2); }
.feature-primary {
  background: var(--primary);
  grid-column: span 2;
}
.feature-primary h3 { color: white !important; }
.feature-primary p { color: rgba(255,255,255,0.6) !important; }

.feature-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(212,175,55,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-primary .feature-icon-wrap { background: rgba(212,175,55,0.15); }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--text-dark); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.feature-tag { display: inline-block; margin-top: 1rem; font-size: 0.72rem; font-weight: 600; color: var(--accent); background: rgba(212,175,55,0.1); padding: 4px 12px; border-radius: 20px; }

/* === SCREENS === */
.screens { padding: 8rem 0; background: var(--bg); overflow: hidden; }
.screens .container { margin-bottom: 4rem; }

.screens-scroll {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 4rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.screens-scroll::-webkit-scrollbar { display: none; }

.screen-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.07);
  transition: transform 0.3s;
}
.screen-card:hover { transform: translateY(-8px); }

.screen-card-inner { background: white; height: 100%; }
.sc-label { background: var(--primary); color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; padding: 14px 20px; }
.sc-mock { padding: 20px; }

.sc-header-bar {
  background: var(--primary); border-radius: 12px; padding: 10px 14px;
  margin-bottom: 14px;
}
.sc-loc { color: rgba(255,255,255,0.7); font-size: 0.7rem; font-weight: 600; }

.sc-hero-block { text-align: center; margin-bottom: 16px; }
.sc-timer { font-size: 2rem; font-weight: 700; color: var(--primary); letter-spacing: -1px; }
.sc-sub { font-size: 0.7rem; color: var(--text-muted); }

.sc-rows { display: flex; flex-direction: column; gap: 4px; }
.sc-row { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 0.75rem; background: var(--bg); font-weight: 600; }
.sc-row-active { background: rgba(212,175,55,0.1); color: var(--primary); }

.sc-arabic { margin-bottom: 14px; }
.arabic-text { font-size: 1.2rem; direction: rtl; text-align: right; color: var(--primary); font-weight: 500; line-height: 1.8; }
.sc-translation { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }

.bookmark-chip { display: inline-block; background: rgba(212,175,55,0.1); color: var(--accent); font-size: 0.7rem; font-weight: 600; padding: 6px 12px; border-radius: 20px; margin-top: 12px; }

.tasbih-display { text-align: center; padding: 20px 0; margin-bottom: 14px; }
.tasbih-name { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.tasbih-count { font-size: 3rem; font-weight: 800; color: var(--primary); letter-spacing: -2px; }
.tasbih-target { font-size: 0.75rem; color: var(--text-muted); }
.tasbih-progress { height: 4px; background: #eee; border-radius: 4px; margin-top: 12px; overflow: hidden; }
.tasbih-bar { height: 100%; background: var(--accent); border-radius: 4px; }

.ai-chat { display: flex; flex-direction: column; gap: 10px; }
.ai-msg { font-size: 0.7rem; padding: 10px 14px; border-radius: 14px; line-height: 1.5; }
.user-msg { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-msg { background: var(--bg); color: var(--text-dark); border-bottom-left-radius: 4px; }
.ai-input-bar { background: #f0f0f0; border-radius: 50px; padding: 10px 16px; font-size: 0.65rem; color: var(--text-muted); margin-top: 6px; }

/* === RAMADAN BANNER === */
.ramadan-banner { background: linear-gradient(135deg, #1a3d35, #0B2922); padding: 4rem 2rem; }
.ramadan-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.rb-left { display: flex; align-items: center; gap: 1.5rem; }
.rb-icon { font-size: 3rem; flex-shrink: 0; }
.rb-title { color: white; font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.rb-sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 400px; }
.rb-btn {
  background: var(--accent); color: var(--primary);
  padding: 0.85rem 2.5rem; border-radius: 50px;
  text-decoration: none; font-weight: 800; font-size: 0.9rem;
  transition: all 0.2s; white-space: nowrap;
  box-shadow: 0 8px 25px rgba(212,175,55,0.4);
}
.rb-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(212,175,55,0.5); }

/* === DOWNLOAD === */
.download { padding: 8rem 0; background: var(--primary); position: relative; overflow: hidden; }
.download-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20px 20px, rgba(212,175,55,0.04) 2px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}
.download-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 4rem; flex-wrap: wrap; position: relative; z-index: 2;
}
.download-text { flex: 1; min-width: 300px; }

.btn-play-large {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--accent);
  color: var(--primary);
  padding: 1.1rem 2.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 8px 30px rgba(212,175,55,0.4);
}
.btn-play-large > div { display: flex; flex-direction: column; }
.btn-play-large small { font-size: 0.72rem; font-weight: 500; opacity: 0.7; }
.btn-play-large strong { font-size: 1rem; }
.btn-play-large:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212,175,55,0.6); }

.rating-row { display: flex; align-items: center; gap: 10px; margin-top: 1.5rem; }
.stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.rating-row span { color: rgba(255,255,255,0.45); font-size: 0.8rem; }

/* === DOWNLOAD PHONE === */
.download-phone { flex-shrink: 0; animation: floatPhone 4s ease-in-out infinite; }
.dl-phone-frame {
  width: 220px; height: 450px;
  background: #0d1f1a;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.dl-phone-screen { height: 100%; display: flex; flex-direction: column; }
.dl-app-header {
  background: var(--primary);
  padding: 30px 20px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dl-cards { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f2f4f3; }
.dl-card {
  display: flex; justify-content: space-between; align-items: center;
  background: white; border-radius: 12px; padding: 12px 14px;
  font-size: 0.72rem; font-weight: 600; color: #4A4A4A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.dl-active { background: var(--primary); }
.dl-active span { color: white; }

/* === FOOTER === */
.footer { background: #05140f; padding: 5rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { color: white; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-logo strong { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.85rem; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; }
.footer-links h4 { color: rgba(255,255,255,0.5); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.7rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; }
.footer-bottom span { color: rgba(255,255,255,0.25); font-size: 0.78rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 7rem 2rem 4rem; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-badge { display: inline-flex; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone { display: none; }
  .feature-primary { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .download-phone { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-primary { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .ramadan-inner { flex-direction: column; text-align: center; }
  .rb-left { flex-direction: column; text-align: center; }
  .hero-title { font-size: 2.2rem; }
}
