* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:   #16120e;
  --bg2:  #1d1814;
  --bg3:  #262019;
  --ln:   #2c251e;
  --tx:   #efe8db;
  --tx2:  #9a9083;
  --tx3:  #5f574c;
  --ac:   #d4a056;
  --ac2:  #e8c189;
  --ok:   #23c55e;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', sans-serif;
  background:
    radial-gradient(900px 480px at 18% -8%, rgba(212,160,86,.055), transparent 62%),
    var(--bg);
  color: var(--tx);
  line-height: 1.8;
}
::selection { background: rgba(212,160,86,.32); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }
header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  background: rgba(22,18,14,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,160,86,.08);
}
.top { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-block; object-fit: contain; flex-shrink: 0;
}
.brand { font-weight: 900; font-size: 17px; }
.ver {
  font-size: 11px; color: var(--tx3); margin-top: 3px;
  direction: ltr; font-variant-numeric: tabular-nums;
}
.top-dl {
  margin-inline-start: auto; font-size: 12.5px; color: var(--tx2);
  border: 1px solid var(--ln); border-radius: 99px; padding: 6px 16px;
  transition: border-color .15s, color .15s;
}
.top-dl:hover { color: var(--ac2); border-color: rgba(212,160,86,.45); }
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: center; padding: 76px 0 68px;
}
.hero::before {
  content: ''; position: absolute; pointer-events: none;
  inset-inline-end: -6%; top: 6%;
  width: 56%; height: 88%;
  background: radial-gradient(closest-side, rgba(212,160,86,.10), transparent 72%);
  filter: blur(8px);
}
h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.35; margin-bottom: 18px; }
h1 em { font-style: normal; color: var(--ac); }
.lede { color: var(--tx2); font-size: 15.5px; margin-bottom: 30px; max-width: 44ch; }
.lede b { color: var(--tx); font-weight: 700; }
.dl-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #2ed368, #1da34d);
  color: #06200f;
  font-weight: 900; font-size: 15px;
  padding: 13px 30px; border-radius: 11px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 12px 32px -12px rgba(35,197,94,.5);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.dl:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 16px 38px -12px rgba(35,197,94,.6);
}
.dl-note { font-size: 11.5px; color: var(--tx3); line-height: 1.6; }
.app {
  position: relative; z-index: 1;
  border: 1px solid rgba(212,160,86,.14); border-radius: 13px; overflow: hidden;
  background: var(--bg2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(0,0,0,.4),
    0 44px 90px -38px rgba(0,0,0,.85);
  font-size: 11px; direction: ltr; text-align: left; user-select: none;
}
.app-bar { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-bottom: 1px solid var(--ln); background: #14100c; }
.app-bar .mark { width: 16px; height: 16px; border-radius: 4px; }
.app-bar b { font-size: 10.5px; }
.app-bar .win { margin-left: auto; display: flex; gap: 10px; color: var(--tx3); font-size: 10px; }
.app-cols { display: flex; min-height: 270px; }
.app-side { width: 118px; border-inline-end: 1px solid var(--ln); padding: 8px 6px; display: flex; flex-direction: column; gap: 2px; background: #1a1511; }
.nav-i { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 6px; color: var(--tx2); }
.nav-i.on { background: rgba(212,160,86,.1); color: var(--ac2); font-weight: 700; }
.nav-n { margin-left: auto; background: rgba(212,160,86,.18); color: var(--ac2); border-radius: 99px; font-size: 8.5px; padding: 0 5px; }
.side-h { font-size: 8px; letter-spacing: .12em; color: var(--tx3); margin: 10px 7px 3px; }
.fr { display: flex; align-items: center; gap: 6px; padding: 4px 7px; color: var(--tx2); }
.fr-av { width: 16px; height: 16px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 900; color: #241404; flex-shrink: 0; position: relative; }
.fr-dot { position: absolute; right: -2px; bottom: -2px; width: 6px; height: 6px; border-radius: 50%; border: 2px solid #1a1511; }
.app-main { flex: 1; padding: 9px 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.room-h { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--ln); border-radius: 9px; background: var(--bg3); }
.room-h b { font-size: 11px; }
.live { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 900; color: var(--ok); letter-spacing: .08em; }
.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); animation: blink 1.6s ease infinite; }
@keyframes blink { 50% { opacity: .35; } }
.room-meta { color: var(--tx3); font-size: 9px; }
.room-btns { margin-left: auto; display: flex; gap: 4px; }
.rb { border: 1px solid var(--ln); border-radius: 6px; padding: 3px 8px; color: var(--tx2); font-size: 9px; }
.rb.red { color: #e06a5a; border-color: rgba(224,106,90,.3); }
.split { display: flex; gap: 8px; flex: 1; min-height: 0; }
.members { flex: 1; border: 1px solid var(--ln); border-radius: 9px; background: var(--bg3); padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.m-h { font-size: 8px; letter-spacing: .12em; color: var(--tx3); margin-bottom: 2px; }
.mr { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 7px; background: rgba(255,255,255,.02); }
.mr-av { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 9px; color: #241404; flex-shrink: 0; }
.mr-av.ring { box-shadow: 0 0 0 2px var(--bg3), 0 0 0 3.5px var(--ok); }
.mr b { font-size: 10px; }
.tag { font-size: 7.5px; font-weight: 900; padding: 1px 5px; border-radius: 99px; }
.tag.own { background: rgba(212,160,86,.16); color: var(--ac2); }
.tag.spec { background: rgba(255,255,255,.06); color: var(--tx2); }
.mr-ic { margin-left: auto; color: var(--tx3); font-size: 9px; letter-spacing: 2px; }
.mr.dim { opacity: .55; }
.chatcol { width: 158px; border: 1px solid var(--ln); border-radius: 9px; background: var(--bg3); display: flex; flex-direction: column; }
.c-h { font-size: 8px; letter-spacing: .12em; color: var(--tx3); padding: 6px 8px 4px; border-bottom: 1px solid var(--ln); }
.c-body { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 5px; justify-content: flex-end; }
.bub { max-width: 86%; padding: 4px 8px; border-radius: 9px; font-size: 9.5px; line-height: 1.6; }
.bub.them { background: #322a22; border-bottom-left-radius: 3px; direction: rtl; text-align: right; }
.bub.them .who { display: block; color: var(--ac2); font-weight: 700; font-size: 8.5px; }
.bub.me { background: var(--ac); color: #241404; align-self: flex-end; border-bottom-right-radius: 3px; direction: rtl; text-align: right; font-weight: 500; }
.c-in { display: flex; gap: 4px; padding: 5px; border-top: 1px solid var(--ln); }
.c-in i { flex: 1; border: 1px solid var(--ln); border-radius: 99px; padding: 3px 8px; color: var(--tx3); font-style: normal; font-size: 8.5px; direction: rtl; }
.c-in b { background: var(--tx); color: var(--bg); border-radius: 99px; padding: 3px 9px; font-size: 8.5px; }
.sec { padding: 30px 0 10px; }
.sec-t { font-size: 21px; font-weight: 900; margin-bottom: 28px; }
.sec-t::after {
  content: ''; display: block; width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--ac), transparent);
  margin-top: 10px; border-radius: 2px;
}
.sec-s { color: var(--tx3); font-size: 13px; margin-bottom: 26px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 44px; padding-bottom: 30px; counter-reset: pt; }
.pt {
  counter-increment: pt;
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--ln);
  font-size: 14px; color: var(--tx2);
}
.pt::before {
  content: counter(pt, decimal-leading-zero);
  direction: ltr;
  flex-shrink: 0;
  font-size: 11px; font-weight: 900;
  color: var(--ac);
  opacity: .85;
  font-variant-numeric: tabular-nums;
}
.pt b { color: var(--tx); font-weight: 700; }
.pt .ltr { direction: ltr; unicode-bidi: embed; }
.end { padding: 56px 0 20px; }
.end-card {
  position: relative;
  border: 1px solid transparent; border-radius: 16px;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(135deg, rgba(212,160,86,.45), rgba(212,160,86,.05) 55%) border-box;
  padding: 32px 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  box-shadow: 0 28px 60px -34px rgba(0,0,0,.8);
}
.end-card h2 { font-size: 19px; font-weight: 900; }
.end-card p { color: var(--tx2); font-size: 13px; }
.end-card .dl { margin-inline-start: auto; }
footer {
  margin-top: 44px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(212,160,86,.25), transparent) 1;
  background: #131009;
  padding: 40px 0 24px;
  font-size: 12.5px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
}
.ft-brand { display: flex; gap: 12px; align-items: flex-start; }
.ft-brand b { font-size: 14.5px; font-weight: 900; }
.ft-brand p { color: var(--tx3); font-size: 12px; margin-top: 2px; }
.ft-col { display: flex; flex-direction: column; gap: 8px; }
.ft-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--ac); opacity: .8; margin-bottom: 2px;
}
.ft-col a { color: var(--tx2); transition: color .15s; width: fit-content; }
.ft-col a:hover { color: var(--ac2); }
.ft-mut { color: var(--tx3); font-size: 11.5px; }
.ft-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--ln);
  color: var(--tx3); font-size: 11.5px;
}
@media (max-width: 680px) { .ft-grid { grid-template-columns: 1fr; gap: 22px; } }
.inv {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; font-size: 13px; text-align: center;
  background: rgba(212,160,86,.08); border-bottom: 1px solid rgba(212,160,86,.2);
}
.inv code {
  font-weight: 900; letter-spacing: .1em; direction: ltr;
  background: rgba(212,160,86,.13); border: 1px solid rgba(212,160,86,.3);
  border-radius: 6px; padding: 1px 9px; color: var(--ac2);
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 40px; }
  .points { grid-template-columns: 1fr; }
  .app { font-size: 10px; }
  .chatcol { display: none; }
}
.mr-av { transition: box-shadow .35s ease; }
.talk-1 { animation: talk 9s ease infinite; }
.talk-2 { animation: talk 9s ease infinite 3s; }
.talk-3 { animation: talk 9s ease infinite 6s; }
@keyframes talk {
  0%, 26% { box-shadow: 0 0 0 2px var(--bg3), 0 0 0 3.5px var(--ok); }
  32%, 100% { box-shadow: 0 0 0 0 transparent; }
}
.mr-ic.hand { animation: wave 1.8s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-16deg); }
  60% { transform: rotate(12deg); }
}
.bub { animation: bubin .28s ease; }
@keyframes bubin {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
.bub.typing { display: inline-flex; gap: 3px; align-items: center; min-height: 18px; }
.bub.typing span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--tx2); display: inline-block;
  animation: tdots 1.1s ease infinite;
}
.bub.typing span:nth-child(2) { animation-delay: .18s; }
.bub.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes tdots {
  0%, 60%, 100% { opacity: .35; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .talk-1, .talk-2, .talk-3, .mr-ic.hand, .bub { animation: none; }
}
