:root {
  /* App color tokens (ported from web theme) */
  --primary: 158 48% 20%;
  --secondary: 45 49% 51%;
  --accent: 48 67% 93%;

  --mushaf-gold: 41 50% 45%;

  --bg: 160 35% 97%;
  --ink: 168 28% 10%;
  --muted: 166 10% 36%;

  --glass: 255 255 255;

  /* Atmospheric sky (overridden by :root[data-sky="..."]) */
  --sky-top: 196 60% 95%;
  --sky-mid: 165 40% 97%;
  --sky-bottom: 160 35% 97%;
  --sky-sun: 45 95% 62%;
  --sky-moon: 230 55% 80%;
  --horizon: 45 70% 90%;
  --stars-opacity: 0;

  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius-md: 18px;

  --shadow-sm: 0 2px 18px rgba(10, 26, 22, 0.06), 0 1px 4px rgba(10, 26, 22, 0.04);
  --shadow-md: 0 12px 44px rgba(10, 26, 22, 0.12), 0 6px 18px rgba(10, 26, 22, 0.06);
  --shadow-lg: 0 28px 80px rgba(10, 26, 22, 0.18), 0 12px 36px rgba(10, 26, 22, 0.1);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Dark-mode surface tokens (overridden for isha/fajr) */
  --surface-ink: 15, 34, 29;
  --surface-text: 1;
  --card-bg: rgba(255, 255, 255, 0.64);
  --card-bg-hover: rgba(255, 255, 255, 0.78);
  --card-border: rgba(255, 255, 255, 0.62);
  --text-primary: rgba(15, 34, 29, 0.92);
  --text-secondary: rgba(15, 34, 29, 0.72);
  --text-tertiary: rgba(15, 34, 29, 0.6);
}

/*
  Active hub accent for hero (set via JS on :root[data-hub="..."]).
  Keep hub tones aligned with the emerald + gold palette, with subtle sky variants.
*/
:root {
  --hub-accent: var(--secondary);
}

:root[data-hub="home"] {
  --hub-accent: var(--secondary);
}

:root[data-hub="quran"] {
  --hub-accent: var(--mushaf-gold);
}

:root[data-hub="ai"] {
  --hub-accent: 200 85% 48%;
}

:root[data-hub="routines"] {
  --hub-accent: 158 55% 32%;
}

:root[data-hub="protection"] {
  --hub-accent: 230 55% 46%;
}

/* Time-of-day sky presets (local device time via JS) */
:root[data-sky="fajr"] {
  --sky-top: 228 48% 14%;
  --sky-mid: 230 44% 22%;
  --sky-bottom: 210 42% 78%;
  --sky-sun: 18 80% 58%;
  --sky-moon: 232 70% 78%;
  --horizon: 25 75% 82%;
  --stars-opacity: 0.28;
}

:root[data-sky="morning"] {
  --sky-top: 200 72% 92%;
  --sky-mid: 188 58% 94%;
  --sky-bottom: 160 35% 97%;
  --sky-sun: 45 95% 62%;
  --sky-moon: 230 55% 80%;
  --horizon: 35 85% 92%;
  --stars-opacity: 0;
}

:root[data-sky="dhuhr"] {
  --sky-top: 198 90% 90%;
  --sky-mid: 185 62% 95%;
  --sky-bottom: 160 35% 97%;
  --sky-sun: 45 100% 60%;
  --sky-moon: 230 55% 80%;
  --horizon: 48 70% 92%;
  --stars-opacity: 0;
}

:root[data-sky="asr"] {
  --sky-top: 195 80% 88%;
  --sky-mid: 178 55% 94%;
  --sky-bottom: 160 35% 97%;
  --sky-sun: 25 95% 60%;
  --sky-moon: 230 55% 80%;
  --horizon: 35 85% 90%;
  --stars-opacity: 0;
}

:root[data-sky="maghrib"] {
  --sky-top: 280 45% 42%;
  --sky-mid: 18 75% 72%;
  --sky-bottom: 25 90% 82%;
  --sky-sun: 12 95% 58%;
  --sky-moon: 240 60% 76%;
  --horizon: 20 95% 80%;
  --stars-opacity: 0.08;
}

:root[data-sky="isha"] {
  --sky-top: 232 50% 8%;
  --sky-mid: 234 48% 13%;
  --sky-bottom: 228 42% 20%;
  --sky-sun: 230 60% 45%;
  --sky-moon: 215 65% 82%;
  --horizon: 225 38% 18%;
  --stars-opacity: 0.4;
}

/* Dark-mode overrides for night skies — premium glass */
:root[data-dark] {
  --bg: 225 50% 5%;
  --ink: 200 30% 96%;
  --muted: 200 16% 72%;
  --glass: 18 28 44;
  --surface-ink: 190, 215, 240;
  --card-bg: rgba(18, 28, 44, 0.55);
  --card-bg-hover: rgba(28, 40, 62, 0.72);
  --card-border: rgba(120, 165, 200, 0.16);
  --text-primary: rgba(230, 240, 252, 0.97);
  --text-secondary: rgba(180, 200, 230, 0.82);
  --text-tertiary: rgba(150, 175, 210, 0.55);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.3), 0 0 1px rgba(120, 180, 160, 0.08);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 2px rgba(120, 180, 160, 0.06);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 3px rgba(120, 180, 160, 0.05);
}

:root[data-dark] ::selection {
  background: hsla(var(--secondary) / 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: hsl(var(--ink));
  background: hsl(var(--bg));
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color 600ms var(--ease-out), background 600ms var(--ease-out);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: hsla(var(--primary) / 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--primary) / 0.4);
}

/* Page-load curtain */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: hsl(var(--bg));
  pointer-events: none;
  opacity: 1;
  transition: opacity 650ms var(--ease-out);
}

.page-curtain.is-gone {
  opacity: 0;
}

::selection {
  background: hsla(var(--secondary) / 0.28);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Ambient background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 68% 18%, hsla(var(--sky-sun) / 0.28), transparent 62%),
    radial-gradient(920px 720px at 70% 84%, hsla(var(--primary) / 0.1), transparent 64%),
    linear-gradient(180deg, hsl(var(--sky-top)) 0%, hsl(var(--sky-mid)) 55%, hsl(var(--sky-bottom)) 100%);
}

.bg__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 18% 14%, hsla(var(--secondary) / 0.14), transparent 60%),
    radial-gradient(760px 520px at 78% 22%, hsla(var(--sky-sun) / 0.16), transparent 64%);
  opacity: 1;
}

