/* ═══════════════════════════════════════════════════════════════
   AL-RASHEED AI — Showcase Site
   Design language: "Green & Gold Legacy"
   deep emerald ink · burnished gold light · Amiri calligraphy
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink:      #060a08;
  --ink-2:    #0a130e;
  --ink-3:    #0e1d15;
  --emerald:  #10301f;
  --emerald-2:#173f28;
  --gold:     #d4af37;
  --gold-2:   #f0d378;
  --gold-3:   #9c7c1e;
  --cream:    #f4eee1;
  --muted:    #9db3a6;
  --line:     rgba(212,175,55,.16);
  --glass:    rgba(10,19,14,.55);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui:      "Outfit", system-ui, sans-serif;
  --font-arabic:  "Amiri", serif;

  --ease: cubic-bezier(.22,.9,.24,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }
::selection { background: rgba(212,175,55,.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #1d3527; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3); }

body::after { /* film grain */
  content: ""; position: fixed; inset: -50%; z-index: 2000;
  pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); }
  40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,-3%); }
  80% { transform: translate(5%,5%); }
}

/* ── Type utilities ───────────────────────────────────────────── */
.eyebrow {
  font-size: .78rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.eyebrow--gold { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; text-wrap: balance; }

/* ── Reveal system ────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

.line-mask { display: block; overflow: hidden; }
.line-mask__inner { display: block; transform: translateY(112%); }
.line-mask__inner.in-view { transform: none; }
.line-mask__inner { transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }

[data-split] .w {
  display: inline-block; opacity: .1; filter: blur(3px);
  transform: translateY(.18em) rotate(1.2deg);
  transition: opacity .7s var(--ease-out), filter .7s var(--ease-out),
              transform .8s var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms);
}
[data-split].in-view .w,
[data-split].w-lit .w { opacity: 1; filter: blur(0); transform: none; }

/* ═══════════════ PRELOADER ═══════════════ */
.preloader {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .7s ease .2s, visibility 0s 1s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { text-align: center; position: relative; }
.pl-ring { width: 130px; height: 130px; margin: 0 auto; transform: rotate(-90deg); }
.pl-arc { animation: plspin 2.4s linear infinite; transform-origin: 60px 60px; }
@keyframes plspin { to { stroke-dashoffset: -340; } }
.pl-basmala {
  display: block; font-family: var(--font-arabic); font-size: 2rem;
  color: var(--gold); margin-top: -84px; margin-bottom: 66px;
}
.pl-label {
  display: block; font-size: .72rem; letter-spacing: .55em;
  color: var(--muted); text-transform: uppercase; margin-top: 14px;
  animation: plfade 2.4s ease infinite alternate;
}
@keyframes plfade { from { opacity: .35; } to { opacity: 1; } }
.pl-curtain {
  position: absolute; left: 0; width: 51%; height: 100%; top: 0;
  background: var(--ink); z-index: 2;
  transition: transform 1s var(--ease);
}
.pl-curtain { left: 0; }
.pl-curtain--2 { left: 50%; }
.preloader.done .pl-curtain { transform: translateX(-101%); }
.preloader.done .pl-curtain--2 { transform: translateX(101%); }

/* ═══════════════ CURSOR ═══════════════ */
.cursor {
  position: fixed; z-index: 4000; top: 0; left: 0;
  width: 34px; height: 34px; border: 1px solid rgba(212,175,55,.65);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .25s ease, height .25s ease, background .25s ease, opacity .3s;
  mix-blend-mode: screen; opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.hot { width: 58px; height: 58px; background: rgba(212,175,55,.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ═══════════════ PROGRESS + NAV ═══════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 3000;
  background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2));
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2500;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,10,8,.82); backdrop-filter: blur(18px) saturate(1.3);
  padding-top: .85rem; padding-bottom: .85rem;
  border-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .8rem; }
.nav__mark { width: 34px; height: 34px; color: var(--gold); }
.nav__wordmark {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .22em;
  font-size: 1.02rem;
}
.nav__wordmark span { color: var(--gold); margin-left: .35em; font-weight: 400; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: .3rem 0;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold);
  padding: .55rem 1.4rem; border-radius: 99px;
  transition: background .35s, color .35s, box-shadow .35s;
}
.nav__cta:hover { background: var(--gold); color: var(--ink); box-shadow: 0 0 34px rgba(212,175,55,.35); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; transition: .4s var(--ease); }
.nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 2400; background: rgba(6,10,8,.97);
  display: grid; place-items: center; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s;
}
.drawer.open { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.drawer nav a {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem);
  padding: .5rem 0; color: var(--cream);
  transform: translateY(24px); opacity: 0; transition: .6s var(--ease-out);
}
.drawer.open nav a { transform: none; opacity: 1; }
.drawer nav a:nth-child(2) { transition-delay: .06s; } .drawer nav a:nth-child(3) { transition-delay: .12s; }
.drawer nav a:nth-child(4) { transition-delay: .18s; } .drawer nav a:nth-child(5) { transition-delay: .24s; }
.drawer nav a:hover { color: var(--gold); }
.drawer__foot { position: absolute; bottom: 8vh; width: 100%; }
.drawer__basmala { font-family: var(--font-arabic); color: var(--gold); opacity: .8; }
.drawer-scrim { position: fixed; inset: 0; z-index: 2300; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .4s; }
.drawer-scrim.open { opacity: 1; visibility: visible; }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-ui); font-size: .92rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1rem 2.2rem; border-radius: 99px; cursor: pointer;
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .4s ease;
  will-change: transform;
}
.btn--gold {
  background: linear-gradient(120deg, var(--gold-3), var(--gold) 40%, var(--gold-2) 60%, var(--gold));
  color: #141005; box-shadow: 0 10px 40px rgba(212,175,55,.25);
}
.btn--gold::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--gold:hover::before { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 14px 60px rgba(212,175,55,.45); }
.btn--ghost { border: 1px solid rgba(244,238,225,.3); color: var(--cream); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--xl { padding: 1.15rem 2.8rem; font-size: 1rem; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: clip; padding: 8rem clamp(1.2rem, 5vw, 5rem) 6rem;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.9) brightness(.65);
  transform: scale(1.08); animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.08) translateY(0); } to { transform: scale(1.18) translateY(-2%); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 18% 45%, rgba(6,10,8,.9), transparent 70%),
    linear-gradient(180deg, rgba(6,10,8,.85) 0%, rgba(6,10,8,.35) 45%, var(--ink) 96%);
}
.hero__inner { position: relative; z-index: 3; max-width: 44rem; }
.hero__eyebrow {
  color: var(--gold); letter-spacing: .4em; text-transform: uppercase;
  font-size: .78rem; margin-bottom: 1.6rem;
}
.hero__title {
  display: flex;
  flex-direction: column;
  gap: .1em;
}

