/* =============================================================================
   Masjids.Live — Landing Page
   Aesthetic: Islamic Luxury — Deep layers, mosque photography, Arabic calligraphy
   Typography: Amiri (Arabic) + Playfair Display (English headings) + DM Sans (body)
   ============================================================================= */

/* ─── VARIABLES ──────────────────────────────────────────────────────────────── */
:root {
  --c-green:        #1a5632;
  --c-green-dark:   #0e3a1f;
  --c-green-light:  #2d8a4e;
  --c-green-pale:   #e8f0eb;
  --c-gold:         #d4af37;
  --c-gold-light:   #e8cc6a;
  --c-gold-dim:     rgba(212,175,55,0.15);
  --c-navy:         #0d1b2a;
  --c-navy-light:   #1b2d44;
  --c-bg:           #f5f3ef;
  --c-bg-warm:      #f0ece4;
  --c-card:         #ffffff;
  --c-text:         #1a1a1a;
  --c-text-muted:   #6b6b6b;
  --c-text-light:   #9b9b9b;
  --c-border:       #e0ddd7;
  --c-border-light: #eeece8;

  --c-alexa:  #00caff;
  --c-google: #0d9488;
  --c-bt:     #6366f1;

  --section-pad:    100px;
  --section-pad-sm: 56px;
  --container:      1140px;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 24px rgba(212,175,55,0.3);
  --shadow-glow: 0 0 40px rgba(212,175,55,0.15);

  --t: 0.3s ease;
  --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; position: relative; }

/* ─── REVEAL ANIMATION ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--t-slow), transform 0.7s var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--c-green);
  color: #fff;
  border-color: var(--c-green);
}
.btn--primary:hover {
  background: var(--c-green-dark);
  border-color: var(--c-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,86,50,0.3);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-navy);
  border-color: var(--c-gold);
  font-weight: 700;
}
.btn--gold:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }

/* ─── SECTION TYPOGRAPHY ─────────────────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 12px;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.section-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
  margin-top: 16px;
  border-radius: 2px;
}

.section-header--center {
  text-align: center;
}
.section-header--center .section-heading::after {
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  font-size: 17px;
  color: var(--c-text-muted);
  font-weight: 300;
  max-width: 540px;
  margin-top: 8px;
}
.section-header--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.section-header { margin-bottom: 64px; }

/* Light variant for dark sections */
.section-header--light .section-heading { color: #fff; }
.section-header--light .section-sub { color: rgba(255,255,255,0.6); }
.section-header--light .section-label { color: rgba(212,175,55,0.8); }

/* ─── ISLAMIC GEOMETRIC PATTERN (reusable) ───────────────────────────────────── */
/* Complex star pattern using overlapping gradients */
.islamic-pattern {
  background-image:
    /* 8-point star grid */
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(212,175,55,0.04) 0deg 45deg,
      transparent 45deg 90deg
    ),
    /* Diagonal lattice */
    repeating-linear-gradient(
      45deg,
      rgba(212,175,55,0.03) 0px, rgba(212,175,55,0.03) 1px,
      transparent 1px, transparent 24px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(212,175,55,0.03) 0px, rgba(212,175,55,0.03) 1px,
      transparent 1px, transparent 24px
    ),
    /* Horizontal/vertical grid */
    repeating-linear-gradient(
      0deg,
      rgba(212,175,55,0.015) 0px, rgba(212,175,55,0.015) 1px,
      transparent 1px, transparent 48px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(212,175,55,0.015) 0px, rgba(212,175,55,0.015) 1px,
      transparent 1px, transparent 48px
    );
  background-size: 48px 48px, 24px 24px, 24px 24px, 48px 48px, 48px 48px;
}

/* ─── ARCH DIVIDERS ──────────────────────────────────────────────────────────── */
.arch-divider {
  position: relative;
  z-index: 3;
  line-height: 0;
  margin-top: -1px;
}
.arch-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}
.arch-divider--dark-to-cream { background: var(--c-bg); margin-top: 0; }
.arch-divider--cream-to-dark { background: var(--c-bg); margin-top: 0; }

/* ─── NAVIGATION ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--t), box-shadow var(--t);
}

.nav.scrolled,
.nav--solid {
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 130px;
  gap: 28px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-icon { display: none; }
.nav__logo-img { height: 120px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active {
  color: var(--c-gold);
  background: rgba(212,175,55,0.1);
}

.nav__cta {
  margin-left: 12px;
  padding: 9px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav__mobile {
  display: none;
  background: var(--c-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px 24px;
}
.nav__mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav__mobile .nav__link { display: block; padding: 10px 12px; font-size: 16px; }

body.nav-open .nav__mobile { display: block; }
body.nav-open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================================
   HERO — Grand mosque entrance
   ============================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Mosque background image */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1591604129939-f1efa4d99f7e?w=1920&q=85') center/cover no-repeat;
  z-index: 0;
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,27,42,0.88) 0%,
    rgba(14,58,31,0.85) 50%,
    rgba(13,27,42,0.92) 100%
  );
  z-index: 1;
}

