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

:root {
  --teal-dark:  #0D2B2B;
  --teal-mid:   #1B5E5E;
  --teal-light: #2D8B8B;
  --gold:       #FFD700;
  --gold-dim:   #C9A800;
  --white:      #FFFFFF;
  --white-60:   rgba(255,255,255,0.6);
  --white-30:   rgba(255,255,255,0.3);
  --white-10:   rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--teal-dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,43,43,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--white-10);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.crescent { font-size: 22px; color: var(--gold); }
.logo-text { color: var(--white); }
.logo-sub { font-size: 13px; font-weight: 400; color: var(--white-60); margin-left: 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--white-60);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--gold) !important;
  color: var(--teal-dark) !important;
  font-weight: 600 !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px !important;
}
.btn-nav:hover { background: #ffe033 !important; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(45,139,139,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255,215,0,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  flex: 1;
  max-width: 560px;
  margin: 0 auto 0 0;
  padding-left: calc((100vw - 1100px)/2);
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--white-10);
  border: 1px solid var(--white-30);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.arabic {
  font-family: 'Amiri', serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #fff 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.english {
  font-size: 28px;
  font-weight: 600;
  color: var(--white-60);
  letter-spacing: 1px;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--white-60);
  margin-bottom: 40px;
  max-width: 460px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255,215,0,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,215,0,0.4); }
.btn-secondary {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  border: 1px solid var(--white-30);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--white-10); }

/* phone mockup */
.hero-phone {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-right: calc((100vw - 1100px)/2);
}
.phone-mockup {
  width: 260px;
  height: 520px;
  background: linear-gradient(160deg, #1e4a4a, #0d2b2b);
  border-radius: 44px;
  border: 2px solid rgba(255,215,0,0.3);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
}
.phone-screen { display: flex; flex-direction: column; height: 100%; }
.screen-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.screen-crescent { color: var(--gold); font-size: 16px; }
.screen-city { font-size: 13px; color: var(--white-60); }
.screen-prayer {
  text-align: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--white-10);
  margin-bottom: 16px;
}
.screen-label { font-size: 9px; letter-spacing: 2px; color: var(--white-60); margin-bottom: 8px; }
.screen-name { font-size: 28px; font-weight: 700; color: var(--white); }
.screen-time { font-size: 22px; font-weight: 600; color: var(--gold); }
.screen-countdown { font-size: 14px; color: var(--gold); opacity: 0.8; margin-top: 4px; }
.screen-list { display: flex; flex-direction: column; gap: 10px; }
.screen-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--white-60);
  padding: 0 4px;
}
.screen-row.active { color: var(--gold); font-weight: 700; }

/* ─── SECTION SHARED ─── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-badge {
  display: inline-block;
  background: var(--white-10);
  border: 1px solid var(--white-30);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 48px;
}

/* ─── FEATURES ─── */
.features {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--teal-dark) 0%, rgba(27,94,94,0.15) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white-10);
  border: 1px solid var(--white-10);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,215,0,0.3);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--white-60); line-height: 1.7; }

/* ─── WIDGET ─── */
.widget-section {
  padding: 100px 24px;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(45,139,139,0.2) 0%, transparent 70%);
}
.widget-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}
.widget-text { flex: 1; }
.widget-desc { font-size: 16px; color: var(--white-60); line-height: 1.8; margin-bottom: 28px; }
.widget-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.widget-list li { font-size: 15px; color: var(--gold); }
.widget-previews {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

/* widget cards */
.widget-card {
  background: linear-gradient(135deg, #1B5E5E, #0D2B2B);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 20px;
  color: white;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.widget-card.small {
  width: 155px;
  height: 155px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.widget-card.medium {
  width: 329px;
  height: 155px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 0;
}
.wm-left { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-right: 14px; }
.wm-divider { width: 1px; height: 120px; background: rgba(45,139,139,0.4); }
.wm-right { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-left: 14px; }
.wm-row { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.5); }
.wm-row.active { color: var(--gold); font-weight: 700; }
.wc-city { font-size: 9px; color: rgba(255,255,255,0.4); }
.wc-name { font-size: 22px; font-weight: 700; color: white; line-height: 1.1; }
.wc-time { font-size: 17px; font-weight: 600; color: var(--gold); }
.wc-countdown { font-size: 15px; font-weight: 700; color: var(--gold); }

/* ─── DOWNLOAD ─── */
.download {
  padding: 100px 24px;
  background: linear-gradient(180deg, transparent, rgba(27,94,94,0.2));
  text-align: center;
}
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-desc { font-size: 16px; color: var(--white-60); margin-bottom: 40px; }
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 16px 32px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.btn-sub { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; }
.btn-main { font-size: 20px; font-weight: 700; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--white-10);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { font-weight: 700; font-size: 16px; color: var(--white-60); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--white-60); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: var(--white-30); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 120px; }
  .hero-content { padding-left: 0; max-width: 100%; }
  .hero-desc { margin: 0 auto 40px; }
  .hero-btns { justify-content: center; }
  .hero-phone { margin: 40px auto 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-inner { flex-direction: column; gap: 48px; }
  .widget-previews { align-items: center; }
  .section-title { font-size: 30px; }
}
@media (max-width: 600px) {
  .arabic { font-size: 52px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .widget-card.medium { width: 100%; max-width: 320px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