.hero__title-brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.8rem, 9.5vw, 7.6rem);
  line-height: .95;
  letter-spacing: -.015em;
  background: linear-gradient(
    100deg,
    var(--gold-2) 0%,
    var(--gold)   28%,
    #fff6d8       52%,
    var(--gold)   74%,
    var(--gold-2) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(212, 175, 55, .18);
  padding-bottom: .06em;
  animation: brandShine 8s ease-in-out infinite;
}

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

.hero__title-tag {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.25;
  color: var(--cream);
  opacity: .92;
}

.hero__title-tag em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 1.8rem; max-width: 34rem; font-size: 1.08rem; color: #cfe0d5;
  font-weight: 300;
}
.hero__sub strong { color: var(--gold-2); font-weight: 500; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; }
.hero__badges { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2.8rem; }
.badge {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  padding: .42rem 1rem; border-radius: 99px;
  background: rgba(10,19,14,.4); backdrop-filter: blur(8px);
}

/* floating phone */
.hero__phone {
  position: absolute; right: clamp(2rem, 9vw, 10rem); top: 50%;
  translate: 0 -50%; z-index: 2; perspective: 1200px;
}

/* scroll cue */
.hero__scrollcue {
  position: absolute; left: 50%; bottom: 2.2rem; translate: -50% 0; z-index: 3;
  display: grid; justify-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted);
}
.hero__scrollcue i {
  width: 1px; height: 52px; background: linear-gradient(var(--gold), transparent);
  display: block; overflow: hidden; position: relative;
}
.hero__scrollcue i::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-2);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(100%);} }