.bg__pattern {
  position: absolute;
  inset: 0;
  background-image: url("./assets/pattern-islamic.svg");
  background-size: 620px;
  background-repeat: repeat;
  opacity: 0.045;
  mask-image: radial-gradient(circle at 44% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}

.bg__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--stars-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'><defs><radialGradient id='g' cx='50%25' cy='50%25' r='50%25'><stop offset='0%25' stop-color='white' stop-opacity='.9'/><stop offset='100%25' stop-color='white' stop-opacity='0'/></radialGradient></defs><g fill='white' opacity='.9'><circle cx='34' cy='48' r='1.1'/><circle cx='88' cy='120' r='1.0'/><circle cx='152' cy='70' r='1.2'/><circle cx='210' cy='160' r='0.9'/><circle cx='260' cy='90' r='1.1'/><circle cx='318' cy='56' r='1.0'/><circle cx='402' cy='128' r='1.2'/><circle cx='470' cy='88' r='1.0'/><circle cx='60' cy='220' r='1.0'/><circle cx='128' cy='260' r='1.1'/><circle cx='200' cy='240' r='0.9'/><circle cx='310' cy='232' r='1.0'/><circle cx='388' cy='268' r='0.9'/><circle cx='458' cy='230' r='1.1'/><circle cx='94' cy='360' r='1.2'/><circle cx='180' cy='420' r='1.0'/><circle cx='264' cy='372' r='0.9'/><circle cx='332' cy='414' r='1.2'/><circle cx='430' cy='380' r='0.95'/></g><g opacity='.35'><circle cx='116' cy='92' r='9' fill='url(%23g)'/><circle cx='356' cy='184' r='10' fill='url(%23g)'/><circle cx='224' cy='320' r='8' fill='url(%23g)'/></g></svg>");
  background-size: 520px 520px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
}

/* ========================================
   CELESTIAL SKY SYSTEM — Premium Edition
   ======================================== */
.bg__celestial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* ── SUN ── */
.cel-sun {
  --sx: 18%;
  --sy: 10%;
  --s-op: 1;
  --s-scale: 1;
  --s-hue: 45;
  --s-sat: 95%;
  --s-lum: 65%;
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: 1px;
  height: 1px;
  opacity: var(--s-op);
  transform: translate(-50%, -50%) scale(var(--s-scale));
  transition: left 2.4s var(--ease-out), top 2.4s var(--ease-out),
    opacity 2.4s var(--ease-out), transform 2.4s var(--ease-out);
  z-index: 2;
}

.cel-sun__scatter {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle,
      hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.08) 0%,
      hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.03) 35%,
      transparent 60%);
  transition: background 2.4s var(--ease-out), width 2.4s var(--ease-out), height 2.4s var(--ease-out);
}

.cel-sun__corona {
  position: absolute;
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle,
      hsla(var(--s-hue), var(--s-sat), 80%, 0.3) 0%,
      hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.12) 40%,
      transparent 70%);
  transition: background 2.4s var(--ease-out);
}

.cel-sun__body {
  position: absolute;
  width: 56px;
  height: 56px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 42% 38%,
      hsla(var(--s-hue), var(--s-sat), 92%, 1) 0%,
      hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.95) 55%,
      hsla(var(--s-hue), 80%, 55%, 0.6) 100%);
  box-shadow:
    0 0 12px 4px hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.5),
    0 0 40px 12px hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.25),
    0 0 100px 30px hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.1);
  transition: background 2.4s var(--ease-out), box-shadow 2.4s var(--ease-out);
}

.cel-sun__core {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

.cel-sun__rays {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: conic-gradient(from 0deg,
      transparent 0%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.04) 3%, transparent 6%,
      transparent 10%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.05) 13%, transparent 16%,
      transparent 21%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.035) 24%, transparent 27%,
      transparent 33%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.05) 36%, transparent 39%,
      transparent 45%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.04) 48%, transparent 51%,
      transparent 55%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.045) 58%, transparent 61%,
      transparent 67%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.035) 70%, transparent 73%,
      transparent 78%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.05) 81%, transparent 84%,
      transparent 90%, hsla(var(--s-hue), var(--s-sat), var(--s-lum), 0.04) 93%, transparent 96%,
      transparent 100%);
  opacity: var(--ray-op, 0.8);
  animation: celSunSpin 90s linear infinite;
  animation-play-state: running;
  transition: opacity 2.4s var(--ease-out);
}

@keyframes celSunSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


/* ── MOON ── */
.cel-moon {
  --mx: 14%;
  --my: 12%;
  --m-op: 0;
  --m-scale: 1;
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: 1px;
  height: 1px;
  opacity: var(--m-op);
  transform: translate(-50%, -50%) scale(var(--m-scale));
  transition: left 2.4s var(--ease-out), top 2.4s var(--ease-out),
    opacity 2.4s var(--ease-out), transform 2.4s var(--ease-out);
  z-index: 2;
}

.cel-moon__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle,
      hsla(220, 60%, 90%, 0.1) 0%, hsla(220, 50%, 85%, 0.04) 40%, transparent 65%);
}

.cel-moon__body {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 38% 35%,
      hsla(210, 30%, 96%, 1) 0%, hsla(215, 35%, 90%, 0.95) 40%, hsla(220, 40%, 82%, 0.85) 100%);
  box-shadow:
    0 0 8px 3px hsla(220, 60%, 90%, 0.3),
    0 0 30px 8px hsla(220, 50%, 85%, 0.15),
    0 0 60px 20px hsla(220, 50%, 85%, 0.06);
}

.cel-moon__surface {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 50%, hsla(220, 20%, 78%, 0.15) 0%, transparent 18%),
    radial-gradient(circle at 55% 30%, hsla(220, 20%, 78%, 0.1) 0%, transparent 12%),
    radial-gradient(circle at 42% 65%, hsla(220, 20%, 78%, 0.12) 0%, transparent 15%),
    radial-gradient(circle at 65% 55%, hsla(220, 20%, 78%, 0.08) 0%, transparent 10%);
}

.cel-moon__shadow {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 72% 40%,
      hsla(228, 50%, 8%, 0.92) 0%, hsla(228, 50%, 8%, 0.7) 22%,
      hsla(228, 45%, 12%, 0.3) 38%, transparent 52%);
}

.cel-moon__earthshine {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 75% 42%,
      hsla(210, 50%, 70%, 0.08) 0%, hsla(210, 50%, 60%, 0.04) 35%, transparent 55%);
}

/* ── HORIZON ATMOSPHERIC BANDS ── */
.cel-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  pointer-events: none;
}

.cel-horizon__warm {
  --hw-op: 0;
  --hw-hue: 35;
  --hw-sat: 85%;
  --hw-lum: 68%;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 140% 100% at 35% 100%,
      hsla(var(--hw-hue), var(--hw-sat), var(--hw-lum), 0.22) 0%,
      hsla(var(--hw-hue), var(--hw-sat), var(--hw-lum), 0.06) 40%, transparent 65%);
  opacity: var(--hw-op);
  transition: opacity 2.4s var(--ease-out), background 2.4s var(--ease-out);
}

.cel-horizon__bleed {
  --hb-op: 0;
  --hb-hue: 25;
  --hb-sat: 90%;
  --hb-lum: 72%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top,
      hsla(var(--hb-hue), var(--hb-sat), var(--hb-lum), 0.12) 0%,
      hsla(var(--hb-hue), var(--hb-sat), var(--hb-lum), 0.04) 40%, transparent 100%);
  opacity: var(--hb-op);
  transition: opacity 2.4s var(--ease-out), background 2.4s var(--ease-out);
}

.cel-horizon__line {
  --hl-op: 0;
  --hl-hue: 40;
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%, hsla(var(--hl-hue), 90%, 80%, 0.4) 20%,
      hsla(var(--hl-hue), 95%, 85%, 0.6) 50%,
      hsla(var(--hl-hue), 90%, 80%, 0.4) 80%, transparent 100%);
  filter: blur(1px);
  opacity: var(--hl-op);
  transition: opacity 2.4s var(--ease-out);
}

/* ── PER-PHASE POSITIONING & COLOUR ── */

