/* ════════════════════════════════════════════════════════════════
   مشترکِ همه‌ی صفحه‌ها (ساخته‌ی core.js): منوی بزرگ، پانویس، تماسِ شناور، نوارِ پیشرفت، گذارِ صفحه
   پس از site.css بار می‌شود.
   ════════════════════════════════════════════════════════════════ */
[hidden] { display: none !important; }
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vtOut .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px) scale(.995); filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

.skip { position: fixed; top: -60px; right: 16px; z-index: 120; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; transition: top .3s; }
.skip:focus { top: 12px; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--brand); transform-origin: right; transform: scaleX(0); box-shadow: 0 0 12px rgba(27,191,253,.6); }

.nav.scrolled { box-shadow: 0 16px 40px -18px rgba(3, 23, 61, .35); }
.nav-links { align-items: center; }
.dd { position: static; }
.dd-btn { cursor: pointer; color: inherit; font-family: inherit; }
.dd-chev { font-size: .7rem; transition: transform .4s var(--ease); }
.dd.open .dd-chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: min(980px, calc(100vw - 32px));
  padding: 18px; border-radius: 26px; color: #03173D; --ink: #03173D; --ink-2: #1f3358; --muted: #586887; --line: rgba(3, 23, 61, .10);
  background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 40px 90px -30px rgba(3,23,61,.45), 0 0 0 1px rgba(3,23,61,.04);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px) scale(.98); transform-origin: top center;
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .3s;
}
.mega::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; } /* پلِ موس تا منو */
.dd.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.mega-product { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.mega-sm { width: min(440px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 10px; }
.mm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mm-mod, .mm-row {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; overflow: hidden; isolation: isolate;
  transition: background .3s, transform .3s var(--ease);
  opacity: 0; transform: translateY(6px);
}
.dd.open .mm-mod, .dd.open .mm-row { opacity: 1; transform: none; transition: background .3s, transform .5s var(--ease), opacity .5s var(--ease); }
.dd.open .mm-grid > :nth-child(2), .dd.open .mega-sm > :nth-child(2) { transition-delay: .03s; }
.dd.open .mm-grid > :nth-child(3), .dd.open .mega-sm > :nth-child(3) { transition-delay: .06s; }
.dd.open .mm-grid > :nth-child(4), .dd.open .mega-sm > :nth-child(4) { transition-delay: .09s; }
.dd.open .mm-grid > :nth-child(5), .dd.open .mega-sm > :nth-child(5) { transition-delay: .12s; }
.dd.open .mm-grid > :nth-child(6) { transition-delay: .15s; }
.dd.open .mm-grid > :nth-child(7) { transition-delay: .18s; }
.mm-mod:hover, .mm-row:hover { background: color-mix(in oklab, var(--c) 9%, white); }
.mm-mod > i, .mm-row > i { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem;
  color: #fff; background: linear-gradient(135deg, color-mix(in oklab, var(--c) 80%, white), var(--c)); box-shadow: 0 10px 20px -10px var(--c);
  transition: transform .4s var(--ease); }
.mm-mod:hover > i, .mm-row:hover > i { transform: rotate(-8deg) scale(1.08); }
.mm-mod b, .mm-row b { display: block; font-size: .95rem; line-height: 1.5; }
.mm-mod small, .mm-row small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.mm-feature {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 20px; border-radius: 20px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #a855f7 0%, transparent 60%), radial-gradient(100% 80% at 0% 100%, #1BBFFD 0%, transparent 60%), linear-gradient(160deg, #1d1450, #03173D);
  min-height: 220px; grid-row: span 2; transition: transform .5s var(--ease);
}
.mm-feature:hover { transform: translateY(-3px); }
.mm-feature b { font-size: 1.3rem; }
.mm-feature small { color: rgba(255,255,255,.75); line-height: 1.8; }
.mm-feature em { font-style: normal; font-weight: 800; font-size: .86rem; margin-top: 8px; color: #8ff0ff; }
.mm-avatars { position: absolute; top: 18px; right: 18px; display: flex; }
.mm-avatars i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 1.2rem;
  background: linear-gradient(135deg, #1BBFFD, #0194F9); border: 3px solid #1d1450; animation: floaty 4s ease-in-out infinite; }
.mm-avatars i + i { margin-inline-start: -12px; background: linear-gradient(135deg, #0ECD9E, #047857); animation-delay: -2s; }
@keyframes floaty { 50% { transform: translateY(-5px); } }
.mm-foot { grid-column: 1; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.mm-foot a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--ink-2); transition: background .3s; }
.mm-foot a:hover { background: rgba(1,148,249,.08); }
.mm-foot i { color: var(--blue); }

/* نورِ زیرِ موس */
.spot { position: relative; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--c, #1BBFFD) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* پیوندِ «بیشتر» */
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 1.1rem; font-weight: 800; color: var(--blue); }
.more i { transition: transform .4s var(--ease); }
.more:hover i { transform: translateX(-5px); }
.more.small { font-size: .86rem; margin-top: 4px; justify-self: center; }
[data-tone=dark] .more { color: var(--aqua); }
.center-link { text-align: center; margin: 22px 0 0; }

.btn-light { background: #fff; color: #03173D; box-shadow: 0 16px 34px -14px rgba(0,0,0,.4); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* راهکارها و صدای مشتریان در صفحه‌ی اصلی */
.sols { padding: clamp(60px, 10vh, 120px) 0; }
.sol-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sol-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 24px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.sol-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px color-mix(in oklab, var(--c) 60%, transparent); }
.sol-card > i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, color-mix(in oklab, var(--c) 75%, white), var(--c)); margin-bottom: 6px; }
.sol-card b { font-size: 1.15rem; }
.sol-card > span:not(.sol-flow):not(.sol-go) { color: var(--muted); font-size: .9rem; }
.sol-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 10px 0 4px; }
.sol-flow em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: var(--c); background: color-mix(in oklab, var(--c) 11%, white); display: inline-flex; gap: 4px; align-items: center; }
.sol-flow > i { color: var(--muted); }
.sol-go { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: .88rem; color: var(--c); }
.voices { padding: clamp(60px, 10vh, 120px) 0; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; margin-bottom: 30px; opacity: .8; }
.logos img { height: 36px; filter: grayscale(1); transition: filter .4s; }
.logos img:hover { filter: none; }
.logos span { font-weight: 900; font-size: 1.1rem; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.quote { margin: 0; padding: 26px; border-radius: 24px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 18px; font-size: 1.04rem; line-height: 2; }
.quote blockquote::before { content: '«'; color: var(--blue); font-weight: 900; }
.quote blockquote::after { content: '»'; color: var(--blue); font-weight: 900; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption img, .quote figcaption > i { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; background: var(--brand-v); }
.quote small { display: block; color: var(--muted); }
a.ncard { color: inherit; transition: transform .4s var(--ease); }
a.ncard:hover { transform: translateY(-4px); }
a.chip-m { color: inherit; transition: transform .3s var(--ease); }
a.chip-m:hover { transform: translateY(-2px); }
a.form-card { color: inherit; }

/* ═════════ پانویس ═════════ */
.foot2 { position: relative; overflow: hidden; padding: 70px 0 0; margin-top: 40px; color: #d7e3f7;
  background: radial-gradient(80% 60% at 85% 0%, rgba(27,191,253,.18), transparent 60%), radial-gradient(70% 60% at 10% 100%, rgba(14,205,158,.14), transparent 60%), linear-gradient(180deg, #041a44, #020c24); }
.f-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; }
.f-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.4rem; color: #fff; }
.f-logo img { width: 46px; }
.f-logo .f-wm { width: auto; height: 34px; flex: none; max-width: none; }
.f-brand p { color: #a8b7d4; font-size: .92rem; max-width: 40ch; }
.f-news label { display: block; font-weight: 800; color: #fff; margin-bottom: 8px; font-size: .92rem; }
.f-news > div { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.f-news input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; color: #fff; text-align: right; }
.f-news input::placeholder { color: #7f90b2; }
.f-news .btn { height: 42px; }
.f-news-note { display: block; min-height: 1.5em; margin-top: 6px; font-size: .8rem; color: #44E6A0; }
.f-news-note.err { color: #fda4af; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.f-cols h4 { margin: 0 0 12px; color: #fff; font-size: .95rem; }
.f-cols .f-h2 { margin-top: 22px; }
.f-cols a { display: block; padding: 4px 0; font-size: .9rem; color: #a8b7d4; transition: color .3s, transform .3s var(--ease); }
.f-cols a:hover { color: #fff; transform: translateX(-3px); }
.f-seals { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.f-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 46px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #8193b6; }
.f-ver { display: inline-flex; gap: 6px; align-items: center; }
.f-ver i { font-size: .5rem; color: #44E6A0; }
.f-social { margin-inline-start: auto; display: flex; gap: 6px; }
.f-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #d7e3f7; transition: background .3s, transform .3s var(--ease); }
.f-social a:hover { background: var(--brand); transform: translateY(-3px); }
.f-word {
  font-size: clamp(7rem, 30vw, 26rem); font-weight: 900; line-height: 1; text-align: center; margin: -.08em 0 -.32em; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 72%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-top: .1em;
}

/* ═════════ تماسِ شناور ═════════ */
.fab { position: fixed; z-index: 55; left: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fab-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; background: var(--brand); font-size: 1.4rem; position: relative;
  box-shadow: 0 18px 36px -12px rgba(1,148,249,.7); transition: transform .4s var(--ease); }
.fab-btn:hover { transform: scale(1.06); }
.fab-btn::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(27,191,253,.5); animation: fabRing 2.6s ease-out infinite; }
@keyframes fabRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.fab-btn i { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .45s var(--ease), opacity .3s; }
.fab-btn .bi-x-lg { opacity: 0; transform: rotate(-90deg); }
.fab[data-open=true] .fab-btn .bi-chat-heart-fill { opacity: 0; transform: rotate(90deg); }
.fab[data-open=true] .fab-btn .bi-x-lg { opacity: 1; transform: none; }
.fab-menu { display: grid; gap: 8px; pointer-events: none; }
.fab-menu a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255,255,255,.96); color: #03173D;
  font-weight: 700; font-size: .9rem; box-shadow: 0 14px 30px -14px rgba(3,23,61,.45); border: 1px solid #fff; width: max-content;
  opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.fab-menu a i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand-v); }
.fab-menu a.hl { background: #03173D; color: #fff; }
.fab[data-open=true] .fab-menu { pointer-events: auto; }
.fab[data-open=true] .fab-menu a { opacity: 1; transform: none; }
.fab[data-open=true] .fab-menu a:nth-last-child(2) { transition-delay: .04s; }
.fab[data-open=true] .fab-menu a:nth-last-child(3) { transition-delay: .08s; }
.fab[data-open=true] .fab-menu a:nth-last-child(4) { transition-delay: .12s; }
.fab[data-open=true] .fab-menu a:nth-last-child(5) { transition-delay: .16s; }
body.is-loading .fab { opacity: 0; }

/* «برق زدنِ» عنصری که با # آمده */
.flash { animation: flashRing 1.4s .2s var(--ease) 2; }
@keyframes flashRing { 50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--c, #1BBFFD) 40%, transparent), var(--shadow); } }

@media (max-width: 1020px) {
  .nav { transition: background .8s, border-radius .5s var(--ease), transform .6s var(--ease); }
  .nav.open { border-radius: 26px; flex-wrap: wrap; max-height: calc(100svh - 24px); overflow-y: auto; background: rgba(255,255,255,.97); color: #03173D; }
  body.night-ui .nav.open { background: rgba(6,18,48,.97); color: #eaf3ff; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 10; padding: 8px 2px 10px; gap: 2px; }
  .nav.open .nav-links > a, .nav.open .dd-btn { width: 100%; justify-content: space-between; padding: 14px; font-size: 1rem; }
  .dd { position: relative; }
  .mega, .mega-sm { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 6px; background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none; display: none; opacity: 1; visibility: visible; }
  .dd.open .mega { display: grid; transform: none; }
  .mega::before { display: none; }
  .mega-product { grid-template-columns: 1fr; }
  .mm-grid { grid-template-columns: 1fr; }
  .mm-feature { min-height: 0; padding-top: 74px; grid-row: auto; }
  .mm-mod, .mm-row { opacity: 1; transform: none; }
  body.night-ui .nav.open .mega { --ink: #eef5ff; --muted: #a8b7d4; color: #eef5ff; }
  body.night-ui .mm-mod:hover, body.night-ui .mm-row:hover { background: rgba(255,255,255,.06); }
  body.menu-open { overflow: hidden; }
  body.menu-open .fab { opacity: 0; pointer-events: none; }
  .f-top { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: repeat(2, 1fr); }
  .sol-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sol-cards { grid-template-columns: 1fr; }
  .fab { left: 14px; bottom: 14px; }
  .fab-btn { width: 52px; height: 52px; }
  .f-social { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