/* ═══════════════ MARQUEE ═══════════════ */
.marquee {
  border-block: 1px solid var(--line); padding: 1.3rem 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(16,48,31,.25), transparent);
}
.marquee__track {
  display: flex; gap: 3.2rem; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { white-space: nowrap; font-size: .92rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.marquee__track .m-star { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════ AI SHOWCASE ═══════════════ */
.ai { position: relative; height: 420vh; }
.ai__sticky {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: flex; align-items: center;
}
.ai__bg, .ai__scrim { position: absolute; inset: 0; }
.ai__bg {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
  filter: saturate(.85) brightness(.5);
}
.ai__bg.playing { opacity: 1; }
.ai__scrim {
  background:
    radial-gradient(70% 80% at 75% 40%, rgba(6,10,8,.72), transparent 75%),
    linear-gradient(180deg, var(--ink) 0%, rgba(6,10,8,.4) 30%, rgba(6,10,8,.55) 75%, var(--ink) 100%);
}
.ai__stage { position: relative; z-index: 2; width: 100%; padding: 3vh clamp(1.2rem, 5vw, 5rem); }
.ai__head { max-width: 52rem; margin-bottom: clamp(1rem, 2.5vh, 2.6rem); }
.ai__title { font-size: clamp(1.8rem, 5.5vh, 4.6rem); }
.ai__title em {
  background: linear-gradient(100deg, var(--gold-2), var(--gold), #fff3cf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai__stage-grid {
  display: grid; grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.ai__phone-col { display: grid; justify-items: center; }
/* keep the mockup inside short viewports (its height ≈ 2.1× its width) */
.ai__phone-col .phone { width: min(320px, 40vh); }

.ai__points { position: relative; display: grid; gap: clamp(.5rem, 1.6vh, 1.5rem); max-width: 36rem; }
.ai-point {
  padding: clamp(.65rem, 1.6vh, 1.5rem) 1.8rem; border: 1px solid var(--line); border-radius: 20px;
  background: rgba(10,19,14,.55); backdrop-filter: blur(14px);
  display: flex; gap: 1.4rem; align-items: flex-start;
  transition: border-color .6s ease, background .6s ease, transform .6s var(--ease), opacity .6s ease;
  opacity: .38; transform: scale(.985);
}
.ai-point.active {
  opacity: 1; transform: none; border-color: rgba(212,175,55,.5);
  background: rgba(16,32,22,.72); box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.ai-point__idx {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vh, 1.5rem); color: var(--gold);
  line-height: 1; padding-top: .2rem;
}
.ai-point h3 { font-size: clamp(1.1rem, 2.4vh, 1.45rem); margin-bottom: .3rem; }
.ai-point p { color: var(--muted); font-size: clamp(.85rem, 1.9vh, .98rem); }
.ai__progress {
  height: 2px; background: rgba(212,175,55,.14); border-radius: 99px; overflow: hidden;
  margin-top: clamp(.3rem, 1vh, .8rem);
}
.ai__progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
}
.ai__hint { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); opacity: .7; }
.ai__rail {
  position: absolute; right: clamp(1rem, 3vw, 2.6rem); top: 50%; translate: 0 -50%;
  width: 1px; height: 30vh; background: rgba(212,175,55,.18); z-index: 3;
}
.ai__rail::after {
  content: ""; position: absolute; left: -2px; width: 5px; border-radius: 99px;
  height: 60px; background: var(--gold); top: 0;
  animation: railSlide 3.2s var(--ease) infinite;
}
@keyframes railSlide { 0% { top: -8%; opacity: 0; } 18% { opacity: 1; } 85% { opacity: 1; } 100% { top: 92%; opacity: 0; } }

/* ═══════════════ MANIFESTO ═══════════════ */
.manifesto {
  position: relative; min-height: 110svh; display: grid; place-items: center;
  overflow: clip; padding: 8rem 1.5rem; text-align: center;
}
.manifesto__bg, .manifesto__scrim { position: absolute; inset: 0; }
.manifesto__bg { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; filter: brightness(.55) saturate(.9); }
.manifesto__bg.playing { opacity: 1; }
.manifesto__scrim { background: radial-gradient(75% 75% at 50% 50%, rgba(6,10,8,.55), rgba(6,10,8,.92)); }
.manifesto__inner { position: relative; z-index: 2; max-width: 58rem; }
.manifesto__kicker { color: var(--gold); letter-spacing: .42em; text-transform: uppercase; font-size: .78rem; margin-bottom: 2rem; }
.manifesto__line {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 500; line-height: 1.28; color: var(--cream);
}
.manifesto__line em {
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ═══════════════ FEATURES / BENTO ═══════════════ */
.features { padding: 9rem clamp(1.2rem, 4vw, 4rem) 7rem; position: relative; }
.features__head { text-align: center; max-width: 46rem; margin: 0 auto 4.5rem; }
.features__title { font-size: clamp(2.6rem, 5.6vw, 4.8rem); margin-top: 1rem; }
.features__title em {
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic;
}
.features__sub { color: var(--muted); margin-top: 1.2rem; }

.bento {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(240px, auto);
  max-width: 1240px; margin: 0 auto;
}
.tile {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  display: flex; align-items: flex-end; min-height: 300px;
  transition: transform .5s var(--ease), border-color .5s ease, box-shadow .5s ease;
  will-change: transform;
}
.tile:hover { border-color: rgba(212,175,55,.45); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.tile--wide { grid-column: span 2; }
.tile--flip { grid-column: span 2; }
.tile--gold {
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(212,175,55,.16), transparent 55%),
    linear-gradient(160deg, #14261a, #0d1a12);
  border-color: rgba(212,175,55,.4);
}
.tile__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease, transform 6s ease;
  filter: brightness(.6) saturate(.9);
}
.tile__bg.playing { opacity: 1; }
.tile:hover .tile__bg.playing { transform: scale(1.06); }
.tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(6,10,8,.1) 25%, rgba(6,10,8,.88) 78%);
}
.tile__content { position: relative; z-index: 2; padding: 1.7rem 1.7rem 1.5rem; }
.tile__kicker {
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: .55rem;
}
.tile h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.tile p { color: #b9cdc0; font-size: .95rem; max-width: 30rem; text-wrap: pretty; }
.tile__tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.tile__tags li {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 99px;
  padding: .28rem .8rem; background: rgba(6,10,8,.5);
}
.tile__link { display: inline-block; margin-top: 1rem; color: var(--gold-2); font-size: .9rem; letter-spacing: .06em; }
.tile__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile__art { position: absolute; inset: 0; display: grid; place-items: center; opacity: .9; }

/* qibla dial */
.qibla {
  width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.4); position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(16,48,31,.6), rgba(6,10,8,.9));
  box-shadow: inset 0 0 30px rgba(212,175,55,.08), 0 0 40px rgba(212,175,55,.06);
}
.qibla::before {
  content: "N"; position: absolute; top: 8px; left: 50%; translate: -50% 0;
  font-size: .62rem; letter-spacing: .2em; color: var(--muted);
}
.qibla__kaaba {
  position: absolute; top: 22%; left: 50%; translate: -50% 0;
  width: 20px; height: 20px; background: #171310; border: 1px solid var(--gold);
  border-radius: 3px;
}
.qibla__kaaba::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 5px; height: 5px;
  background: var(--gold); border-radius: 1px;
}
.qibla__needle {
  position: absolute; inset: 0; margin: auto; width: 2px; height: 46%;
  transform-origin: 50% 100%; top: 4%;
  background: linear-gradient(var(--gold-2), transparent);
  animation: qiblaSweep 7s var(--ease) infinite;
}
@keyframes qiblaSweep {
  0%, 100% { transform: rotate(-38deg); } 45% { transform: rotate(24deg); } 62% { transform: rotate(6deg); }
}