/* FAJR — Sun near eastern horizon, amber-rose, moon fading */
:root[data-sky="fajr"] .cel-sun {
  --sx: 22%;
  --sy: 68%;
  --s-op: 0.8;
  --s-hue: 18;
  --s-sat: 90%;
  --s-lum: 58%;
}

:root[data-sky="fajr"] .cel-sun__rays {
  --ray-op: 0.35;
}

:root[data-sky="fajr"] .cel-moon {
  --mx: 14%;
  --my: 14%;
  --m-op: 0.3;
}

:root[data-sky="fajr"] .cel-horizon__warm {
  --hw-op: 0.7;
  --hw-hue: 18;
  --hw-sat: 88%;
  --hw-lum: 62%;
}

:root[data-sky="fajr"] .cel-horizon__bleed {
  --hb-op: 0.6;
  --hb-hue: 25;
}

:root[data-sky="fajr"] .cel-horizon__line {
  --hl-op: 0.5;
  --hl-hue: 25;
}

/* MORNING — Sun has risen, clear golden, no moon */
:root[data-sky="morning"] .cel-sun {
  --sx: 20%;
  --sy: 24%;
  --s-op: 1;
  --s-hue: 42;
  --s-sat: 96%;
  --s-lum: 64%;
}

:root[data-sky="morning"] .cel-sun__rays {
  --ray-op: 0.7;
}

:root[data-sky="morning"] .cel-moon {
  --m-op: 0;
}

:root[data-sky="morning"] .cel-horizon__warm {
  --hw-op: 0.2;
  --hw-hue: 42;
  --hw-lum: 75%;
}

:root[data-sky="morning"] .cel-horizon__bleed {
  --hb-op: 0.15;
}

:root[data-sky="morning"] .cel-horizon__line {
  --hl-op: 0;
}

/* DHUHR — Sun at zenith, bright white-gold, maximum rays */
:root[data-sky="dhuhr"] .cel-sun {
  --sx: 18%;
  --sy: 6%;
  --s-op: 1;
  --s-scale: 1.1;
  --s-hue: 46;
  --s-sat: 100%;
  --s-lum: 68%;
}

:root[data-sky="dhuhr"] .cel-sun__rays {
  --ray-op: 1;
}

:root[data-sky="dhuhr"] .cel-moon {
  --m-op: 0;
}

:root[data-sky="dhuhr"] .cel-horizon__warm {
  --hw-op: 0.06;
}

:root[data-sky="dhuhr"] .cel-horizon__bleed {
  --hb-op: 0;
}

:root[data-sky="dhuhr"] .cel-horizon__line {
  --hl-op: 0;
}

/* ASR — Sun descending west, warming */
:root[data-sky="asr"] .cel-sun {
  --sx: 22%;
  --sy: 28%;
  --s-op: 1;
  --s-hue: 30;
  --s-sat: 94%;
  --s-lum: 60%;
}

:root[data-sky="asr"] .cel-sun__rays {
  --ray-op: 0.55;
}

:root[data-sky="asr"] .cel-moon {
  --m-op: 0;
}

:root[data-sky="asr"] .cel-horizon__warm {
  --hw-op: 0.25;
  --hw-hue: 30;
  --hw-lum: 65%;
}

:root[data-sky="asr"] .cel-horizon__bleed {
  --hb-op: 0.15;
}

:root[data-sky="asr"] .cel-horizon__line {
  --hl-op: 0;
}

/* MAGHRIB — Dramatic sunset: deep orange-red, strongest bands */
:root[data-sky="maghrib"] .cel-sun {
  --sx: 20%;
  --sy: 70%;
  --s-op: 0.9;
  --s-scale: 1.15;
  --s-hue: 10;
  --s-sat: 92%;
  --s-lum: 52%;
}

:root[data-sky="maghrib"] .cel-sun__rays {
  --ray-op: 0.25;
}

:root[data-sky="maghrib"] .cel-sun__scatter {
  width: 800px;
  height: 500px;
}

:root[data-sky="maghrib"] .cel-moon {
  --mx: 16%;
  --my: 22%;
  --m-op: 0.15;
}

:root[data-sky="maghrib"] .cel-horizon__warm {
  --hw-op: 1;
  --hw-hue: 12;
  --hw-sat: 92%;
  --hw-lum: 56%;
}

:root[data-sky="maghrib"] .cel-horizon__bleed {
  --hb-op: 0.8;
  --hb-hue: 18;
  --hb-sat: 92%;
  --hb-lum: 60%;
}

:root[data-sky="maghrib"] .cel-horizon__line {
  --hl-op: 0.8;
  --hl-hue: 18;
}

/* ISHA — Night: sun below horizon, crescent moon prominent */
:root[data-sky="isha"] .cel-sun {
  --sx: 15%;
  --sy: 110%;
  --s-op: 0;
}

:root[data-sky="isha"] .cel-sun__rays {
  --ray-op: 0;
  animation-play-state: paused;
}

:root[data-sky="isha"] .cel-moon {
  --mx: 14%;
  --my: 10%;
  --m-op: 1;
  --m-scale: 1.05;
}

:root[data-sky="isha"] .cel-horizon__warm {
  --hw-op: 0;
}

:root[data-sky="isha"] .cel-horizon__bleed {
  --hb-op: 0;
}

:root[data-sky="isha"] .cel-horizon__line {
  --hl-op: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cel-sun__scatter {
    width: 400px;
    height: 400px;
  }

  .cel-sun__corona {
    width: 150px;
    height: 150px;
  }

  .cel-sun__body {
    width: 40px;
    height: 40px;
  }

  .cel-sun__core {
    width: 18px;
    height: 18px;
  }

  .cel-sun__rays {
    width: 280px;
    height: 280px;
  }

  .cel-moon__glow {
    width: 220px;
    height: 220px;
  }

  .cel-moon__body,
  .cel-moon__surface,
  .cel-moon__shadow,
  .cel-moon__earthshine {
    width: 34px;
    height: 34px;
  }
}


