/* landing.myduaa.online: the brand tokens from the Dua design system, set in a quieter, darker key. */
:root {
  --night: #1a0d24;
  --night-2: #291535;
  --plum: #6a1b9a;
  --fuchsia: #d5006d;
  --gold: #e8c26a;
  --gold-strong: #fbc02d;
  --ivory: #fcf9fc;
  --soft: #f3e5f5;
  --ink: #241b2b;
  --muted: #756b7d;
  --line: #eae0eb;
  --on-night: #f6eefa;
  --on-night-muted: #bcaac8;
  --sans: "Alexandria", system-ui, sans-serif;
  --naskh: "Noto Naskh Arabic", "Alexandria", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: anywhere; font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--ivory); line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Navigation */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1160px, 100% - 48px); margin-inline: auto; padding-block: 26px; color: var(--on-night); }
.nav__brand { display: flex; align-items: center; flex: none; gap: 12px; font-weight: 400; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 300; white-space: nowrap; }
.nav__links > a:not(.btn) { padding-block: 12px; }
.nav__links > a:not(.btn) { color: var(--on-night-muted); transition: color .25s ease; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 30px; border-radius: 999px; font-size: 15px; font-weight: 400; transition: transform .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease; }
.btn--gold { background: linear-gradient(135deg, #f3d78e, var(--gold) 55%, #c99f45); color: #2a1633; font-weight: 500; box-shadow: 0 14px 34px -14px rgba(232, 194, 106, .7); }
.btn--ghost { border: 1px solid rgba(232, 194, 106, .45); color: var(--on-night); }
.nav .btn { min-height: 44px; padding: 8px 20px; font-size: 13px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-night); background: radial-gradient(120% 90% at 50% -10%, #3b1c52 0%, var(--night-2) 42%, var(--night) 100%); padding: 170px 0 110px; }
.hero__pattern, .verse__pattern { position: absolute; inset: 0; z-index: -1; color: var(--gold); opacity: .07; }
.hero__glow { position: absolute; z-index: -1; inset-block-start: 8%; inset-inline-end: 6%; width: min(620px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(213, 0, 109, .24), transparent); filter: blur(10px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 56px; }
.eyebrow { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--gold); }
.eyebrow--plum { color: var(--plum); }
h1 { margin-top: 22px; font-size: clamp(46px, 6.6vw, 82px); line-height: 1.16; font-weight: 200; letter-spacing: -.01em; color: #fff; }
[dir="rtl"] h1 { line-height: 1.32; letter-spacing: 0; }
.hero__lead { max-width: 30em; margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); line-height: 2; color: var(--on-night-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Phones: the real product, in a thin dark bezel */
.phone { margin: 0; padding: 7px; border-radius: 42px; background: linear-gradient(160deg, #4a3158, #150a1d 45%, #38234a); box-shadow: 0 50px 90px -40px rgba(10, 2, 16, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { width: 100%; border-radius: 35px; }
/* One size drives the group, so the three phones scale together and always fit their space. */
.hero__phones { --front: min(278px, 21.5vw); --back: calc(var(--front) * .835); --shift: calc(var(--front) * .64); position: relative; height: calc(var(--front) * 2.3); }
.hero__phones .phone { position: absolute; top: 50%; inset-inline-start: 50%; width: var(--front); translate: -50% -50%; }
[dir="rtl"] .hero__phones .phone { translate: 50% -50%; }
.hero__phones .phone--front { z-index: 2; }
.hero__phones .phone--back { width: var(--back); opacity: .92; filter: saturate(.92); }
.hero__phones .phone--a { rotate: -7deg; margin-inline-start: calc(var(--shift) * -1); margin-block-start: 26px; }
.hero__phones .phone--b { rotate: 7deg; margin-inline-start: var(--shift); margin-block-start: 26px; }
[dir="rtl"] .hero__phones .phone--a { rotate: 7deg; }
[dir="rtl"] .hero__phones .phone--b { rotate: -7deg; }

/* Numbers */
.stats { background: var(--night); color: var(--on-night); border-block-start: 1px solid rgba(232, 194, 106, .16); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 18px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid rgba(232, 194, 106, .14); }
.stat strong { display: block; font-size: 38px; font-weight: 200; line-height: 1.3; color: var(--gold); }
.stat span { font-size: 13px; color: var(--on-night-muted); }

/* Sections */
.section-head { max-width: 640px; margin: 0 auto 84px; text-align: center; }
.section-head h2, .closing h2 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.35; font-weight: 300; }
.features { padding: 130px 0 90px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; margin-bottom: 120px; }
.feature .phone { width: min(292px, 100%); justify-self: center; box-shadow: 0 50px 80px -46px rgba(106, 27, 154, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.feature--flip .feature__copy { order: 2; }
.feature__copy { max-width: 26em; justify-self: center; }
.feature__index { display: block; margin-bottom: 16px; font-size: 18px; font-weight: 400; color: var(--fuchsia); letter-spacing: .08em; }
.feature h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.4; font-weight: 300; color: var(--plum); }
.feature p { margin-top: 16px; font-size: 17px; line-height: 2; color: var(--muted); }

/* Verse */
.verse { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--night-2), var(--night)); color: var(--on-night); }
.verse__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: 110px; text-align: center; }
.verse__text { font-family: var(--naskh); font-weight: 500; font-size: clamp(32px, 5vw, 58px); line-height: 1.8; color: #fff; }
.verse__source { font-size: 14px; color: var(--on-night-muted); }
.verse__rule { width: 64px; height: 1px; background: var(--gold); opacity: .7; }

/* Trust */
.trust { padding: 130px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.trust__grid article { padding: 44px 34px; background: var(--ivory); }
.trust h3 { font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--plum); }
.trust__grid p { margin-top: 12px; font-size: 15px; line-height: 2; color: var(--muted); }

/* Closing */
.closing { background: radial-gradient(90% 120% at 50% 110%, #4a1f63, var(--night-2) 55%, var(--night)); color: var(--on-night); }
.closing__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 120px; text-align: center; }
.closing__inner p { max-width: 30em; color: var(--on-night-muted); }
.closing .btn { margin-top: 14px; }

/* Instagram: the latest posts from our page, then the footer */
.social { padding: 120px 0 104px; background: var(--ivory); }
.social__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 52px; }
.social h2 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.35; font-weight: 300; }
.social__lead { max-width: 30em; margin-top: 12px; font-size: 17px; color: var(--muted); }
.btn--plum { gap: 10px; background: var(--plum); color: #fff; box-shadow: 0 16px 34px -18px rgba(106, 27, 154, .8); }
.social__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.social__tile { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 18px; background: var(--soft); }
.social__tile:empty { animation: social-pulse 1.8s ease-in-out infinite alternate; }
.social__tile a { display: block; height: 100%; }
.social__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.social__tile a:focus-visible { outline-offset: -4px; }
.social__handle { margin-top: 26px; text-align: center; font-size: 15px; font-weight: 400; color: var(--plum); }
.social.is-empty .social__grid { display: none; }
@keyframes social-pulse { from { opacity: 1; } to { opacity: .55; } }

/* Footer */
.footer { background: var(--night); color: var(--on-night-muted); font-size: 13px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 34px; border-block-start: 1px solid rgba(232, 194, 106, .14); }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { display: inline-block; padding-block: 11px; }

/* Hover only where there is a pointer, so effects don't stick after a tap */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--ghost:hover { border-color: var(--gold); color: #fff; }
  .btn--plum:hover { background: #5a1584; }
  .nav__links > a:not(.btn):hover, .footer a:hover { color: #fff; }
  .social__tile a:hover img { transform: scale(1.05); }
  .social__handle a:hover { color: var(--fuchsia); }
}

/* Entrance: only when scripting is on, and never for reduced motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .social__tile:empty { animation: none; }
  .social__tile img { transition: none; }
}

/* Tablets, and small laptops: the hero stacks; features, numbers and trust keep their columns */
@media (max-width: 1100px) {
  .hero { padding: 132px 0 76px; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 52px; }
  h1 { font-size: clamp(40px, 7.5vw, 68px); }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__phones { --front: min(34vw, 270px); }
  .features { padding: 100px 0 40px; }
  .section-head { margin-bottom: 68px; }
  .feature { gap: 48px; margin-bottom: 96px; }
  .feature .phone { width: min(260px, 100%); }
  .stat { padding: 34px 12px; }
  .trust { padding: 100px 0; }
  .trust__grid article { padding: 34px 24px; }
  .verse__inner, .closing__inner { padding-block: 92px; }
  .social { padding: 100px 0 88px; }
}

/* Large phones and small tablets: one column */
@media (max-width: 699px) {
  .feature { grid-template-columns: 1fr; gap: 40px; margin-bottom: 84px; text-align: center; }
  .feature--flip .feature__copy { order: 0; }
  .feature .phone { width: min(260px, 74vw); }
  .trust__grid { grid-template-columns: 1fr; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-block-start: 1px solid rgba(232, 194, 106, .14); }
}

/* Phones */
@media (max-width: 640px) {
  .wrap, .nav { width: calc(100% - 32px); }
  .nav { padding-block: 16px; }
  .nav__links { gap: 14px; }
  .nav__links > a:not(.nav__lang):not(.btn) { display: none; }
  .hero { padding: 104px 0 60px; }
  .hero__grid { gap: 40px; }
  .hero__lead { margin-top: 20px; line-height: 1.9; }
  .hero__actions { margin-top: 30px; }
  .hero__phones { --front: min(46vw, 230px); --back: calc(var(--front) * .78); --shift: calc(var(--front) * .5); }
  .hero__phones .phone { padding: 5px; border-radius: 30px; }
  .hero__phones .phone img { border-radius: 25px; }
  .hero__phones .phone--a, .hero__phones .phone--b { margin-block-start: 16px; }
  .features, .trust { padding-block: 76px 36px; }
  .trust { padding-bottom: 76px; }
  .section-head { margin-bottom: 52px; }
  .stat { padding: 28px 10px; }
  .stat strong { font-size: 32px; }
  .verse__inner, .closing__inner { padding-block: 72px; }
  .social { padding: 76px 0 64px; }
  .social__head { margin-bottom: 36px; }
  .social__head .btn { width: 100%; }
  .social__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .social__tile { border-radius: 14px; }
  .footer__row { flex-direction: column; text-align: center; gap: 6px; }
  .footer nav { justify-content: center; gap: 4px 20px; }
}

/* Small phones: the buttons fill the row, and the hero's own button replaces the one in the nav */
@media (max-width: 400px) {
  .nav .btn { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}
