/* ==========================================================================
   Islamic Apps Store — promo website
   ========================================================================== */
:root {
  --e950: #021a14; --e900: #04211a; --e800: #0a3d2e; --e700: #0f5240; --e600: #157a5c; --e500: #1f9b74; --e300: #6fe0b8;
  --g200: #fbeab0; --g300: #f5d97a; --g400: #e6c35c; --g500: #d4af37; --g700: #9c7a1e;

  --bg: var(--e950);
  --bg-alt: rgba(10, 61, 46, 0.32);
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.08);
  --line: rgba(212, 175, 55, 0.16);
  --line-2: rgba(212, 175, 55, 0.42);
  --tx: #e6eee9;
  --tx-2: #a3b8ad;
  --hd: #fffaf0;
  --ac: var(--g500);
  --glow: rgba(212, 175, 55, 0.35);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);

  --r: 18px; --r-lg: 28px; --nav: 74px;
  --f-en: "Outfit", system-ui, sans-serif;
  --f-bn: "Hind Siliguri", "Outfit", system-ui, sans-serif;
  --f-disp-en: "Cormorant Garamond", Georgia, serif;
  --f-disp-bn: "Tiro Bangla", "Hind Siliguri", serif;
  --f-ar: "Amiri", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="light"] {
  --bg: #fbf7ec; --bg-alt: rgba(15, 82, 64, 0.05);
  --card: rgba(255, 255, 255, 0.8); --card-2: #fff;
  --line: rgba(156, 122, 30, 0.2); --line-2: rgba(156, 122, 30, 0.5);
  --tx: #22362e; --tx-2: #5a6f66; --hd: #08372a; --ac: #a8841f;
  --glow: rgba(168, 132, 31, 0.25); --shadow: 0 24px 50px -28px rgba(10, 61, 46, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
body {
  font-family: var(--f-bn); background: var(--bg); color: var(--tx); line-height: 1.7; font-size: 16.5px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background .5s, color .5s;
}
[data-lang="en"] body { font-family: var(--f-en); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--g500); color: var(--e950); }
svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 1.8; flex-shrink: 0; }
.wrap { width: min(1240px, 92%); margin-inline: auto; position: relative; z-index: 2; }

