/* ==========================================================================
   Tolue theme v3 — روشن، رنگی و فناورانه
   الهام: crm24 و جولیو. آبی و سبز لوگو + نارنجی فقط برای دکمه‌های اصلی.
   فونت IRANSansWeb نسخه ۴.۲ (Regular 400 / Medium 500 / Bold 700)
   ========================================================================== */

@font-face { font-family: "IRANSansWeb"; src: url("../fonts/IRANSansWeb.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSansWeb"; src: url("../fonts/IRANSansWeb_Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANSansWeb"; src: url("../fonts/IRANSansWeb_Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  /* layout: بوم سفید با نوارهای پاستلی یکی‌درمیان؛ هر بخش امکانات یک رنگ پاستلی دارد */
  --blue: #1b75bb;
  --blue-600: #155f99;
  --blue-50: #edf5fc;
  --blue-100: #d8e9f8;
  --green: #1fa64a;
  --green-600: #17853b;
  --green-50: #ecf8f0;
  --orange: #ff7a1a;
  --orange-600: #e8650a;
  --orange-50: #fff3e8;
  /* نارنجی دکمه‌ها: پررنگ‌تر تا متن سفید کنتراست ۴.۵ داشته باشد (WCAG AA) */
  --orange-cta: #bd5a13;
  --orange-cta-hover: #a34c0f;
  --ink: #102a43;
  --text: #33475b;
  --muted: #587189;
  --line: #e2e9f1;
  --bg: #ffffff;
  --bg-soft: #f7fafd;
  --navy: #0b1f35;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06);
  --shadow: 0 2px 6px rgba(16, 42, 67, .05), 0 12px 28px rgba(16, 42, 67, .08);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IRANSansWeb", Tahoma, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.95;
  direction: rtl; text-align: right;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.55; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.t-skip { position: absolute; right: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--radius); }
.t-skip:focus { top: 8px; color: #fff; }
.t-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.t-section { padding-block: 96px; }
.t-tint-blue { background: var(--blue-50); }
.t-tint-green { background: var(--green-50); }
.t-tint-orange { background: var(--orange-50); }
.t-tint-soft { background: var(--bg-soft); }

.t-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.t-head h2 { font-size: clamp(24px, 3vw, 36px); }
.t-head p { color: var(--muted); font-size: 17px; margin: 0; }
.t-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: .2px;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; background: var(--blue-100); color: var(--blue-600);
}
.t-tag--green { background: #d6f0de; color: #157835; }
.t-tag--orange { background: #ffe3cc; color: #a94b09; }

/* واژه برجسته با خط ماژیکی نارنجی */
.t-mark { position: relative; color: var(--blue); white-space: nowrap; }
.t-mark::after {
  content: ""; position: absolute; right: -4%; left: -4%; bottom: -.08em; height: .42em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 40 6, 90 4, 196 12' fill='none' stroke='%23ff7a1a' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.t-mark-wrap { position: relative; z-index: 0; }

/* ---------- Buttons ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border-radius: 10px; border: 1.5px solid transparent; font: inherit; font-weight: 500; font-size: 15px; line-height: 1.4;
  cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.t-btn svg { width: 18px; height: 18px; flex: none; }
.t-btn--cta { background: var(--orange-cta); color: #fff; box-shadow: 0 6px 18px rgba(189, 90, 19, .28); }
.t-btn--cta:hover { background: var(--orange-cta-hover); color: #fff; transform: translateY(-1px); }
.t-btn--blue { background: var(--blue); color: #fff; }
.t-btn--blue:hover { background: var(--blue-600); color: #fff; }
.t-btn--outline { background: #fff; color: var(--blue); border-color: var(--blue-100); }
.t-btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.t-btn--sm { min-height: 40px; padding: 7px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.t-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.t-header__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.t-logo img { width: 104px; }
.t-nav { flex: 1; }
.t-nav__list { display: flex; align-items: center; gap: 2px; }
.t-nav__item { position: relative; }
.t-nav__link {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 15px; color: var(--ink);
}
.t-nav__link:hover, .t-nav__item:focus-within > .t-nav__link { color: var(--blue); background: var(--blue-50); }
.t-nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.t-drop {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.t-nav__item:hover > .t-drop, .t-nav__item:focus-within > .t-drop { opacity: 1; visibility: visible; transform: none; }
.t-nav__item:hover > .t-nav__link svg, .t-nav__item:focus-within > .t-nav__link svg { transform: rotate(180deg); }
.t-drop a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text); font-size: 14.5px; }
.t-drop a:hover { background: var(--blue-50); color: var(--blue); }
/* مگامنو محصولات: هر ستون با آیکون */
.t-mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; min-width: 700px; padding: 16px; }
.t-mega__col-title { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.t-mega__col-title a { padding: 0; color: inherit; }

/* ---------- منوی پویای سایت ($CategoriesMenu$ از جدول SYSMain_Menu) ----------
   ساختار: ul.navbar-nav > li[.menu-item-has-children] > a + ul.sub-menu > li > a (+ ul.sub-menu.sub-menu2) */
.t-nav .navbar-nav { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; } /* Bootstrap قدیمی: flex-direction: column */
.t-nav .navbar-nav li { position: relative; list-style: none; margin: 0; }
.t-nav .navbar-nav > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  font-weight: 500; font-size: 15px; color: var(--ink); white-space: nowrap; text-decoration: none;
}
.t-nav .navbar-nav > li > a:hover, .t-nav .navbar-nav > li:focus-within > a { color: var(--blue); background: var(--blue-50); }
.t-nav .navbar-nav > li.menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; margin-inline-start: 4px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.t-nav .navbar-nav > li:hover > a::after, .t-nav .navbar-nav > li:focus-within > a::after { transform: rotate(225deg); margin-top: 3px; }
.t-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.t-nav .navbar-nav > li > .sub-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 240px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
/* پل نامرئی بین آیتم و زیرمنو تا هنگام حرکت ماوس منو بسته نشود */
.t-nav .navbar-nav > li > .sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.t-nav .navbar-nav > li:hover > .sub-menu, .t-nav .navbar-nav > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.t-nav .sub-menu a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text); font-size: 14.5px; width: auto !important; text-decoration: none; }
.t-nav .sub-menu a:hover { background: var(--blue-50); color: var(--blue); }
/* گروه‌های تو در تو (مثل محصولات): مگامنوی ستونی؛ عنوان گروه کم‌رنگ و زیرمنوی آن همیشه باز */
.t-nav .navbar-nav > li > .sub-menu:has(> li.menu-item-has-children) { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 4px 12px; min-width: 660px; padding: 16px; }
.t-nav .sub-menu > li.menu-item-has-children { width: auto !important; }
.t-nav .sub-menu > li.menu-item-has-children > a { font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.t-nav .sub-menu2 { position: static; display: block; padding: 0; }
.t-sub-toggle { display: none; }
.t-header__user { font-weight: 500; font-size: 14px; color: var(--ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* هم‌زیستی با CSS تم قدیمی: صفحه‌هایی که هنوز در تم جدید طراحی نشده‌اند Bootstrap و style.css قدیمی را هم بار می‌کنند.
   این قواعد با specificity بالاتر، فونت و هدر و فوتر جدید را در آن صفحه‌ها ثابت نگه می‌دارند. */
html body { font-family: "IRANSansWeb", Tahoma, sans-serif; }
.t-header ul, .t-footer ul, .t-mbar ul { margin: 0; padding: 0; list-style: none; }
.t-header a, .t-footer a, .t-mbar a { text-decoration: none; }
.t-header p, .t-footer p { margin-top: 0; }
.t-footer h2, .t-footer h3 { color: #fff; }
/* محتوای صفحه‌های قدیمی (row های Bootstrap با margin منفی) نباید اسکرول افقی بسازد؛ مثل page-wrapper تم قبلی */
.t-main { display: block; overflow-x: hidden; overflow-x: clip; }
.t-header__actions { display: flex; align-items: center; gap: 10px; }
.t-header__phone { direction: ltr; font-weight: 500; color: var(--ink); font-size: 15px; }
.t-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.t-burger svg { width: 22px; height: 22px; }
.t-burger__close { display: none; }
.t-burger[aria-expanded="true"] .t-burger__open { display: none; }
.t-burger[aria-expanded="true"] .t-burger__close { display: block; }

/* ---------- Hero ---------- */
.t-hero {
  position: relative; overflow: hidden; padding-block: 72px 56px; text-align: center;
  background:
    radial-gradient(520px 320px at 85% 10%, rgba(27, 117, 187, .10), transparent 70%),
    radial-gradient(480px 300px at 10% 30%, rgba(31, 166, 74, .10), transparent 70%),
    radial-gradient(420px 260px at 50% 100%, rgba(255, 122, 26, .08), transparent 70%),
    #fff;
}
.t-hero__stage { position: relative; margin-inline: auto; }
.t-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px; color: var(--text); margin-bottom: 22px;
}
.t-hero__kicker b { background: #19883d; color: #fff; font-weight: 500; font-size: 12px; padding: 1px 10px; border-radius: 999px; }
.t-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.5; max-width: 720px; margin: 0 auto 18px; }
.t-hero__lead { max-width: 640px; margin: 0 auto 30px; font-size: 18px; font-weight: 400; color: var(--text); }
.t-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 14px; }
.t-hero__note { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 0; }
.t-hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.t-hero__note svg { width: 16px; height: 16px; color: var(--green); }

/* کارت‌های شناور نرم‌افزار */
.t-float {
  position: absolute; z-index: 2; width: 230px; text-align: right; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; font-size: 13.5px;
  animation: t-bob 7s ease-in-out infinite;
}
.t-float__row { display: flex; align-items: center; gap: 10px; }
.t-float__icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.t-float__icon svg { width: 18px; height: 18px; }
.t-float strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.5; }
.t-float small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.t-float__bar { margin-top: 10px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.t-float__bar span { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--blue)); }
.t-float__pill { margin-top: 8px; display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; background: var(--blue-50); color: var(--blue); }
.t-float--1 { top: 0; right: 0; }
.t-float--2 { top: 24px; left: 0; animation-delay: -2s; }
.t-float--3 { top: 220px; right: 20px; animation-delay: -4s; }
.t-float--4 { top: 236px; left: 10px; animation-delay: -5.5s; }
.t-ic-blue { background: var(--blue-50); color: var(--blue); }
.t-ic-green { background: var(--green-50); color: var(--green); }
.t-ic-orange { background: var(--orange-50); color: var(--orange-600); }
@keyframes t-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* کاشی‌های محصولات زیر هیرو */
.t-apps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; max-width: 1160px; margin: 44px auto 0; }
.t-app {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.t-app:hover { color: var(--ink); border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.t-app__icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; }
.t-app__icon svg { width: 22px; height: 22px; }
.t-app small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* ---------- Logos ---------- */
.t-logos { padding-block: 36px; border-block: 1px solid var(--line); background: #fff; }
.t-logos__inner { display: flex; align-items: center; gap: 32px; }
.t-logos__title { flex: none; max-width: 170px; font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.7; margin: 0; }
.t-logos__list { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 28px; }
.t-logos__list img { height: 46px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.t-logos__list a:hover img { filter: none; opacity: 1; }

/* ---------- Stats ---------- */
.t-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.t-stat { padding: 30px 24px; text-align: center; }
.t-stat + .t-stat { border-right: 1px solid var(--line); }
.t-stat b { display: block; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-stat b i { color: var(--orange); font-style: normal; }
.t-stat small { color: var(--muted); font-size: 15px; }
/* نشان‌های اعتماد زیر آمار */
.t-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 22px; }
.t-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.t-badges svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- AI assistant ---------- */
.t-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.t-ai h2 { font-size: clamp(22px, 2.6vw, 32px); }
.t-chat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.t-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-weight: 500; color: var(--ink); font-size: 14.5px; }
.t-chat__head i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-style: normal; }
.t-chat__head i svg { width: 16px; height: 16px; }
.t-chat__head small { margin-inline-start: auto; color: #157835; font-weight: 400; font-size: 12.5px; }
.t-chat__body { display: grid; gap: 12px; padding: 18px; }
.t-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.8; }
.t-msg--me { justify-self: start; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.t-msg--bot { justify-self: end; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.t-bars { display: grid; gap: 7px; margin-top: 8px; }
.t-bars div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.t-bars span { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--blue)); }
.t-chat__input { display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.t-chat__input svg { width: 18px; height: 18px; color: var(--blue); margin-inline-start: auto; }

/* ---------- Cloud vs Local ---------- */
.t-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 960px; margin-inline: auto; }
.t-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.t-plan--hl { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50), var(--shadow); }
.t-plan__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.t-plan__icon svg { width: 24px; height: 24px; }
.t-plan h3 { font-size: 20px; margin-bottom: 4px; }
.t-plan__for { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.t-plan .t-checks { margin: 0 0 24px; flex: 1; }
.t-plan .t-btn { align-self: flex-start; }

/* ---------- Video ---------- */
.t-video { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.t-video h2 { font-size: clamp(24px, 3vw, 34px); }
.t-video__player { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; aspect-ratio: 16 / 9; max-width: 100%; background: var(--blue-50); }
.t-video__player img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.t-video__player:hover img { transform: scale(1.03); }
.t-video__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 122, 26, .22); transition: transform .2s;
}
.t-video__player:hover .t-video__play { transform: scale(1.06); }
.t-video__play svg { width: 30px; height: 30px; margin-right: -4px; }
.t-video__len { position: absolute; left: 12px; bottom: 12px; background: rgba(16, 42, 67, .8); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 6px; direction: ltr; }

/* ---------- Feature rows (یکی‌درمیان) ---------- */
.t-feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.t-feature--flip .t-feature__media { order: -1; }
.t-feature h2 { font-size: clamp(22px, 2.6vw, 32px); }
.t-feature__text > p { color: var(--text); font-size: 16.5px; }
.t-checks { display: grid; gap: 12px; margin: 22px 0 28px; }
.t-checks li { display: flex; gap: 12px; align-items: flex-start; }
.t-checks li svg { flex: none; width: 22px; height: 22px; margin-top: 4px; padding: 3px; border-radius: 6px; background: #fff; color: var(--green); border: 1px solid var(--line); }
.t-checks strong { font-weight: 500; color: var(--ink); }
.t-feature__links { display: flex; flex-wrap: wrap; gap: 10px; }

.t-feature__media { position: relative; }
.t-frame { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.t-frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); direction: ltr; }
.t-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3dce6; }
.t-frame__bar i:nth-child(1) { background: #ff6b6b; }
.t-frame__bar i:nth-child(2) { background: #ffc94d; }
.t-frame__bar i:nth-child(3) { background: #34c37a; }
.t-frame__bar span { margin-inline: auto; font-size: 11.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 0 14px; border-radius: 6px; }
.t-frame img { width: 100%; }
.t-feature__blob { position: absolute; z-index: 0; inset: 12% -6% -8% 8%; border-radius: 40px; transform: rotate(-3deg); }
.t-feature--flip .t-feature__blob { inset: 12% 8% -8% -6%; transform: rotate(3deg); }
.t-blob-blue { background: var(--blue-100); }
.t-blob-green { background: #d3efdc; }
.t-blob-orange { background: #ffe1c7; }
.t-feature__chip { position: absolute; z-index: 2; bottom: -18px; left: 24px; width: auto; animation-duration: 8s; }
.t-feature--flip .t-feature__chip { left: auto; right: 24px; }

/* ---------- Integrations ---------- */
.t-integr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t-integr__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.t-integr__card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 8px; }
.t-integr__card h3 .t-app__icon { width: 38px; height: 38px; }
.t-integr__card p { color: var(--muted); font-size: 14.5px; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chips span { font-size: 13px; padding: 2px 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }

/* ---------- Stories ---------- */
.t-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-story { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; color: inherit; transition: box-shadow .2s, transform .2s; }
.t-story:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-3px); }
.t-story__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.t-story__badge { font-size: 12.5px; padding: 2px 10px; border-radius: 6px; background: var(--green-50); color: #157835; font-weight: 500; }
.t-story__quote { width: 30px; height: 30px; color: var(--orange); }
.t-story blockquote { margin: 0 0 18px; font-size: 15.5px; color: var(--text); flex: 1; }
.t-story figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.t-story__avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.t-story figcaption strong { display: block; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.6; }
.t-story figcaption small { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.t-faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.t-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.t-faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.t-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 500; color: var(--ink); font-size: 16.5px; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary i { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: transform .2s, background .2s; }
.t-faq summary i svg { width: 16px; height: 16px; }
.t-faq details[open] summary i { transform: rotate(45deg); background: var(--orange-50); color: var(--orange-600); }
.t-faq__a { padding: 0 22px 20px; color: var(--text); font-size: 15.5px; }
.t-faq__a p:last-child { margin: 0; }

/* ---------- Demo form ---------- */
.t-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.t-demo h2 { font-size: clamp(24px, 3vw, 36px); }
.t-demo__phones { display: grid; gap: 6px; margin-top: 20px; }
.t-demo__phones a { direction: ltr; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 18px; justify-content: flex-end; }
.t-demo__phones a svg { width: 18px; height: 18px; color: var(--orange-600); }
.t-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; display: grid; gap: 14px; }
.t-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.t-form input, .t-form select {
  font: inherit; font-size: 15px; font-weight: 400; min-height: 48px; padding: 8px 14px; border-radius: 10px; width: 100%;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
}
.t-form input:focus, .t-form select:focus { outline: 3px solid var(--orange-50); border-color: var(--orange); background: #fff; }
.t-form .t-btn { width: 100%; }
.t-form__privacy { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.t-form__privacy svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* نوار ثابت تماس و دمو در موبایل */
.t-mbar { display: none; }
.t-form__ok { font-size: 14px; color: var(--green-600); margin: 0; }

/* ---------- Blog ---------- */
.t-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; transition: box-shadow .2s; }
.t-post:hover { color: inherit; box-shadow: var(--shadow); }
.t-post__img { aspect-ratio: 16 / 9; max-width: 100%; background: var(--bg-soft); overflow: hidden; }
.t-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.t-post:hover .t-post__img img { transform: scale(1.04); }
.t-post__body { padding: 18px 22px 22px; }
.t-post time { font-size: 13px; color: var(--muted); }
.t-post h3 { font-size: 16.5px; font-weight: 500; margin: 4px 0 0; }
.t-more { text-align: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.t-footer { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: 15px; }
.t-footer a { color: rgba(255, 255, 255, .75); }
.t-footer a:hover { color: #fff; }
/* دکمه‌های داخل فوتر رنگ متن خودشان را نگه دارند (قانون بالا آن را کم‌رنگ می‌کرد) */
.t-footer a.t-btn--cta, .t-footer a.t-btn--cta:hover { color: #fff; }
.t-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.t-footer__cta-title { color: #fff; font-size: 22px; font-weight: 700; margin: 0; }
.t-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-block: 52px; }
.t-footer__title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.t-footer__links { display: grid; gap: 9px; }
.t-footer__logo { display: inline-block; background: #fff; border-radius: 10px; padding: 6px 12px; margin-bottom: 14px; }
.t-footer__logo img { width: 96px; }
.t-footer__contact { display: grid; gap: 12px; }
.t-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.t-footer__contact svg { flex: none; width: 18px; height: 18px; margin-top: 5px; color: var(--orange); }
.t-footer__contact a { direction: ltr; display: inline-block; }
.t-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.t-social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); transition: background .2s, color .2s, transform .2s;
}
.t-social a:hover, .t-social a:focus-visible { background: var(--orange-cta); border-color: var(--orange-cta); color: #fff; transform: translateY(-2px); }
.t-social svg { width: 20px; height: 20px; }
.t-trust { display: flex; gap: 10px; margin-top: 18px; }
.t-trust span { width: 78px; height: 78px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.t-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: 14px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .t-hero .t-float { width: 190px; }
  .t-hero h1 { max-width: 600px; }
  .t-header__phone { display: none; }
}
@media (max-width: 991px) {
  .t-burger { display: inline-flex; }
  /* دکمه‌های هدر همیشه بالای منوی بازشده می‌مانند تا دکمه بستن قابل کلیک باشد */
  .t-header__actions { position: relative; z-index: 70; }
  .t-nav {
    position: fixed; top: var(--nav-top, 72px); right: 0; bottom: 0; left: 0; z-index: 60; background: #fff; overflow-y: auto; padding: 12px 20px 32px;
    transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .t-nav.is-open { transform: none; visibility: visible; }
  .t-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .t-nav__item { border-bottom: 1px solid var(--line); }
  .t-nav__link { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; }
  .t-nav__link:hover { background: none; }
  .t-drop, .t-mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; display: none; padding: 0 8px 12px; grid-template-columns: 1fr; }
  .t-nav__item.is-open > .t-drop { display: block; }
  .t-nav__item.is-open > .t-mega { display: grid; }
  .t-nav__item:hover > .t-nav__link svg { transform: none; }
  .t-nav__item.is-open > .t-nav__link svg { transform: rotate(180deg); }
  .t-header__actions { margin-inline-start: auto; }
  /* منوی پویا در موبایل: آکاردئون؛ دکمه‌های .t-sub-toggle را tolue-v3.js کنار آیتم‌های دارای زیرمنو می‌سازد */
  .t-nav .navbar-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .t-nav .navbar-nav > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .t-nav .navbar-nav > li > a { flex: 1; padding: 14px 4px; border-radius: 0; white-space: normal; }
  .t-nav .navbar-nav > li > a:hover, .t-nav .navbar-nav > li:focus-within > a { background: none; }
  .t-nav .navbar-nav > li.menu-item-has-children > a::after { display: none; }
  .t-nav .navbar-nav > li > .sub-menu,
  .t-nav .navbar-nav > li > .sub-menu:has(> li.menu-item-has-children) {
    position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 0 8px 12px; border: 0; box-shadow: none; grid-template-columns: 1fr;
  }
  .t-nav .navbar-nav > li > .sub-menu::before { display: none; }
  /* :has() در قاعده بالا specificity بیشتری دارد؛ حالت باز باید هر دو را پوشش دهد */
  .t-nav .navbar-nav > li.is-open > .sub-menu,
  .t-nav .navbar-nav > li.is-open > .sub-menu:has(> li.menu-item-has-children) { display: block; }
  .t-sub-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px;
    background: var(--bg-soft); color: var(--ink); cursor: pointer;
  }
  .t-sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
  .t-nav .navbar-nav > li.is-open > .t-sub-toggle svg { transform: rotate(180deg); }
  .t-header__user { display: none; }

  .t-float { display: none; }
  .t-apps { grid-template-columns: repeat(4, 1fr); }
  .t-ai, .t-plans { grid-template-columns: 1fr; }
  .t-logos__inner { flex-direction: column; text-align: center; }
  .t-logos__title { max-width: none; }
  .t-logos__list { justify-content: center; }
  .t-stats { grid-template-columns: repeat(2, 1fr); }
  .t-stat:nth-child(3) { border-right: 0; }
  .t-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .t-video, .t-feature, .t-demo { grid-template-columns: 1fr; gap: 36px; }
  .t-feature--flip .t-feature__media { order: 0; }
  .t-feature__blob, .t-feature--flip .t-feature__blob { inset: 10% 3% -5% 3%; transform: none; }
  .t-integr { grid-template-columns: repeat(2, 1fr); }
  .t-stories, .t-posts { grid-template-columns: 1fr 1fr; }
  .t-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .t-section { padding-block: 64px; }
  .t-hero { padding-block: 44px 40px; }
  .t-hero__lead { font-size: 16.5px; }
  .t-hero__cta .t-btn { flex: 1 1 100%; }
  .t-apps { grid-template-columns: repeat(2, 1fr); }
  .t-logos__list img { height: 36px; }
  .t-stat { padding: 22px 12px; }
  .t-stat small { font-size: 13.5px; }
  .t-integr, .t-stories, .t-posts, .t-footer__grid, .t-form__row { grid-template-columns: 1fr; }
  .t-feature__chip { display: none; }
  .t-form { padding: 22px; }
  .t-header__actions .t-btn--cta span { display: none; }
  .t-header__actions .t-btn--cta { padding-inline: 12px; }
  .t-logo img { width: 88px; }
  .t-mbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 42, 67, .08);
  }
  .t-mbar .t-btn { min-height: 46px; padding-inline: 10px; }
  body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
