/* ============================================================
   ISLAMIC WORLD PRO — LIQUID GLASS DESIGN SYSTEM
   Apple-style glassmorphism, re-tuned to the app's own palette:
   deep night navy + emerald + warm gold, with the Qibla compass
   as the signature glass instrument instead of generic chrome.
   ============================================================ */

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root{
  /* --- core palette (dark, permanent) --- */
  --bg-0: #060b10;
  --bg-1: #0a141d;
  --bg-2: #101f2c;
  --ink-0: #faf5ea;
  --ink-1: #d6ccbb;
  --ink-2: #a89f8d;

  --gold-0: #f3c497;
  --gold-1: #dd7f4a;
  --gold-2: #c46a38;
  --emerald-0: #3fe0a3;
  --emerald-1: #17694f;
  --sapphire-0: #8ab0ec;
  --sapphire-1: #2c4a80;

  --glass-fill: rgba(255,255,255,0.055);
  --glass-fill-strong: rgba(255,255,255,0.095);
  --glass-border: rgba(255,255,255,0.14);
  --glass-border-strong: rgba(243,196,151,0.38);
  --glass-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.09);
  --spotlight: rgba(221,127,74,0.16);

  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;

  --font-display: 'Amiri', 'Noto Naskh Arabic', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  --ease-liquid: cubic-bezier(.16,1,.3,1);
  --ease-out-soft: cubic-bezier(.22,1,.36,1);

  --nav-blur: 0px;
  --nav-alpha: 0.02;
  color-scheme: dark;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html.no-smooth{scroll-behavior:auto;}

body{
  margin:0;
  background:
    radial-gradient(120% 90% at 14% -12%, var(--bg-2) 0%, transparent 60%),
    radial-gradient(100% 80% at 100% 10%, rgba(23,105,79,0.25) 0%, transparent 55%),
    var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition: background .5s var(--ease-liquid), color .5s var(--ease-liquid);
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit;}

.container{max-width:var(--maxw); margin:0 auto; padding:0 28px; position:relative;}

::selection{background: var(--gold-1); color:#170d05;}

/* ============ ambient background system ============ */
.aurora-field{
  position:fixed; inset:0; z-index:-2; overflow:hidden; pointer-events:none;
}
.aurora-blob{
  position:absolute; border-radius:50%; filter: blur(70px);
  opacity:.55; will-change:transform;
  animation: drift 26s ease-in-out infinite;
}
.aurora-blob.b1{ width:46vw; height:46vw; left:-10%; top:-12%; background: radial-gradient(circle, var(--emerald-1), transparent 70%); animation-duration: 30s; }
.aurora-blob.b2{ width:38vw; height:38vw; right:-8%; top:6%; background: radial-gradient(circle, var(--gold-2), transparent 70%); animation-duration: 24s; animation-delay:-6s; }
.aurora-blob.b3{ width:42vw; height:42vw; left:20%; bottom:-18%; background: radial-gradient(circle, var(--sapphire-1), transparent 70%); animation-duration: 34s; animation-delay:-12s; }

@keyframes drift{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  33%{ transform: translate3d(4%,6%,0) scale(1.08); }
  66%{ transform: translate3d(-5%,-3%,0) scale(0.95); }
}

.noise-layer{
  position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(560px circle at var(--mx,50%) var(--my,20%), var(--spotlight), transparent 65%);
  transition: opacity .4s;
}

/* ============ custom cursor ============ */
.cursor-dot, .cursor-ring{
  position:fixed; top:0; left:0; z-index:9999; pointer-events:none;
  border-radius:50%; transform:translate3d(-50%,-50%,0);
  will-change:transform;
}
.cursor-dot{ width:6px; height:6px; background:var(--gold-0); }
.cursor-ring{
  width:34px; height:34px; border:1px solid var(--glass-border-strong);
  background: rgba(255,255,255,0.02);
  transition: width .25s var(--ease-out-soft), height .25s var(--ease-out-soft), border-color .25s, background .25s;
}
.cursor-ring.is-hover{ width:56px; height:56px; background: rgba(221,127,74,0.1); border-color: var(--gold-1); }
.has-custom-cursor, .has-custom-cursor *{ cursor:none !important; }

/* ============ scroll progress + back to top ============ */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; z-index:2000;
  background: linear-gradient(90deg, var(--emerald-0), var(--gold-1));
  width:0%; transition:width .08s linear;
}

.back-to-top{
  position:fixed; right:22px; bottom:22px; z-index:900;
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--glass-fill-strong);
  border:1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-shadow);
  opacity:0; transform: translateY(16px) scale(.9); pointer-events:none;
  transition: opacity .4s var(--ease-out-soft), transform .4s var(--ease-out-soft), background .3s;
  color: var(--ink-0);
}
.back-to-top.visible{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.back-to-top:hover{ background: var(--glass-fill-strong); border-color:var(--glass-border-strong); }
.back-to-top svg{ width:18px; height:18px; }

/* ============ loading screen ============ */
.loader{
  position:fixed; inset:0; z-index:10000; background:var(--bg-0);
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:18px;
  transition: opacity .6s var(--ease-liquid), visibility .6s;
}
.loader.done{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-mark{
  width:64px; height:64px; border-radius:22px; overflow:hidden;
  box-shadow: 0 0 0 1px var(--glass-border), 0 0 40px rgba(221,127,74,0.35);
  animation: pulse 1.6s ease-in-out infinite;
}
.loader-bar{ width:160px; height:2px; border-radius:2px; background:rgba(255,255,255,0.1); overflow:hidden; }
.loader-bar span{ display:block; height:100%; width:30%; background:linear-gradient(90deg,var(--emerald-0),var(--gold-1)); animation: loaderslide 1.1s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.06); } }
@keyframes loaderslide{ 0%{ transform:translateX(-120%);} 100%{ transform:translateX(420%);} }

