/* Public website */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 32px; }
.wrap.narrow { max-width: 820px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
main { min-height: 70vh; }

/* type */
.display { font-family: var(--font-d), var(--font-lt), sans-serif; font-weight: 800; font-size: clamp(46px, 9.2vw, 156px); line-height: .95; letter-spacing: -.045em; margin: 0 0 .3em; }
.display.sm { font-size: clamp(38px, 6.4vw, 96px); line-height: 1; }
html[lang="fa"] .display { font-family: var(--font-fa), sans-serif; font-weight: 900; letter-spacing: -.01em; line-height: 1.18; }
.h2 { font-family: var(--font-d), var(--font-lt), sans-serif; font-size: clamp(30px, 4.2vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 750; letter-spacing: -.02em; }
html[lang="fa"] .h2 { font-family: var(--font-fa), sans-serif; font-weight: 900; letter-spacing: 0; line-height: 1.35; }
html[lang="fa"] .h3 { letter-spacing: 0; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
html[lang="fa"] .kicker { letter-spacing: 0; font-size: 14px; }
.lead { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.7; color: var(--fg2); max-width: 62ch; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; overflow: hidden; }
.brand-mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); transform: translate(6px, -6px); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 550; font-size: 14.5px; color: var(--fg2); transition: background .2s, color .2s; }
.nav a:hover { color: var(--fg); background: var(--bg2); }
.nav a.on { color: var(--fg); background: var(--bg2); }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }
.mnav { position: fixed; inset: 0; z-index: 49; background: var(--bg); padding: 100px 24px 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mnav-in { display: grid; gap: 6px; }
.mnav a { font-size: 40px; font-weight: 800; letter-spacing: -.03em; transform: translateY(14px); opacity: 0; transition: .35s calc(var(--i) * 50ms); }
.mnav a.accent { color: var(--accent); }
.mnav .langs { margin-top: 24px; justify-self: start; }
body.menu-open { overflow: hidden; }
body.menu-open .mnav { opacity: 1; pointer-events: auto; }
body.menu-open .mnav a { transform: none; opacity: 1; }
@media (max-width: 900px) {
  .nav, .hdr-tools .langs, .hide-sm { display: none; }
  .burger { display: inline-grid; }
  .hdr-tools { margin-inline-start: auto; }
}

/* hero */
.hero { position: relative; padding: clamp(60px, 10vw, 140px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.orbs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { width: 46vw; height: 46vw; background: var(--accent); top: -18vw; inset-inline-end: -12vw; opacity: .35; }
.orbs i:nth-child(2) { width: 30vw; height: 30vw; background: #7c5cff; bottom: -14vw; inset-inline-start: 10vw; opacity: .22; animation-duration: 24s; }
.orbs i:nth-child(3) { width: 22vw; height: 22vw; background: #00c2a8; top: 30%; inset-inline-start: -8vw; opacity: .18; animation-duration: 30s; }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.12); } }
.rot { display: inline-grid; vertical-align: bottom; color: var(--accent); }
.rot > span { grid-area: 1/1; opacity: 0; transform: translateY(.35em); transition: opacity .45s, transform .45s; white-space: nowrap; }
.rot > span.on { opacity: 1; transform: none; }
.hero .display { max-width: 15ch; }
html[lang="fa"] .hero .display { max-width: 13ch; }
.hero-foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-top: 26px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .hero-foot { grid-template-columns: 1fr; } .hero-cta { justify-content: flex-start; } }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; white-space: nowrap; }
.mq { display: inline-flex; gap: 28px; align-items: center; animation: mq 60s linear infinite; font-size: clamp(18px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.mq i { color: var(--accent); font-style: normal; font-size: .7em; }
html[dir="rtl"] .mq { animation-name: mq-rtl; }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes mq-rtl { to { transform: translateX(50%); } }
.marquee:hover .mq { animation-play-state: paused; }

/* sections */
.sec { padding: clamp(64px, 9vw, 130px) 0; }
.sec.tight { padding: clamp(28px, 4vw, 56px) 0; }
.sec.inv { background: var(--inv-bg); color: var(--inv-fg); }
.sec.inv .muted, .sec.inv p { color: color-mix(in srgb, var(--inv-fg) 70%, transparent); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(20px, 3vw, 40px); }
.page-hero .back { margin-bottom: 26px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* work */
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.wgrid.feat .wcard.big { grid-column: 1 / -1; }
.wgrid.feat .wcard.big .wcover { aspect-ratio: 21/9; }
@media (max-width: 760px) { .wgrid { grid-template-columns: 1fr; } .wgrid.feat .wcard.big .wcover { aspect-ratio: 4/3; } }
.wcard { display: grid; gap: 14px; }
.wcover { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg2); isolation: isolate; }
.wcover > img, .wcover > video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.wcard:hover .wcover > img, .wcard:hover .wcover > video, .wcard:hover .gen-cover span { transform: scale(1.04); }
.wcover .kind { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; }
.gen-cover { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); color: #fff; overflow: hidden; }
.gen-cover span { font-family: var(--font-d), var(--font-lt), sans-serif; font-size: clamp(30px, 5vw, 72px); font-weight: 800; letter-spacing: -.04em; text-align: center; padding: 20px; transition: transform 1s cubic-bezier(.2,.7,.2,1); text-shadow: 0 8px 30px rgba(0,0,0,.25); }
.live-thumb { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.live-thumb iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.wgrid.feat .big .live-thumb iframe { width: 250%; height: 250%; transform: scale(.4); }
.wmeta { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.wmeta h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 750; margin: 0 0 2px; letter-spacing: -.015em; }
.wmeta p { margin: 0; font-size: 14px; }
.go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); flex: none; transition: background .2s, color .2s, transform .3s; }
.wcard:hover .go, .svc:hover .go { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: rotate(-8deg); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 34px; }
.filters .sep { width: 1px; height: 24px; background: var(--line2); margin: 0 6px; }
.pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.pill.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* capabilities */
.caps { border-top: 1px solid var(--line2); }
.cap { border-bottom: 1px solid var(--line2); }
.cap summary { list-style: none; display: grid; grid-template-columns: 60px 1.1fr 1fr 44px; gap: 20px; align-items: center; padding: 28px 0; cursor: pointer; }
.cap summary::-webkit-details-marker { display: none; }
.cn { font-family: var(--font-lt), monospace; font-weight: 600; color: var(--muted); font-size: 14px; }
.ct { font-size: clamp(22px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; transition: color .2s; }
html[lang="fa"] .ct { letter-spacing: 0; }
.cap summary:hover .ct { color: var(--accent); }
.cs { font-size: 15px; }
.cx { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); transition: transform .3s, background .2s; }
.cap[open] .cx { transform: rotate(45deg); background: var(--fg); color: var(--bg); }
.cap-body { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 30px; padding-inline-start: 80px; }
@media (max-width: 760px) { .cap summary { grid-template-columns: 34px 1fr 40px; } .cs { display: none; } .cap-body { padding-inline-start: 0; } }

/* process & stats */
.process { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: color-mix(in srgb, var(--inv-fg) 18%, transparent); border-radius: var(--radius); overflow: hidden; }
.process li { background: var(--inv-bg); padding: 28px 22px; }
.pn { font-family: var(--font-lt), monospace; color: var(--accent); font-weight: 700; display: block; margin-bottom: 30px; }
.process h3 { font-size: 22px; font-weight: 750; }
.process p { font-size: 14px; margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 80px); }
.stats div { border-top: 1px solid currentColor; padding-top: 16px; display: grid; }
.stats b { font-family: var(--font-d), var(--font-lt), sans-serif; font-size: clamp(42px, 6vw, 90px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stats span { opacity: .75; margin-top: 6px; }
.stats.light div { border-color: var(--line2); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.about-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
@media (max-width: 860px) { .about-teaser { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, 1fr); } }
.tm-ph { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #fff), var(--c)); display: grid; place-items: center; margin-bottom: 12px; }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .4s, transform .6s; }
.tm:hover .tm-ph img { filter: none; transform: scale(1.04); }
.tm-ph span { font-size: 54px; font-weight: 800; color: #fff; opacity: .9; }
.tm h3 { font-size: 17px; margin: 0; } .tm p { font-size: 13.5px; margin: 0; }
.logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; opacity: .75; }
.logos img { height: 34px; width: auto; filter: grayscale(1); }
.logos span { font-size: 22px; font-weight: 800; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.quote { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.quote .ic { color: var(--accent); }
.quote blockquote { margin: 14px 0 18px; font-size: 18px; line-height: 1.6; }
.quote figcaption { display: grid; font-size: 14px; }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 650; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { transition: transform .3s; } .faq details[open] summary span { transform: rotate(45deg); }
.faq p { color: var(--fg2); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* services */
.svc-cat { padding: 40px 0; border-top: 1px solid var(--line2); }
.svc-cat-h { display: grid; grid-template-columns: 60px 1fr; gap: 20px; margin-bottom: 26px; }
.svc-cat-h h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
html[lang="fa"] .svc-cat-h h2 { letter-spacing: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-inline-start: 80px; }
@media (max-width: 760px) { .svc-grid { padding-inline-start: 0; } .svc-cat-h { grid-template-columns: 1fr; gap: 4px; } }
.svc { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc h3 { font-size: 18px; margin: 0; padding-inline-end: 48px; }
.svc p { color: var(--fg2); font-size: 14px; margin: 0; }
.svc ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--fg2); }
.svc .go { position: absolute; top: 18px; inset-inline-end: 18px; width: 36px; height: 36px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 17px; }
.ticks .ic { color: var(--accent); }

/* case study */
.case-hero { border-bottom: 1px solid var(--line); }
.case-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 48px; margin: 10px 0 28px; }
.case-meta dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
html[lang="fa"] .case-meta dt { letter-spacing: 0; }
.case-meta dd { margin: 4px 0 0; font-weight: 600; }
.case-meta dd a:hover { color: var(--accent); }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.device-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.device { margin-inline: auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: var(--card); box-shadow: var(--shadow); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.device.desk { width: 100%; } .device.mob { width: 390px; max-width: 100%; border-radius: 34px; border-width: 10px; border-color: #111; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.device-bar span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device.mob .device-bar { display: none; }
.device iframe { display: block; width: 100%; height: min(78vh, 820px); border: 0; background: #fff; }
.case-cover { width: 100%; border-radius: var(--radius); }
.cs { display: grid; gap: 0; }
.cs-row { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding: 34px 0; border-top: 1px solid var(--line); }
.cs-row h3 { font-size: 22px; }
.cs-row p { font-size: 18px; color: var(--fg2); margin: 0; }
@media (max-width: 760px) { .cs-row { grid-template-columns: 1fr; gap: 6px; } }
.vids { display: grid; gap: 24px; }
.vids figure { margin: 0; } .vids video { width: 100%; border-radius: var(--radius); background: #000; }
.vids .embed { border-radius: var(--radius); overflow: hidden; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gi { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: none; break-inside: avoid; cursor: zoom-in; }
.gi img { width: 100%; transition: transform .6s; } .gi:hover img { transform: scale(1.03); }
.lb { position: relative; display: grid; place-items: center; background: #000; min-height: 50vh; }
.lb img { max-height: 86vh; width: auto; }
.lb .icon-btn { position: absolute; top: 50%; color: #fff; border-color: rgba(255,255,255,.3); background: rgba(0,0,0,.4); }
.lb-p { inset-inline-start: 14px; } .lb-n { inset-inline-end: 14px; transform: scaleX(-1); }
html[dir="rtl"] .lb-p { transform: scaleX(-1); } html[dir="rtl"] .lb-n { transform: none; }
.next-case { display: block; padding: clamp(60px, 9vw, 120px) 0; background: var(--inv-bg); color: var(--inv-fg); }
.next-case .display { display: flex; align-items: center; gap: .3em; margin: 0; transition: color .3s; }
.next-case:hover .display { color: var(--accent); }

/* contact / track / wizard */
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.ccard > div { display: grid; flex: 1; } .ccard > .ic:first-child { color: var(--accent); }
a.ccard:hover { border-color: var(--fg); }
.track-res { margin-top: 16px; display: grid; gap: 8px; }
.reply { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; }
.reply p { margin: 2px 0 0; }
.badge.st-new, .badge.st-open { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.badge.st-won, .badge.st-answered { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge.st-lost, .badge.st-closed { background: var(--bg2); color: var(--muted); }
.wiz-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wiz-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line2); }
.wiz-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg2); font-size: 12px; }
.wiz-steps li.on { color: var(--fg); border-color: var(--fg); } .wiz-steps li.on span { background: var(--fg); color: var(--bg); }
.wiz-steps li.done { color: var(--fg); border-color: var(--accent); } .wiz-steps li.done span { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .wiz-steps li { font-size: 0; } .wiz-steps li span { font-size: 12px; } }
.svc-pick { border: 0; padding: 0; margin: 0 0 6px; } .svc-pick legend { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.lbl { font-size: 13px; font-weight: 600; color: var(--fg2); margin-bottom: -8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex !important; cursor: pointer; } .opt input { display: none; }
.opt span { padding: 9px 15px; border-radius: 12px; border: 1px solid var(--line2); font-weight: 500; font-size: 14px; color: var(--fg); transition: .2s; }
.opt input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 8px; }
.review { display: grid; gap: 0; margin: 0; } .review div { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review dt { color: var(--muted); font-size: 13px; } .review dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 560px) { .review div { grid-template-columns: 1fr; gap: 2px; } }

/* footer */
.ftr { background: var(--inv-bg); color: var(--inv-fg); padding: clamp(60px, 9vw, 120px) 0 30px; margin-top: 40px; }
.ftr .muted { color: color-mix(in srgb, var(--inv-fg) 55%, transparent); }
.ftr-cta { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid color-mix(in srgb, var(--inv-fg) 18%, transparent); }
.ftr-cta h2 { font-family: var(--font-d), var(--font-lt), sans-serif; font-size: clamp(36px, 6vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 14ch; margin: 0; }
html[lang="fa"] .ftr-cta h2 { font-family: var(--font-fa); font-weight: 900; letter-spacing: 0; line-height: 1.3; }
.ftr-cta .btn { background: var(--accent); color: var(--accent-ink); }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding: 50px 0; }
.ftr-grid > div { display: grid; align-content: start; gap: 8px; }
.ftr-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--inv-fg) 55%, transparent); margin-bottom: 6px; }
.ftr-grid a:hover { color: var(--accent); }
.ftr .brand-mark::after { background: var(--inv-bg); }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--inv-fg) 18%, transparent); }
.ftr .langs { border-color: color-mix(in srgb, var(--inv-fg) 25%, transparent); }
.ftr .langs button.on { background: var(--inv-fg); color: var(--inv-bg); }

/* chat widget */
#chatRoot { position: fixed; z-index: 90; bottom: 20px; inset-inline-end: 20px; }
.chat-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .dot { position: absolute; top: 4px; inset-inline-end: 4px; width: 14px; height: 14px; border-radius: 50%; background: #9a9a9a; border: 3px solid var(--bg); }
.chat-fab .dot.on { background: #22c55e; }
.badge-n { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.chat-box { position: absolute; bottom: 74px; inset-inline-end: 0; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.4); overflow: hidden; animation: pop .2s; }
.chat-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--fg); color: var(--bg); }
.chat-h > div { display: grid; } .chat-h .st { font-size: 12px; opacity: .8; display: flex; align-items: center; gap: 6px; }
.chat-h .st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; } .chat-h .st.on::before { background: #22c55e; }
.chat-h .icon-btn { color: var(--bg); border-color: transparent; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: 85%; align-self: flex-start; background: var(--card); border: 1px solid var(--line); padding: 9px 13px; border-radius: 16px; border-start-start-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--fg); color: var(--bg); border-color: transparent; border-radius: 16px; border-start-end-radius: 4px; }
.msg.bot { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.msg p { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; } .msg time { font-size: 10.5px; opacity: .6; }
.sys { text-align: center; font-size: 12px; color: var(--muted); padding: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-foot { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat-foot input, .chat-foot textarea { min-height: 40px !important; padding: 8px 12px !important; font-size: 14px !important; }
.chat-start, .chat-ticket { display: grid; gap: 8px; }
.chat-in { display: flex; gap: 8px; align-items: end; } .chat-in textarea { flex: 1; max-height: 120px; }
.chat-foot .link { justify-self: center; color: var(--muted); }
p.sm { font-size: 13px; margin: 0; }
@media (max-width: 520px) { body.chat-open #chatRoot { inset: 0; } body.chat-open .chat-fab { display: none; } .chat-box { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; } }