/* azkar art */
.azkar-word {
  font-family: var(--font-arabic); font-size: clamp(2.4rem, 5vw, 4rem);
  color: rgba(212,175,55,.85); text-shadow: 0 0 40px rgba(212,175,55,.25);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.98);} 50% { opacity: 1; transform: scale(1.02);} }
.hajj-glyph { font-size: 4.6rem; color: rgba(212,175,55,.8); animation: breathe 7s ease-in-out infinite; }

/* recitation wave art */
.wave { display: flex; align-items: center; gap: 7px; height: 96px; }
.wave i {
  width: 6px; border-radius: 99px; transform-origin: center;
  background: linear-gradient(180deg, var(--gold-2), rgba(212,175,55,.22));
  box-shadow: 0 0 18px rgba(212,175,55,.18);
  animation: wavePulse 1.8s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 38%; animation-delay: 0s; }
.wave i:nth-child(2) { height: 62%; animation-delay: .12s; }
.wave i:nth-child(3) { height: 88%; animation-delay: .24s; }
.wave i:nth-child(4) { height: 100%; animation-delay: .36s; }
.wave i:nth-child(5) { height: 82%; animation-delay: .48s; }
.wave i:nth-child(6) { height: 58%; animation-delay: .6s; }
.wave i:nth-child(7) { height: 36%; animation-delay: .72s; }
@keyframes wavePulse { 0%,100% { transform: scaleY(.5); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; transform: scaleY(.7); opacity: .8; } }