/* Islamic pattern overlay */
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.6;
  background-image:
    /* Complex Islamic star - octagon + cross pattern */
    repeating-conic-gradient(
      from 22.5deg at 50% 50%,
      rgba(212,175,55,0.05) 0deg 22.5deg,
      transparent 22.5deg 45deg
    ),
    repeating-linear-gradient(
      45deg,
      rgba(212,175,55,0.03) 0px, rgba(212,175,55,0.03) 1px,
      transparent 1px, transparent 32px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(212,175,55,0.03) 0px, rgba(212,175,55,0.03) 1px,
      transparent 1px, transparent 32px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(212,175,55,0.02) 0px, rgba(212,175,55,0.02) 1px,
      transparent 1px, transparent 64px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(212,175,55,0.02) 0px, rgba(212,175,55,0.02) 1px,
      transparent 1px, transparent 64px
    );
  background-size: 64px 64px, 32px 32px, 32px 32px, 64px 64px, 64px 64px;
  pointer-events: none;
}

/* Edge vignette */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, rgba(13,27,42,0.4) 100%);
  pointer-events: none;
}

/* Floating ornaments */
.hero__ornament {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.hero__ornament--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  animation: float-slow 20s ease-in-out infinite;
}
.hero__ornament--2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -80px;
  background: radial-gradient(circle, rgba(45,138,78,0.1) 0%, transparent 70%);
  animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 10px var(--c-gold);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--c-gold); }
  50% { opacity: 0.5; box-shadow: 0 0 20px var(--c-gold); }
}

.hero__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero__heading::after { display: none; }

.hero__heading em {
  font-style: italic;
  color: var(--c-gold);
  display: block;
  font-size: 0.7em;
  margin-top: 4px;
}

.hero__sub {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 24px;
}
.hero__stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
}
.hero__stat span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(212,175,55,0.6), transparent);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}


/* =============================================================================
   ABOUT
   ============================================================================= */
.about { background: var(--c-bg); }

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.about__card {
  background: var(--c-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.about__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.about__card--azan::before { background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light)); }
.about__card--live::before { background: linear-gradient(90deg, var(--c-green), var(--c-green-light)); }
.about__card--both::before { background: linear-gradient(90deg, var(--c-gold), var(--c-green)); }

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about__card-icon { margin-bottom: 20px; }

.about__card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about__card-body {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about__card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  border: 1px solid rgba(212,175,55,0.2);
}
.about__card-tag--live {
  background: rgba(45,138,78,0.1);
  color: var(--c-green);
  border-color: rgba(45,138,78,0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.about__card-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse-live 1.5s infinite;
}
.about__card-tag--combo {
  background: linear-gradient(90deg, var(--c-gold-dim), rgba(45,138,78,0.1));
  color: var(--c-green-dark);
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.about__tagline {
  text-align: center;
  font-size: 18px;
  color: var(--c-text-muted);
}
.about__tagline strong { color: var(--c-text); }
.about__tagline em {
  color: var(--c-green);
  font-style: normal;
  font-weight: 600;
}


/* =============================================================================
   HOW IT WORKS — Dark section with mosque background
   ============================================================================= */
.section--dark {
  color: #fff;
}

.how-it-works {
  position: relative;
  overflow: hidden;
}

.how-it-works__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1542816417-0983c9c9ad53?w=1920&q=80') center/cover no-repeat;
  z-index: 0;
}

.how-it-works__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.92) 0%, rgba(14,58,31,0.9) 100%);
  z-index: 1;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

/* Vertical line connecting steps */
.steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-gold), rgba(212,175,55,0.2));
}

.step {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  position: relative;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
  border: 2px solid var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.step__num span {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-gold);
}

.step__title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.step__body {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.steps__contrast {
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-top: 40px;
  font-style: italic;
}


/* =============================================================================
   FEATURES
   ============================================================================= */
.features { background: var(--c-bg); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,175,55,0.3);
}

.feature__num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gold);
  opacity: 0.4;
  margin-bottom: 16px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--c-green);
}

.feature__title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature__body {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}


/* =============================================================================
   DEVICES — Navy section
   ============================================================================= */
.section--navy {
  background: var(--c-navy);
  color: #fff;
}