.bg__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='.35'/></svg>");
  background-size: 240px 240px;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 20%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12) 70%),
    radial-gradient(1200px 700px at 50% 120%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.14) 70%);
  opacity: 0.35;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 14px;
  top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: rgb(var(--glass) / 0.85);
  border: 1px solid rgb(var(--glass) / 0.7);
  box-shadow: var(--shadow-sm);
  transform: translateY(-140%);
  transition: transform 220ms var(--ease-out);
  z-index: 60;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Top nav */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 14px;
  display: grid;
  gap: 10px;
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: rgb(var(--glass) / 0.62);
  border: 1px solid rgb(var(--glass) / 0.62);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.nav.is-scrolled {
  background: rgb(var(--glass) / 0.72);
  border-color: rgb(var(--glass) / 0.72);
  box-shadow: 0 22px 70px rgba(10, 26, 22, 0.18), 0 10px 26px rgba(10, 26, 22, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  padding: 3px;
  background:
    linear-gradient(rgb(var(--glass) / 0.6), rgb(var(--glass) / 0.28)) padding-box,
    linear-gradient(135deg, hsla(var(--primary) / 0.65), hsla(var(--secondary) / 0.55)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.brand__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__tag {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 12px;
  opacity: 0.72;
  line-height: 1.2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgb(var(--glass) / 0.42);
  border: 1px solid rgb(var(--glass) / 0.55);
  box-shadow: var(--shadow-sm);
}

.nav__link {
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.015em;
  font-size: 14px;
  color: hsl(var(--ink));
  opacity: 0.82;
  transition: opacity 180ms var(--ease-out), background 180ms var(--ease-out);
}

.nav__link:hover {
  opacity: 1;
  background: rgb(var(--glass) / 0.55);
}

.nav__link:focus-visible {
  outline: 3px solid hsla(var(--secondary) / 0.28);
  outline-offset: 2px;
}

.nav__link.is-active {
  opacity: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)) padding-box,
    linear-gradient(135deg, hsla(var(--secondary) / 0.45), hsla(var(--primary) / 0.35)) border-box;
  border: 1px solid transparent;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.btn {
  --tx: 0px;
  --ty: 0px;
  --mx: 45%;
  --my: 40%;
  --lift: 0px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.015em;
  border: 1px solid rgb(var(--glass) / 0.62);
  background: rgb(var(--glass) / 0.46);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  transform: translate3d(var(--tx), calc(var(--ty) - var(--lift)), 0);
  transition: box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(220px 120px at var(--mx) var(--my),
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
  pointer-events: none;
}

.btn:hover {
  --lift: 1px;
  box-shadow: var(--shadow-md);
}

.btn:active {
  --lift: -1px;
  box-shadow: var(--shadow-sm);
}

.btn:hover::before {
  opacity: 0.55;
}

.btn:focus-visible {
  outline: 3px solid hsla(var(--secondary) / 0.35);
  outline-offset: 2px;
}

.btn--ghost {
  background: rgb(var(--glass) / 0.32);
}

.btn--primary {
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgb(var(--glass) / 0.5);
  background:
    linear-gradient(rgb(var(--glass) / 0.25), rgb(var(--glass) / 0.12)) padding-box,
    linear-gradient(135deg,
      hsla(var(--primary) / 0.95) 0%,
      hsla(var(--secondary) / 0.9) 60%,
      hsla(var(--primary) / 0.95) 100%) border-box;
  box-shadow: 0 18px 50px rgba(10, 26, 22, 0.18), 0 6px 16px rgba(10, 26, 22, 0.1);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  will-change: transform;
  transform-style: preserve-3d;
}

.btn--lg {
  padding: 14px 18px;
  font-size: 15px;
}

.btn__arrow {
  opacity: 0.9;
}

/* Layout */
.site {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

section {
  scroll-margin-top: 110px;
}

.hero {
  padding: 64px 0 22px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 34px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: hsl(var(--muted));
  text-transform: uppercase;
  margin: 0 0 14px;
}

.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgb(var(--glass) / 0.3);
  border: 1px solid rgb(var(--glass) / 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.eyebrow__icon {
  opacity: 0.8;
}

.hero__title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(40px, 4.3vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
  position: relative;
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, hsla(var(--secondary) / 1), hsla(var(--primary) / 1));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 50px rgba(10, 26, 22, 0.12);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero__lead {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.62;
  color: hsl(var(--muted));
  max-width: 62ch;
}

/* Hero floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 999px;
  background: radial-gradient(circle, hsla(var(--secondary) / 0.5), transparent 70%);
  opacity: 0;
  animation: particleFloat var(--dur, 8s) var(--delay, 0s) infinite var(--ease-out);
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.5);
  }

  20% {
    opacity: 0.7;
  }

  80% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 20px), -80px, 0) scale(1.1);
  }
}

.hero__fine {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(15, 34, 29, 0.6);
  max-width: 64ch;
}

.hero__actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust__pill {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
  background: rgb(var(--glass) / 0.45);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), background 280ms var(--ease-out);
  cursor: default;
}

.trust__pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px hsla(var(--primary) / 0.15);
  background: rgb(var(--glass) / 0.62);
}

/* App Store badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.hero__badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero__badge-icon {
  font-size: 20px;
  line-height: 1;
}

.hero__badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero__badge-sub {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.hero__badge-main {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Hero visual */
.hero__visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.preview {
  position: absolute;
  width: min(340px, 85vw);
  height: 440px;
  border-radius: 34px;
  background:
    linear-gradient(rgb(var(--glass) / 0.55), rgb(var(--glass) / 0.28)) padding-box,
    linear-gradient(135deg, hsla(var(--hub-accent) / 0.55), hsla(var(--primary) / 0.35), rgba(255, 255, 255, 0.2)) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-lg);
  transform: translate3d(12px, 18px, 0) rotate(-1.5deg);
  overflow: hidden;
  z-index: 1;
}

.preview::before {
  /* Caustics-like sweep for premium "glass" depth */
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 210deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.35) 22%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.18) 58%,
      rgba(255, 255, 255, 0) 74%,
      rgba(255, 255, 255, 0.3) 88%,
      rgba(255, 255, 255, 0) 100%);
  opacity: 0.18;
  transform: rotate(10deg);
  animation: caustics 14s linear infinite;
  pointer-events: none;
}

.preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 520px at 20% 10%, rgba(255, 255, 255, 0.55), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

@keyframes caustics {
  to {
    transform: rotate(370deg);
  }
}

.preview__chrome {
  display: flex;
  gap: 8px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
}

.preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 34, 29, 0.18);
}

.preview__body {
  padding: 18px 18px 22px;
}

.preview__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, hsla(var(--hub-accent) / 0.9), hsla(var(--primary) / 0.75));
  box-shadow: 0 18px 40px rgba(10, 26, 22, 0.14);
  transition: transform 260ms var(--ease-out), filter 260ms var(--ease-out), opacity 260ms var(--ease-out);
}

.preview__title {
  margin-top: 14px;
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: rgba(15, 34, 29, 0.92);
  transition: transform 260ms var(--ease-out), filter 260ms var(--ease-out), opacity 260ms var(--ease-out);
}

.preview.is-swap .preview__badge,
.preview.is-swap .preview__title {
  transform: translate3d(0, 6px, 0);
  filter: blur(4px);
  opacity: 0.55;
}

.preview__rows {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.preview__row {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 34, 29, 0.18), rgba(15, 34, 29, 0.06));
}

.preview__row--short {
  width: 68%;
}

