
*{box-sizing:border-box}
html{scroll-behavior:smooth}
/* Specificity آگاهانه بالاتر از یک Tag ساده (html X)، نه با Override اجباری: از فاز ۲ که Bootstrap
   Vendor‌شده روی بخشی از صفحات لود می‌شود، Reboot خودِ Bootstrap (که بعد از core.css لود
   می‌شود) همین Selectorهای خام سراسری را با Specificity برابر و ترتیب بارگذاری بعدی
   بازنویسی می‌کرد — کشف‌شده در فاز ۶ (پس‌زمینه body و رنگ/Underline لینک‌های بدون کلاس). */
html body{margin:0;font-family:var(--font-fa);color:var(--insight-text);background:var(--insight-surface-alt)}
html a{color:var(--insight-primary-2)}
html button,html input,html select{font:inherit}
/* طبق تسک #۱۱۰: تا امروز dir="ltr" روی <code> فقط تک‌تک و دستی جاهایی گذاشته می‌شد که یادشان بود
   (مثلاً بخش Foundations همین صفحه مرجع UI)؛ خیلی جاهای دیگر (مثال‌های Usage هر Component، Token
   و مشابه) این محافظت را نداشتند و همان قاعده مستند «هر کد/URL/Token داخل جمله فارسی باید ایزوله
   شود» (بخش RTL صفحه مرجع UI) را نقض می‌کردند. یک‌بار در سطح Tag، نه تکرار دستی در هر View. */
html code,html kbd,html samp{direction:ltr;unicode-bidi:isolate;text-align:start}
html pre{direction:ltr;unicode-bidi:isolate;text-align:start;max-width:100%;overflow-x:auto}