/* ============ glass base ============ */
.glass{
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--glass-shadow);
  position:relative;
}
.glass::before{
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background: linear-gradient(150deg, rgba(255,255,255,0.14), transparent 40%, transparent 70%, rgba(255,255,255,0.05));
  mix-blend-mode: overlay;
}

/* ============ navigation ============ */
.nav-premium{
  position:fixed; top:16px; left:50%; transform:translate(-50%,0); z-index:1000;
  width:min(94%, 1120px);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:12px 14px 12px 20px;
  border-radius:999px;
  background: rgba(10,20,29, var(--nav-alpha));
  border:1px solid var(--glass-border);
  backdrop-filter: blur(var(--nav-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(160%);
  transition: transform .5s var(--ease-out-soft), background .3s, border-color .3s, box-shadow .3s;
  box-shadow: 0 10px 40px -18px rgba(0,0,0,0.5);
}
.nav-premium.nav-scrolled{ box-shadow: var(--glass-shadow); }
.nav-premium.nav-hidden{ transform: translate(-50%, -140%); }

.nav-brand{ display:flex; align-items:center; gap:10px; font-weight:600; letter-spacing:.01em; }
.nav-brand img{ width:32px; height:32px; border-radius:9px; }
.nav-brand span{ font-size:.98rem; }

.nav-list{ display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }
.nav-list a{
  position:relative; padding:9px 16px; border-radius:999px; font-size:.92rem; color:var(--ink-1);
  display:inline-block; transition: color .25s;
}
.nav-list a:hover{ color:var(--ink-0); }
.nav-list a.active{ color:var(--ink-0); }
.nav-list a.active::after{
  content:''; position:absolute; left:16px; right:16px; bottom:3px; height:2px; border-radius:2px;
  background: linear-gradient(90deg, var(--emerald-0), var(--gold-1));
}
.nav-cta{ font-size:.88rem; }
.nav-toggle{ display:none; }

@media (max-width:880px){
  .nav-list{
    display:flex; flex-direction:column; gap:4px;
    position:fixed; top:84px; left:50%; transform:translate(-50%,-16px);
    width:min(88%, 360px); padding:18px;
    background: var(--bg-1); border:1px solid var(--glass-border); border-radius:var(--radius-md);
    backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: var(--glass-shadow);
    opacity:0; visibility:hidden; pointer-events:none;
    transition: opacity .35s var(--ease-out-soft), transform .35s var(--ease-out-soft), visibility .35s;
  }
  .nav-list.open{ opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0); }
  .nav-list a{ padding:12px 14px; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; width:22px; background:none; border:0; padding:6px;
  }
  .nav-toggle span{ width:100%; height:2px; background:var(--ink-0); border-radius:2px; transition: transform .3s, opacity .3s; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
}

/* ============ buttons ============ */
.btn{
  --bx: 0px; --by: 0px;
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px; border-radius:999px; font-weight:600; font-size:.98rem;
  border:1px solid transparent; cursor:pointer; overflow:hidden; isolation:isolate;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .18s var(--ease-out-soft), box-shadow .3s, background .3s;
  will-change: transform;
}
.btn-glass{
  color:var(--ink-0);
  background: var(--glass-fill-strong);
  border-color: var(--glass-border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.btn-glass:hover{ border-color: var(--glass-border-strong); box-shadow: 0 12px 34px -14px rgba(221,127,74,0.4); }

.btn-gold{
  color:#170d05;
  background: linear-gradient(135deg, var(--gold-0), var(--gold-2));
  box-shadow: 0 14px 34px -14px rgba(221,127,74,0.55);
}
.btn-gold:hover{ box-shadow: 0 18px 44px -14px rgba(221,127,74,0.75); }

.btn .ripple{
  position:absolute; border-radius:50%; background:rgba(255,255,255,0.5); transform:scale(0);
  animation: ripple .6s var(--ease-out-soft) forwards; pointer-events:none; z-index:0;
}
@keyframes ripple{ to{ transform:scale(1); opacity:0; } }
.btn > *{ position:relative; z-index:1; }

.btn-border-anim{ position:relative; padding:2px; border-radius:999px; display:inline-block; overflow:hidden; }
.btn-border-anim::before{
  content:''; position:absolute; inset:-40%; z-index:0;
  background: conic-gradient(from var(--angle), var(--emerald-0), var(--gold-1), var(--sapphire-0), var(--emerald-0));
  animation: spin 5s linear infinite;
}
@keyframes spin{ to{ --angle: 360deg; } }
.btn-border-anim > .btn{ position:relative; z-index:1; }

.badge-soon{
  font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; padding:3px 9px; border-radius:999px;
  background: rgba(255,255,255,0.12); margin-left:2px;
}

/* ============ hero ============ */
.hero-premium{
  min-height:100svh; display:flex; align-items:center; position:relative; padding:150px 0 80px;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center; }
@media (max-width:960px){ .hero-grid{ grid-template-columns:1fr; text-align:center; } .hero-grid .hero-cta-row, .hero-grid .hero-stats{ justify-content:center; } }

.eyebrow-glass{
  display:inline-flex; align-items:center; gap:8px; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase;
  padding:8px 16px; border-radius:999px; color:var(--gold-0); margin-bottom:22px;
}
.eyebrow-glass .dot{ width:6px; height:6px; border-radius:50%; background:var(--emerald-0); box-shadow:0 0 10px var(--emerald-0); }

.hero-title{
  font-family:var(--font-display); font-weight:700; font-size:clamp(2.4rem, 5.4vw, 4.4rem); line-height:1.1;
  margin:0 0 22px; background: linear-gradient(100deg, var(--ink-0) 30%, var(--gold-0) 55%, var(--ink-0) 80%);
  background-size:220% auto; -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-title .word{ display:inline-block; opacity:0; transform: translateY(28px) rotate(3deg); filter:blur(6px); animation: wordIn .55s var(--ease-out-soft) forwards; animation-delay: calc(var(--i) * 32ms); }
@keyframes wordIn{ to{ opacity:1; transform:translateY(0) rotate(0); filter:blur(0); } }

/* ---- hero copy ornament (fills the quiet space behind the headline) ---- */
.hero-copy{ position:relative; z-index:1; }
.hero-ornament{
  position:absolute; top:-64px; left:-70px; width:300px; height:300px;
  opacity:.22; z-index:-1; pointer-events:none;
  animation: ornament-spin 90s linear infinite, ornament-breathe 7s ease-in-out infinite;
}
@keyframes ornament-spin{ to{ transform:rotate(360deg); } }
@keyframes ornament-breathe{ 0%,100%{ opacity:.16; } 50%{ opacity:.3; } }
@media (max-width:960px){ .hero-ornament{ left:50%; top:-40px; margin-left:-120px; width:240px; height:240px; } }
@media (prefers-reduced-motion: reduce){ .hero-ornament{ animation:none; } }

/* ============================================================
   LEGACY PAGE COMPONENTS — ported from the old style.css design
   onto the liquid-glass palette, so features/download/quran/
   prayer-qibla pages share the same look as the home + about pages.
   ============================================================ */

.hero{ padding:150px 0 50px; }
.hero .btn-row{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }
.page-hero{ padding:150px 0 30px; text-align:center; }
.page-hero .eyebrow{ justify-content:center; }
.page-hero p.lede{ max-width:640px; margin:18px auto 0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body); font-size:.78rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--gold-0); font-weight:600; margin-bottom:16px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--gold-1); display:inline-block; }
.lede{ font-size:1.12rem; color:var(--ink-1); font-weight:400; }

.section-alt{ background:linear-gradient(180deg, rgba(23,105,79,0.14), transparent); }

.star-divider{ display:flex; align-items:center; justify-content:center; gap:18px; margin:0 auto 56px; color:var(--gold-1); opacity:.85; }
.star-divider .line{ width:64px; height:1px; background:var(--glass-border-strong); }
.star-divider svg{ width:22px; height:22px; }

/* -- feature grid / cards (glass surfaces instead of flat panels) -- */
.feature-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--glass-border); border:1px solid var(--glass-border); border-radius:var(--radius-lg); overflow:hidden; }
.feature-card{ background:var(--glass-fill); backdrop-filter:blur(16px); padding:38px 30px; transition:background .25s ease, transform .3s var(--ease-out-soft); }
.feature-card:hover{ background:var(--glass-fill-strong); transform:translateY(-3px); }
.feature-icon{ width:46px; height:46px; margin-bottom:20px; color:var(--gold-1); }
.feature-card h3{ margin-bottom:10px; font-size:1.15rem; }
.feature-card p{ color:var(--ink-2); font-size:.93rem; margin-bottom:0; }
@media (max-width:980px){ .feature-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .feature-grid{ grid-template-columns:1fr; } }