.preview__chips {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.preview__chip {
  height: 38px;
  flex: 1;
  border-radius: 16px;
  background:
    radial-gradient(120px 60px at 30% 30%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, hsla(var(--hub-accent) / 0.22), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.orb-wrap {
  position: relative;
  z-index: 2;
  transform: translate3d(0, 0, 0);
}

.orb {
  position: relative;
  width: min(380px, 86vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.14) 60%),
    radial-gradient(600px 420px at 70% 80%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 62%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 44px 90px rgba(10, 26, 22, 0.18), 0 12px 34px rgba(10, 26, 22, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  animation: orbFloat 10s var(--ease-out) infinite;
  transform: translate3d(0, 0, 0);
}

.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(700px 460px at 30% 24%, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 55%);
  opacity: 0.42;
  pointer-events: none;
}

.orb::before {
  content: "";
  position: absolute;
  inset: -26px;
  border-radius: inherit;
  background:
    radial-gradient(420px 320px at 35% 35%, hsla(var(--hub-accent) / 0.32), transparent 66%),
    radial-gradient(520px 360px at 68% 70%, hsla(var(--primary) / 0.22), transparent 66%);
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.orb__ring {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: conic-gradient(from 180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.06));
  mask: radial-gradient(circle, transparent 62%, #000 63%);
  opacity: 0.65;
  animation: ring 16s linear infinite;
}

@keyframes ring {
  to {
    transform: rotate(360deg);
  }
}

.orb__core {
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  background:
    radial-gradient(420px 320px at 30% 25%, hsla(var(--hub-accent) / 0.55), transparent 62%),
    radial-gradient(420px 320px at 70% 80%, hsla(var(--primary) / 0.48), transparent 64%);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  opacity: 0.95;
}

.orb__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.22);
}

.satellites {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.satellites__chip {
  position: absolute;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-weight: 750;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: rgba(15, 34, 29, 0.88);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-sm);
  opacity: 0.86;
  transform: translate3d(0, 0, 0);
  animation: chipFloat 6.8s var(--ease-out) infinite;
}

.satellites__chip[data-hub="home"] {
  top: 8%;
  left: 8%;
  animation-delay: -1s;
}

.satellites__chip[data-hub="quran"] {
  top: 14%;
  right: 4%;
  animation-delay: -2.4s;
}

.satellites__chip[data-hub="ai"] {
  top: 62%;
  right: 0%;
  animation-delay: -4.2s;
}

.satellites__chip[data-hub="routines"] {
  bottom: 12%;
  left: 10%;
  animation-delay: -3.1s;
}

.satellites__chip[data-hub="protection"] {
  top: 48%;
  left: -2%;
  animation-delay: -5.4s;
}

@keyframes chipFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

:root[data-hub="home"] .satellites__chip[data-hub="home"],
:root[data-hub="quran"] .satellites__chip[data-hub="quran"],
:root[data-hub="ai"] .satellites__chip[data-hub="ai"],
:root[data-hub="routines"] .satellites__chip[data-hub="routines"],
:root[data-hub="protection"] .satellites__chip[data-hub="protection"] {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)) padding-box,
    linear-gradient(135deg, hsla(var(--hub-accent) / 0.95), hsla(var(--primary) / 0.85)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 50px rgba(10, 26, 22, 0.18), 0 6px 18px rgba(10, 26, 22, 0.1);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section__head {
  max-width: 760px;
}

.section__title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.section__lead {
  margin: 14px 0 0;
  color: hsl(var(--muted));
  font-size: 16.5px;
  line-height: 1.65;
}

.hubs {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  perspective: 1100px;
  align-items: stretch;
}

.hub-card {
  --hub-a: var(--primary);
  --hub-b: var(--secondary);
  --mx: 45%;
  --my: 40%;
  --rx: 0deg;
  --ry: 0deg;
  --raise: 0px;

  position: relative;
  border-radius: 26px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(rgb(var(--glass) / 0.64), rgb(var(--glass) / 0.38)) padding-box,
    linear-gradient(135deg,
      hsla(var(--hub-a) / 0.55),
      hsla(var(--hub-b) / 0.45),
      rgba(255, 255, 255, 0.25)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  transform-style: preserve-3d;
  transform: translate3d(0, calc(0px - var(--raise)), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: box-shadow 240ms var(--ease-out), filter 240ms var(--ease-out);
  outline: none;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

/* Desktop: keep all 5 hubs in a single row. */
@media (min-width: 1100px) {
  .hubs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
}

.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 42%),
    radial-gradient(700px 420px at 10% 20%, hsla(var(--hub-a) / 0.12), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

.hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 420px at var(--mx) var(--my),
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.12) 44%,
      transparent 62%);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
  pointer-events: none;
}

.hub-card:hover {
  --raise: 6px;
  box-shadow: var(--shadow-lg);
  filter: saturate(1.02);
}

.hub-card:hover::after {
  opacity: 0.9;
}

/* Animated border glow on hover */
.hub-card .hub-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle, 0deg),
      hsla(var(--hub-a) / 0) 0%,
      hsla(var(--hub-a) / 0.6) 12%,
      hsla(var(--hub-b) / 0.4) 25%,
      hsla(var(--hub-a) / 0) 40%);
  mask: radial-gradient(circle, transparent 61%, #000 62%);
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
  z-index: -1;
  animation: glowSpin 4s linear infinite;
}

.hub-card:hover .hub-card__glow {
  opacity: 0.65;
}

@keyframes glowSpin {
  to {
    --glow-angle: 360deg;
  }
}

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

.hub-card:focus-visible {
  --raise: 4px;
  outline: 3px solid hsla(var(--secondary) / 0.28);
  outline-offset: 3px;
}

.hub-card[data-hub="home"] {
  --hub-a: var(--primary);
  --hub-b: var(--secondary);
}

.hub-card[data-hub="quran"] {
  --hub-a: var(--mushaf-gold);
  --hub-b: var(--secondary);
}

.hub-card[data-hub="ai"] {
  --hub-a: 200 85% 48%;
  --hub-b: var(--primary);
}

.hub-card[data-hub="routines"] {
  --hub-a: 158 55% 32%;
  --hub-b: var(--secondary);
}

.hub-card[data-hub="protection"] {
  --hub-a: 230 55% 46%;
  --hub-b: var(--primary);
}

.hub-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transform: translateZ(14px);
}

.hub-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)) padding-box,
    linear-gradient(135deg, hsla(var(--hub-a) / 0.95), hsla(var(--hub-b) / 0.82)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 22px 50px rgba(10, 26, 22, 0.16);
}

.hub-card__icon svg {
  width: 22px;
  height: 22px;
}

.hub-card__meta {
  flex: 1;
  min-width: 0;
}

.hub-card__title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hub-card__desc {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 14.5px;
}

.hub-card__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  transform: translateZ(10px);
}

.hub-card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.hub-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, hsla(var(--hub-a) / 0.95), hsla(var(--hub-b) / 0.75));
  box-shadow: 0 10px 26px rgba(10, 26, 22, 0.1);
}

/* Split section */
.section--split {
  padding-top: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow-sm);
  color: rgba(15, 34, 29, 0.78);
}

.feature-list strong {
  color: rgba(15, 34, 29, 0.92);
}

.split__cards {
  display: grid;
  gap: 14px;
}

.mini-card {
  position: relative;
  border-radius: 22px;
  padding: 16px 16px 14px;
  padding-left: 52px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.mini-card__num {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, hsla(var(--primary) / 0.85), hsla(var(--secondary) / 0.8));
  box-shadow: 0 8px 22px rgba(10, 26, 22, 0.15);
}

.mini-card[data-tone="a"] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32)) padding-box,
    linear-gradient(135deg, hsla(var(--secondary) / 0.55), hsla(var(--primary) / 0.35)) border-box;
}

.mini-card[data-tone="b"] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32)) padding-box,
    linear-gradient(135deg, hsla(200 85% 48% / 0.5), hsla(var(--primary) / 0.35)) border-box;
}

.mini-card[data-tone="c"] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.32)) padding-box,
    linear-gradient(135deg, hsla(var(--primary) / 0.55), hsla(var(--secondary) / 0.35)) border-box;
}

.mini-card__kicker {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 750;
  color: rgba(15, 34, 29, 0.6);
}

