/* qiblaglow.com. The app's "Night and gold" turned up: an indigo night with the six skies of the day
   (app/src/constants/theme.ts, Sky), a moving aurora, and gold that catches the light. Newsreader for
   headings and Manrope for text (both SIL Open Font License). No frameworks, no build step: every
   page links this one file. Every animation stops under "Reduce Motion". */
:root {
  color-scheme: dark;
  --bg: #0B1038;
  --bg-2: #121857;
  --bg-deep: #060A24;
  --card: rgba(26, 32, 92, 0.6);
  --card-solid: #171D5A;
  --ink: #FBF7EE;
  --muted: #C9CCE6;
  --faint: #8D92B8;
  --line: rgba(255, 255, 255, 0.1);
  --line-gold: rgba(243, 207, 122, 0.3);
  --gold: #F3CF7A;
  --gold-2: #E1B55A;
  --gold-deep: #B8862C;
  --sand: #FFE9B0;
  --rose: #F07A9A;
  --amber: #F6A552;
  --violet: #8E6CF0;
  --lavender: #B39DFF;
  --sky: #5FA8FF;
  --peach: #FFB98A;
  --green: #7EE2A8;
  --cream: #F7EEDC;
  --cream-2: #FFFBF3;
  --ink-cream: #141A33;
  --muted-cream: #5D6175;
  --gold-cream: #9C7524;
  --gold-grad: linear-gradient(135deg, #FFE9B0 0%, #F3CF7A 40%, #E1B55A 70%, #B8862C 100%);
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", serif;
  --font-urdu: "Noto Nastaliq Urdu", "Amiri", serif;
  --shell: 1140px;
  --gutter: 20px;
  --radius: 24px;
  --cycle: 60s;
  /* The day starts at Maghrib, the glow the app is named for; every timed thing below shares this offset. */
  --start: calc(var(--cycle) * -2 / 3);
}
@media (max-width: 480px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0B1038 0%, #10164C 45%, #090D2E 100%) fixed, var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--sand); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- The night behind every page: a drifting star lattice and an aurora ---------- */
.lattice {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='110' viewBox='0 0 128 110'%3E%3Cg fill='none' stroke='%23F3CF7A' stroke-opacity='0.05' stroke-width='1.1'%3E%3Cpolygon points='64,9 69.3,42.2 90.3,28.5 76.6,49.4 109.8,54.8 76.6,60.2 90.3,81.1 69.3,67.4 64,100.6 58.7,67.4 37.7,81.1 51.4,60.2 18.2,54.8 51.4,49.4 37.7,28.5 58.7,42.2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 128px 110px;
  animation: lattice-drift 120s linear infinite;
}
@keyframes lattice-drift { to { background-position: 128px 220px; } }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(142, 108, 240, 0.42), transparent 62%); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora .a2 { right: -30vmax; top: 10vh; background: radial-gradient(circle, rgba(240, 122, 154, 0.26), transparent 62%); animation: drift-b 27s ease-in-out infinite alternate; }
.aurora .a3 { left: 10vw; bottom: -45vmax; background: radial-gradient(circle, rgba(246, 165, 82, 0.2), transparent 62%); animation: drift-a 31s ease-in-out infinite alternate-reverse; }
.aurora .a4 { right: 5vw; bottom: -30vmax; background: radial-gradient(circle, rgba(95, 168, 255, 0.22), transparent 62%); animation: drift-b 25s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(16vmax, 12vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-14vmax, 14vmax) scale(0.9); } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 16, 56, 0.62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav .shell { display: flex; align-items: center; gap: 24px; height: 66px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold-grad); box-shadow: 0 0 12px rgba(243, 207, 122, 0.8); transition: width 0.1s linear; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 23px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 22px rgba(243, 207, 122, 0.35); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand:hover { color: var(--sand); }
.brand:hover img { transform: rotate(-12deg) scale(1.1); }
.nav nav { margin-left: auto; display: flex; gap: 24px; }
.nav nav a { position: relative; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav nav { display: none; } .nav .shell { gap: 12px; } .nav .pill { margin-left: auto; } }
@media (max-width: 520px) { .nav .pill { padding: 9px 14px; font-size: 13px; } .brand { font-size: 20px; } }

/* ---------- Buttons ---------- */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill.solid { overflow: hidden; background: var(--gold-grad); color: #1A1430; box-shadow: 0 12px 32px rgba(243, 207, 122, 0.3); }
.pill.solid:hover { color: #1A1430; box-shadow: 0 18px 40px rgba(243, 207, 122, 0.45); }
.pill.solid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-130%); animation: sheen 3.6s ease-in-out infinite; }
@keyframes sheen { 55%, 100% { transform: translateX(130%); } }
.pill.ghost { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--ink); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px); }
.pill.ghost:hover { border-color: var(--gold); color: var(--sand); background: rgba(243, 207, 122, 0.08); }
.pill.ghost span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 18px 44px rgba(243, 207, 122, 0.5); } }

