/* Rawdah Financial — coming soon
   Palette: midnight / gold / sand. No third-party requests at runtime. */

@font-face{
  font-family:'Cormorant';
  font-style:normal;
  font-weight:300 500;
  font-display:swap;
  src:url('fonts/cormorant.woff2') format('woff2');
}
@font-face{
  font-family:'Amiri';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('fonts/amiri-400.woff2') format('woff2');
  unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF;
}

:root{
  --ink:#060a12;
  --ink-2:#0a1120;
  --gold:#e6c37a;
  --gold-soft:#c29a52;
  --gold-light:#fff4d2;
  --sand:#d8c2a0;
  --muted:rgba(233,225,209,.60);
  --serif:'Cormorant','Didot','Bodoni 72','Times New Roman',serif;
  --arabic:'Amiri','Geeza Pro','Noto Naskh Arabic','Al Bayan',serif;
  --ease:cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(120% 90% at 50% 8%, #0d1728 0%, #070c16 46%, #04070d 100%);
  color:var(--sand);
  font-family:var(--serif);
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ── atmosphere ────────────────────────────────────────────── */
.aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.blob{
  position:absolute;border-radius:50%;filter:blur(80px);opacity:.36;
  will-change:transform;
}
.b1{
  width:62vw;height:62vw;left:-12vw;top:-20vw;
  background:radial-gradient(circle at 40% 40%, rgba(198,146,58,.38), transparent 66%);
  animation:drift1 26s var(--ease) infinite alternate;
}
.b2{
  width:48vw;height:48vw;right:-16vw;top:-14vw;
  background:radial-gradient(circle at 50% 50%, rgba(30,96,84,.34), transparent 70%);
  animation:drift2 32s var(--ease) infinite alternate;
}
.b3{
  width:70vw;height:44vw;left:18vw;bottom:-22vw;
  background:radial-gradient(circle at 50% 50%, rgba(180,120,52,.24), transparent 70%);
  animation:drift3 38s var(--ease) infinite alternate;
}
@keyframes drift1{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(6vw,4vw,0) scale(1.14)}}
@keyframes drift2{from{transform:translate3d(0,0,0) scale(1.06)}to{transform:translate3d(-7vw,5vw,0) scale(.94)}}
@keyframes drift3{from{transform:translate3d(0,0,0)}to{transform:translate3d(-5vw,-4vw,0) scale(1.1)}}

/* girih — eight-point star, the visual signature */
.girih{position:fixed;inset:0;z-index:1;pointer-events:none;display:grid;place-items:center}
.girih svg{width:min(96vh,96vw);height:auto;opacity:.34}
.girih circle{
  fill:none;stroke:rgba(214,170,96,.20);stroke-width:.8;vector-effect:non-scaling-stroke;
}
.girih .rosette circle{stroke:rgba(214,170,96,.13)}
.girih-spin,.girih-spin-rev{transform-origin:300px 300px;will-change:transform}
.girih-spin{animation:spin 180s linear infinite}
.girih-spin-rev{animation:spin 240s linear infinite reverse}
@keyframes spin{to{transform:rotate(360deg)}}

#dust{position:fixed;inset:0;z-index:2;pointer-events:none}

/* ── horizon ───────────────────────────────────────────────── */
.horizon{position:fixed;left:0;right:0;bottom:0;height:min(54vh,560px);z-index:3;pointer-events:none}
.horizon::after{content:'';position:absolute;inset:auto 0 0 0;height:34%;background:linear-gradient(to top,rgba(3,6,11,.94),rgba(3,6,11,.35) 55%,transparent);pointer-events:none}
.horizon .skyline,.horizon .dunes{position:absolute;inset:auto 0 0 0;width:100%;display:block}
.skyline{height:100%;opacity:1;
  -webkit-mask-image:linear-gradient(to top, #000 76%, transparent 100%);
  mask-image:linear-gradient(to top, #000 76%, transparent 100%);}
.towers{will-change:transform}

.silhouette{fill:url(#towerFade)}
.w{fill:var(--gold-light);opacity:.3;animation:twinkle 5.2s ease-in-out infinite}
.w:nth-child(3n){animation-duration:6.4s;animation-delay:-1.1s}
.w:nth-child(4n){animation-delay:-2.3s}
.w:nth-child(5n){animation-duration:7.8s;animation-delay:-3.4s}
.w:nth-child(7n){animation-delay:-4.6s}
@keyframes twinkle{0%,100%{opacity:.18}45%{opacity:.95}}

.sail{fill:url(#towerFade)}
.sail-glow{fill:none;stroke:rgba(230,195,122,.35);stroke-width:1.2}

.dunes{height:100%;}
.dune{fill:#04070d}
.d1{fill:rgba(146,120,74,.08)}
.d2{fill:rgba(72,60,44,.20)}
.d3{fill:#03060b}
.dunes .d1{animation:dune 30s var(--ease) infinite alternate}
.dunes .d2{animation:dune 24s var(--ease) infinite alternate-reverse}
@keyframes dune{from{transform:translate3d(-1.5%,0,0)}to{transform:translate3d(1.5%,0,0)}}

.horizon-line{
  position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(230,195,122,.55),transparent);
  animation:breathe 7s ease-in-out infinite;
}
@keyframes breathe{0%,100%{opacity:.25}50%{opacity:.8}}

.moon{
  position:fixed;right:6%;top:7%;width:clamp(38px,4.4vw,62px);height:auto;opacity:.8;
  animation:floaty 12s ease-in-out infinite alternate;
  filter:drop-shadow(0 0 20px rgba(230,195,122,.30));
}
.moon .moon-star{animation:twinkle 4s ease-in-out infinite}
@keyframes floaty{from{transform:translateY(0) rotate(-3deg)}to{transform:translateY(-10px) rotate(3deg)}}

/* ── message ───────────────────────────────────────────────── */
.stage{
  position:relative;z-index:6;
  min-height:100svh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:14vh 6vw 26vh;
  text-align:center;
}
.stage::before{
  content:'';position:absolute;inset:6% 4% 8% 4%;z-index:-1;
  background:radial-gradient(60% 50% at 50% 46%, rgba(4,7,13,.88), rgba(4,7,13,.45) 62%, transparent 78%);
  pointer-events:none;
}

.stage > *,.foot{--delay:0s;opacity:0;animation:rise 1s var(--ease) both;animation-delay:var(--delay)}
@keyframes rise{from{opacity:0;transform:translateY(22px);filter:blur(7px)}to{opacity:1;transform:none;filter:blur(0)}}

.d1{--delay:.15s}.d2{--delay:.32s}.d3{--delay:.5s}
.d4{--delay:.66s}.d5{--delay:1.02s}.d6{--delay:1.16s}.d7{--delay:1.36s}

.crest{width:46px;height:46px;margin-bottom:clamp(18px,3.2vh,34px)}
.crest svg{width:100%;height:100%}
.crest .crest-ring{fill:none;stroke:rgba(230,195,122,.68);stroke-width:1.1}
.crest-moon{fill:rgba(230,195,122,.92)}
.crest-spark{fill:var(--gold-light);animation:twinkle 5s ease-in-out infinite}
.crest-spin{transform-origin:32px 32px;animation:sway 9s ease-in-out infinite alternate}
@keyframes sway{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}

.eyebrow{
  margin:0 0 clamp(14px,2.4vh,26px);
  font-size:clamp(.58rem,1.05vw,.72rem);
  font-weight:500;
  letter-spacing:.46em;
  text-transform:uppercase;
  color:var(--gold);
  opacity:.92;
}

.salaam{
  margin:0 0 clamp(8px,1.6vh,16px);
  font-family:var(--arabic);
  font-size:clamp(1.05rem,2.2vw,1.5rem);
  color:var(--muted);
  letter-spacing:0;
}

.title{
  margin:0;
  font-size:clamp(2.7rem,9.8vw,7.8rem);
  font-weight:300;
  line-height:.92;
  letter-spacing:.16em;
  text-indent:.16em;
  text-transform:uppercase;
  white-space:nowrap;
  background:linear-gradient(100deg,#8a6a2a 0%,#e6c37a 18%,#fff6da 36%,#e6c37a 52%,#9c7930 72%,#e6c37a 100%);
  background-size:260% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:rise 1s var(--ease) both, sheen 11s linear infinite;
  animation-delay:var(--delay),calc(var(--delay) + .5s);
  filter:drop-shadow(0 6px 40px rgba(198,146,58,.22));
}
@media (max-width:900px){
  .title{
    white-space:normal;text-wrap:balance;
    font-size:clamp(2.5rem,10.6vw,5.4rem);
    letter-spacing:.09em;text-indent:.09em;line-height:.98;
  }
}
@keyframes sheen{from{background-position:0% 0}to{background-position:-260% 0}}

.title-ar{
  margin:.1em 0 0;
  font-family:var(--arabic);
  font-size:clamp(1.6rem,5.4vw,3.2rem);
  line-height:1.5;
  background:linear-gradient(100deg,#b98f45,#fff2cb 42%,#c79c50 78%,#e6c37a);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

.rule{
  position:relative;
  width:min(300px,52vw);height:1px;margin:clamp(20px,3.4vh,34px) 0;
  background:linear-gradient(90deg,transparent,rgba(230,195,122,.5),transparent);
  overflow:hidden;
}
.rule i{
  position:absolute;top:-1px;left:-30%;width:26%;height:3px;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--gold-light),transparent);
  filter:blur(.6px);
  animation:spark 4.6s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes spark{0%{left:-30%}55%,100%{left:105%}}

.lede{
  margin:0;
  font-size:clamp(.95rem,2.1vw,1.22rem);
  font-weight:300;
  letter-spacing:.06em;
  color:rgba(240,232,216,.82);
  max-width:34ch;
}
.lede-ar{
  margin:.55em 0 0;
  font-family:var(--arabic);
  font-size:clamp(.92rem,2vw,1.12rem);
  line-height:1.9;
  color:var(--muted);
  max-width:32ch;
}

.host{
  margin:clamp(26px,4.6vh,46px) 0 0;
  display:flex;align-items:center;gap:.85em;
  font-size:clamp(.62rem,1.2vw,.74rem);
  letter-spacing:.34em;
  text-transform:uppercase;
  color:rgba(230,195,122,.72);
}
.host .dot{width:4px;height:4px;border-radius:50%;background:var(--gold);opacity:.7;animation:twinkle 3.4s ease-in-out infinite}

/* ── chrome ────────────────────────────────────────────────── */
.foot{
  position:fixed;left:0;right:0;bottom:0;z-index:7;
  display:flex;align-items:center;justify-content:center;gap:1.1em;
  padding:0 6vw max(16px,env(safe-area-inset-bottom));
  font-size:clamp(.56rem,1.1vw,.66rem);
  letter-spacing:.26em;
  text-transform:uppercase;
  color:rgba(222,204,172,.55);
  text-shadow:0 1px 12px rgba(0,0,0,.8);
}
.foot .sep{width:3px;height:3px;border-radius:50%;background:rgba(230,195,122,.5)}

.glow{
  position:fixed;left:0;top:0;width:540px;height:540px;margin:-270px 0 0 -270px;
  border-radius:50%;z-index:5;pointer-events:none;opacity:0;transition:opacity .8s ease;
  background:radial-gradient(circle,rgba(230,195,122,.10),rgba(230,195,122,.04) 42%,transparent 66%);
  will-change:transform;
}
.glow.on{opacity:1}

.grain{
  position:fixed;inset:0;z-index:9;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

.sweep{position:fixed;inset:0;z-index:10;pointer-events:none;overflow:hidden}
.sweep::before{
  content:'';position:absolute;top:-20%;left:0;width:22%;height:140%;
  background:linear-gradient(90deg,transparent,rgba(255,242,206,.13),transparent);
  transform:skewX(-18deg) translateX(-80vw);
  filter:blur(8px);
  animation:sweep 2.8s 1.1s cubic-bezier(.5,0,.3,1) 1 forwards;
}
@keyframes sweep{to{transform:skewX(-18deg) translateX(180vw)}}

/* ── small screens ─────────────────────────────────────────── */
@media (max-width:560px){
  .stage{padding:12vh 7vw 30vh}
  .horizon{height:min(44vh,400px)}
  .moon{right:7%;top:2%}
  .foot{letter-spacing:.16em;gap:.6em;font-size:.52rem}
}

@media (max-height:640px){
  .crest{margin-bottom:12px}
  .stage{padding-top:10vh;padding-bottom:24vh}
  .rule{margin:16px 0}
  .host{margin-top:20px}
}

@media (min-width:1100px){
  .horizon{height:min(50vh,600px)}
  .stage{padding-bottom:30vh}
}

/* ── motion preferences ────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
  .stage > *,.foot{opacity:1}
  .grain{opacity:.04}
}

/* ── whatsapp floating chat ────────────────────────────── */
.wa-fab{
  position:fixed;z-index:60;
  right:22px;bottom:22px;
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#1f8a5b;color:#fff;
  box-shadow:0 12px 30px -10px rgba(0,0,0,.55),0 0 0 1px rgba(230,195,122,.28);
  transition:transform .35s cubic-bezier(.16,1,.3,1),background .3s,box-shadow .35s;
}
.wa-fab svg{width:27px;height:27px}
.wa-fab:hover{transform:translateY(-3px);background:#177048;box-shadow:0 18px 36px -12px rgba(0,0,0,.6),0 0 0 1px rgba(230,195,122,.5)}
.wa-fab:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
@media (max-width:680px){
  .wa-fab{right:16px;bottom:16px;width:52px;height:52px}
  .wa-fab svg{width:25px;height:25px}
}
@media (prefers-reduced-motion:reduce){.wa-fab:hover{transform:none}}
/* keep the fixed button clear of the footer line on short viewports */
footer.foot{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 74px)}