/* -- panel (glass card, replaces flat .panel) -- */
.panel{ background:var(--glass-fill); border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:44px; backdrop-filter:blur(16px); transition:transform .3s var(--ease-out-soft), box-shadow .3s ease, border-color .3s ease; }
.panel:hover{ transform:translateY(-3px); box-shadow:0 16px 34px rgba(0,0,0,.28); border-color:var(--glass-border-strong); }

/* -- compass (legacy signature element, kept for prayer-qibla page) -- */
.compass-wrap{ position:relative; width:min(420px,84vw); aspect-ratio:1/1; margin:0 auto; transform-style:preserve-3d; will-change:transform; }
.compass-wrap svg{ width:100%; height:100%; }
.compass-ring-outer{ animation:spin-slow 120s linear infinite; transform-origin:210px 210px; }
.compass-needle{ transform-origin:210px 210px; animation:needle-settle 4.5s cubic-bezier(.2,.9,.25,1) infinite alternate; }
@keyframes needle-settle{ 0%{ transform:rotate(-3deg); } 100%{ transform:rotate(3deg); } }
.compass-glow{ position:absolute; inset:-20%; background:radial-gradient(circle, rgba(221,127,74,0.2), transparent 65%); filter:blur(6px); z-index:-1; transition:opacity .3s ease, filter .3s ease; }
.compass-wrap:hover .compass-glow{ opacity:1.4; filter:blur(4px); }