.devices__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(212,175,55,0.03) 0px, rgba(212,175,55,0.03) 1px,
      transparent 1px, transparent 36px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(212,175,55,0.03) 0px, rgba(212,175,55,0.03) 1px,
      transparent 1px, transparent 36px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(212,175,55,0.015) 0px, rgba(212,175,55,0.015) 1px,
      transparent 1px, transparent 72px
    );
  pointer-events: none;
}

.devices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.device-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.device-card__accent {
  height: 4px;
}
.device-card--alexa .device-card__accent { background: var(--c-alexa); }
.device-card--google .device-card__accent { background: var(--c-google); }
.device-card--bt .device-card__accent { background: var(--c-bt); }
.device-card--soon .device-card__accent { background: rgba(255,255,255,0.15); }

.device-card__inner {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
}

.device-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.device-card__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}
.device-card--alexa .device-card__logo { background: rgba(0,202,255,0.12); color: var(--c-alexa); }
.device-card--google .device-card__logo { background: rgba(13,148,136,0.12); color: var(--c-google); }
.device-card--bt .device-card__logo { background: rgba(99,102,241,0.12); color: var(--c-bt); }
.device-card--soon .device-card__logo { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

.device-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.device-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.device-card__badge--phase {
  background: rgba(212,175,55,0.15);
  color: var(--c-gold);
}

.device-card__list {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.device-card--soon { opacity: 0.65; }

.devices__note {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}


/* =============================================================================
   MOSQUES
   ============================================================================= */
.mosques { background: var(--c-bg); }

.mosques__search { margin-bottom: 40px; }
.mosques__search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.mosques__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  pointer-events: none;
}
.mosques__search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-card);
  font-size: 15px;
  color: var(--c-text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.mosques__search-input:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 4px rgba(26,86,50,0.08);
}
.mosques__search-input::placeholder { color: var(--c-text-light); }

.mosques__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.mosque-card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}
.mosque-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mosque-card--offline { opacity: 0.55; }

.mosque-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.mosque-card__status--live { background: #dcfce7; color: #166534; }
.mosque-card__status--off { background: #f3f4f6; color: #6b7280; }

.mosque-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.mosque-card__status--live .mosque-card__dot {
  animation: pulse-live 1.5s infinite;
}

.mosque-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.mosque-card__loc {
  font-size: 13px;
  color: var(--c-text-muted);
}

.mosques__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mosques__add {
  font-size: 14px;
  color: var(--c-text-muted);
}
.mosques__add a {
  color: var(--c-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* =============================================================================
   CUSTOMIZATION
   ============================================================================= */
.section--moss {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-warm) 100%);
}

.custom-mockup {
  display: flex;
  justify-content: center;
}

.custom-mockup__card {
  background: var(--c-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border-light);
  width: 100%;
  max-width: 520px;
}

.custom-mockup__header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0e1f3e 100%);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.custom-mockup__prayer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.custom-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #93c5fd;
  box-shadow: 0 0 8px #93c5fd;
}
.custom-mockup__time {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold);
  margin-left: auto;
}
.custom-mockup__badge {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 100px;
}

.custom-mockup__rows { padding: 4px 0; }

.custom-mockup__row {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--c-border-light);
  gap: 12px;
}
.custom-mockup__row:last-child { border-bottom: none; }

.custom-mockup__row-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-mockup__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  min-width: 72px;
}

.custom-mockup__value {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-mockup__value--select {
  background: var(--c-green-pale);
  color: var(--c-green);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.custom-mockup__vol-bar {
  width: 80px;
  height: 6px;
  background: var(--c-border);
  border-radius: 3px;
  overflow: hidden;
}
.custom-mockup__vol-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-green), var(--c-green-light));
  border-radius: 3px;
}


/* =============================================================================
   COMPARISON
   ============================================================================= */
.comparison { background: var(--c-bg); }

.comp-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}

.comp {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-card);
}

.comp thead { background: var(--c-green-dark); }

.comp th {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: rgba(255,255,255,0.7);
}
.comp th.comp__ours {
  color: var(--c-gold);
  background: rgba(0,0,0,0.2);
}
.comp th.comp__ours span {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
}

.comp td {
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: top;
  line-height: 1.5;
}
.comp tbody tr:last-child td { border-bottom: none; }
.comp tbody tr:hover { background: rgba(26,86,50,0.02); }

.comp__feat {
  font-weight: 600;
  color: var(--c-text);
  width: 140px;
}

.comp__ours {
  color: #166534;
  background: rgba(220,252,231,0.25);
}

.comp__check {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #166534;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
}
.comp__check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.comp__theirs { color: var(--c-text-muted); }


/* =============================================================================
   PRIVACY — Dark green section with mosque bg
   ============================================================================= */
.privacy {
  position: relative;
  overflow: hidden;
}