.platform-topbar{background:#fff;border-bottom:1px solid var(--insight-border);position:relative;z-index:20}
.platform-topbar-inner{max-width:var(--insight-content-max);min-height:52px;margin:auto;padding:7px 16px;display:flex;align-items:center;gap:20px;direction:ltr}
.platform-brand-link{display:flex;align-items:center;gap:8px;color:var(--insight-text);text-decoration:none}
.platform-brand-link img{width:30px;height:30px}.platform-brand-link span{display:flex;flex-direction:column}.platform-brand-link b{font-size:12px}.platform-brand-link small{font-size:8px;color:var(--insight-muted)}
.platform-breadcrumb{display:flex;align-items:center;font-size:10px;margin-right:auto;padding-left:18px;border-left:1px solid var(--insight-border)}.platform-breadcrumb a{text-decoration:none;font-weight:700;color:var(--insight-primary)}
.platform-links{display:flex;align-items:center;gap:0;margin-left:auto;direction:rtl}.platform-links a{display:inline-flex;align-items:center;min-height:20px;font-size:9px;line-height:1;text-decoration:none;font-weight:700;padding:0 10px}.platform-links a+a{border-right:1px solid var(--insight-border)}
.platform-footer{margin:12px 24px 0;background:linear-gradient(110deg,var(--insight-primary),var(--insight-primary-2),var(--insight-accent));color:#fff;border-radius:13px 13px 0 0;overflow:hidden}
.platform-footer-inner{width:100%;margin:auto;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);align-items:center;gap:16px;direction:ltr}
.platform-footer-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.platform-footer-brand img{width:58px;height:58px;object-fit:contain;background:transparent;padding:0}.platform-footer-brand span{display:flex;flex-direction:column}.platform-footer-brand b{font-size:13px}.platform-footer-brand small{opacity:.86;font-size:10px}.platform-footer-module small{opacity:.78;font-size:9px}
.platform-footer-module{display:flex;flex-direction:column;text-align:left;gap:2px}
.platform-about{background:#fff;border-top:1px solid var(--insight-border);margin-top:0}.platform-about-inner{max-width:var(--insight-content-max);margin:auto;padding:18px 20px 14px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.platform-about-brand{display:flex;align-items:center;gap:18px}.platform-about-brand img{width:110px;height:75px;object-fit:contain;background:#fff}.platform-about-brand h2{margin:0 0 4px;color:var(--insight-primary)}.platform-about-brand p{margin:0;max-width:820px;font-size:11px;color:var(--insight-muted)}
.platform-about-actions,.platform-home-actions{display:flex;gap:8px;flex-wrap:wrap}.insight-button.primary{background:var(--insight-primary-2);color:#fff;border-color:var(--insight-primary-2);text-decoration:none}.insight-button.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5);text-decoration:none}
.platform-home{background:var(--insight-surface-alt)}
.platform-services{max-width:1320px;margin:auto;padding:54px 24px}.section-heading span{font-size:10px;letter-spacing:1.5px;color:var(--insight-accent);font-weight:800}.section-heading h2{margin:5px 0;font-size:28px}.section-heading p{margin:0;color:var(--insight-muted)}
@media(max-width:900px){.platform-footer-inner{grid-template-columns:1fr}.platform-about-inner{flex-direction:column;align-items:flex-start}.platform-links{display:none}}
@media(max-width:560px){.platform-topbar-inner{flex-wrap:wrap}.platform-breadcrumb{order:3;width:100%;margin:0}}
@media(max-width:560px){.platform-footer{margin:10px 12px 0}}

.platform-brand-link img{width:30px;height:30px;object-fit:contain;border-radius:6px}
.platform-brand-link b,.platform-brand-link small,.platform-footer-brand b,.platform-footer-module b,.platform-home .eyebrow{font-family:var(--font-en)}
.platform-brand-link span{border-left:1px solid var(--insight-border);padding-left:10px}
.platform-brand-link small{font-size:8.5px;letter-spacing:.3px}
.platform-links a{font-size:9.5px}
.brand-document{max-width:1180px;margin:0 auto 34px;background:#fff;border:1px solid var(--insight-border);border-radius:18px;padding:22px 26px;box-shadow:0 9px 26px rgba(31,2,123,.08)}
.brand-document-header{display:grid;grid-template-columns:135px 1fr;gap:20px;align-items:center;border-bottom:1px solid var(--insight-border);padding-bottom:16px}
.brand-document-header img{width:120px;height:90px;object-fit:contain}
.brand-document-header span{font-size:11px;color:var(--insight-accent);font-weight:800;letter-spacing:.8px}
.brand-document-header h2{margin:3px 0;color:var(--insight-primary);font-size:21px}
.brand-document-header p{margin:0;color:var(--insight-muted);font-size:11px}
.brand-document-header strong{display:block;margin-top:6px;direction:ltr;text-align:right;color:var(--insight-primary);font-size:10px}
.brand-section{padding:16px 0;border-bottom:1px solid var(--insight-border)}.brand-section:last-of-type{border-bottom:0}
.brand-section h3{color:var(--insight-accent);margin:0 0 6px;font-size:14px}.brand-section p{margin:0 0 7px;font-size:11.5px;line-height:1.85;color:var(--insight-text)}
.brand-contact{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px}.brand-contact a{border:1px solid var(--insight-border);border-radius:8px;padding:6px 10px;font-size:10.5px;text-decoration:none;font-weight:700}
.platform-footer-inner{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);padding:12px 14px;gap:16px}
.platform-footer-brand{gap:10px}.platform-footer-brand img{width:54px;height:54px}.platform-footer-brand b{font-size:12px}.platform-footer-brand small{font-size:9px}
.platform-footer-brand .platform-footer-tagline{font-size:8px;opacity:.72;white-space:nowrap}
.platform-footer-module{align-items:flex-start;gap:2px}.platform-footer-module b{font-size:10px}.platform-footer-module-fa{font-size:9px;opacity:.84}.platform-footer-meta{font-size:8px;opacity:.72}
.platform-footer-identity{display:flex;flex-direction:column;gap:3px;font-size:10px}.platform-footer-identity b{font-size:10px}.platform-footer-identity span{opacity:.82}
.platform-about-brand .platform-tagline{font-size:9px;color:var(--insight-accent);font-weight:800}.platform-about-brand strong{display:block;font-size:10px;margin-top:3px;color:var(--insight-primary)}
@media(max-width:900px){.platform-footer-inner{grid-template-columns:1fr}.brand-document-header{grid-template-columns:1fr}.brand-document-header img{width:150px}}

/* Shared subsystem header: one stable row on desktop and mobile. */
.platform-topbar-inner{flex-wrap:nowrap}
.platform-brand-link,.platform-breadcrumb{min-width:0;flex:0 1 auto}
.platform-breadcrumb a{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:560px){
 .platform-topbar-inner{min-height:58px;padding:8px 12px;gap:10px;flex-wrap:nowrap}
 .platform-brand-link{flex:0 0 auto;gap:7px}
 .platform-brand-link img{width:28px;height:28px}
 .platform-brand-link span{padding-left:8px}
 .platform-brand-link b{font-size:10.5px;white-space:nowrap}
 .platform-brand-link small{display:none}
 .platform-breadcrumb{order:initial;width:auto;flex:1 1 auto;margin:0;padding:0 0 0 10px;border-left:1px solid var(--insight-border);font-size:9.5px;line-height:1.35}
 .platform-breadcrumb a{white-space:nowrap}
}
.platform-mobile-menu{display:none;position:relative;margin-right:auto;color:var(--insight-primary)}
.platform-mobile-menu>summary{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--insight-border);border-radius:9px;cursor:pointer;list-style:none}.platform-mobile-menu>summary::-webkit-details-marker{display:none}.platform-mobile-menu .platform-icon{width:18px;height:18px}
.platform-mobile-menu nav{position:fixed;z-index:80;top:58px;right:12px;left:12px;display:grid;padding:8px;border:1px solid var(--insight-border);border-radius:12px;background:#fff;box-shadow:0 16px 38px rgba(24,35,93,.18)}
.platform-mobile-menu nav a{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 10px;border-radius:8px;color:var(--insight-text);font-size:11px;font-weight:800;text-decoration:none}.platform-mobile-menu nav a+a{border-top:1px solid var(--insight-border)}.platform-mobile-menu nav a:hover{background:var(--insight-surface-alt)}
@media(max-width:900px){.platform-topbar-inner{gap:8px}.platform-brand-link,.platform-brand-link span,.platform-breadcrumb{min-width:0}.platform-brand-link b,.platform-breadcrumb a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Compact account access stays available without breaking the shared one-row header. */
.platform-icon{width:15px;height:15px;flex:0 0 15px}
.platform-links{position:relative;flex:0 0 auto;margin-left:auto}
.platform-links>a,.platform-account-menu>summary{gap:5px}
.platform-account-menu{position:relative;direction:rtl}
.platform-account-menu>summary{display:flex;align-items:center;min-height:30px;padding:0 10px;color:var(--insight-primary);font-size:9.5px;font-weight:800;cursor:pointer;list-style:none;white-space:nowrap}
.platform-account-menu>summary::-webkit-details-marker{display:none}
.platform-account-popover{position:absolute;z-index:50;top:calc(100% + 8px);left:0;width:205px;padding:7px;background:#fff;border:1px solid var(--insight-border);border-radius:11px;box-shadow:0 16px 38px rgba(24,35,93,.18);direction:rtl}
.platform-account-popover a{display:flex;align-items:center;gap:8px;min-height:38px;padding:8px 9px;border:0;border-radius:8px;color:var(--insight-text);font-size:10px;line-height:1.4}
.platform-account-popover a:hover{background:var(--insight-surface-alt)}
.platform-account-popover .platform-account-logout{color:var(--insight-danger);border-top:1px solid var(--insight-border);border-radius:0 0 8px 8px}
.platform-login-link{color:var(--insight-primary)}
@media(max-width:900px){
 .platform-links{display:flex}
 .platform-external-link{display:none}
 .platform-account-menu>summary{width:34px;padding:0;justify-content:center}
 .platform-account-menu>summary span{display:none}
 .platform-login-link{width:34px;padding:0;justify-content:center}
 .platform-login-link .platform-icon{width:17px;height:17px}
}
@media(max-width:560px){
 .platform-topbar-inner{gap:7px}
 .platform-breadcrumb{padding-left:7px}
 .platform-account-popover{position:fixed;top:62px;right:12px;left:12px;width:auto}
}
.platform-account-popover{right:0;left:auto;max-width:calc(100vw - 24px)}
@media(max-width:900px){.platform-mobile-menu{display:block}.platform-links{display:none}}

/* Shared mobile navigation: a familiar RTL off-canvas drawer. */
@media(max-width:900px){
 .platform-mobile-menu{margin-left:auto;margin-right:0;flex:0 0 auto}
 .platform-mobile-menu>summary{position:relative;z-index:101;background:#fff}
 .platform-mobile-backdrop{position:fixed;z-index:98;inset:0;background:rgba(12,18,57,.46);opacity:0;visibility:hidden;transition:opacity .2s ease}
 .platform-mobile-menu[open] .platform-mobile-backdrop{opacity:1;visibility:visible}
 .platform-mobile-menu nav{z-index:100;top:0;right:0;left:auto;width:min(86vw,370px);height:100dvh;padding:74px 16px 22px;border:0;border-radius:0;background:#fff;box-shadow:-22px 0 60px rgba(12,18,57,.22);transform:translateX(102%);transition:transform .24s ease;overflow-y:auto}
 .platform-mobile-menu[open] nav{transform:translateX(0)}
 .platform-mobile-menu nav a{min-height:48px;padding:10px 12px;font-size:12px}
 .platform-mobile-close{position:absolute;top:15px;left:15px;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--insight-border);border-radius:10px;background:#fff;color:var(--insight-primary);font:400 25px/1 Arial;cursor:pointer}
}

.platform-nav-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-inline-start:auto;border-radius:999px;background:var(--insight-accent);color:#fff;font-size:8px;font-weight:900}
.platform-mobile-primary,.platform-mobile-external{display:grid}
.platform-mobile-external{margin-top:10px;padding-top:10px;border-top:1px solid var(--insight-border);background:var(--insight-surface-alt);border-radius:10px}
@media(max-width:680px){
 .platform-mobile-menu nav{padding:58px 12px 14px}
 .platform-mobile-menu nav a{min-height:42px;padding:7px 10px;font-size:11px}
 .platform-mobile-close{top:10px;left:10px;width:36px;height:36px}
}

@media(max-width:900px){
 .platform-mobile-menu{margin-left:auto;margin-right:0}
 .platform-mobile-menu nav{width:min(82vw,340px);padding:58px 12px 14px}
 .platform-mobile-menu nav a{min-height:40px;padding:7px 10px;font-size:11px}
 .platform-mobile-primary{gap:1px}
 .platform-mobile-external{margin-top:9px;padding:7px 4px 3px;background:var(--insight-surface-alt);border-top:1px solid var(--insight-border);border-radius:10px}
}
@media(max-width:900px){
 .platform-mobile-menu nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:58px 12px 14px}
 .platform-mobile-primary,.platform-mobile-external{display:flex;flex:0 0 auto;flex-direction:column;gap:0}
 .platform-mobile-menu nav a{flex:0 0 auto;min-height:40px;padding:7px 10px}
 .platform-mobile-external{margin-top:10px;padding:9px 4px 3px;border-top:1px solid var(--insight-border);border-radius:10px;background:var(--insight-surface-alt)}
}

/* Canonical four-line hero for the platform and every subsystem home. */
.subsystem-hero.subsystem-hero--platform,
.subsystem-hero.subsystem-hero--mi,
.subsystem-hero.subsystem-hero--ds{
 position:relative;
 display:flex;
 align-items:center;
 height:auto;
 min-height:280px;
 padding:20px max(24px,calc((100vw - 1680px)/2));
 box-sizing:border-box;
 overflow:hidden;
 color:#fff;
 /* Gradient سه‌رنگ برند رسمی (Navy → Sapphire → Plum) — قبلاً سه رنگ باقی‌مانده از قبل از
    یکپارچه‌سازی پالت (۲۰۲۶-۰۸-۰۸) بود که هیچ‌کدام با ۱۰ رنگ رسمی مطابقت نداشت. */
 background:linear-gradient(108deg,var(--insight-brand-navy) 0%,var(--insight-blue-sapphire) 52%,var(--insight-brand-plum) 100%);
}
.subsystem-hero .subsystem-hero__inner{
 position:relative;
 z-index:1;
 display:grid;
 grid-template-columns:minmax(0,1fr) 190px;
 grid-template-areas:"copy logo";
 align-items:center;
 gap:34px;
 width:100%;
 max-width:1680px;
 margin:0;
 direction:ltr;
}
.subsystem-hero .subsystem-hero__copy{
 grid-area:copy;
 display:flex;
 min-width:0;
 flex-direction:column;
 align-items:flex-start;
 gap:12px;
 width:auto;
 max-width:none;
 margin:0;
 direction:rtl;
 text-align:right;
}
.subsystem-hero .subsystem-hero__logo{
 grid-area:logo;
 display:grid;
 place-items:center;
 width:190px;
 height:190px;
 min-height:0;
 margin:0;
 padding:18px;
 overflow:hidden;
 box-sizing:border-box;
 border-radius:30px;
 background:#fff;
}
.subsystem-hero .subsystem-hero__logo img{
 display:block;
 width:154px;
 height:154px;
 max-width:none;
 max-height:none;
 margin:auto;
 object-fit:contain;
 object-position:center;
}
.subsystem-hero .subsystem-hero__eyebrow{
 align-self:flex-start;
 margin:0;
 color:rgba(255,255,255,.86);
 font:700 12px/1.5 Montserrat,sans-serif;
 letter-spacing:.05em;
 text-align:right;
}
.subsystem-hero .subsystem-hero__eyebrow a{color:inherit;text-decoration:none}
.subsystem-hero .subsystem-hero__eyebrow span{margin:0 8px;color:rgba(255,255,255,.58)}
.subsystem-hero .subsystem-hero__title{
 align-self:flex-start;
 margin:0;
 color:#fff;
 font-family:Anjoman,Arial,sans-serif;
 font-size:clamp(38px,3.4vw,58px);
 font-weight:900;
 line-height:1.2;
 text-align:right;
}
.subsystem-hero .subsystem-hero__title[dir="ltr"]{
 font-family:Montserrat,sans-serif;
 font-weight:700;
 letter-spacing:-.025em;
}
.subsystem-hero .subsystem-hero__title-secondary{
 display:inline-block;
 font-size:.5em;
 font-weight:600;
 color:rgba(255,255,255,.72);
 vertical-align:middle;
}
.subsystem-hero .subsystem-hero__title-secondary[dir="ltr"]{
 font-family:Montserrat,sans-serif;
}
.subsystem-hero .subsystem-hero__title-secondary[dir="rtl"]{
 font-family:Anjoman,Arial,sans-serif;
}
.subsystem-hero .subsystem-hero__description{
 align-self:flex-start;
 max-width:1100px;
 margin:0;
 color:#fff;
 font-family:Anjoman,Arial,sans-serif;
 font-size:16px;
 font-weight:600;
 line-height:1.8;
 direction:rtl;
 text-align:right;
}
.subsystem-hero .subsystem-hero__status{
 align-self:flex-start;
 display:inline-flex;
 max-width:100%;
 align-items:center;
 min-height:34px;
 margin:0;
 padding:7px 14px;
 box-sizing:border-box;
 border:1px solid rgba(255,255,255,.34);
 border-radius:999px;
 color:#fff;
 font:700 12px/1.45 Montserrat,sans-serif;
 text-align:center;
}
@media(max-width:980px){
 .subsystem-hero .subsystem-hero__inner{grid-template-columns:minmax(0,1fr) 160px;gap:24px}
 .subsystem-hero .subsystem-hero__logo{width:160px;height:160px;padding:15px;border-radius:26px}
 .subsystem-hero .subsystem-hero__logo img{width:130px;height:130px}
 .subsystem-hero .subsystem-hero__title{font-size:clamp(34px,5vw,48px)}
}
@media(max-width:680px){
 .subsystem-hero.subsystem-hero--platform,
 .subsystem-hero.subsystem-hero--mi,
 .subsystem-hero.subsystem-hero--ds{
  min-height:280px;
  padding:20px 18px;
 }
 .subsystem-hero .subsystem-hero__inner{display:block;max-width:100%;padding:0}
 .subsystem-hero .subsystem-hero__logo{display:none}
 .subsystem-hero .subsystem-hero__copy{width:100%;max-width:none;margin:0;align-items:flex-start;gap:10px;text-align:right}
 .subsystem-hero .subsystem-hero__eyebrow{font-size:11px}
 .subsystem-hero .subsystem-hero__title{font-size:34px;line-height:1.25}
 .subsystem-hero .subsystem-hero__description{font-size:15px;line-height:1.9}
 .subsystem-hero .subsystem-hero__status{min-height:32px;padding:6px 12px;font-size:11px;white-space:normal}
}