/* -- ayah / quote banner -- */
.ayah-banner{ text-align:center; padding:80px 0; position:relative; overflow:hidden; }
.ayah-banner .arabic{ font-family:var(--font-display); font-size:clamp(1.6rem,3vw,2.3rem); color:var(--gold-0); direction:rtl; margin-bottom:22px; line-height:1.8; }
.ayah-banner .translation{ max-width:640px; margin:0 auto; font-style:italic; color:var(--ink-1); }
.ayah-banner .source{ margin-top:18px; font-size:.85rem; color:var(--ink-2); letter-spacing:.05em; }

/* -- utility layout classes -- */
.grid-2{ display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; }
.grid-2.reverse{ grid-template-columns:.95fr 1.05fr; }
.grid-2.reverse .order-2{ order:-1; }
@media (max-width:920px){
  .grid-2, .grid-2.reverse{ grid-template-columns:1fr; gap:44px; }
  .grid-2.reverse .order-2{ order:0; }
}
.two-col{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
@media (max-width:760px){ .two-col{ grid-template-columns:1fr; } }

.pill-row{ display:flex; flex-wrap:wrap; gap:12px; margin:26px 0; }
.pill{ border:1px solid var(--glass-border-strong); border-radius:999px; padding:8px 16px; font-size:.85rem; color:var(--ink-1); display:inline-flex; align-items:center; gap:8px; background:var(--glass-fill); transition:transform .2s ease, border-color .2s ease, background .2s ease; }
.pill:hover{ transform:translateY(-2px); border-color:var(--gold-1); background:rgba(221,127,74,0.08); }
.pill svg{ width:14px; height:14px; color:var(--gold-1); }

.list-check{ list-style:none; margin:0; padding:0; }
.list-check li{ display:flex; gap:14px; align-items:flex-start; margin-bottom:16px; color:var(--ink-1); }
.list-check svg{ flex-shrink:0; width:20px; height:20px; color:var(--gold-1); margin-top:2px; }

.timeline{ display:flex; flex-direction:column; gap:0; }
.timeline-item{ display:grid; grid-template-columns:120px auto 1fr; gap:24px; align-items:start; padding:26px 0; border-bottom:1px solid var(--glass-border); }
.timeline-item:last-child{ border-bottom:none; }
.timeline-time{ font-family:var(--font-display); color:var(--gold-0); font-size:1.05rem; }
.timeline-dot{ width:10px; height:10px; border-radius:50%; background:var(--gold-1); margin-top:8px; transition:transform .25s ease, box-shadow .25s ease; }
.timeline-item:hover .timeline-dot{ transform:scale(1.35); box-shadow:0 0 0 6px rgba(221,127,74,0.16); }
@media (max-width:640px){ .timeline-item{ grid-template-columns:80px auto 1fr; gap:14px; } }

/* -- ghost button (secondary, outlined) -- */
.btn-ghost{ background:transparent; color:var(--ink-1); border:2px solid var(--glass-border-strong); padding:11px 26px; border-radius:999px; font-size:.88rem; position:relative; z-index:1; transition:all .3s cubic-bezier(.2,.7,.2,1); }
.btn-ghost:hover{ border-color:var(--gold-0); color:var(--gold-0); box-shadow:0 8px 20px rgba(221,127,74,0.2), inset 0 0 20px rgba(221,127,74,0.08); transform:translateY(-2px); background:rgba(221,127,74,0.05); }
.btn-ghost:active{ transform:translateY(0); }

.hero-lede{ font-size:1.12rem; color:var(--ink-1); max-width:52ch; margin:0 0 32px; }

/* ---- Bismillah calligraphy accent ---- */
.hero-bismillah{
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--gold-0);
  background: linear-gradient(90deg, var(--gold-0), var(--emerald-0), var(--gold-0));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  margin: 18px 0 6px;
  line-height: 1.7;
}
@keyframes shimmer{ to{ background-position: -200% center; } }