/* ---------- Background layers ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
[data-theme="light"] #sky { opacity: .18; }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; filter: blur(80px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 26s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 48vw; height: 48vw; left: -10vw; top: -12vw; background: radial-gradient(circle, rgba(31,155,116,.55), transparent 65%); }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -8vw; top: 10vh; background: radial-gradient(circle, rgba(212,175,55,.32), transparent 65%); animation-delay: -8s; }
.aurora span:nth-child(3) { width: 50vw; height: 50vw; left: 30vw; bottom: -30vw; background: radial-gradient(circle, rgba(21,122,92,.5), transparent 65%); animation-delay: -15s; }
[data-theme="light"] .aurora { opacity: .35; }
[data-theme="light"] .aurora span { mix-blend-mode: multiply; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.15); } }
.pattern {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Cpath d='M40 16l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .6s, visibility .6s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__moon { width: 64px; color: var(--g500); filter: drop-shadow(0 0 20px var(--glow)); animation: moon 1.4s var(--ease) infinite; }
@keyframes moon { 0% { transform: rotate(0) scale(.9); } 50% { transform: rotate(-25deg) scale(1.05); } 100% { transform: rotate(0) scale(.9); } }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--e500), var(--g500), var(--g300)); box-shadow: 0 0 12px var(--glow); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav); z-index: 100; transition: background .4s, box-shadow .4s; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--hd); }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--e700), var(--e900)); border: 1px solid var(--line-2); color: var(--g400); transition: transform .6s var(--ease); }
.brand__mark svg { width: 24px; }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }
.brand__txt { font-family: var(--f-disp-en); font-size: 1.4rem; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.brand__txt em { color: var(--ac); font-style: italic; }
.nav__links { display: flex; gap: .2rem; }
.nav__links a { padding: .45rem .9rem; border-radius: 999px; color: var(--tx-2); font-weight: 500; font-size: .95rem; transition: .25s; }
.nav__links a:hover, .nav__links a.is-on { color: var(--hd); background: var(--card-2); }
.nav__act { display: flex; align-items: center; gap: .45rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--card-2); }
.i-light { display: none; } [data-theme="light"] .i-light { display: block; } [data-theme="light"] .i-dark { display: none; }
.lang-btn { height: 42px; padding: 0 .3rem; border-radius: 999px; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .82rem; }
.lang-btn span { padding: .3rem .6rem; border-radius: 999px; transition: .3s var(--ease); color: var(--tx-2); }
[data-lang="bn"] .lang-btn__bn, [data-lang="en"] .lang-btn__en { background: linear-gradient(135deg, var(--g300), var(--g700)); color: var(--e950); }
.nav__burger { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; position: relative; overflow: hidden; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s; }
.btn--gold { background: linear-gradient(135deg, var(--g300), var(--g500) 55%, var(--g700)); color: var(--e950); box-shadow: 0 10px 30px -10px var(--glow); }
.btn--gold::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transition: transform .8s var(--ease); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px var(--glow); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-2); background: var(--card); color: var(--hd); backdrop-filter: blur(6px); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--ac); background: var(--card-2); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 30px) 0 90px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .7rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: .9rem; font-weight: 500; color: var(--hd); backdrop-filter: blur(8px); }
.pill b { color: var(--ac); }
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--e300); box-shadow: 0 0 0 0 rgba(111,224,184,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(111,224,184,0); } 100% { box-shadow: 0 0 0 0 rgba(111,224,184,0); } }
.hero__bismillah { text-align: left; font-family: var(--f-ar); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ac); margin: 1.2rem 0 .6rem; opacity: .95; }
.hero__title { font-family: var(--f-disp-bn); font-weight: 400; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.18; color: var(--hd); letter-spacing: -.5px; }
[data-lang="en"] .hero__title { font-family: var(--f-disp-en); font-weight: 700; line-height: 1.05; font-size: clamp(2.8rem, 6.2vw, 5.2rem); }
.grad { background: linear-gradient(100deg, var(--g200), var(--g500) 40%, var(--e300) 80%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
[data-theme="light"] .grad { background-image: linear-gradient(100deg, var(--g700), var(--g500) 40%, var(--e600) 80%); }
@keyframes shimmer { to { background-position: 200% center; } }
.hero__lead { margin: 1.3rem 0 1.8rem; color: var(--tx-2); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 600px; }
.hero__search {
  display: flex; align-items: center; gap: .7rem; max-width: 560px; padding: .45rem .45rem .45rem 1.2rem; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px); transition: box-shadow .3s, border-color .3s;
}
.hero__search:focus-within { border-color: var(--ac); box-shadow: 0 0 0 5px var(--glow), var(--shadow); }
.hero__search > svg { color: var(--ac); }
.hero__search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--hd); font: inherit; font-size: 1rem; }
.hero__search input::placeholder { color: var(--tx-2); }
.hero__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.hero__tags button { font-size: .82rem; padding: .3rem .8rem; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--tx-2); transition: .25s; }
.hero__tags button:hover { color: var(--hd); border-style: solid; border-color: var(--ac); }
.hero__stats { display: flex; gap: 2.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--f-en); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--hd); line-height: 1.1; }
.stat span { color: var(--tx-2); font-size: .9rem; }

/* Hero visual */
.hero__visual { position: relative; height: min(640px, 78vh); display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.ring--1 { width: 330px; height: 330px; }
.ring--2 { width: 470px; height: 470px; border-style: dashed; animation: spin 80s linear infinite; }
.ring--3 { width: 610px; height: 610px; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; z-index: 3; width: 268px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 11px;
  background: linear-gradient(145deg, #1c2a25, #0b1411); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 2px rgba(212,175,55,.25), 0 40px 90px -20px rgba(0,0,0,.8), 0 0 80px -10px rgba(212,175,55,.35);
  animation: float 7s ease-in-out infinite; transform-style: preserve-3d;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 20px; background: #000; z-index: 4; }
.phone__screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--e900); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 6s linear; }
.phone__screen img.is-on { opacity: 1; transform: scale(1); }
.phone__shine { position: absolute; inset: 11px; border-radius: 32px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 35%); z-index: 3; }
.orbit { position: absolute; inset: 0; z-index: 2; }
.orbit img { position: absolute; width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); border: 2px solid rgba(255,255,255,.1); }
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-radius: 16px;
  background: color-mix(in srgb, var(--e800) 80%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite; color: #fff;
}
[data-theme="light"] .float-card { background: rgba(255,255,255,.9); color: var(--hd); }
.float-card > svg { color: var(--g300); font-size: 1.4rem; }
[data-theme="light"] .float-card > svg { color: var(--g700); }
.float-card b { display: block; font-family: var(--f-en); font-size: 1.05rem; line-height: 1.1; }
.float-card span { font-size: .78rem; opacity: .75; }
.float-card .stars { color: var(--g400); letter-spacing: 1px; font-size: .9rem; }
.float-card--a { top: 12%; left: -2%; animation-delay: -1s; }
.float-card--b { bottom: 16%; right: -4%; animation-delay: -3s; }
.float-card--c { bottom: 6%; left: 4%; animation-delay: -4.5s; }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 20px; z-index: 3; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ac); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; padding: 1.2rem 0; display: grid; gap: 1rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row { display: flex; gap: 1rem; width: max-content; animation: mq 70s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: flex; align-items: center; gap: .7rem; padding: .5rem 1.1rem .5rem .5rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); white-space: nowrap; font-size: .9rem; color: var(--tx); transition: .3s; }
.mq-item:hover { border-color: var(--ac); color: var(--hd); transform: translateY(-3px); }
.mq-item img { width: 38px; height: 38px; border-radius: 11px; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--alt::before, .section--alt::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 7 L7 0 L14 7 L21 0 L28 7 L21 14 L14 7 L7 14 Z' fill='none' stroke='%23d4af37'/%3E%3C/svg%3E") repeat-x center; z-index: 2; }
.section--alt::before { top: 0; } .section--alt::after { bottom: 0; }
.head { text-align: center; max-width: 700px; margin: 0 auto clamp(36px, 5vw, 56px); }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--ac); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; }
.eyebrow::before, .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.head--row .eyebrow::before { display: none; }
.head h2 { font-family: var(--f-disp-bn); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.25; color: var(--hd); margin: .5rem 0 .6rem; }
[data-lang="en"] .head h2 { font-family: var(--f-disp-en); font-weight: 700; line-height: 1.1; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.head p { color: var(--tx-2); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.cat {
  position: relative; overflow: hidden; text-align: left; padding: 1.4rem 1.3rem 1.2rem; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms);
}
.cat::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--c1, rgba(212,175,55,.25)), transparent 70%); transition: transform .6s var(--ease); }
.cat:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.cat:hover::before { transform: scale(1.5); }
.cat__ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--c2, #157a5c), var(--c3, #0a3d2e)); box-shadow: 0 10px 24px -10px var(--c2, #157a5c); margin-bottom: 1rem; }
.cat h3 { font-size: 1.08rem; color: var(--hd); font-weight: 600; line-height: 1.35; }
.cat p { color: var(--tx-2); font-size: .85rem; display: flex; align-items: center; justify-content: space-between; margin-top: .3rem; }
.cat__icons { display: flex; margin-top: .9rem; }
.cat__icons img { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--bg); margin-right: -8px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Popular slider ---------- */
.slider-ctrl { display: flex; gap: .5rem; }
.pop { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.2rem; scrollbar-width: none; }
.pop::-webkit-scrollbar { display: none; }
.pcard {
  scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; cursor: pointer; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; min-width: 290px;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard__shots { position: relative; height: 210px; display: flex; gap: .5rem; padding: 1rem 1rem 0; overflow: hidden; background: linear-gradient(160deg, var(--e700), var(--e900)); }
.pcard__shots img { height: 230px; width: auto; border-radius: 12px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.6); transition: transform .6s var(--ease); }
.pcard:hover .pcard__shots img { transform: translateY(-10px); }
.pcard__shots::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--e900)); }
.pcard__rank { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--f-en); font-weight: 800; font-size: .8rem; padding: .25rem .65rem; border-radius: 999px; background: linear-gradient(135deg, var(--g300), var(--g700)); color: var(--e950); }
.pcard__body { display: flex; gap: .9rem; padding: 1.1rem 1.1rem .6rem; margin-top: -34px; position: relative; z-index: 2; align-items: flex-end; }
.pcard__icon { width: 68px; height: 68px; border-radius: 18px; border: 3px solid var(--e900); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); flex-shrink: 0; }
.pcard__name { font-weight: 600; color: var(--hd); line-height: 1.3; font-size: 1.02rem; }
.pcard__meta { display: flex; gap: .8rem; padding: 0 1.1rem; color: var(--tx-2); font-size: .85rem; flex-wrap: wrap; }
.pcard__meta b { color: var(--hd); font-family: var(--f-en); }
.pcard__foot { margin-top: auto; padding: 1rem 1.1rem 1.1rem; }
.pcard__foot .btn { width: 100%; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.tabs { display: flex; padding: .3rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.tab { padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--tx-2); display: inline-flex; gap: .4rem; align-items: center; transition: .3s var(--ease); }
.tab em { font-style: normal; font-size: .72rem; padding: 0 .45rem; border-radius: 999px; background: var(--card-2); font-family: var(--f-en); }
.tab.is-on { background: linear-gradient(135deg, var(--g300), var(--g700)); color: var(--e950); }
.tab.is-on em { background: rgba(0,0,0,.15); }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: .6rem; height: 50px; padding: 0 1.1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: .3s; }
.search:focus-within { border-color: var(--ac); box-shadow: 0 0 0 4px var(--glow); }
.search svg { color: var(--ac); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--hd); font: inherit; }
.search input::placeholder { color: var(--tx-2); }
.search kbd { font-family: var(--f-en); font-size: .72rem; padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 6px; color: var(--tx-2); }
.select { display: flex; align-items: center; gap: .5rem; height: 50px; padding: 0 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.select svg { color: var(--ac); }
.select select { background: none; border: 0; outline: 0; color: var(--hd); font: inherit; font-size: .92rem; cursor: pointer; }
.select option { background: var(--e900); color: #fff; }
[data-theme="light"] .select option { background: #fff; color: var(--tx); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem 0 .8rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--tx-2); font-size: .88rem; transition: .25s var(--ease); }
.chip:hover { color: var(--hd); border-color: var(--line-2); }
.chip.is-on { color: var(--e950); background: var(--g400); border-color: var(--g400); font-weight: 600; }
.chip em { font-style: normal; font-size: .72rem; opacity: .75; font-family: var(--f-en); }
.meta { color: var(--tx-2); font-size: .9rem; margin: .4rem 0 1.2rem; }
.meta b { color: var(--hd); }

/* ---------- App grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.15rem; border-radius: var(--r); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 35ms);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card__top { display: flex; gap: .9rem; align-items: center; }
.card__icon { width: 66px; height: 66px; border-radius: 17px; flex-shrink: 0; box-shadow: 0 10px 22px -10px rgba(0,0,0,.7); background: var(--card-2); transition: transform .5s var(--ease); }
.card:hover .card__icon { transform: scale(1.08) rotate(-3deg); }
.card__name { font-weight: 600; color: var(--hd); line-height: 1.32; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__bn { color: var(--ac); font-size: .84rem; line-height: 1.35; margin-top: .1rem; }
.card__short { color: var(--tx-2); font-size: .86rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__meta { display: flex; align-items: center; gap: .9rem; font-size: .82rem; color: var(--tx-2); flex-wrap: wrap; }
.card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card__meta b { color: var(--hd); font-family: var(--f-en); font-weight: 600; }
.card__meta .star { color: var(--g400); }
.card__foot { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line); }
.card__tag { font-size: .74rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ac); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.card__install { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--e950); background: linear-gradient(135deg, var(--g300), var(--g500)); transition: transform .3s var(--ease), box-shadow .3s; }
.card__install:hover { transform: scale(1.06); box-shadow: 0 8px 20px -6px var(--glow); }
.empty { text-align: center; color: var(--tx-2); padding: 3rem 0; display: flex; justify-content: center; gap: .5rem; align-items: center; }
.more { display: flex; justify-content: center; margin-top: 2rem; }

/* ---------- Features ---------- */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.feat { position: relative; padding: 2rem 1.8rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.feat:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feat__ic { position: relative; width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.5rem; color: var(--g300); margin-bottom: 1.1rem; }
.feat__ic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--e600), var(--e900)); clip-path: polygon(50% 0, 64% 15%, 85% 15%, 85% 36%, 100% 50%, 85% 64%, 85% 85%, 64% 85%, 50% 100%, 36% 85%, 15% 85%, 15% 64%, 0 50%, 15% 36%, 15% 15%, 36% 15%); transition: transform .8s var(--ease); }
.feat:hover .feat__ic::before { transform: rotate(45deg); }
.feat h3 { color: var(--hd); font-size: 1.25rem; font-weight: 600; margin-bottom: .35rem; }
.feat p { color: var(--tx-2); font-size: .96rem; }

/* ---------- Band ---------- */
.band { position: relative; z-index: 2; padding: 3.5rem 0; background: linear-gradient(120deg, var(--e800), var(--e900) 60%, #0b2f24); border-block: 1px solid var(--line-2); }
.band::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 2l8 20 20 8-20 8-8 20-8-20-20-8 20-8z' fill='none' stroke='%23d4af37'/%3E%3C/svg%3E"); }
.band__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.band__item svg { color: var(--g300); font-size: 1.6rem; margin: 0 auto .5rem; }
.band__item b { display: block; font-family: var(--f-en); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fffaf0; line-height: 1.1; }
.band__item span { color: #b4c9be; }

/* ---------- Reviews ---------- */
.reviews { display: flex; gap: 1.2rem; width: max-content; animation: mq 90s linear infinite; padding: .5rem 0 1rem; }
.reviews:hover { animation-play-state: paused; }
#reviews { overflow: hidden; }
.rev { width: 360px; flex-shrink: 0; padding: 1.5rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem; position: relative; }
.rev::before { content: "\201C"; position: absolute; top: .2rem; right: 1.2rem; font-family: var(--f-disp-en); font-size: 4.5rem; color: var(--ac); opacity: .25; line-height: 1; }
.rev__stars { color: var(--g400); letter-spacing: 2px; }
.rev__txt { color: var(--tx); font-size: .95rem; line-height: 1.6; flex: 1; }
.rev__who { display: flex; align-items: center; gap: .7rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.rev__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--e950); background: linear-gradient(135deg, var(--g300), var(--e300)); font-family: var(--f-en); }
.rev__who b { display: block; color: var(--hd); font-size: .92rem; line-height: 1.2; }
.rev__who small { color: var(--tx-2); font-size: .78rem; display: flex; align-items: center; gap: .3rem; }
.rev__who small img { width: 16px; height: 16px; border-radius: 4px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem); border-radius: 36px; background: linear-gradient(145deg, var(--e800), var(--e950)); border: 1px solid var(--line-2); color: #fffaf0; }
.cta__glow { position: absolute; width: 520px; height: 520px; top: -260px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(212,175,55,.4), transparent 65%); pointer-events: none; }
.cta > * { position: relative; }
.cta__ayah { font-family: var(--f-ar); font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--g300); }
.cta__tr { color: #b4c9be; font-size: .92rem; margin-bottom: 1.2rem; font-style: italic; }
.cta h2 { font-family: var(--f-disp-bn); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.3; }
[data-lang="en"] .cta h2 { font-family: var(--f-disp-en); font-weight: 700; }
.cta p { color: #b4c9be; margin: .6rem 0 2rem; }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.gplay { display: inline-flex; align-items: center; gap: .8rem; padding: .7rem 1.5rem .7rem 1.1rem; border-radius: 16px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); transition: transform .35s var(--ease), box-shadow .35s; text-align: left; }
.gplay:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -12px rgba(212,175,55,.5); }
.gplay svg { width: 30px; }
.gplay small { display: block; font-size: .72rem; opacity: .8; line-height: 1.2; }
.gplay b { font-family: var(--f-en); font-size: 1.1rem; line-height: 1.2; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 2; padding: 2rem 0 2rem; background: linear-gradient(transparent, rgba(0,0,0,.3)); }
[data-theme="light"] .foot { background: linear-gradient(transparent, rgba(15,82,64,.07)); }
.foot__border { height: 20px; opacity: .5; margin-bottom: 3rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 10 Q10 0 20 10 T40 10' fill='none' stroke='%23d4af37'/%3E%3Ccircle cx='20' cy='10' r='2' fill='%23d4af37'/%3E%3C/svg%3E") repeat-x center; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot__brand p { color: var(--tx-2); margin: 1rem 0 1.2rem; max-width: 380px; font-size: .95rem; }
.foot h4 { color: var(--hd); font-size: 1rem; margin-bottom: .8rem; }
.foot__grid > div > a:not(.brand) { display: block; color: var(--tx-2); padding: .25rem 0; font-size: .94rem; transition: color .2s; word-break: break-all; }
.foot__grid > div > a:not(.brand):hover { color: var(--ac); }
.foot__bottom { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.foot__ayah { font-family: var(--f-ar); color: var(--ac); font-size: 1.7rem; }
.foot__ayahtr { color: var(--tx-2); font-size: .9rem; font-style: italic; }
.foot__copy { color: var(--tx-2); font-size: .85rem; margin-top: 1rem; opacity: .8; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 12, 9, .72); backdrop-filter: blur(8px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal__card {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; border-radius: 28px; padding: 2rem;
  background: color-mix(in srgb, var(--bg) 94%, var(--e700)); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0,0,0,.8);
  animation: pop .45s var(--ease); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal__x { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.m-head { display: flex; gap: 1.2rem; align-items: center; padding-right: 3rem; }
.m-head__icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 34px -12px rgba(0,0,0,.7); flex-shrink: 0; }
.m-head h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--hd); line-height: 1.25; }
.m-head__bn { color: var(--ac); font-size: 1rem; }
.m-head__dev { color: var(--tx-2); font-size: .88rem; display: flex; align-items: center; gap: .35rem; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.m-stat { padding: .9rem .6rem; text-align: center; border-right: 1px solid var(--line); }
.m-stat:last-child { border-right: 0; }
.m-stat b { display: block; color: var(--hd); font-family: var(--f-en); font-size: 1.15rem; line-height: 1.2; }
.m-stat span { color: var(--tx-2); font-size: .78rem; }
.m-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.m-actions .btn--gold { flex: 1; min-width: 220px; }
.m-shots { display: flex; gap: .8rem; overflow-x: auto; margin: 1.6rem 0; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.m-shots img { height: 340px; width: auto; border-radius: 16px; scroll-snap-align: start; background: var(--card); box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); flex-shrink: 0; }
.m-body { display: grid; grid-template-columns: 1fr 190px; gap: 1.5rem; }
.m-desc h4, .m-similar h4 { color: var(--hd); margin-bottom: .5rem; font-size: 1.05rem; }
.m-desc p { color: var(--tx-2); font-size: .94rem; white-space: pre-line; }
.m-privacy { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; color: var(--ac); font-size: .9rem; }
.m-qr { text-align: center; padding: 1rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); align-self: start; }
.m-qr img { width: 150px; height: 150px; margin: 0 auto .6rem; border-radius: 10px; background: #fff; padding: 8px; }
.m-qr span { color: var(--tx-2); font-size: .8rem; line-height: 1.4; display: block; }
.m-similar { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.m-similar__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; }
.sim { text-align: center; padding: .8rem .5rem; border-radius: 16px; transition: .25s; cursor: pointer; }
.sim:hover { background: var(--card-2); }
.sim img { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto .5rem; }
.sim span { font-size: .8rem; color: var(--tx); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.is-locked { overflow: hidden; }

/* ---------- Floating ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--e950); background: linear-gradient(135deg, var(--g300), var(--g700)); box-shadow: 0 10px 30px -8px var(--glow); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: .4s var(--ease); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: .8rem 1.4rem; border-radius: 999px; background: var(--hd); color: var(--bg); font-weight: 500; box-shadow: var(--shadow); transition: .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; position: fixed; top: var(--nav); left: 4%; right: 4%; flex-direction: column; padding: .8rem; border-radius: var(--r); background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav__links.is-open { display: flex; animation: pop .35s var(--ease); }
  .nav__links a { padding: .8rem 1rem; }
  .nav__burger { display: grid; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__bismillah { text-align: center; }
  .hero__lead, .hero__search { margin-inline: auto; }
  .hero__tags, .hero__stats { justify-content: center; }
  .hero__visual { height: 560px; }
  .ring--3 { display: none; }
  .band__in { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav__cta { display: none; }
  .brand__txt { font-size: 1.15rem; }
  .hero__visual { height: 470px; transform: scale(.88); }
  .float-card--a { left: 0; } .float-card--b { right: 0; }
  .ring--2 { width: 380px; height: 380px; }
  .hero__stats { gap: 1.5rem; }
  .head--row { flex-direction: column; align-items: flex-start; }
  .tabs { width: 100%; justify-content: space-between; }
  .select { width: 100%; }
  .m-stats { grid-template-columns: repeat(2, 1fr); }
  .m-stat:nth-child(2) { border-right: 0; } .m-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .m-body { grid-template-columns: 1fr; }
  .m-qr { display: none; }
  .m-actions .btn--gold { min-width: 0; }
  .m-actions .btn--ghost { padding-inline: 1.1rem; }
  .modal__card { padding: 1.3rem; }
  .m-head__icon { width: 76px; height: 76px; }
  .m-shots img { height: 280px; }
  .rev { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