.features__more { text-align: center; margin-top: 3rem; color: var(--muted); font-size: .95rem; }
.features__more a { color: var(--gold-2); border-bottom: 1px solid rgba(212,175,55,.4); }

/* ═══════════════ PRIVACY ═══════════════ */
.privacy { position: relative; padding: 9rem clamp(1.2rem, 4vw, 4rem); overflow: clip; }
.privacy__bg, .privacy__veil { position: absolute; inset: 0; }
.privacy__bg { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; filter: brightness(.4) saturate(.8); }
.privacy__bg.playing { opacity: 1; }
.privacy__veil { background: linear-gradient(180deg, var(--ink) 0%, rgba(6,10,8,.55) 30%, rgba(6,10,8,.6) 70%, var(--ink) 100%); }
.privacy__glow {
  position: absolute; top: 20%; left: 50%; translate: -50% 0;
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(212,175,55,.07), transparent 60%);
  pointer-events: none;
}
.privacy__inner { position: relative; z-index: 2; max-width: 62rem; margin: 0 auto; text-align: center; }
.privacy__title { font-size: clamp(2.2rem, 5vw, 4.2rem); margin: 1.2rem 0 3.2rem; }
.privacy__title em { color: var(--gold-2); }
.privacy__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: left;
}
.p-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem 1.5rem;
  background: rgba(8,15,11,.72); backdrop-filter: blur(12px);
  transition: transform .5s var(--ease), border-color .5s;
}
.p-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.45); }
.p-card__num { font-family: var(--font-display); color: var(--gold); font-size: 1.1rem; letter-spacing: .12em; }
.p-card h3 { font-size: 1.3rem; margin: .5rem 0 .4rem; }
.p-card p { color: var(--muted); font-size: .9rem; text-wrap: pretty; }
.privacy__note { margin-top: 2.4rem; color: var(--muted); font-size: .92rem; font-style: italic; }