.mini-card__title {
  margin-top: 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.mini-card__text {
  margin-top: 8px;
  color: rgba(15, 34, 29, 0.72);
  line-height: 1.55;
  font-size: 14px;
}

/* FAQ */
.faq {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq__item {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
  overflow: hidden;
  transition: box-shadow 280ms var(--ease-out);
}

.faq__item:hover {
  box-shadow: var(--shadow-md);
}

.faq__q {
  cursor: pointer;
  padding: 16px 42px 16px 16px;
  list-style: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  color: var(--text-primary);
  transition: color 240ms var(--ease-out);
}

.faq__q::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 340ms var(--ease-out);
  opacity: 0.5;
}

.faq__item[open] .faq__q::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__item[open] .faq__q {
  border-bottom: 1px solid var(--card-border);
}

.faq__a {
  padding: 14px 16px 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  animation: faqSlideIn 340ms var(--ease-out);
}

@keyframes faqSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer divider */
.footer-divider {
  border: none;
  height: 1px;
  margin: 10px 0 0;
  background: linear-gradient(90deg,
      transparent,
      hsla(var(--secondary) / 0.35) 30%,
      hsla(var(--primary) / 0.4) 50%,
      hsla(var(--secondary) / 0.35) 70%,
      transparent);
  position: relative;
}

.footer-divider::after {
  content: "";
  position: absolute;
  inset: -4px 20%;
  background: linear-gradient(90deg,
      transparent,
      hsla(var(--secondary) / 0.12) 30%,
      hsla(var(--primary) / 0.15) 50%,
      hsla(var(--secondary) / 0.12) 70%,
      transparent);
  filter: blur(8px);
}

/* Footer */
.footer {
  padding: 36px 0 18px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.footer__name {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.footer__links {
  display: flex;
  gap: 14px;
}

.footer__link {
  text-decoration: none;
  font-weight: 750;
  color: rgba(15, 34, 29, 0.74);
}

.footer__link:hover {
  color: rgba(15, 34, 29, 0.92);
}

.footer__meta {
  color: var(--text-tertiary);
  font-weight: 650;
  font-size: 13px;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgb(var(--glass) / 0.35);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
}

.footer__social-link:hover {
  transform: translateY(-2px);
  background: rgb(var(--glass) / 0.55);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════════
   NEW COMPONENTS — Landing Page Overhaul
   ══════════════════════════════════════════════════ */

/* ── Hero phone mockup ── */
.hero__phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__phone-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 32px 80px rgba(10, 26, 22, 0.22));
  transition: transform 600ms var(--ease-out);
}

.hero__phone:hover .hero__phone-img {
  transform: translateY(-6px) scale(1.01);
}

/* ── Problem section ── */
.problem {
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.problem__title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: clamp(26px, 3.6vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-primary);
}

.problem__text {
  margin-top: 24px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
}

.problem__text strong {
  color: var(--text-primary);
  font-weight: 800;
}

.problem__text em {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-style: italic;
}

/* ── Feature showcase (alternating left/right) ── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid rgba(15, 34, 29, 0.06);
}

.showcase:last-child {
  border-bottom: none;
}

.showcase--reverse {
  direction: rtl;
}

.showcase--reverse>* {
  direction: ltr;
}

.showcase__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsla(var(--primary) / 1);
  background: hsla(var(--primary) / 0.08);
  border: 1px solid hsla(var(--primary) / 0.15);
  margin-bottom: 16px;
}

.showcase__title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.showcase__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.showcase__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.showcase__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: hsla(var(--primary) / 0.65);
  font-size: 12px;
  top: 3px;
}

.showcase__phone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__phone img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 28px 60px rgba(10, 26, 22, 0.2)) drop-shadow(0 8px 20px rgba(10, 26, 22, 0.1));
  transition: transform 600ms var(--ease-out), filter 600ms var(--ease-out);
}

.showcase:hover .showcase__phone img {
  transform: translateY(-6px) scale(1.01);
  filter: drop-shadow(0 36px 70px rgba(10, 26, 22, 0.24)) drop-shadow(0 12px 28px rgba(10, 26, 22, 0.12));
}

/* ── Waitlist email form ── */
.waitlist-form {
  margin-top: 28px;
}

.waitlist-form--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-form__row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.waitlist-form__input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: 15px;
  font-family: inherit;
  font-weight: 550;
  color: var(--text-primary);
  outline: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.waitlist-form__input::placeholder {
  color: var(--text-tertiary);
}

.waitlist-form__input:focus {
  border-color: hsla(var(--primary) / 0.45);
  box-shadow: 0 0 0 3px hsla(var(--primary) / 0.1);
}

.waitlist-form__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.waitlist-form__note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 550;
}

.waitlist-form__success {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: hsla(var(--primary) / 1);
  animation: fadeInUp 400ms var(--ease-out);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Pillars (3-col grid) ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  perspective: 1200px;
}

.pillar {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.35)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.pillar:hover {
  --lift: -6px;
  box-shadow: var(--shadow-lg);
}

.pillar__icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.pillar__title {
  margin: 0;
  font-weight: 850;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pillar__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Testimonial cards ── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  perspective: 1200px;
}

.testimonial {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.35)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.testimonial:hover {
  --lift: -6px;
  box-shadow: var(--shadow-lg);
}

.testimonial__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
}

