:root{
  --bg:#f8f5f1;
  --ink:#2c2926;
  --muted:#7c766f;
  --line:rgba(65,58,50,.14);
  --gold:#b7a177;
  --soft-shadow:0 16px 44px rgba(47,42,36,.07);
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--bg);scroll-behavior:smooth;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
body{min-height:100%;margin:0;overscroll-behavior-y:none;-webkit-overflow-scrolling:touch;background:radial-gradient(circle at 16% 16%,rgba(255,255,255,.9),rgba(255,255,255,0) 34%),radial-gradient(circle at 92% 88%,rgba(219,207,190,.28),rgba(219,207,190,0) 28%),linear-gradient(135deg,#fbfaf7 0%,#f6f1eb 100%);color:var(--ink);overflow-x:hidden;overflow-y:auto;text-rendering:geometricPrecision;font-family:"Tajawal",sans-serif}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(rgba(95,83,68,.055) 1px,transparent 1px);background-size:18px 18px;mask-image:linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,.08));z-index:0}
body.modal-open{overflow:hidden}
button,a,input{font:inherit}
button{border:0;background:transparent;color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
input{font-size:16px}
.svg-icon{width:24px;height:24px;object-fit:contain;display:block}
.page{position:relative;z-index:1;min-height:100svh}
.section{min-height:100svh;padding:100px clamp(22px,4vw,60px) 64px;display:flex;align-items:flex-start;justify-content:center}
.section-inner{width:100%;margin:auto;text-align:center}
.section-inner.narrow{max-width:560px}
.hero-logo{width:116px;height:116px;margin:0 auto 18px;border-radius:32px;display:grid;place-items:center;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.42));border:1px solid rgba(66,58,47,.12);box-shadow:0 18px 50px rgba(45,39,31,.075);overflow:hidden}
.hero-logo img{width:62px;height:62px;object-fit:contain}
.avatar-wrap{position:relative;width:174px;height:174px;margin:0 auto 22px}
.hero-logo.hero-avatar{width:174px;height:174px;margin:0;border-radius:50%;background:#fff;padding:4px;border:1px solid rgba(66,58,47,.1);box-shadow:0 18px 52px rgba(45,39,31,.1);overflow:hidden}
.hero-logo.hero-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;image-rendering:auto;filter:contrast(1.025) saturate(1.015)}
h1{margin:0;font-size:clamp(26px,2.55vw,36px);line-height:1.25;font-weight:700;letter-spacing:0;color:var(--ink)}
p{margin:0;color:var(--muted);font-size:clamp(15px,1.18vw,19px);line-height:1.85;font-weight:400}
.home-inner p{max-width:720px;margin:12px auto 0}
.ornament{width:132px;height:18px;margin:20px auto;position:relative;background:radial-gradient(circle at center,var(--gold) 0 6px,transparent 7px)}
.ornament:before,.ornament:after{content:"";position:absolute;top:50%;width:50px;height:1px;background:linear-gradient(90deg,transparent,rgba(183,161,119,.55),transparent);transform:scaleX(-1)}
.ornament:before{right:calc(50% + 13px)}
.ornament:after{left:calc(50% + 13px)}
.credentials{margin:2px auto 20px;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;color:#766f68;font-family:"Montserrat",sans-serif;font-size:12px;font-weight:600;line-height:1.8}
.credential{position:relative;padding:2px 1px;border-radius:5px;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;cursor:help;transition:color .2s ease,background .2s ease}
.credential:hover,.credential:focus-visible,.credential:focus{color:#8f7546;background:rgba(183,161,119,.1);outline:0}
.credential:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 10px);width:max-content;max-width:min(300px,80vw);padding:8px 11px;border-radius:10px;background:#302c28;color:#fff;font-family:"Montserrat",sans-serif;font-size:11px;font-weight:500;line-height:1.45;white-space:normal;text-align:center;box-shadow:0 8px 24px rgba(34,30,26,.16);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,5px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;z-index:10}
.credential:hover:after,.credential:focus:after,.credential:focus-visible:after{opacity:1;visibility:visible;transform:translate(-50%,0)}
.credential:first-child:after{left:0;transform:translate(0,5px)}
.credential:first-child:hover:after,.credential:first-child:focus:after,.credential:first-child:focus-visible:after{transform:translate(0,0)}
.credential:last-child:after{right:0;left:auto;transform:translate(0,5px)}
.credential:last-child:hover:after,.credential:last-child:focus:after,.credential:last-child:focus-visible:after{transform:translate(0,0)}
.quick-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.round-action{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.58);border:1px solid rgba(66,58,47,.11);box-shadow:0 12px 30px rgba(45,39,31,.055);transition:transform .24s cubic-bezier(.22,.72,.28,1),background .24s ease,border-color .24s ease}
.round-action:hover{transform:translateY(-3px);background:rgba(255,255,255,.84);border-color:rgba(183,161,119,.26)}
.round-action:focus-visible{outline:2px solid rgba(183,161,119,.5);outline-offset:3px}
.round-action .svg-icon{width:20px;height:20px}
.pmi-action{position:relative;cursor:pointer}
.pmi-action .svg-icon{width:29px;height:29px;filter:grayscale(1) brightness(0);opacity:.88}
.download-link{margin:26px auto 0;width:max-content;max-width:100%;height:50px;padding:0 20px;border-radius:999px;background:rgba(255,255,255,.56);border:1px solid rgba(84,76,66,.13);display:flex;align-items:center;justify-content:center;gap:10px;color:var(--ink);font-weight:600;box-shadow:0 12px 30px rgba(48,42,34,.05)}
.download-link .svg-icon{width:21px;height:21px}
@keyframes portraitReveal{
  from{opacity:0;transform:translateY(12px) scale(.965)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes detailReveal{
  from{opacity:0;transform:translateY(9px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes actionReveal{
  from{opacity:0;transform:translateY(8px) scale(.94)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.avatar-wrap{animation:portraitReveal .78s cubic-bezier(.22,.72,.24,1) both}
.home-inner>h1{animation:detailReveal .62s .12s cubic-bezier(.22,.72,.24,1) both}
.home-inner>p{animation:detailReveal .62s .2s cubic-bezier(.22,.72,.24,1) both}
.home-inner>.ornament{animation:detailReveal .58s .28s cubic-bezier(.22,.72,.24,1) both}
.home-inner>.credentials{animation:detailReveal .6s .34s cubic-bezier(.22,.72,.24,1) both}
.quick-actions .round-action{animation:actionReveal .56s cubic-bezier(.22,.72,.24,1) backwards}
.quick-actions .round-action:nth-child(1){animation-delay:.4s}
.quick-actions .round-action:nth-child(2){animation-delay:.46s}
.quick-actions .round-action:nth-child(3){animation-delay:.52s}
.quick-actions .round-action:nth-child(4){animation-delay:.58s}
.quick-actions .round-action:nth-child(5){animation-delay:.64s}
.quick-actions .round-action:nth-child(6){animation-delay:.7s}
.download-link{animation:detailReveal .6s .7s cubic-bezier(.22,.72,.24,1) both}
.share-modal{position:fixed;inset:0;z-index:50;background:rgba(31,28,24,.42);display:none;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.share-modal.active{display:flex;animation:modalIn .2s ease both}
@keyframes modalIn{from{opacity:0}to{opacity:1}}
.modal-close{position:fixed;top:22px;inset-inline-end:22px;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.88);font-size:30px;line-height:1;display:grid;place-items:center;box-shadow:0 12px 32px rgba(0,0,0,.12);z-index:55}
.share-card{width:min(430px,94vw);border-radius:32px;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.55);box-shadow:0 30px 100px rgba(0,0,0,.18);padding:28px;text-align:center}
.share-icon{width:64px;height:64px;margin:0 auto 14px;border-radius:22px;background:rgba(183,161,119,.1);display:grid;place-items:center}
.share-icon .svg-icon{width:32px;height:32px}
.share-card h2{margin:0 0 18px;font-size:26px;line-height:1.3}
.share-qr{width:190px;height:190px;margin:0 auto 18px;border-radius:18px;background:#fff;padding:10px}
.share-link-box{display:flex;align-items:center;gap:10px;border-radius:18px;background:rgba(248,245,241,.9);border:1px solid var(--line);padding:8px}
.share-link-box input{min-width:0;flex:1;border:0;background:transparent;outline:0;color:var(--muted);padding:10px}
.share-link-box button{width:44px;height:44px;border-radius:14px;background:#fff;display:grid;place-items:center;border:1px solid var(--line)}
.copy-feedback{height:24px;margin-top:12px;color:#5e533f;font-size:14px;opacity:0;transition:opacity .2s ease}
.copy-feedback.show{opacity:1}

@media (min-width:901px){
  .section{padding-inline:clamp(120px,12vw,180px)}
  .home-inner>h1{font-size:32px}
}

@media (max-width:900px){
  .section{padding:68px 20px 48px}
  .hero-logo:not(.hero-avatar){width:104px;height:104px;border-radius:29px}
  .hero-logo:not(.hero-avatar) img{width:56px;height:56px}
  .avatar-wrap{width:146px;height:146px;margin-bottom:20px}
  .hero-logo.hero-avatar{width:146px;height:146px}
  .credentials{max-width:350px;margin-bottom:18px;font-size:11px;gap:5px}
}

@media (max-width:420px){
  .section{padding-top:62px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