/* ═══════════════ NUMBERS ═══════════════ */
.numbers { position: relative; padding: 9rem clamp(1.2rem, 4vw, 4rem); overflow: clip; text-align: center; }
.numbers__bg, .numbers__scrim { position: absolute; inset: 0; }
.numbers__bg { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; filter: brightness(.45); }
.numbers__bg.playing { opacity: 1; }
.numbers__scrim { background: radial-gradient(70% 90% at 50% 30%, rgba(6,10,8,.6), var(--ink) 92%); }
.numbers__inner { position: relative; z-index: 2; max-width: 58rem; margin: 0 auto; }
.numbers__title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 1rem 0 3.4rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 1.4rem;
}
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1;
  background: linear-gradient(180deg, #fff7dd 5%, var(--gold-2) 40%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label {
  display: block; margin-top: .6rem; font-size: .78rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}

/* ═══════════════ QUOTE ═══════════════ */
.quote { padding: 10rem 1.5rem; text-align: center; position: relative; }
.quote__mark { font-family: var(--font-display); font-size: 5rem; color: var(--gold); line-height: 0; display: block; margin-bottom: 2.6rem; opacity: .8; }
.quote p {
  font-family: var(--font-arabic); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 400; color: var(--cream); line-height: 2; max-width: 44rem; margin: 0 auto;
}
.quote cite { display: block; margin-top: 2rem; color: var(--gold); font-style: normal; letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; }

/* ═══════════════ AVAILABILITY ═══════════════ */
.avail {
  position: relative; padding: 10rem clamp(1.2rem, 4vw, 4rem) 7rem;
  text-align: center; overflow: clip;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(16,48,31,.55), transparent 65%),
    linear-gradient(180deg, var(--ink), #071009 60%, #0a1a10);
}
.avail__title { font-size: clamp(3rem, 7vw, 5.8rem); margin: 1rem 0; }
.avail__sub { color: var(--muted); font-size: 1.05rem; }
.avail__sub strong { color: var(--cream); font-weight: 500; }
.avail__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; }
.avail__note { margin-top: 1.6rem; color: var(--muted); font-size: .84rem; letter-spacing: .06em; }
.avail__phone { display: grid; place-items: center; margin-top: 4.5rem; }
.quran-float {
  position: absolute; top: 12%; right: 6%;
  font-family: var(--font-arabic); font-size: clamp(5rem, 12vw, 10rem);
  color: rgba(212,175,55,.06); pointer-events: none; line-height: 1;
}
.avail__basmala { margin-top: 4.5rem; font-family: var(--font-arabic); font-size: 1.5rem; color: rgba(212,175,55,.85); }