/* ---- quick core-pillar chips ---- */
.hero-pillars{
  list-style:none; margin:0 0 34px; padding:0;
  display:flex; flex-wrap:wrap; gap:10px;
}
.hero-pillar{
  display:flex; align-items:center; gap:8px;
  padding:8px 16px 8px 10px; border-radius:999px;
  font-size:.86rem; font-weight:500; color:var(--ink-1);
  transition: transform .25s var(--ease-out-soft), border-color .25s, color .25s;
}
.hero-pillar img{ width:22px; height:22px; border-radius:7px; display:block; }
.hero-pillar:hover{ transform:translateY(-3px); border-color:var(--glass-border-strong); color:var(--ink-0); }
.hero-grid.hero-grid .hero-pillars{ justify-content:flex-start; }
@media (max-width:960px){ .hero-pillars{ justify-content:center; } }
@media (max-width:600px){
  .hero-bismillah{ margin:14px 0 4px; }
  .hero-pillars{ gap:8px; margin-bottom:28px; }
  .hero-pillar{ font-size:.8rem; padding:7px 14px 7px 9px; }
}

.hero-cta-row{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }

.hero-stats{ display:flex; gap:34px; flex-wrap:wrap; }
.hero-stats .stat{ display:flex; flex-direction:column; gap:2px; }
.hero-stats .num{ font-family:var(--font-display); font-size:1.9rem; color:var(--gold-0); font-weight:700; }
.hero-stats .label{ font-size:.8rem; color:var(--ink-2); }

.scroll-cue{
  position:absolute; left:50%; bottom:26px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--ink-2); font-size:.72rem;
  letter-spacing:.08em; text-transform:uppercase; opacity:.8;
}
.scroll-cue .stick{ width:1px; height:34px; background:linear-gradient(var(--gold-1), transparent); position:relative; overflow:hidden; }
.scroll-cue .stick::after{ content:''; position:absolute; left:0; top:-40%; width:100%; height:40%; background:var(--gold-0); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue{ 0%{ top:-40%; } 60%{ top:100%; } 100%{ top:100%; } }

/* ---- hero glass instrument (Qibla compass) ---- */
.instrument-wrap{ position:relative; display:flex; align-items:center; justify-content:center; perspective:1200px; }
.instrument-glass{
  width:min(420px, 88vw); aspect-ratio:1; border-radius:50%;
  display:flex; align-items:center; justify-content:center; position:relative;
  transform-style:preserve-3d; will-change:transform;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
}
.instrument-glass svg{ width:78%; height:78%; }
.instrument-ring{ position:absolute; inset:0; border-radius:50%; border:1px solid var(--glass-border); animation: spin-slow 40s linear infinite; }
.instrument-ring.r2{ inset:22px; border-color:rgba(241,185,141,0.18); animation-duration:60s; animation-direction:reverse; }
@keyframes spin-slow{ to{ transform:rotate(360deg); } }

.floating-shape{
  position:absolute; border-radius:50%; background:var(--glass-fill); border:1px solid var(--glass-border);
  backdrop-filter:blur(10px); animation: float 8s ease-in-out infinite;
}
.floating-shape.f1{ width:70px; height:70px; top:6%; left:2%; animation-delay:-1s; }
.floating-shape.f2{ width:44px; height:44px; bottom:10%; right:4%; animation-delay:-3s; }
.floating-shape.f3{ width:26px; height:26px; top:48%; right:-2%; animation-delay:-5s; }
@keyframes float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-18px); } }

