/* ============================================
   Taqwa Download Site — Dark + Gold Theme
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #12100e;
  --bg-2: #191612;
  --surface: #1e1a15;
  --surface-2: #262019;
  --border: #322a20;
  --gold: #facc85;
  --gold-deep: #e0b05c;
  --gold-soft: rgba(250, 204, 133, 0.12);
  --text: #f6f0e6;
  --text-dim: #b3a68f;
  --text-faint: #7d725f;
  --radius: 20px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(250, 204, 133, 0.06), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(250, 204, 133, 0.04), transparent 55%);
  background-repeat: no-repeat;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 16, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: cover; display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.brand-name { font-weight: 700; font-size: 1.22rem; letter-spacing: 0.01em; }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all .15s;
}
.lang-btn:hover { border-color: var(--gold-deep); color: var(--gold); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #1a1206;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 28px; }
.hero-icon {
  width: 108px; height: 108px;
  border-radius: 26px;
  margin: 0 auto 22px;
  display: block;
  object-fit: cover;
  box-shadow:
    0 12px 40px rgba(0,0,0,.55),
    0 0 0 1px var(--border),
    0 0 60px rgba(250, 204, 133, 0.12);
}
.app-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff8ec 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  max-width: 720px;
  margin: 14px auto 34px;
  color: var(--text-dim);
  font-size: 1.1rem;
  white-space: nowrap;
}

.download-zone { margin-top: 8px; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1206;
  padding: 17px 46px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s, box-shadow .2s;
  box-shadow: 0 10px 30px rgba(250, 204, 133, 0.25);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(250, 204, 133, 0.35);
}
.btn-download svg { width: 20px; height: 20px; }
.meta { margin-top: 14px; color: var(--text-faint); font-size: 0.86rem; }

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 520px;
  margin: 0 auto;
}
.notice-title { font-weight: 700; font-size: 1.1rem; color: var(--gold); margin-bottom: 8px; }
.notice-body { color: var(--text-dim); }
.qr-box { display: flex; justify-content: center; margin-top: 22px; }
.qr-box img, .qr-box canvas {
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

/* ---------- Phone showcase ---------- */
.showcase {
  padding: 28px 0 8px;
}
.showcase-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.phone {
  width: 220px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0908;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  transition: transform .25s, box-shadow .25s;
}
.phone:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0,0,0,.7), 0 0 40px rgba(250,204,133,.1);
}
.phone img { display: block; width: 100%; height: auto; }
.phone.mid { width: 232px; transform: translateY(-8px); }
.phone.mid:hover { transform: translateY(-14px) scale(1.02); }

/* ---------- Features ---------- */
.section-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 64px 0 8px;
  letter-spacing: -0.01em;
}
.section-sub { text-align: center; color: var(--text-faint); margin-bottom: 36px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 0 40px;
}
.feature {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: rgba(250, 204, 133, 0.4); transform: translateY(-3px); }
.feature h3 { font-size: 1.04rem; margin-bottom: 7px; color: var(--text); }
.feature p { font-size: 0.88rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 26px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.hidden { display: none; }

/* RTL for Urdu */
html[lang="ur"] body { direction: rtl; }
html[lang="ur"] .feature { text-align: right; }
html[lang="ur"] .footer-inner { direction: rtl; }

@media (max-width: 640px) {
  .app-title { font-size: 2.4rem; }
  .features { grid-template-columns: 1fr; }
  .btn-download { width: 100%; justify-content: center; }
  .phone { width: 150px; border-radius: 20px; }
  .phone.mid { width: 158px; }
  .showcase-inner { gap: 14px; }
  .hero { padding-top: 48px; }
  .tagline { white-space: normal; }
}