/* ═══════════════ PHONE MOCKUP ═══════════════ */
.phone {
  position: relative; width: 280px; aspect-ratio: 9 / 19;
  border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #2a2f2b, #0c0f0d 40%, #1d221e 80%, #0a0c0b);
  border: 1px solid rgba(212,175,55,.28);
  box-shadow:
    0 40px 90px rgba(0,0,0,.6),
    inset 0 1px 1px rgba(255,255,255,.14),
    0 0 70px rgba(212,175,55,.07);
}
.phone--lg { width: 320px; }
.phone__notch {
  position: absolute; top: 18px; left: 50%; translate: -50% 0;
  width: 88px; height: 22px; border-radius: 99px; background: #050807; z-index: 4;
}
.phone__screen {
  position: absolute; inset: 10px; border-radius: 38px; overflow: hidden;
  background: linear-gradient(170deg, #0b140e, #060a08);
}
.phone__shine {
  position: absolute; inset: 0; border-radius: 46px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.09) 0%, transparent 28%, transparent 72%, rgba(255,255,255,.05) 100%);
}
.scr { position: absolute; inset: 0; padding: 52px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.scr__head {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 4px;
}
.bubble {
  max-width: 86%; padding: .7rem .9rem; border-radius: 16px;
  font-size: .74rem; line-height: 1.45;
}
.bubble--user {
  align-self: flex-end; background: linear-gradient(140deg, var(--emerald-2), var(--emerald));
  border: 1px solid rgba(212,175,55,.25); color: #eaf4ec; border-bottom-right-radius: 5px;
}
.bubble--ai {
  align-self: flex-start; background: rgba(244,238,225,.05);
  border: 1px solid rgba(244,238,225,.12); color: #d9e6dc; border-bottom-left-radius: 5px;
}
.bubble__cite { display: block; margin-top: .4rem; color: var(--gold-2); font-size: .64rem; letter-spacing: .08em; }
.bubble--typing { align-self: flex-start; display: flex; gap: 5px; padding: .8rem .9rem; background: rgba(244,238,225,.05); border-radius: 16px; border-bottom-left-radius: 5px; border: 1px solid rgba(244,238,225,.1); }
.bubble--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: tyblink 1.3s ease infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: .18s; }
.bubble--typing span:nth-child(3) { animation-delay: .36s; }
@keyframes tyblink { 0%, 60%, 100% { opacity: .25; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }
.scr--home { justify-content: center; }
.scr__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 6px; }
.scr__grid span {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(244,238,225,.045); border: 1px solid rgba(244,238,225,.09);
  border-radius: 18px;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer { border-top: 1px solid var(--line); padding: 4.5rem clamp(1.2rem, 4vw, 4rem) 3rem; background: #05080a06; }
.footer__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 3rem; }
.footer__brand { display: flex; gap: 1.1rem; align-items: flex-start; }
.footer__brand .nav__mark { width: 42px; height: 42px; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .1em; }
.footer__brand p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.footer__cols { display: flex; gap: clamp(3rem, 8vw, 7rem); flex-wrap: wrap; }
.footer__cols h4 {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 500;
}
.footer__cols a { display: block; color: var(--muted); padding: .28rem 0; font-size: .94rem; transition: color .3s; }
.footer__cols a:hover { color: var(--cream); }
.footer__legal { border-top: 1px solid var(--line); padding-top: 1.6rem; color: #6f8378; font-size: .8rem; display: grid; gap: .35rem; }
.footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__disclaimer { font-style: italic; }
.to-top {
  position: absolute; right: clamp(1.2rem, 4vw, 4rem); top: 4rem;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  transition: background .35s, transform .35s;
}
.to-top:hover { background: rgba(212,175,55,.12); transform: translateY(-4px); }
.footer__inner { position: relative; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1080px) {
  .hero__phone { display: none; }
  .ai__stage-grid { grid-template-columns: 1fr; }
  .ai__phone-col { display: none; }
  .privacy__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide, .tile--flip { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .tile--flip { grid-column: span 1; min-height: 260px; }
  .tile { min-height: 250px; }
  .privacy__grid { grid-template-columns: 1fr; }
  .stats { gap: 2rem 1rem; }
  .hero { padding-top: 7rem; }
  .hero__title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .ai { height: 380vh; }
  .ai-point { gap: 1rem; padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* short viewports (compact laptops, landscape phones) —
   all four AI points must stay inside the fold */
@media (max-height: 600px) {
  .ai__hint { display: none; }
  .ai-point { padding-top: .5rem; padding-bottom: .5rem; }
  .ai-point p { font-size: .8rem; }
}
/* ═══════════════ HERO ALWAYS VISIBLE ═══════════════ */
.hero .reveal,
.hero .line-mask__inner {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .line-mask__inner { opacity: 1 !important; transform: none !important; }
  [data-split] .w { opacity: 1 !important; filter: none !important; transform: none !important; }
  body::after { display: none; }
}