.privacy__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1564769625905-50e93615e769?w=1920&q=80') center/cover no-repeat;
  z-index: 0;
}

.privacy__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,58,31,0.93) 0%, rgba(13,27,42,0.95) 100%);
  z-index: 1;
}

.privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.privacy-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.privacy-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(212,175,55,0.25);
}

.privacy-card__icon { margin: 0 auto 20px; width: 36px; height: 36px; }

.privacy-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 12px;
}

.privacy-card__body {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}


/* =============================================================================
   ROADMAP
   ============================================================================= */
.roadmap { background: var(--c-bg); }

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-green), var(--c-gold), var(--c-border));
}

.timeline__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.timeline__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid;
  background: var(--c-bg);
  flex-shrink: 0;
}
.timeline__dot--active {
  border-color: var(--c-green);
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(26,86,50,0.15);
}
.timeline__dot--pending { border-color: var(--c-gold); }
.timeline__dot--future { border-color: var(--c-border); }

.timeline__card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow);
}

.timeline__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline__phase {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
}

.timeline__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.timeline__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-live 1.5s infinite;
}
.timeline__status--active  { background: #dcfce7; color: #166534; }
.timeline__status--pending { background: #fef9c3; color: #854d0e; }
.timeline__status--future  { background: #eff6ff; color: #1e40af; }

.timeline__price {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: var(--c-border-light);
  padding: 3px 10px;
  border-radius: 100px;
}

.timeline__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline__list li {
  font-size: 14px;
  color: var(--c-text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.timeline__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-gold);
}


/* =============================================================================
   COMMUNITY
   ============================================================================= */
.section--warm {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-warm) 100%);
}

.community__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.community-card {
  background: var(--c-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}
.community-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.community-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--c-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--c-green);
}

.community-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.community-card__body {
  font-size: 15px;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.community-card__link {
  color: var(--c-green);
  font-weight: 600;
  font-size: 14px;
  transition: color var(--t);
}
.community-card__link:hover { color: var(--c-green-dark); }


/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  background: var(--c-navy);
  padding: 0 0 32px;
  position: relative;
  overflow: visible;
}

.footer__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(26,86,50,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,175,55,0.05) 0%, transparent 40%),
    repeating-linear-gradient(
      45deg,
      rgba(212,175,55,0.015) 0px, rgba(212,175,55,0.015) 1px,
      transparent 1px, transparent 50px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(212,175,55,0.015) 0px, rgba(212,175,55,0.015) 1px,
      transparent 1px, transparent 50px
    );
  pointer-events: none;
}

.footer__wave {
  color: var(--c-navy);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(calc(-100% + 2px));
  z-index: 2;
  line-height: 0;
}
.footer__wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}

.footer__brand { max-width: 340px; }

.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer__tagline-en {
  font-size: 13px;
  color: var(--c-gold);
  font-style: italic;
  opacity: 0.6;
}

.footer__col-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 12px;
}
.footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 1px;
  opacity: 0.5;
}

.footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.25s, padding-left 0.25s;
}
.footer__col nav a:hover {
  color: var(--c-gold);
  padding-left: 4px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}
.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__bottom-links a {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  transition: color 0.25s;
}
.footer__bottom-links a:hover { color: var(--c-gold); }
.footer__sep { color: rgba(255,255,255,0.1); }


/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__card--both { grid-column: 1 / -1; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .mosques__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: var(--section-pad-sm); }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero__bismillah { font-size: clamp(24px, 7vw, 40px); }
  .hero__stats { padding: 16px 20px; flex-wrap: wrap; gap: 16px; }
  .hero__stat { padding: 0 16px; }
  .hero__stat-num { font-size: 22px; }
  .hero__stat-divider { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__card--both { grid-column: auto; }

  .steps::before { left: 20px; }

  .features__grid { grid-template-columns: 1fr; }
  .devices__grid { grid-template-columns: 1fr; }
  .mosques__grid { grid-template-columns: 1fr; }
  .privacy__grid { grid-template-columns: 1fr; }
  .community__grid { grid-template-columns: 1fr; }

  .comp th, .comp td { padding: 12px 16px; font-size: 13px; }
  .comp__feat { width: 100px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { max-width: 100%; grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__heading { font-size: clamp(28px, 8vw, 40px); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__stats { flex-direction: column; }

  .arch-divider svg { height: 40px; }

  .timeline::before { left: 16px; }
  .timeline__item { grid-template-columns: 36px 1fr; gap: 16px; }
  .timeline__price { margin-left: 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .hero__ornament, .hero__badge-dot, .mosque-card__dot,
  .timeline__status-dot, .hero__scroll-line, .about__card-tag-dot {
    animation: none;
  }
}