.testimonial__author {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial__name {
  font-weight: 750;
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── CTA block (full-width waitlist) ── */
.cta-section {
  padding: 80px 0;
}

.cta-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-block__title {
  margin: 0;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}

.cta-block__text {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cta-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── Footer legal links ── */
.footer__legal {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer__legal a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer__legal a:hover {
  color: hsl(var(--secondary));
}

/* ── Coming Soon section ── */
.coming-soon-section .showcase {
  border-bottom: none;
  border: 1px dashed hsla(var(--primary) / 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  background: hsla(var(--primary) / 0.02);
}

.coming-soon-section .showcase__phone img {
  opacity: 0.85;
}

/* Dark mode adjustments for new components */

/* Hero title gradient — emerald glow at night */
:root[data-dark] .hero__title em {
  background: linear-gradient(135deg, hsla(142, 60%, 52%, 1), hsla(142, 50%, 68%, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root[data-dark] .showcase__badge {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

:root[data-dark] .showcase {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

:root[data-dark] .showcase__list li::before {
  color: hsla(142, 55%, 52%, 0.8);
}

:root[data-dark] .pillar,
:root[data-dark] .testimonial {
  background:
    linear-gradient(180deg, rgba(20, 32, 52, 0.6), rgba(16, 26, 44, 0.4)) padding-box,
    linear-gradient(135deg, rgba(120, 170, 200, 0.18), rgba(80, 130, 160, 0.08)) border-box;
  border: 1px solid transparent;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

:root[data-dark] .waitlist-form__input {
  background: rgba(12, 20, 36, 0.5);
  border: 1px solid rgba(120, 170, 200, 0.14);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-dark] .waitlist-form__input:focus {
  border-color: hsla(142, 55%, 44%, 0.5);
  box-shadow:
    0 0 0 3px hsla(142, 55%, 44%, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-dark] .cta-block__badge {
  background: var(--card-bg);
  border-color: var(--card-border);
}




:root[data-dark] .problem__text strong {
  color: var(--text-primary);
}

/* Dark mode button primary — premium emerald glass */
:root[data-dark] .btn--primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)) padding-box,
    linear-gradient(135deg, hsla(142, 60%, 38%, 0.9), hsla(142, 50%, 30%, 0.85)) border-box;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 8px 28px rgba(22, 122, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    var(--shadow-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

:root[data-dark] .btn--primary:hover {
  box-shadow:
    0 14px 40px rgba(22, 122, 58, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    var(--shadow-md);
}

/* Dark mode phone mockup — emerald glass glow */
:root[data-dark] .showcase__phone img {
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.38)) drop-shadow(0 4px 16px rgba(22, 122, 58, 0.12));
  border-radius: 24px;
}

:root[data-dark] .showcase:hover .showcase__phone img {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.42)) drop-shadow(0 6px 22px rgba(22, 122, 58, 0.18));
}

:root[data-dark] .hero__phone-img {
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 40px rgba(22, 122, 58, 0.1));
  border-radius: 24px;
}

/* Dark mode problem section title — emerald gradient */
:root[data-dark] .problem__title {
  background: linear-gradient(135deg, hsla(142, 55%, 52%, 1), rgba(255, 255, 255, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Dark mode section separator refinement */
:root[data-dark] .showcase {
  border-bottom-color: rgba(120, 160, 140, 0.08);
}

/* Dark mode coming soon — glass container with emerald tint */
:root[data-dark] .coming-soon-section .showcase {
  border-color: rgba(22, 122, 58, 0.18);
  background: rgba(22, 122, 58, 0.04);
  box-shadow: inset 0 1px 0 rgba(22, 122, 58, 0.06);
}

:root[data-dark] .coming-soon-section .showcase__badge {
  color: hsla(142, 60%, 52%, 1);
  background: hsla(142, 50%, 40%, 0.1);
  border-color: hsla(142, 50%, 40%, 0.2);
}

/* Dark mode pillar accent */
:root[data-dark] .pillar {
  border-top: 1px solid rgba(22, 122, 58, 0.12);
}

/* Dark mode footer stronger separator */
:root[data-dark] .footer {
  border-top: 1px solid rgba(120, 160, 140, 0.1);
}

/* Dark mode nav — premium frosted glass */
:root[data-dark] .nav {
  background: rgba(14, 22, 38, 0.6);
  border: 1px solid rgba(120, 170, 200, 0.12);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-dark] .nav__links {
  background: rgba(12, 20, 36, 0.5);
  border-color: rgba(120, 170, 200, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Reveal animation — GPU-friendly: opacity + transform only (no filter:blur) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 420px;
  }

  .hero__phone-img {
    max-width: 320px;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }

  .showcase--reverse {
    direction: ltr;
  }

  .showcase__phone {
    order: -1;
  }

  .showcase__phone img {
    max-width: 300px;
  }

  .pillars {
    grid-template-columns: 1fr 1fr;
  }

  .pillars .pillar:last-child {
    grid-column: 1 / -1;
  }

  .testimonials {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials .testimonial:last-child {
    grid-column: 1 / -1;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .nav__links {
    display: none;
  }

  .nav__tools {
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
  }

  .nav__cta .btn--ghost {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 840px) {
  .brand__tag {
    display: none;
  }

}

@media (max-width: 520px) {

  /* ── Layout spacing ── */
  .top {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    padding: 8px 12px;
  }

  /* ── Hero — single column, full-width text ── */
  .hero {
    padding: 28px 0 16px;
  }

  .hero__visual {
    margin-top: 24px;
  }

  .hero__phone-img {
    max-width: 260px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__title {
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.12;
  }

  .hero__lead {
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }

  /* ── Waitlist form — stack vertically ── */
  .waitlist-form__row {
    flex-direction: column;
  }

  .waitlist-form__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .btn--lg {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* ── Trust pills — 2×2 grid ── */
  .trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .trust__pill {
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
  }

  /* ── Problem ── */
  .problem__title {
    font-size: clamp(22px, 6.5vw, 32px);
  }

  .problem__text {
    font-size: 15px;
  }

  /* ── Section titles ── */
  .section__title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .section__sub,
  .section__lead {
    font-size: 14px;
    max-width: none;
  }

  /* ── Showcase — phone above text ── */
  .showcase {
    gap: 24px;
    padding: 36px 0;
  }

  .showcase__title {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .showcase__desc {
    font-size: 14px;
  }

  .showcase__list li {
    font-size: 14px;
  }

  .showcase__phone img {
    max-width: 240px;
  }

  /* ── Pillars — single column ── */
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillars .pillar:last-child {
    grid-column: auto;
  }

  /* ── Testimonials — single column ── */
  .testimonials {
    grid-template-columns: 1fr;
  }

  .testimonials .testimonial:last-child {
    grid-column: auto;
  }

  /* ── CTA ── */
  .cta-section {
    padding: 48px 0;
  }

  .cta-block__title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .cta-block__text {
    font-size: 15px;
  }

  /* ── FAQ — wider, more readable ── */
  .faq {
    max-width: none;
  }

  .faq__q {
    padding: 14px 40px 14px 14px;
    font-size: 15px;
    line-height: 1.35;
  }

  .faq__a {
    padding: 12px 14px 14px;
    font-size: 14px;
  }

  /* ── Footer — centered & touch-friendly ── */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 24px 16px;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__links {
    gap: 18px;
    justify-content: center;
  }

  .footer__link {
    font-size: 14px;
    padding: 6px 4px;
  }

  .footer__meta {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer__social {
    gap: 14px;
  }

  .footer__social-link {
    width: 40px;
    height: 40px;
  }

  .footer__legal {
    justify-content: center;
  }

  /* ── Nav CTA ── */
  .nav__cta .btn--ghost {
    display: none;
  }

  .nav__cta .btn--primary {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Mobile nav drawer */
.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgb(var(--glass) / 0.4);
  cursor: pointer;
  padding: 0;
  color: var(--text-primary);
  transition: background 220ms var(--ease-out);
}

.nav__burger:hover {
  background: rgb(var(--glass) / 0.6);
}

.nav__burger svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .nav__burger {
    display: flex;
  }
}

.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 340ms var(--ease-out), visibility 0s 340ms;
}

.nav__drawer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 340ms var(--ease-out), visibility 0s;
}

.nav__drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav__drawer-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  min-width: 220px;
  transform: translateY(-12px);
  transition: transform 340ms var(--ease-out);
}

.nav__drawer.is-open .nav__drawer-panel {
  transform: translateY(0);
}

.nav__drawer-link {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  transition: background 180ms var(--ease-out);
}

.nav__drawer-link:hover {
  background: rgb(var(--glass) / 0.35);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg__wash,
  .preview::before,
  .orb,
  .orb__ring,
  .satellites__chip,
  .particle,
  .celestial__sun-rays {
    animation: none !important;
  }

  .page-curtain {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .btn,
  .hub-card {
    transition: none;
  }

  .faq__a {
    animation: none;
  }
}

/* Dark mode card adjustments */
:root[data-dark] .hub-card {
  background:
    linear-gradient(rgb(var(--glass) / 0.55), rgb(var(--glass) / 0.3)) padding-box,
    linear-gradient(135deg,
      hsla(var(--hub-a) / 0.45),
      hsla(var(--hub-b) / 0.35),
      rgba(120, 140, 180, 0.15)) border-box;
}

:root[data-dark] .mini-card {
  background:
    linear-gradient(rgb(var(--glass) / 0.5), rgb(var(--glass) / 0.25)) padding-box,
    linear-gradient(135deg, rgba(120, 140, 180, 0.3), rgba(80, 100, 140, 0.15)) border-box;
}

:root[data-dark] .faq__item {
  background: var(--card-bg);
  border-color: var(--card-border);
}

:root[data-dark] .footer__inner {
  background: var(--card-bg);
  border-color: var(--card-border);
}

:root[data-dark] .preview {
  background:
    linear-gradient(rgb(var(--glass) / 0.45), rgb(var(--glass) / 0.2)) padding-box,
    linear-gradient(135deg, hsla(var(--hub-accent) / 0.4), hsla(var(--primary) / 0.25), rgba(120, 140, 180, 0.15)) border-box;
}

:root[data-dark] .trust__pill {
  background: rgb(var(--glass) / 0.35);
  border-color: var(--card-border);
}

:root[data-dark] .nav {
  background: rgb(var(--glass) / 0.5);
  border-color: var(--card-border);
}

:root[data-dark] .feature-list li {
  background: var(--card-bg);
  border-color: var(--card-border);
}

/* ══════════════════════════════════════════════════
   PREMIUM ENHANCEMENT — Final Polish Layer
   ══════════════════════════════════════════════════ */

/* ── Cursor-following ambient glow ── */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  background: radial-gradient(circle,
      hsla(var(--secondary) / 0.08) 0%,
      hsla(var(--primary) / 0.04) 30%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 400ms var(--ease-out);
  opacity: 0;
  will-change: left, top;
}

.cursor-glow.is-active {
  opacity: 1;
}

:root[data-dark] .cursor-glow {
  background: radial-gradient(circle,
      hsla(142, 55%, 44%, 0.06) 0%,
      hsla(200, 55%, 44%, 0.03) 30%,
      transparent 60%);
}

/* ── Button shine sweep (hover) ── */
.btn--primary {
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.3) 45%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.3) 55%,
      transparent 80%);
  transform: skewX(-25deg);
  transition: left 600ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.btn--primary:hover::after {
  left: 125%;
}

/* ── Waitlist counter ── */
.waitlist-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 650;
  color: var(--text-secondary);
  background: rgb(var(--glass) / 0.2);
  border: 1px solid rgb(var(--glass) / 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.waitlist-counter__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: hsla(142, 65%, 48%, 1);
  box-shadow: 0 0 8px hsla(142, 65%, 48%, 0.6);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.waitlist-counter__num {
  font-weight: 850;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ── Section divider with ornament ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      hsla(var(--secondary) / 0.2) 30%,
      hsla(var(--primary) / 0.25) 50%,
      hsla(var(--secondary) / 0.2) 70%,
      transparent);
}

.section-divider__ornament {
  font-size: 14px;
  color: hsla(var(--secondary) / 0.5);
  line-height: 1;
  animation: ornamentSpin 12s linear infinite;
}

@keyframes ornamentSpin {
  to {
    transform: rotate(360deg);
  }
}

:root[data-dark] .section-divider__line {
  background: linear-gradient(90deg,
      transparent,
      hsla(142, 55%, 44%, 0.12) 30%,
      hsla(200, 55%, 50%, 0.1) 50%,
      hsla(142, 55%, 44%, 0.12) 70%,
      transparent);
}

:root[data-dark] .section-divider__ornament {
  color: hsla(142, 55%, 52%, 0.4);
}

/* ── Testimonial decorative quote marks ── */
.testimonial {
  position: relative;
  overflow: hidden;
}

.testimonial__quote {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: hsla(var(--primary) / 0.07);
  pointer-events: none;
  user-select: none;
}

:root[data-dark] .testimonial__quote {
  color: rgba(255, 255, 255, 0.04);
}

/* ── Testimonial avatar initials ── */
.testimonial__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 13px;
  color: white;
  background: linear-gradient(135deg,
      hsla(var(--avatar-hue, 158), 50%, 40%, 0.9),
      hsla(var(--avatar-hue, 158), 45%, 55%, 0.8));
  box-shadow: 0 4px 14px hsla(var(--avatar-hue, 158), 50%, 40%, 0.3);
  flex-shrink: 0;
}

/* ── Bismillah footer decoration ── */
.bismillah-decoration {
  text-align: center;
  padding: 36px 18px 0;
  max-width: 1160px;
  margin: 0 auto;
}

.bismillah-decoration__text {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--text-tertiary);
  opacity: 0.4;
  letter-spacing: 0.04em;
  display: inline-block;
}

:root[data-dark] .bismillah-decoration__text {
  opacity: 0.25;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Coming Soon badge pulse ── */
.coming-soon-section .showcase__badge {
  position: relative;
}

.coming-soon-section .showcase__badge::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg,
      hsla(45, 49%, 51%, 0.4),
      hsla(45, 49%, 51%, 0.1));
  animation: comingSoonPulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes comingSoonPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

/* ── Dark mode hero title shimmer ── */
:root[data-dark] .hero__title em {
  background: linear-gradient(135deg, hsla(142, 60%, 52%, 1), hsla(142, 50%, 68%, 1));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 4s ease-in-out infinite;
}

/* ── Dark mode footer link contrast fix ── */
:root[data-dark] .footer__link {
  color: rgba(180, 200, 230, 0.72);
}

:root[data-dark] .footer__link:hover {
  color: rgba(220, 235, 250, 0.95);
}

:root[data-dark] .footer__legal a {
  color: rgba(160, 185, 220, 0.55);
}

:root[data-dark] .footer__legal a:hover {
  color: hsla(142, 55%, 55%, 1);
}

/* ── Showcase phone subtle float ── */
.showcase__phone img {
  animation: showcaseFloat 6s ease-in-out infinite;
}

@keyframes showcaseFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.showcase:hover .showcase__phone img {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.01);
}

/* ── Hero phone subtle float ── */
.hero__phone-img {
  animation: heroPhoneFloat 7s ease-in-out infinite;
}

@keyframes heroPhoneFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

.hero__phone:hover .hero__phone-img {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.01);
}

/* ── Enhanced trust pills micro-interaction ── */
.trust__pill {
  position: relative;
  overflow: hidden;
}

.trust__pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 500ms var(--ease-out);
  pointer-events: none;
}

.trust__pill:hover::before {
  left: 100%;
}

/* ── Enhanced eyebrow dark mode ── */
:root[data-dark] .eyebrow--pill {
  background: rgba(22, 122, 58, 0.1);
  border-color: rgba(22, 122, 58, 0.2);
  color: rgba(180, 220, 200, 0.85);
}

/* ── Waitlist counter dark mode ── */
:root[data-dark] .waitlist-counter {
  background: rgba(22, 122, 58, 0.08);
  border-color: rgba(22, 122, 58, 0.12);
}

/* ── Reduced motion — disable all new animations ── */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }

  .hero__title em,
  :root[data-dark] .hero__title em {
    animation: none;
    background-size: 100% 100%;
  }

  .btn--primary::after {
    display: none;
  }

  .waitlist-counter__dot {
    animation: none;
  }

  .section-divider__ornament {
    animation: none;
  }

  .coming-soon-section .showcase__badge::before {
    animation: none;
  }

  .showcase__phone img,
  .hero__phone-img {
    animation: none;
  }

  .trust__pill::before {
    display: none;
  }
}

/* ── Snapshot placeholder ── */
.snapshot-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 20px;
  border: 2px dashed var(--card-border);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero__phone .snapshot-placeholder {
  max-width: 420px;
  border-radius: 18px;
}

@media (max-width: 980px) {
  .snapshot-placeholder {
    max-width: 300px;
  }

  .hero__phone .snapshot-placeholder {
    max-width: 320px;
  }
}

@media (max-width: 520px) {
  .snapshot-placeholder {
    max-width: 240px;
  }

  .hero__phone .snapshot-placeholder {
    max-width: 260px;
  }
}