/* ---- orbiting feature icons around the compass ---- */
.icon-orbit{
  position:absolute; inset:0; pointer-events:none; z-index:3;
  --orbit-radius: min(216px, 44vw);
}
.orbit-icon{
  position:absolute; top:50%; left:50%; width:58px; height:58px; margin:-29px;
  animation: orbit-spin 32s linear infinite;
  animation-delay: var(--delay);
}
.orbit-icon img{
  display:block; width:100%; height:100%; box-sizing:border-box; padding:8px; border-radius:50%;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)), var(--glass-fill);
  border:1px solid var(--glass-border); backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(241,185,141,0.08), 0 0 18px rgba(241,185,141,0.16);
  animation: orbit-pulse 4s ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes orbit-spin{
  from{ transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
  to{ transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}
@keyframes orbit-pulse{
  0%,100%{ box-shadow: 0 10px 26px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(241,185,141,0.08), 0 0 18px rgba(241,185,141,0.16); }
  50%{ box-shadow: 0 10px 30px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(241,185,141,0.16), 0 0 28px rgba(241,185,141,0.32); }
}
@media (max-width:960px){
  .icon-orbit{ --orbit-radius: min(190px, 40vw); }
}
@media (max-width:640px){
  .icon-orbit{ --orbit-radius: min(148px, 38vw); }
  .orbit-icon{ width:46px; height:46px; margin:-23px; }
}
@media (prefers-reduced-motion: reduce){
  .orbit-icon, .orbit-icon img{ animation: none; }
}

/* ============ sections / headings ============ */
section{ position:relative; padding:110px 0; }
.section-tight{ padding:70px 0; }
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{
  font-family:var(--font-display); font-size:clamp(1.7rem,3.4vw,2.5rem); line-height:1.2; margin:10px 0 0;
}
.underline-draw{ position:relative; display:inline-block; }
.underline-draw::after{
  content:''; position:absolute; left:0; bottom:-6px; height:2px; width:100%;
  background:linear-gradient(90deg,var(--emerald-0),var(--gold-1)); transform-origin:left; transform:scaleX(0);
  transition: transform .8s var(--ease-out-soft);
}
.is-visible .underline-draw::after{ transform:scaleX(1); }

/* ============ prayer strip ============ */
.prayer-strip{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
@media (max-width:760px){ .prayer-strip{ grid-template-columns:repeat(2,1fr); } }
.prayer-cell{
  padding:26px 18px; text-align:center; border-radius:var(--radius-md);
  transition: transform .4s var(--ease-out-soft);
}
.prayer-cell:hover{ transform:translateY(-6px); }
.prayer-cell .name{ font-weight:600; margin-bottom:6px; }
.prayer-cell .arabic{ font-family:var(--font-display); color:var(--gold-0); font-size:1.3rem; margin-bottom:8px; }
.prayer-cell .desc{ font-size:.82rem; color:var(--ink-2); }

/* ============ marquee ============ */
.marquee{ overflow:hidden; -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; gap:14px; width:max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
.pill{
  padding:10px 20px; border-radius:999px; font-size:.86rem; white-space:nowrap; color:var(--ink-1);
}
@keyframes scroll-x{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ============ feature cards ============ */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:920px){ .feature-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:880px){ .split-grid{ grid-template-columns:1fr !important; } }
@media (max-width:600px){ .feature-grid{ grid-template-columns:1fr; } }

.glass-card{
  padding:28px 26px; transform-style:preserve-3d; will-change:transform;
  transition: transform .35s var(--ease-out-soft), box-shadow .35s, border-color .35s;
}
.glass-card::after{
  content:''; position:absolute; inset:-1px; border-radius:inherit; padding:1px; z-index:-1; opacity:0;
  background: conic-gradient(from var(--angle,0deg), var(--gold-1), transparent 30%, var(--emerald-0), transparent 70%, var(--gold-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite; transition: opacity .35s;
}
.glass-card:hover::after{ opacity:1; animation-play-state:running; }
.glass-card::after{ animation-play-state:paused; }
.glass-card:hover{ box-shadow: 0 26px 60px -24px rgba(221,127,74,0.35); }
.feature-icon{ width:30px; height:30px; color:var(--gold-0); margin-bottom:16px; }
.feature-icon-img{ width:44px; height:44px; border-radius:12px; margin-bottom:16px; display:block; box-shadow:0 6px 18px -8px rgba(0,0,0,0.45); }
.glass-card h3{ margin:0 0 8px; font-size:1.06rem; }
.glass-card p{ margin:0; color:var(--ink-1); font-size:.92rem; }

/* ============ trust strip ============ */
.trust-strip-wrap{ padding:0 0 10px; position:relative; z-index:2; }
.trust-strip{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:22px; padding:22px 30px; border-radius:var(--radius-md);
}
.trust-item{ display:flex; align-items:center; gap:10px; color:var(--ink-1); font-size:.9rem; font-weight:500; white-space:nowrap; }
.trust-item svg{ width:20px; height:20px; color:var(--gold-1); flex:none; }
.trust-divider{ width:1px; height:20px; background:var(--glass-border-strong); }
@media (max-width:760px){
  .trust-strip{ gap:16px 20px; padding:18px 20px; }
  .trust-divider{ display:none; }
}

/* ============ screenshot showcase ============ */
.showcase-wrap{ position:relative; }
.showcase-rail{ overflow-x:auto; overflow-y:hidden; padding:8px 4px 28px; margin:0 -4px; scrollbar-width:thin; -webkit-overflow-scrolling:touch; scroll-behavior:smooth; scroll-snap-type:x proximity; }
.showcase-rail::-webkit-scrollbar{ height:8px; }
.showcase-rail::-webkit-scrollbar-thumb{ background:var(--glass-border); border-radius:99px; }
.showcase-rail:focus-visible{ outline:2px solid var(--gold-1); outline-offset:4px; }
.showcase-track{ display:flex; gap:20px; width:max-content; padding:0 4px; }

.showcase-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--ink-0); border:1px solid var(--glass-border); cursor:pointer;
  transition: transform .25s var(--ease-out-soft), box-shadow .3s, opacity .25s, border-color .3s;
}
.showcase-arrow svg{ width:20px; height:20px; }
.showcase-arrow:hover{ box-shadow:0 12px 30px -12px rgba(221,127,74,0.5); border-color:var(--glass-border-strong); }
.showcase-arrow:active{ transform:translateY(-50%) scale(0.92); }
.showcase-arrow[disabled]{ opacity:.35; cursor:default; box-shadow:none; }
.showcase-arrow-prev{ left:-10px; }
.showcase-arrow-next{ right:-10px; }
@media (max-width:760px){
  .showcase-arrow{ width:38px; height:38px; }
  .showcase-arrow-prev{ left:2px; }
  .showcase-arrow-next{ right:2px; }
}
.showcase-card{ scroll-snap-align:start; }
.showcase-card{
  width:clamp(160px, 22vw, 220px); flex:none; padding:10px; border-radius:var(--radius-md);
  transition: transform .4s var(--ease-out-soft), box-shadow .4s;
}
.showcase-card:hover{ transform:translateY(-8px); box-shadow: 0 26px 60px -24px rgba(221,127,74,0.35); }
.showcase-card img{
  width:100%; height:auto; aspect-ratio:540/960; object-fit:cover;
  display:block; border-radius:calc(var(--radius-md) - 6px);
}
.showcase-card .showcase-label{ padding:12px 6px 4px; font-size:.86rem; font-weight:600; color:var(--ink-0); text-align:center; }
.showcase-card .showcase-tag{ display:block; padding:0 6px 4px; font-size:.76rem; color:var(--ink-2); text-align:center; }

/* ============ real screenshot inside device frame ============ */
.device-frame.has-screenshot{ padding:14px; }
.device-frame.has-screenshot .device-screen{ padding:0; background:none; }
.device-frame.has-screenshot .device-screen img{ width:100%; height:100%; aspect-ratio:540/960; object-fit:cover; display:block; }

/* ============ ayah spotlight panel ============ */
.ayah-panel{ padding:52px 40px; text-align:center; }
.ayah-arabic{ font-family:var(--font-display); font-size:clamp(1.4rem,3vw,1.9rem); color:var(--gold-0); line-height:2; direction:rtl; }
.ayah-translation{ color:var(--ink-1); font-style:italic; max-width:56ch; margin:20px auto 0; }
.ayah-ref{ font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); margin-top:14px; }

/* ============ mock device (image/glass-frame stand-in) ============ */
.device-frame{
  position:relative; padding:18px; border-radius:36px; max-width:280px; margin:0 auto;
}
.device-screen{
  border-radius:22px; overflow:hidden; aspect-ratio:9/18; background:linear-gradient(160deg,var(--bg-2),var(--bg-1));
  position:relative; display:flex; flex-direction:column; gap:10px; padding:22px 16px;
}
.device-screen .d-bar{ height:8px; border-radius:6px; background:rgba(255,255,255,0.08); }
.device-screen .d-bar.short{ width:60%; }
.device-screen .d-ring{ width:120px; height:120px; border-radius:50%; border:6px solid var(--gold-1); margin:18px auto; opacity:.8; }
.device-screen .d-row{ display:flex; gap:8px; }
.device-screen .d-chip{ flex:1; height:46px; border-radius:12px; background:rgba(255,255,255,0.06); }

/* ============ timeline ============ */
.timeline{ position:relative; padding-left:32px; }
.timeline::before{ content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background:linear-gradient(var(--emerald-0),var(--gold-1)); }
.timeline-item{ position:relative; padding-bottom:34px; }
.timeline-item::before{ content:''; position:absolute; left:-32px; top:2px; width:12px; height:12px; border-radius:50%; background:var(--gold-1); box-shadow:0 0 0 4px rgba(221,127,74,0.18); }
.timeline-item h4{ margin:0 0 6px; }
.timeline-item p{ margin:0; color:var(--ink-1); font-size:.92rem; }

/* ============ FAQ accordion ============ */
.faq-list{ display:flex; flex-direction:column; gap:14px; }
.faq-item{ padding:6px 24px; }
.faq-q{
  width:100%; background:none; border:0; color:var(--ink-0); text-align:left; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; font-size:1rem; font-weight:600;
}
.faq-q .plus{ width:18px; height:18px; position:relative; flex:none; }
.faq-q .plus::before, .faq-q .plus::after{ content:''; position:absolute; background:var(--gold-0); border-radius:2px; transition: transform .35s var(--ease-out-soft); }
.faq-q .plus::before{ left:0; top:8px; width:18px; height:2px; }
.faq-q .plus::after{ left:8px; top:0; width:2px; height:18px; }
.faq-item[data-open="true"] .plus::after{ transform:rotate(90deg); opacity:0; }
.faq-a-wrap{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s var(--ease-out-soft); }
.faq-item[data-open="true"] .faq-a-wrap{ grid-template-rows:1fr; }
.faq-a{ overflow:hidden; }
.faq-a p{ margin:0 0 18px; color:var(--ink-1); font-size:.94rem; }

/* ============ CTA band ============ */
.cta-band{ padding:64px 40px; text-align:center; }

/* ============ footer ============ */
.footer-premium{ padding:70px 0 40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h4{ font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); margin:0 0 14px; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-grid a:hover{ color:var(--gold-0); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:24px; border-top:1px solid var(--glass-border); font-size:.82rem; color:var(--ink-2); }

/* ============ reveal system ============ */
[data-reveal]{ opacity:0; will-change:transform, opacity, filter; transition: opacity .8s var(--ease-out-soft), transform .8s var(--ease-out-soft), filter .8s var(--ease-out-soft); }
[data-reveal].is-visible{ opacity:1; }
[data-reveal="fade-up"]{ transform:translateY(36px); }
[data-reveal="fade-up"].is-visible{ transform:translateY(0); }
[data-reveal="fade-down"]{ transform:translateY(-36px); }
[data-reveal="fade-down"].is-visible{ transform:translateY(0); }
[data-reveal="fade-left"]{ transform:translateX(48px); }
[data-reveal="fade-left"].is-visible{ transform:translateX(0); }
[data-reveal="fade-right"]{ transform:translateX(-48px); }
[data-reveal="fade-right"].is-visible{ transform:translateX(0); }
[data-reveal="scale-in"]{ transform:scale(.88); }
[data-reveal="scale-in"].is-visible{ transform:scale(1); }
[data-reveal="zoom-in"]{ transform:scale(1.16); }
[data-reveal="zoom-in"].is-visible{ transform:scale(1); }
[data-reveal="blur-in"]{ filter:blur(14px); }
[data-reveal="blur-in"].is-visible{ filter:blur(0); }
[data-reveal="rotate-in"]{ transform:rotate(-6deg) translateY(30px); }
[data-reveal="rotate-in"].is-visible{ transform:rotate(0) translateY(0); }

[data-stagger] > *{ opacity:0; transform:translateY(30px); transition: opacity .7s var(--ease-out-soft), transform .7s var(--ease-out-soft); }
[data-stagger].is-visible > *{ opacity:1; transform:translateY(0); }
[data-stagger].is-visible > *:nth-child(1){ transition-delay:0ms; }
[data-stagger].is-visible > *:nth-child(2){ transition-delay:80ms; }
[data-stagger].is-visible > *:nth-child(3){ transition-delay:160ms; }
[data-stagger].is-visible > *:nth-child(4){ transition-delay:240ms; }
[data-stagger].is-visible > *:nth-child(5){ transition-delay:320ms; }
[data-stagger].is-visible > *:nth-child(6){ transition-delay:400ms; }
[data-stagger].is-visible > *:nth-child(7){ transition-delay:480ms; }
[data-stagger].is-visible > *:nth-child(8){ transition-delay:560ms; }
[data-stagger].is-visible > *:nth-child(9){ transition-delay:640ms; }
[data-stagger].is-visible > *:nth-child(n+10){ transition-delay:700ms; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  [data-reveal]{ opacity:1 !important; transform:none !important; filter:none !important; }
  [data-stagger] > *{ opacity:1 !important; transform:none !important; }
}

/* ============ image blur-up reveal ============ */
img[data-blur-up]{ filter:blur(18px); transform:scale(1.04); transition: filter 1s var(--ease-out-soft), transform 1s var(--ease-out-soft); }
img[data-blur-up].is-loaded{ filter:blur(0); transform:scale(1); }

:focus-visible{ outline:2px solid var(--gold-1); outline-offset:3px; border-radius:6px; }

/* ============================================================
   MOBILE POLISH — safe-area, tap targets, small-screen tuning
   ============================================================ */

/* Respect notches / rounded corners / gesture bars */
body{
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.nav-premium{
  top: calc(16px + env(safe-area-inset-top));
}
.footer-premium{
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.back-to-top{
  bottom: calc(22px + env(safe-area-inset-bottom));
  right: calc(22px + env(safe-area-inset-right));
}

/* Snappier, native-feeling touch interaction, no grey flash / accidental zoom */
a, button, input, textarea, select{
  -webkit-tap-highlight-color: transparent;
}
.btn, .nav-toggle, .showcase-arrow, .back-to-top, .faq-q, .nav-list a{
  touch-action: manipulation;
}

/* Every interactive control gets a real ≥44px tap target on touch screens,
   even where the visible glyph is smaller (accessibility + thumb-friendly) */
@media (hover:none) and (pointer:coarse){
  .nav-toggle{ width:44px; height:44px; align-items:center; justify-content:center; padding:0; gap:5px; }
  .nav-toggle span{ width:20px; }
  .showcase-arrow{ width:46px; height:46px; }
  .faq-q{ min-height:44px; }
  .back-to-top{ width:52px; height:52px; }
}

/* Tighten spacing, font-scale and grids for phones, especially <=480px */
@media (max-width:600px){
  .container{ padding:0 20px; }
  section{ padding:76px 0; }
  .section-tight{ padding:52px 0; }
  .section-head{ margin-bottom:36px; }
  .hero-lede{ font-size:1.02rem; }
  .hero-cta-row{ flex-direction:column; align-items:stretch; gap:12px; margin-bottom:34px; }
  .hero-cta-row .btn{ width:100%; }
  .hero-cta-row .btn-border-anim{ width:100%; }
  .hero-stats{ justify-content:space-between; gap:18px 14px; }
  .hero-stats .stat{ flex:1 1 auto; min-width:0; }
  .hero-stats .num{ font-size:1.5rem; }
  .hero-stats .label{ font-size:.72rem; line-height:1.3; }
  .cta-band{ padding:44px 22px; }
  .ayah-panel{ padding:36px 20px; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:6px; }
  .prayer-strip{ gap:10px; }
  .prayer-cell{ padding:18px 10px; }
  .trust-strip{ padding:16px 18px; gap:14px 18px; }
  .trust-item{ font-size:.84rem; }
  .device-frame{ max-width:230px; }
}

@media (max-width:380px){
  .nav-brand span{ display:none; }
  .hero-title{ font-size:clamp(2rem,9vw,2.6rem); }
  .hero-stats{ flex-wrap:wrap; }
  .prayer-strip{ grid-template-columns:repeat(2,1fr); }
}

/* Prevent iOS Safari auto-zoom on form focus, in case forms are added later */
input, select, textarea{ font-size:16px; }