/* ---------- Section rhythm ---------- */
section { position: relative; padding: 84px 0; }
@media (max-width: 760px) { section { padding: 60px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: "✦"; font-size: 11px; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; max-width: 760px; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 14px 0 0; }
.center { text-align: center; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Hero: the day passes over the city ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: clip; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #141C4A 0%, #4B3270 38%, #B5566A 72%, #F0995A 100%); }
.sky .layer { position: absolute; inset: 0; opacity: 0; animation: sky-slot var(--cycle) linear infinite; }
/* Each sky holds the stage for a sixth of the cycle and hands over with a crossfade. */
@keyframes sky-slot { 0% { opacity: 0; } 6% { opacity: 1; } 16.667% { opacity: 1; } 22.667% { opacity: 0; } 100% { opacity: 0; } }
.sky .fajr { background: linear-gradient(180deg, #0B1233 0%, #25306A 38%, #6A5A8E 72%, #D99A7A 100%); animation-delay: var(--start); }
.sky .sunrise { background: linear-gradient(180deg, #22407A 0%, #4E78B4 38%, #9DB5D3 72%, #E7C394 100%); animation-delay: calc(var(--start) + var(--cycle) / 6); }
.sky .dhuhr { background: linear-gradient(180deg, #173E78 0%, #2F62A6 38%, #5D92C8 72%, #A9C8E4 100%); animation-delay: calc(var(--start) + var(--cycle) / 3); }
.sky .asr { background: linear-gradient(180deg, #28467F 0%, #5B7DB0 38%, #D3A56A 72%, #F2CF8E 100%); animation-delay: calc(var(--start) + var(--cycle) / 2); }
.sky .maghrib { background: linear-gradient(180deg, #141C4A 0%, #4B3270 38%, #B5566A 72%, #F0995A 100%); animation-delay: calc(var(--start) + var(--cycle) * 2 / 3); }
.sky .isha { background: linear-gradient(180deg, #04071A 0%, #0A1233 38%, #141F4E 72%, #1E2B63 100%); animation-delay: calc(var(--start) + var(--cycle) * 5 / 6); }
/* Night things show at night; the sun travels by day. The timing matches the skies above. */
@keyframes night-only { 0% { opacity: 1; } 12% { opacity: 1; } 22% { opacity: 0.12; } 80% { opacity: 0.12; } 90% { opacity: 1; } 100% { opacity: 1; } }
@keyframes day-only { 0% { opacity: 0; } 14% { opacity: 0; } 22% { opacity: 1; } 78% { opacity: 1; } 86% { opacity: 0; } 100% { opacity: 0; } }
.sky .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 16, 56, 0.92) 0%, rgba(11, 16, 56, 0.7) 38%, rgba(11, 16, 56, 0.15) 70%, rgba(11, 16, 56, 0) 100%), linear-gradient(180deg, rgba(11, 16, 56, 0.35) 0%, rgba(11, 16, 56, 0) 30%, rgba(11, 16, 56, 0) 70%, var(--bg) 100%); }
@media (max-width: 900px) { .sky .scrim { background: linear-gradient(180deg, rgba(11, 16, 56, 0.88) 0%, rgba(11, 16, 56, 0.55) 50%, rgba(11, 16, 56, 0.2) 75%, var(--bg) 100%); } }
.sky .stars { position: absolute; inset: 0; animation: night-only var(--cycle) linear infinite var(--start); }
.sky .stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.2; transform: scale(0.6); } }
.sky .shoot { position: absolute; top: 18%; left: 62%; width: 160px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); transform: rotate(-28deg); opacity: 0; animation: shoot 11s ease-out infinite 4s; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-28deg) translateX(0); } 2% { opacity: 1; } 9% { opacity: 0; transform: rotate(-28deg) translateX(-420px); } 100% { opacity: 0; } }
.sky .arc { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; overflow: visible; }
.sky .arc path { fill: none; stroke: rgba(255, 233, 176, 0.55); stroke-width: 1.5; stroke-dasharray: 3 9; stroke-linecap: round; }
.sky .arc circle.mark { fill: rgba(255, 255, 255, 0.85); }
.sky .sun { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: radial-gradient(circle, #FFF7D6 0%, #FFE08A 45%, rgba(255, 200, 100, 0) 72%); box-shadow: 0 0 60px 20px rgba(255, 214, 120, 0.45); offset-path: path("M 40 520 C 300 60, 1140 60, 1400 520"); offset-rotate: 0deg; animation: travel var(--cycle) linear infinite var(--start), day-only var(--cycle) linear infinite var(--start); }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.sky .moon { position: absolute; left: 16%; top: 22%; width: 42px; height: 42px; border-radius: 50%; background: #FFF1C9; box-shadow: 0 0 40px 10px rgba(255, 241, 201, 0.35), inset -12px -4px 0 0 rgba(11, 16, 56, 0.85); animation: night-only var(--cycle) linear infinite var(--start); }
.sky .city { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; fill: var(--bg); opacity: 0.95; }
.sky .glow { position: absolute; left: 50%; bottom: 30px; width: 60vw; height: 120px; transform: translateX(-50%); background: radial-gradient(50% 100% at 50% 100%, rgba(243, 207, 122, 0.35), transparent 70%); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } .hero { padding-top: 44px; } }
.kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-gold); background: rgba(11, 16, 56, 0.55); backdrop-filter: blur(8px); color: var(--sand); font-size: 13px; font-weight: 700; }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(243, 207, 122, 0.7); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(243, 207, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(243, 207, 122, 0); } }
h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; margin: 22px 0 20px; font-weight: 500; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3); }
.shine { background: linear-gradient(90deg, #FBF7EE 0%, #FFFFFF 30%, #FFE9B0 50%, #FBF7EE 70%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
h1 em { font-style: italic; font-weight: 500; background: linear-gradient(90deg, #FFE9B0, #F3CF7A 35%, #FFD98A 55%, #E1B55A 80%, #FFE9B0); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: -240% 0; } }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .pill { padding: 15px 26px; font-size: 16px; }
.cta .pill.solid { animation: breathe 3s ease-in-out infinite; }
.note { margin-top: 16px; color: var(--faint); font-size: 14px; max-width: 520px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.trust li { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); }
.trust li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 7px; }

/* The stage: three phones; the middle one lives through the same day as the sky */
.stage { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.ring { position: absolute; inset: 5%; border-radius: 50%; border: 1px solid rgba(255, 233, 176, 0.3); }
.ring::before { content: ""; position: absolute; inset: 3.5%; border-radius: 50%; border: 2px dotted rgba(255, 233, 176, 0.45); animation: spin 80s linear infinite; }
.ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(255, 233, 176, 0.14); animation: spin 120s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(243, 207, 122, 0.28), rgba(142, 108, 240, 0.18) 50%, transparent 72%); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); opacity: 0.8; } }
.phone {
  position: absolute; border-radius: 9.5cqw; padding: 1.7cqw;
  background: linear-gradient(160deg, #353B66, #0E1230);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 0 1px rgba(243, 207, 122, 0.18);
}
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 7.8cqw; background: #0A0F24; }
.phone.a { left: 50%; top: 1%; width: 44cqw; z-index: 3; transform: translateX(-50%); animation: float-a 6s ease-in-out infinite; }
.phone.b { left: 0; top: 13%; width: 37cqw; z-index: 2; transform: rotate(-9deg); animation: float-b 7s ease-in-out infinite 0.6s; }
.phone.c { right: 0; top: 13%; width: 37cqw; z-index: 2; transform: rotate(9deg); animation: float-c 8s ease-in-out infinite 1.1s; }
@keyframes float-a { 50% { transform: translateX(-50%) translateY(-12px); } }
@keyframes float-b { 50% { transform: rotate(-9deg) translateY(-9px); } }
@keyframes float-c { 50% { transform: rotate(9deg) translateY(-9px); } }
.phone .screen { position: relative; aspect-ratio: 390 / 844; border-radius: 7.8cqw; overflow: hidden; background: #0A0F24; }
.phone .screen img { position: absolute; inset: 0; height: 100%; opacity: 0; animation: sky-slot var(--cycle) linear infinite; }
.phone .screen img:nth-child(1) { animation-delay: var(--start); }
.phone .screen img:nth-child(2) { animation-delay: calc(var(--start) + var(--cycle) / 6); }
.phone .screen img:nth-child(3) { animation-delay: calc(var(--start) + var(--cycle) / 3); }
.phone .screen img:nth-child(4) { animation-delay: calc(var(--start) + var(--cycle) / 2); }
.phone .screen img:nth-child(5) { animation-delay: calc(var(--start) + var(--cycle) * 2 / 3); }
.phone .screen img:nth-child(6) { animation-delay: calc(var(--start) + var(--cycle) * 5 / 6); }
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 2cqw; white-space: nowrap;
  padding: 2.4cqw 3.2cqw; border-radius: 3.6cqw;
  background: rgba(17, 22, 70, 0.78); border: 1px solid rgba(243, 207, 122, 0.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  font-size: max(11px, 2.8cqw); font-weight: 700; color: var(--ink); pointer-events: none;
}
.chip small { display: block; font-size: max(9px, 2.2cqw); font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.chip b { font-family: var(--font-display); font-weight: 500; font-size: max(18px, 5.4cqw); line-height: 1; font-variant-numeric: tabular-nums; }
.chip.next { left: -2%; bottom: 10%; animation: float 6s ease-in-out infinite 0.4s; }
.chip.qibla { right: -2%; top: 6%; animation: float 5s ease-in-out infinite 1.2s; }
.chip.qibla .dot { width: 2.4cqw; height: 2.4cqw; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.7); animation: ping 2s infinite; }
.chip.qibla svg { width: max(18px, 4.6cqw); height: max(18px, 4.6cqw); }
.chip.qibla svg .needle { transform-origin: 12px 12px; animation: seek 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
@keyframes seek { 0% { transform: rotate(-70deg); } 40% { transform: rotate(0deg); } 70% { transform: rotate(0deg); } 85% { transform: rotate(50deg); } 100% { transform: rotate(-70deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Numbers under the hero */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 44px auto 0; padding: 0; list-style: none; }
.stats li { text-align: center; min-width: 96px; }
.stats b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 38px; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 600px) { .stats { gap: 16px 22px; } .stats b { font-size: 30px; } .stats li { min-width: 84px; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-gold); border-bottom: 1px solid var(--line-gold); background: rgba(243, 207, 122, 0.05); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; width: max-content; animation: slide 55s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { padding: 15px 26px; color: var(--sand); font-weight: 700; font-size: 14px; white-space: nowrap; }
.marquee span::before { content: "✦"; color: var(--gold); margin-right: 26px; font-size: 11px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  --a: var(--violet); --b: var(--lavender);
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--a), var(--b)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.card:hover { transform: translateY(-6px); background: rgba(30, 36, 104, 0.75); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 60px -20px var(--a); }
.card:hover::before { opacity: 1; }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 10px 26px -8px var(--a); margin-bottom: 20px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 24px; margin-bottom: 8px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card.fajr { --a: #6A5A8E; --b: #B39DFF; }
.card.sunrise { --a: #E07A4A; --b: #FFB98A; }
.card.dhuhr { --a: #2F62A6; --b: #5FA8FF; }
.card.asr { --a: #B8862C; --b: #F3CF7A; }
.card.maghrib { --a: #B5566A; --b: #F0995A; }
.card.isha { --a: #2B3A8C; --b: #8E6CF0; }
.card:hover .sunrise-ico { animation: rise 1.2s ease-out; }
@keyframes rise { from { transform: translateY(6px); opacity: 0.4; } }
.card:hover .needle { transform-origin: 13px 13px; animation: seek 2.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.card:hover .swing { transform-origin: 13px 4px; animation: swing 1.6s ease-in-out; }
@keyframes swing { 25% { transform: rotate(10deg); } 75% { transform: rotate(-8deg); } }
.card:hover .tick { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 0.8s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- A look inside: phones that drift past ---------- */
#inside { padding-bottom: 60px; }
.drift { overflow: hidden; margin: 40px calc(-1 * var(--gutter)) 0; padding: 20px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.drift .track { display: flex; gap: 22px; width: max-content; animation: slide 70s linear infinite; }
.drift:hover .track { animation-play-state: paused; }
.shot { flex: 0 0 auto; width: 240px; perspective: 1200px; }
.shot .frame { border-radius: 32px; padding: 7px; background: linear-gradient(160deg, #353B66, #0E1230); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(243, 207, 122, 0.18); transform: rotateY(-7deg); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease; }
.shot:nth-child(even) .frame { transform: rotateY(7deg); }
.shot:hover .frame { transform: rotateY(0) translateY(-8px) scale(1.03); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold); }
.shot img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 26px; background: #0A0F24; }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--sand); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }

/* ---------- Sources: a page of cream, like paper ---------- */
section.cream { background: var(--cream); color: var(--ink-cream); }
section.cream::before, section.cream::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: linear-gradient(90deg, transparent, var(--gold-cream) 30%, var(--gold-cream) 70%, transparent) center / 100% 1px no-repeat; opacity: 0.6; }
section.cream::before { top: 22px; }
section.cream::after { bottom: 22px; }
section.cream .eyebrow { color: var(--gold-cream); }
section.cream h2 { color: var(--ink-cream); }
section.cream .sub { color: var(--muted-cream); }
.ornament { display: flex; justify-content: center; gap: 14px; align-items: center; color: var(--gold-cream); margin: -4px 0 34px; font-size: 14px; }
.ornament::before, .ornament::after { content: ""; width: 80px; height: 1px; background: var(--gold-cream); opacity: 0.6; }
.two { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; margin-top: 36px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.panel { padding: 30px; border-radius: var(--radius); background: var(--cream-2); border: 1px solid rgba(156, 117, 36, 0.25); box-shadow: 0 20px 50px rgba(20, 26, 51, 0.1); }
.panel h3 { font-size: 25px; margin-bottom: 14px; color: var(--ink-cream); }
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.sources li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(156, 117, 36, 0.2); font-size: 15.5px; color: var(--muted-cream); }
.sources li:first-child { border-top: 0; padding-top: 0; }
.sources b { color: var(--gold-cream); font-weight: 800; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
@media (max-width: 480px) { .sources li { grid-template-columns: 1fr; gap: 4px; } }
.panel.night { background: linear-gradient(180deg, #171D5A, #0B1038); border-color: rgba(243, 207, 122, 0.35); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 26, 51, 0.35); }
.panel.night h3 { color: var(--sand); }
.panel.night ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; display: grid; gap: 12px; }
.panel.night li::marker { color: var(--gold); }

/* ---------- Languages ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.langs span { position: relative; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-gold); background: rgba(26, 32, 92, 0.6); font-weight: 700; font-size: 17px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease; }
.langs span:hover { transform: translateY(-3px); background: rgba(243, 207, 122, 0.12); }
.langs span[lang="ar"] { font-family: var(--font-arabic); font-size: 21px; padding-top: 10px; padding-bottom: 12px; }
.langs span[lang="ur"] { font-family: var(--font-urdu); font-size: 18px; line-height: 1.9; padding-top: 6px; padding-bottom: 6px; }
.langs span.soon { color: var(--muted); border-style: dashed; font-weight: 600; }
.langs span.soon::after { content: "soon"; margin-left: 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Plus: a deep night with stars ---------- */
#plus { background: linear-gradient(180deg, rgba(4, 7, 26, 0) 0%, rgba(4, 7, 26, 0.55) 20%, rgba(4, 7, 26, 0.55) 80%, rgba(4, 7, 26, 0) 100%); overflow: clip; }
#plus .stars { position: absolute; inset: 0; pointer-events: none; }
#plus .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 4s ease-in-out infinite; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.plan { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; backdrop-filter: blur(10px); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan.best { border-color: transparent; background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, conic-gradient(from var(--angle), #F3CF7A, #8E6CF0, #F07A9A, #F6A552, #F3CF7A) border-box; border: 2px solid transparent; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 80px -30px var(--gold); animation: turn 6s linear infinite; }
@keyframes turn { to { --angle: 360deg; } }
.plan .tag { position: absolute; top: -14px; left: 24px; padding: 6px 13px; border-radius: 999px; background: var(--gold-grad); color: #1A1430; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(243, 207, 122, 0.35); }
.plan h3 { font-size: 23px; }
.plan .price { font-family: var(--font-display); font-size: 50px; line-height: 1; margin: 18px 0 4px; font-weight: 500; }
.plan.best .price { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .per { color: var(--muted); font-size: 15px; min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; color: var(--gold); font-weight: 900; margin-right: 9px; }
.fine { color: var(--faint); font-size: 14px; max-width: 760px; margin: 24px auto 0; text-align: center; }

/* ---------- Privacy strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 820px) { .strip { grid-template-columns: 1fr; } }
.strip div { position: relative; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 15.5px; overflow: hidden; }
.strip div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--violet)); }
.strip b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; transition: background 0.3s ease; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; transition: color 0.2s ease; }
.faq summary:hover { color: var(--sand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--font-ui); font-size: 26px; font-weight: 300; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { color: var(--muted); padding: 0 0 20px; max-width: 700px; animation: fade-in 0.4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Finale and footer ---------- */
.final { position: relative; text-align: center; padding: 80px 24px; border-radius: 36px; border: 1px solid var(--line-gold); background: radial-gradient(700px 320px at 50% 0%, rgba(243, 207, 122, 0.2), transparent 70%), linear-gradient(180deg, rgba(26, 32, 92, 0.7), rgba(11, 16, 56, 0.8)); overflow: hidden; }
.orbit { position: relative; width: 140px; height: 140px; margin: 0 auto 22px; }
.orbit .mark { position: absolute; inset: 30px; width: 80px; height: 80px; filter: drop-shadow(0 10px 30px rgba(243, 207, 122, 0.4)); animation: pulse 4s ease-in-out infinite; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 3px dotted rgba(243, 207, 122, 0.7); animation: spin 14s linear infinite; }
.orbit i:nth-child(2) { inset: 14px; border-color: rgba(179, 157, 255, 0.6); animation-duration: 10s; animation-direction: reverse; border-width: 2px; }
.orbit i:nth-child(3) { inset: -12px; border-color: rgba(243, 207, 122, 0.3); animation-duration: 22s; border-width: 2px; }
.final .cta { justify-content: center; margin-top: 28px; }
footer { padding: 52px 0 44px; color: var(--muted); font-size: 14.5px; }
footer .shell { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer p { max-width: 560px; margin: 14px 0 0; }
footer .links { display: flex; flex-direction: column; gap: 10px; }
footer .links a { color: var(--muted); font-weight: 600; }
footer .links a:hover { color: var(--sand); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Text pages: privacy, terms, support, 404 ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.article h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 8px; font-weight: 500; }
.article .meta { color: var(--faint); font-size: 14.5px; margin-bottom: 36px; }
.article h2 { font-size: 28px; margin: 42px 0 10px; }
.article h3 { font-size: 21px; margin: 26px 0 8px; }
.article p, .article li { color: var(--muted); font-size: 16.5px; }
.article p b, .article li b { color: var(--ink); font-weight: 700; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--gold); }
.article .box { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line-gold); background: rgba(243, 207, 122, 0.08); color: var(--ink); margin: 20px 0 28px; }
.article .box p { color: var(--ink); margin: 0; }
.article .box p + p { margin-top: 10px; }
.article dl { margin: 0; }
.article dt { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 28px; }
.article dd { margin: 8px 0 0; color: var(--muted); font-size: 16.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sky .layer { opacity: 0; } .sky .maghrib { opacity: 1; }
  .sky .sun { opacity: 0; } .sky .moon { opacity: 1; }
  .phone .screen img { opacity: 0; } .phone .screen img:nth-child(5) { opacity: 1; }
  .drift { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .drift .track { width: auto; padding: 0 var(--gutter); }
  .drift .track .shot.copy { display: none; }
}
