/* ============================================================
   ALNATIQ · COMPONENTS  (buttons · pills · nav · mega-menu · drawer ·
   reader/player device · FAQ · footer · reusable cards)
   ============================================================ */

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-violet); color: #fff; box-shadow: var(--sh-violet-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-violet); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: var(--sh-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--violet-300); color: var(--violet-700); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); background: var(--ink-soft); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--violet-700); font-family: var(--font-display);
  transition: gap .2s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { gap: .65rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ----------  Badges / pills  ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .42rem .9rem;
  font-size: .82rem; font-weight: 600; color: var(--slate);
  box-shadow: var(--sh-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.pill .dot--live { background: #2ec27e; box-shadow: 0 0 0 0 rgba(46,194,126,.5); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(46,194,126,0); } 100% { box-shadow: 0 0 0 0 rgba(46,194,126,0); } }

.stars { color: #ffb020; letter-spacing: 2px; font-size: .95rem; }

/* ============================================================
   NAV  +  MEGA MENU
   ============================================================ */
.announce {
  background: var(--grad-violet);
  color: #fff;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1rem;
  letter-spacing: .01em;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 4px 20px rgba(21,18,31,.05); }
.nav__inner {
  width: min(100% - 2.5rem, 1240px); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-violet);
  display: grid; place-items: center;
  box-shadow: var(--sh-violet-sm);
  flex-shrink: 0;
}
.brand__mark svg { width: 21px; height: 21px; }
.brand__ar { font-family: var(--font-arabic); font-weight: 700; color: var(--violet-600); font-size: 1.15rem; margin-left: .1rem; opacity: .9; }

.nav__links { display: flex; align-items: center; gap: .35rem; margin-inline: auto; }
.nav__item { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .96rem; color: var(--ink-soft);
  transition: color .18s ease, background .18s ease;
}
.nav__btn svg { width: 15px; height: 15px; transition: transform .2s ease; opacity: .6; }
.nav__item:hover .nav__btn,
.nav__item.is-open .nav__btn { color: var(--violet-700); background: var(--lilac-100); }
.nav__item.is-open .nav__btn svg { transform: rotate(180deg); }

/* mega panel */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
  width: max-content; max-width: min(600px, 94vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1.1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 120;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(225px, 1fr)); gap: .35rem 1.1rem; }
.mega--wide .mega__grid { grid-template-columns: repeat(2, minmax(235px, 1fr)); }
.mega__col-title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-light); font-weight: 700; padding: .5rem .7rem .3rem; }
.mega__link { display: flex; gap: .8rem; padding: .65rem .7rem; border-radius: var(--r-md); transition: background .16s ease; align-items: flex-start; }
.mega__link:hover { background: var(--lilac-bg); }
.mega__ico { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--lilac-100); color: var(--violet-700); }
.mega__ico svg { width: 19px; height: 19px; }
.mega__link:hover .mega__ico { background: var(--grad-violet); color: #fff; }
.mega__t { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: .94rem; color: var(--ink); line-height: 1.3; }
.mega__d { display: block; font-size: .82rem; color: var(--slate); line-height: 1.4; margin-top: .1rem; }
.mega__foot { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mega__promo { background: var(--grad-ink); color: #fff; border-radius: var(--r-md); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .9rem; font-size: .88rem; }
.mega__promo strong { font-family: var(--font-display); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__signin { padding: .55rem .8rem; font-weight: 600; font-size: .96rem; border-radius: var(--r-sm); }
.nav__signin:hover { color: var(--violet-700); }

/* burger */
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.is-mobile-open .burger span { background: transparent; }
.nav.is-mobile-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-mobile-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 90;
  background: var(--paper);
  padding: 1.5rem 1.25rem 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: .25rem;
}
.nav.is-mobile-open .drawer { transform: translateX(0); }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem .4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.drawer__head svg { width: 18px; height: 18px; transition: transform .2s; opacity: .5; }
.drawer__group.is-open .drawer__head svg { transform: rotate(180deg); }
.drawer__panel { display: none; padding: 0 .4rem 1rem; flex-direction: column; gap: .1rem; }
.drawer__group.is-open .drawer__panel { display: flex; }
.drawer__panel a { padding: .6rem .2rem; color: var(--slate); font-weight: 500; }
.drawer__cta { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }

/* ============================================================
   DEVICE MOCKUP  (the signature element)
   ============================================================ */
.device {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.hero__device { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: center; }
.device__bar { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: linear-gradient(var(--paper), var(--white)); }
.device__dots { display: flex; gap: 6px; }
.device__dots i { width: 11px; height: 11px; border-radius: 50%; }
.device__dots i:nth-child(1){ background:#ff5f57; } .device__dots i:nth-child(2){ background:#febc2e; } .device__dots i:nth-child(3){ background:#28c840; }
.device__url { margin-left: .6rem; flex: 1; background: var(--lilac-bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .3rem .9rem; font-size: .78rem; color: var(--slate); display: flex; align-items: center; gap: .4rem; }
.device__url svg { width: 12px; height: 12px; color: #2ec27e; }
.device__body { padding: 1.4rem 1.5rem 1.6rem; }

/* document reader */
.reader__doc-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.reader__doc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--lilac-100); color: var(--violet-700); display: grid; place-items: center; flex-shrink: 0; }
.reader__doc-ico svg { width: 17px; height: 17px; }
.reader__doc-title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.2; }
.reader__doc-meta { font-size: .76rem; color: var(--slate-light); }

.reader__text { font-size: 1.02rem; line-height: 1.85; color: #3a3550; font-family: var(--font-body); }
.reader__text .w { border-radius: 5px; padding: 0 .5px; transition: background .12s ease, color .12s ease; }
.reader__text .w.is-read { color: var(--slate-light); }
.reader__text .w.is-active { background: var(--violet); color: #fff; box-shadow: 0 2px 8px rgba(124,92,255,.4); }
.reader__text .sentence.is-current { background: var(--lilac-100); border-radius: 7px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* player bar */
.player {
  margin-top: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: .85rem 1rem;
  display: flex; align-items: center; gap: .9rem;
}
.player__play {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad-violet); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: var(--sh-violet-sm);
  transition: transform .15s ease;
}
.player__play:hover { transform: scale(1.06); }
.player__play:active { transform: scale(.96); }
.player__play svg { width: 20px; height: 20px; }
.player__play .ico-pause { display: none; }
.player.is-playing .player__play .ico-play { display: none; }
.player.is-playing .player__play .ico-pause { display: block; }
.player__mid { flex: 1; min-width: 0; }
.player__voice { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .45rem; }
.player__voicename { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; }
.player__voicename .av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-violet-soft); display: grid; place-items: center; color: #fff; font-size: .64rem; font-weight: 700; }
.player__time { font-size: .76rem; color: var(--slate-light); font-variant-numeric: tabular-nums; }
.player__track { height: 6px; background: var(--lilac-200); border-radius: var(--r-pill); position: relative; cursor: pointer; }
.player__fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--grad-violet); border-radius: var(--r-pill); transition: width .1s linear; }
.player__fill::after { content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2.5px solid var(--violet); box-shadow: var(--sh-sm); }
.player__speed { flex-shrink: 0; display: inline-flex; align-items: center; gap: .3rem; background: var(--lilac-bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .3rem; }
.player__speed button { font-size: .74rem; font-weight: 700; padding: .25rem .5rem; border-radius: var(--r-pill); color: var(--slate); transition: .15s; font-family: var(--font-display); }
.player__speed button.is-on { background: var(--violet); color: #fff; }

/* floating chips on hero device */
.device__chip {
  position: absolute; z-index: 3;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: .6rem .8rem; display: flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600;
}
.device__chip .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.device__chip small { display: block; font-weight: 500; color: var(--slate-light); font-size: .72rem; }
.chip--lang { top: 16%; left: -7%; animation: floaty 5s ease-in-out infinite; }
.chip--lang .ic { background: #eafff4; color: #16a96a; }
.chip--speed { bottom: 14%; right: -6%; animation: floaty 5.6s ease-in-out infinite .6s; }
.chip--speed .ic { background: var(--lilac-100); color: var(--violet-700); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }


/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 3rem auto 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem .3rem; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--lilac-100); color: var(--violet-700); display: grid; place-items: center; flex-shrink: 0; transition: .25s; }
.faq__icon svg { width: 16px; height: 16px; transition: transform .25s; }
.faq__item.is-open .faq__icon { background: var(--grad-violet); color: #fff; }
.faq__item.is-open .faq__icon svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 .3rem 1.4rem; color: var(--slate); line-height: 1.65; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #b3aacb; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem 1.5rem; }
.footer__brand .brand { color: #fff; margin-bottom: 1rem; }
.footer__brand p { font-size: .9rem; line-height: 1.6; max-width: 280px; color: #9890b5; }
.footer__ar { font-family: var(--font-arabic); margin-top: .9rem; color: var(--violet-300); font-size: 1rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cfc8e6; transition: .2s; }
.footer__social a:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__col h4 { font-family: var(--font-display); color: #fff; font-size: .92rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: .01em; }
.footer__col a { display: block; padding: .35rem 0; font-size: .89rem; color: #9890b5; transition: color .18s; }
.footer__col a:hover { color: #fff; }
.footer__bar { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; font-size: .82rem; color: #837aa0; }
.footer__bar .links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__bar a:hover { color: #fff; }
.footer__disclaimer { width: 100%; margin-top: 1rem; font-size: .76rem; color: #6a6388; line-height: 1.5; }



/* ---- brand logo images (replaces the old SVG soundwave + text mark) ---- */
.brand__logo { height: 52px; width: auto; display: block; }
.brand__logo--footer { height: 46px; }
@media (max-width: 620px) { .brand__logo { height: 44px; } }
