/* ============================================================
   Fajr Up — modern cinematic design
   CI: deep ink indigo, gold, dawn sky · DM Sans
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700;9..40,800;9..40,900&family=Amiri:wght@400;700&display=swap');

:root {
  --ink: #150958;
  --ink-deep: #0a0533;
  --ink-black: #070428;
  --ink-soft: #8b87b8;
  --ink-softer: #b9b6d9;
  --gold: #f6b709;
  --gold-soft: #ffd766;
  --gold-glow: rgba(246, 183, 9, .35);
  --sky-top: #9cc1e7;
  --sky-bottom: #eef4ff;
  --success: #34d399;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .12);
  --radius: 24px;
  --radius-lg: 32px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #fff;
  background: var(--ink-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; position: relative; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700;
  color: var(--gold); background: rgba(246,183,9,.08);
  border: 1px solid rgba(246,183,9,.25); border-radius: 40px; padding: 8px 18px;
}
.lead { font-size: 1.16rem; color: var(--ink-softer); font-weight: 400; }
.center { text-align: center; }
.accent { color: var(--gold-soft); }
.arabic { font-family: 'Amiri', serif; direction: rtl; }

/* ---- Scroll reveal ---- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 100px; font-weight: 700; font-size: 1.02rem;
  cursor: pointer; border: none; position: relative;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease, background .2s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink-deep); box-shadow: 0 10px 40px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 50px rgba(246,183,9,.5); }
.btn-ghost {
  background: var(--glass); color: #fff; border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,4,40,.72); backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: rgba(255,255,255,.08);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.nav-links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255,255,255,.75); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.lang {
  border: 1px solid var(--glass-border); border-radius: 20px; padding: 5px 14px;
  font-weight: 700; font-size: .8rem; background: var(--glass);
}
.nav .btn { padding: 11px 24px; font-size: .92rem; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 150px 0 90px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('img/hero-sky.jpg') center 30%/cover no-repeat, linear-gradient(180deg, #070428, #150958);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(246,183,9,.22), transparent 55%),
    linear-gradient(180deg, rgba(7,4,40,.55) 0%, rgba(7,4,40,.25) 45%, rgba(7,4,40,.92) 100%);
}
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stars span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: .6; animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .12; transform: scale(.8);} 50% { opacity: .8; transform: scale(1.2);} }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { text-shadow: 0 8px 60px rgba(0,0,0,.6); margin: 26px 0 22px; }
.hero .lead { max-width: 540px; font-size: 1.2rem; color: rgba(255,255,255,.82); }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .fineprint { margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.55); }
.hero-stats { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.stat-chip {
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
  border-radius: 18px; padding: 14px 22px; text-align: left;
}
.stat-chip b { display: block; font-size: 1.45rem; font-weight: 900; color: var(--gold-soft); letter-spacing: -.02em; }
.stat-chip span { font-size: .82rem; color: rgba(255,255,255,.65); }

/* ---- Phone mockup ---- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,183,9,.28), transparent 65%);
  filter: blur(30px); z-index: 0; top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .7; transform: translate(-50%,-50%) scale(1);} 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08);} }
.phone {
  position: relative; z-index: 1; width: 300px; border-radius: 46px;
  background: #05031c; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 100px rgba(0,0,0,.7), inset 0 0 0 8px #05031c, inset 0 0 0 9px rgba(255,255,255,.08);
  padding: 10px; animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(0.6deg);} 50% { transform: translateY(-16px) rotate(-0.6deg);} }
.phone-screen {
  border-radius: 37px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #1b0f6e 0%, #3d2fa0 45%, #7a63c8 78%, #d99a4e 100%);
  padding: 54px 18px 24px; min-height: 600px;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px; background: #05031c; border-radius: 20px;
}
.ps-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.ps-logo { font-weight: 800; font-size: .95rem; display: flex; gap: 6px; align-items: center; }
.ps-flame {
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  border-radius: 30px; padding: 4px 12px; font-size: .8rem; font-weight: 800;
}
.ps-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; font-weight: 700; text-align: center; }
.ps-time { font-size: 3.4rem; font-weight: 900; letter-spacing: -.03em; text-align: center; line-height: 1.05; }
.ps-sub { text-align: center; font-size: .85rem; opacity: .85; margin-top: 4px; }
.ps-card {
  margin-top: auto; background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: 22px; padding: 16px 18px; box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.ps-card .t { font-weight: 800; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.ps-card .d { font-size: .78rem; color: #6d68a0; margin-top: 3px; }
.ps-pill {
  background: var(--gold); border-radius: 30px; text-align: center; font-weight: 800;
  color: var(--ink); font-size: .9rem; padding: 13px; margin-top: 12px;
  box-shadow: 0 8px 24px rgba(246,183,9,.4);
}
.ps-toggle { width: 42px; height: 25px; background: var(--success); border-radius: 20px; position: relative; flex: none; }
.ps-toggle::after { content: ''; position: absolute; right: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; }

/* mini phones (how it works) */
.mini-phone {
  width: 190px; border-radius: 32px; background: #05031c; padding: 7px;
  border: 1px solid rgba(255,255,255,.12); margin: 0 auto 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.step-card:hover .mini-phone { transform: translateY(-8px) scale(1.03); }
.mini-screen {
  border-radius: 26px; min-height: 330px; padding: 34px 14px 16px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; text-align: center;
}
.mini-screen.dark { background: linear-gradient(180deg, #0a0533, #241470); }
.mini-screen.dawn { background: linear-gradient(180deg, #1b0f6e, #7a63c8 70%, #d99a4e); }
.mini-screen.day { background: linear-gradient(180deg, #9cc1e7, #eef4ff); color: var(--ink); }
.ms-time { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; }
.ms-label { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.ms-ayah { font-family: 'Amiri', serif; font-size: 1.05rem; direction: rtl; line-height: 2; margin: 14px 6px; }
.ms-bar { height: 7px; border-radius: 5px; background: rgba(255,255,255,.18); margin: 10px 8px; overflow: hidden; }
.ms-bar i { display: block; height: 100%; width: 72%; border-radius: 5px; background: var(--gold); }
.ms-btn { margin-top: auto; background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 800; padding: 9px; border-radius: 20px; }
.ms-big { font-size: 2.6rem; margin: 8px 0 2px; }
.ms-streak { font-weight: 900; font-size: 1.15rem; }
.ms-days { display: flex; gap: 4px; justify-content: center; margin-top: 12px; }
.ms-days i { width: 15px; height: 15px; border-radius: 50%; background: var(--gold); opacity: .95; }
.ms-days i.off { background: rgba(21,9,88,.15); }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; }
.step-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 38px 28px 32px; text-align: center; backdrop-filter: blur(10px);
  transition: border-color .3s ease, background .3s ease;
}
.step-card:hover { border-color: rgba(246,183,9,.35); background: rgba(255,255,255,.08); }
.step-num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(246,183,9,.15); color: var(--gold); font-weight: 800; font-size: .95rem;
  border: 1px solid rgba(246,183,9,.4); margin-bottom: 18px;
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-card p { color: var(--ink-softer); font-size: .96rem; }

/* ---- Bento grid ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 60px; }
.b-card {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.b-card:hover { transform: translateY(-6px); border-color: rgba(246,183,9,.4); box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(246,183,9,.15); }
.b-card .ico {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: rgba(246,183,9,.12); border: 1px solid rgba(246,183,9,.25); margin-bottom: 18px;
}
.b-card h3 { font-size: 1.22rem; margin-bottom: 8px; letter-spacing: -.01em; }
.b-card p { color: var(--ink-softer); font-size: .95rem; }
.b-card .glowline {
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246,183,9,.6), transparent);
  opacity: 0; transition: opacity .3s;
}
.b-card:hover .glowline { opacity: 1; }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }
.b-4 { grid-column: span 4; }
.b-6 { grid-column: span 6; }
.b-hero-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
  background: linear-gradient(140deg, rgba(246,183,9,.14), rgba(255,255,255,.03));
  border-color: rgba(246,183,9,.3);
}
.b-hero-card .arabic { font-size: 1.7rem; line-height: 2.1; color: var(--gold-soft); text-align: center; }
.b-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-border); }
.b-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Marquee ---- */
.marquee-band { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.marquee { display: flex; gap: 16px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.chip {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 13px 24px; font-weight: 700; display: flex; align-items: center; gap: 10px;
  font-size: .98rem; white-space: nowrap; backdrop-filter: blur(8px);
}
.chip span { font-size: 1.25rem; }

/* ---- Rewards timeline ---- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 33px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, rgba(246,183,9,.15), var(--gold), rgba(246,183,9,.15));
}
.tl-item { text-align: center; position: relative; }
.tl-dot {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 22px; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  background: var(--ink-deep); border: 2px solid var(--gold); box-shadow: 0 0 30px rgba(246,183,9,.35);
}
.tl-days { color: var(--gold); font-weight: 800; letter-spacing: .1em; font-size: .82rem; text-transform: uppercase; }
.tl-item h3 { font-size: 1.5rem; margin: 6px 0; }
.tl-item p { color: var(--ink-softer); font-size: .94rem; max-width: 260px; margin: 0 auto; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.plan {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 36px 30px; position: relative; backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-8px); }
.plan.featured {
  background: linear-gradient(165deg, rgba(246,183,9,.16), rgba(255,255,255,.04));
  border-color: rgba(246,183,9,.5); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(246,183,9,.12);
  transform: scale(1.04);
}
.plan.featured:hover { transform: scale(1.04) translateY(-8px); }
.plan .tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--ink-deep);
  font-weight: 800; font-size: .78rem; padding: 6px 18px; border-radius: 40px;
  box-shadow: 0 6px 20px rgba(246,183,9,.4); white-space: nowrap;
}
.plan .name { font-weight: 800; font-size: 1.15rem; color: rgba(255,255,255,.85); }
.plan .price { font-size: 2.9rem; font-weight: 900; margin: 12px 0 2px; letter-spacing: -.03em; }
.plan .per { color: var(--ink-soft); font-size: .95rem; }
.plan .save { display: inline-block; color: var(--success); font-weight: 700; margin-top: 10px; font-size: .9rem; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); padding: 4px 12px; border-radius: 20px; }
.plan ul { list-style: none; margin: 22px 0 0; }
.plan li { padding: 7px 0; color: var(--ink-softer); font-size: .96rem; }
.plan li::before { content: '✓  '; color: var(--gold); font-weight: 800; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 54px auto 0; }
.faq details {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px;
  margin-bottom: 14px; overflow: hidden; transition: border-color .3s;
}
.faq details[open] { border-color: rgba(246,183,9,.35); }
.faq summary {
  cursor: pointer; padding: 22px 26px; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--gold); font-weight: 400; transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 26px 24px; color: var(--ink-softer); font-size: .98rem; }

/* ---- CTA band ---- */
.band {
  position: relative; text-align: center; border-radius: 36px; padding: 90px 30px; overflow: hidden;
  background: linear-gradient(160deg, #1b0f6e, #0a0533);
  border: 1px solid rgba(246,183,9,.25);
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 50% 120%, rgba(246,183,9,.3), transparent 60%);
}
.band > * { position: relative; }
.band .lead { max-width: 560px; margin: 18px auto 34px; }
.band .moon { font-size: 3rem; margin-bottom: 10px; }

/* ---- Footer ---- */
footer { background: #05031c; color: rgba(255,255,255,.65); padding: 70px 0 44px; border-top: 1px solid rgba(255,255,255,.06); }
footer .cols { display: flex; flex-wrap: wrap; gap: 50px; justify-content: space-between; }
footer .brand { color: #fff; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,.6); display: block; padding: 5px 0; transition: color .2s; }
footer a:hover { color: var(--gold-soft); }
footer h4 { color: #fff; font-size: .92rem; margin-bottom: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
footer .bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.45); }

/* ---- Legal pages ---- */
.legal { background: var(--ink-black); padding-top: 150px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 34px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-softer); margin-bottom: 12px; font-size: .98rem; }
.legal ul { margin: 0 0 12px 20px; }
.legal a { color: var(--gold-soft); font-weight: 700; text-decoration: underline; }
.back { display: inline-block; margin-bottom: 26px; color: var(--gold-soft); font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 70px; }
  .hero .lead { margin: 0 auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-2, .b-3, .b-4 { grid-column: span 2; }
  .b-6 { grid-column: span 2; }
  .b-hero-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 78px 0; }
  .steps, .plans, .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .nav-links a:not(.lang) { display: none; }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-8px); }
  .bento { grid-template-columns: 1fr; }
  .b-2, .b-3, .b-4, .b-6 { grid-column: span 1; }
  .phone { width: 265px; }
  .phone-screen { min-height: 530px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .phone, .phone-glow, .stars span, .marquee { animation: none; }
}
