/* =========================================================
   دیباچین — استایل اصلی
   ========================================================= */

:root {
    --brand:        #2563eb;
    --brand-600:    #1d4ed8;
    --brand-700:    #1e40af;
    --brand-400:    #3b82f6;
    --brand-300:    #60a5fa;
    --brand-200:    #93c5fd;
    --brand-50:     #eff6ff;

    --ink:          #0f172a;
    --ink-2:        #334155;
    --muted:        #64748b;
    --muted-2:      #94a3b8;
    --line:         #e2e8f0;
    --bg:           #ffffff;
    --bg-soft:      #f8fafc;
    --bg-slate:     #f1f5f9;

    --radius:       18px;
    --radius-sm:    12px;
    --radius-lg:    28px;

    --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
    --shadow:       0 10px 30px -12px rgba(15,23,42,.15);
    --shadow-lg:    0 30px 60px -20px rgba(37,99,235,.28);
    --shadow-brand: 0 18px 40px -14px rgba(37,99,235,.45);

    --container:    1200px;
    --ease:         cubic-bezier(.22,.61,.36,1);

    font-family: Vazirmatn, "Segoe UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* overflow-x: clip به‌جای hidden — از شکستن position:sticky جلوگیری می‌کند */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.85;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; line-height: 1.4; font-weight: 800; letter-spacing: -.2px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
/* مهار سرریز افقی محتوا (نودهای هاب و عناصر تزئینی) بدون شکستن position:sticky هدر،
   چون هدر خارج از <main> است. clip یک scroll-container نمی‌سازد پس sticky داخلی هم سالم می‌ماند. */
main { overflow-x: clip; }
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section > .container { position: relative; z-index: 1; }
.center { text-align: center; }

/* پترن‌های مینیمال پس‌زمینه */
.pattern-dots::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(var(--brand-300) 1px, transparent 1.4px);
    background-size: 28px 28px; opacity: .18;
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000, transparent 72%);
}
.pattern-grid::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 52px 52px; opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000, transparent 70%);
}

.skip-link {
    position: absolute; right: -999px; top: 8px; z-index: 999;
    background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus { right: 12px; }

.icon    { width: 26px; height: 26px; }
.icon-sm { width: 18px; height: 18px; }
.flip    { transform: scaleX(-1); }         /* پیکان رو به چپ در RTL */
.up      { transform: rotate(-90deg); }

.text-grad {
    background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
    --bh: 52px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--bh); padding-inline: 26px; border: 0; border-radius: 14px;
    font-weight: 700; font-size: 15px; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-sm  { --bh: 44px; padding-inline: 20px; font-size: 14px; }
.btn-lg  { --bh: 56px; padding-inline: 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-3px); box-shadow: 0 24px 48px -16px rgba(37,99,235,.55); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-600); transform: translateY(-3px); box-shadow: var(--shadow); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: transparent; transition: padding .4s var(--ease);
}
/* سه ستون: برند | منوی مرکزی | اکشن‌ها */
.header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
    height: 74px; border-radius: 20px; border: 1px solid transparent;
    transition: height .4s var(--ease), max-width .4s var(--ease), padding .4s var(--ease),
                background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
/* هنگام اسکرول: نوار شیشه‌ای شناور */
.site-header.scrolled { padding-top: 12px; }
.site-header.scrolled .header-inner {
    height: 62px; max-width: min(1120px, calc(100% - 40px));
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-color: rgba(226,232,240,.9);
    box-shadow: 0 18px 44px -18px rgba(15,23,42,.30);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; justify-self: start; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-size: 22px; color: var(--ink); letter-spacing: -.3px; }

/* منوی کپسولی وسط‌چین */
.main-nav {
    display: flex; align-items: center; gap: 2px; justify-self: center;
    background: rgba(248,250,252,.75); border: 1px solid var(--line);
    padding: 5px; border-radius: 999px;
    transition: background .4s var(--ease), border-color .4s var(--ease);
}
/* هنگام اسکرول منو داخل نوار شیشه‌ای شناور می‌شود */
.site-header.scrolled .main-nav { background: transparent; border-color: transparent; }
.nav-link {
    padding: 9px 17px; border-radius: 999px; white-space: nowrap;
    color: var(--ink-2); font-size: 14.5px; font-weight: 600;
    transition: color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-link:hover { color: var(--brand-600); background: #fff; box-shadow: var(--shadow-sm); }
.nav-link.active { color: #fff; background: var(--brand); box-shadow: 0 8px 18px -8px rgba(37,99,235,.6); }

.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line);
    border-radius: 12px; background: #fff; padding: 0; position: relative;
}
.nav-toggle span {
    position: absolute; inset-inline: 11px; height: 2px; background: var(--ink);
    border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    min-height: calc(100vh - 74px);   /* ارتفاع کامل صفحه منهای هدر */
    min-height: calc(100dvh - 74px);  /* پشتیبانی از موبایل (نوار مرورگر) */
    padding-block: clamp(32px, 5vw, 72px);
}
.hero-inner { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, #bfdbfe, transparent 70%); top: -120px; inset-inline-start: -80px; animation: floatY 14s var(--ease) infinite; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, #dbeafe, transparent 70%); bottom: -140px; inset-inline-end: -60px; animation: floatY 18s var(--ease) infinite reverse; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px; opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-text { max-width: 560px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-50); color: var(--brand-600);
    padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
    border: 1px solid #dbeafe; margin-bottom: 22px;
}
.hero-title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.32; }
.hero-title .text-grad { display: inline-block; }
.hero-subtitle { margin-top: 22px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Hero visual — لوگوی وکتور با نور چرخان */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-media { position: relative; width: 100%; max-width: 290px; margin-inline: auto; }
.hero-logo {
    position: relative; z-index: 2; width: 100%; height: auto; display: block;
    filter: drop-shadow(0 24px 40px rgba(37,99,235,.38));
}
/* هاله‌ی نوری نرم پشت لوگو */
.hero-glow {
    position: absolute; inset: 6%; z-index: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.35), transparent 68%);
    filter: blur(30px); animation: floatY 7s var(--ease) infinite;
}
/* نور دقیق روی خط دور خود لوگو (D) */
.hero-trace-svg { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-trace {
    stroke: #f0f7ff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 15 85;            /* pathLength=100 → قطعه‌ی نوری کوتاه */
    filter: drop-shadow(0 0 5px #93c5fd) drop-shadow(0 0 12px rgba(37,99,235,.95));
    animation: trace 4.5s linear infinite;
}
@keyframes trace { to { stroke-dashoffset: -100; } }

.float-slow { animation: floatY 6s var(--ease) infinite; }
.float-mid  { animation: floatY 4.5s var(--ease) infinite; }
.float-fast { animation: floatY 3.6s var(--ease) infinite; }

/* =========================================================
   Section headings
   ========================================================= */
.section-title { font-size: clamp(24px, 3vw, 36px); }
.section-title.center { margin-bottom: 52px; }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 18px; line-height: 2; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-600); font-weight: 700; margin-top: 22px; transition: gap .2s; }
.link-arrow:hover { gap: 12px; }

/* =========================================================
   How / Process
   ========================================================= */
.how-head, .section-head { text-align: center; margin-bottom: 54px; }
.how-head .eyebrow, .section-head .eyebrow { margin-bottom: 16px; }

.pcards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
/* مسیر اتصال‌دهنده بین مراحل */
.pcards::before {
    content: ""; position: absolute; top: 66px; inset-inline: 12.5%; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--brand-200) 0 9px, transparent 9px 19px);
    opacity: .85;
}
.pcard {
    position: relative; z-index: 1; text-align: center; background: #fff;
    border: 1px solid var(--line); border-radius: 20px; padding: 34px 22px 26px;
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.pcard::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
    transform: scaleX(0); transform-origin: inline-end; transition: transform .4s var(--ease);
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard:hover::after { transform: scaleX(1); transform-origin: inline-start; }

.pcard-num {
    position: absolute; top: 6px; inset-inline-end: 18px; z-index: 0; pointer-events: none;
    font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -3px; color: var(--brand-50);
}
.pcard-icon {
    position: relative; width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); color: #fff;
    display: grid; place-items: center; box-shadow: 0 14px 26px -10px rgba(37,99,235,.6);
    transition: transform .35s var(--ease);
}
.pcard-icon::before {
    content: ""; position: absolute; inset: 0; border-radius: 20px;
    animation: nodePulse 2.9s ease-out infinite; animation-delay: var(--d, 0ms);
}
.pcard-icon .icon { width: 30px; height: 30px; position: relative; z-index: 1; }
.pcard:hover .pcard-icon { transform: translateY(-5px) rotate(-6deg) scale(1.06); }
.pcard-title { position: relative; z-index: 1; font-size: 17px; margin-bottom: 10px; }
.pcard-desc { position: relative; z-index: 1; color: var(--muted); font-size: 14.5px; }

@keyframes nodePulse {
    0%       { box-shadow: 0 0 0 0 rgba(37,99,235,.35); }
    70%,100% { box-shadow: 0 0 0 13px rgba(37,99,235,0); }
}

/* =========================================================
   Industries
   ========================================================= */
.industries { background: var(--bg-slate); }
.industries-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.industries-text { max-width: 460px; }

.industries-hub { position: relative; height: 470px; }

/* خطوط اتصال + انتقال داده */
.hub-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
/* خط پایه همیشه کم‌رنگ؛ جریان داده فقط روی خطِ «فعال» */
.link-base { stroke: var(--brand-200); stroke-width: 1.4; opacity: .28; transition: opacity .5s; }
.link-flow {
    stroke: url(#linkGrad); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 2 11; opacity: 0; transition: opacity .5s;
}
.link-dot {
    fill: var(--brand); filter: drop-shadow(0 0 6px rgba(37,99,235,.9));
    offset-distance: 0%; offset-rotate: 0deg; opacity: 0;
}
.hub-link.active .link-base { opacity: .5; }
.hub-link.active .link-flow { opacity: 1; animation: dashFlow 1s linear infinite; }
.hub-link.active .link-dot { animation: dotFlow 1.6s var(--ease) infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -13; } }
@keyframes dotFlow {
    0%   { offset-distance: 0%;   opacity: 0; }
    12%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

.hub-center {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 168px; height: 150px; display: grid; place-items: center; z-index: 3;
}
.hub-center img {
    position: relative; z-index: 1; width: 152px; height: auto;
    filter: drop-shadow(0 22px 26px rgba(37,99,235,.32));
    animation: floatY 5s var(--ease) infinite;
}
/* هاله‌ی نرم پشت لوگوی سه‌بعدی */
.hub-center::before {
    content: ""; position: absolute; z-index: 0; inset-inline: 4px; inset-block: 14px 4px;
    background: radial-gradient(ellipse 62% 55% at 50% 55%, rgba(96,165,250,.42), transparent 72%);
    filter: blur(10px);
}
/* حلقه‌ی پالس منبع داده */
.hub-core-ring {
    position: absolute; left: 50%; top: 56%; width: 128px; height: 128px;
    margin-left: -64px; margin-top: -64px; border-radius: 50%; border: 2px solid var(--brand-300);
    animation: coreRipple 2.8s ease-out infinite; z-index: 0;
}
@keyframes coreRipple { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

.hub-node {
    position: absolute; transform: translate(-50%, -50%); z-index: 2;
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px;
    padding-block: 8px; padding-inline-start: 8px; padding-inline-end: 15px;
    box-shadow: 0 10px 24px -12px rgba(15,23,42,.22);
    color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap;
    cursor: pointer;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, opacity .45s, background .45s, padding .45s;
}
/* غیرفعال‌ها: فقط دایرهٔ آیکون، محو */
.hub-node:not(.active) {
    background: transparent; border-color: transparent; box-shadow: none;
    opacity: .42; padding: 0; gap: 0; filter: grayscale(.35);
}
.hub-node:not(.active) .hub-label { max-width: 0; opacity: 0; overflow: hidden; }
.hub-node:not(.active) .hub-ico { border-radius: 50%; box-shadow: 0 6px 14px -8px rgba(15,23,42,.4); }
/* فعال: برجسته و رنگی، با هالهٔ نبض */
.hub-node.active {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: var(--brand-200); box-shadow: 0 20px 40px -14px rgba(37,99,235,.5);
    opacity: 1; z-index: 4;
}
.hub-node.active .hub-ico { transform: rotate(-4deg) scale(1.04); }
.hub-node.active::after {
    content: ''; position: absolute; inset-inline-start: 8px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--brand-300);
    animation: coreRipple 1.6s ease-out infinite; pointer-events: none;
}
.hub-node:hover { opacity: 1; }
.hub-label { transition: max-width .45s var(--ease), opacity .35s; max-width: 200px; }
.hub-ico {
    width: 38px; height: 38px; border-radius: 11px; flex: none; color: #fff;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
    display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(37,99,235,.6);
    transition: transform .45s var(--ease), border-radius .45s;
}
.hub-ico svg { width: 19px; height: 19px; }

/* =========================================================
   Services — گرید ۳ ستونه، دو ردیف
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
    transform: scaleX(0); transform-origin: inline-end; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); transform-origin: inline-start; }

/* واترمارک آیکون بزرگ در پس‌زمینه */
.service-bg { position: absolute; inset-block-end: -22px; inset-inline-end: -16px; color: var(--brand); opacity: .045; z-index: 0; pointer-events: none; }
.service-bg .icon { width: 130px; height: 130px; }

.service-icon {
    position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 18px;
    background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
    margin-bottom: 20px; transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); color: #fff;
    transform: rotate(-6deg) scale(1.06); box-shadow: var(--shadow-brand);
}
.service-title { position: relative; z-index: 1; font-size: 18px; margin-bottom: 12px; }
.service-desc { position: relative; z-index: 1; color: var(--muted); font-size: 14.5px; line-height: 2; flex: 1; }
.service-more {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; color: var(--brand-600); font-weight: 700; font-size: 14px;
    opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover .service-more { opacity: 1; transform: none; }

/* کارت دعوت به اقدام */
.service-cta {
    display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
    background: linear-gradient(140deg, var(--brand), var(--brand-700));
    color: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow-brand);
    position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.service-cta::before {
    content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -20%;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.service-cta:hover { transform: translateY(-10px); box-shadow: 0 34px 64px -22px rgba(37,99,235,.65); }
.service-cta .cta-ic { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 15px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.service-cta h3 { position: relative; z-index: 1; font-size: 19px; line-height: 1.7; margin-bottom: 8px; }
.service-cta p { position: relative; z-index: 1; color: rgba(255,255,255,.86); font-size: 14.5px; line-height: 2; }
.service-cta .cta-arrow { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; transition: gap .25s var(--ease); }
.service-cta:hover .cta-arrow { gap: 14px; }

/* =========================================================
   Capabilities — گرید ۳×۳
   ========================================================= */
.capabilities { background: var(--bg-soft); }
.section-head .section-lead { max-width: 640px; margin-inline: auto; }

.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
    position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow-sm); isolation: isolate;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
/* پرشدن گرادیانی هنگام هاور */
.cap-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
    background: linear-gradient(145deg, var(--brand), var(--brand-700));
    transition: opacity .4s var(--ease);
}
.cap-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-brand); border-color: transparent; }
.cap-card:hover::before { opacity: 1; }

.cap-num {
    position: absolute; top: 20px; inset-inline-end: 24px; font-size: 15px; font-weight: 800;
    color: var(--brand-200); transition: color .4s var(--ease);
}
.cap-icon {
    width: 58px; height: 58px; border-radius: 16px; background: var(--brand-50); color: var(--brand);
    display: grid; place-items: center; margin-bottom: 20px;
    transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.cap-icon .icon { width: 28px; height: 28px; }
.cap-title { font-size: 17px; margin-bottom: 10px; transition: color .4s var(--ease); }
.cap-desc { color: var(--muted); font-size: 14px; line-height: 1.95; transition: color .4s var(--ease); }

/* حالت هاور: متن و آیکون سفید */
.cap-card:hover .cap-icon { background: rgba(255,255,255,.18); color: #fff; transform: rotate(-6deg) scale(1.05); }
.cap-card:hover .cap-title { color: #fff; }
.cap-card:hover .cap-desc { color: rgba(255,255,255,.88); }
.cap-card:hover .cap-num { color: rgba(255,255,255,.55); }

/* =========================================================
   CTA / Contact
   ========================================================= */
.cta-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border: 1px solid #dbeafe; border-radius: var(--radius-lg);
    padding: clamp(30px, 5vw, 56px); box-shadow: var(--shadow);
}
.cta-points { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.cta-points li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.cta-points .icon-sm { color: #16a34a; }

.cta-form {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field .opt { color: var(--muted-2); font-weight: 500; font-size: 12.5px; }
.field input, .field textarea {
    font-family: inherit; font-size: 15px; color: var(--ink);
    padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s;
    width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-300); background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.field.invalid input, .field.invalid textarea { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.field .err { color: #dc2626; font-size: 12.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-alert {
    display: none; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
}
.form-alert.show { display: block; }
.form-alert.ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.form-alert.error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 32px; padding-bottom: 48px;
}
.footer-title { font-size: 15px; margin-bottom: 18px; color: var(--ink); }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--brand-600); padding-inline-end: 4px; }

.footer-brand .brand { margin-bottom: 14px; }
.footer-about { color: var(--muted); font-size: 14.5px; line-height: 2; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--muted); background: var(--bg-soft);
    transition: all .25s var(--ease);
}
.footer-social a svg { width: 20px; height: 20px; }
.footer-social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-brand); }

.footer-docs-bar { border-top: 1px solid var(--line); padding-block: 18px; }
.footer-docs-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-docs-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; color: var(--ink, #0f172a); white-space: nowrap; }
.footer-docs-list { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-doc { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2, #334155); transition: transform .15s, box-shadow .15s, border-color .15s; }
.footer-doc:hover { transform: translateY(-2px); border-color: var(--brand-300, #93c5fd); box-shadow: 0 10px 26px -14px rgba(37,99,235,.4); color: var(--brand-700, #1d4ed8); }
.footer-doc-ico { font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 7px; line-height: 1; }
.footer-doc-ico.pdf { background: #fef2f2; color: #dc2626; }
.footer-doc-ico.doc { background: #eef2ff; color: #4f46e5; }
.footer-doc svg { color: var(--muted, #64748b); }
.footer-doc.all { background: transparent; border-style: dashed; }

.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--brand-600); }

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
    position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 90;
    width: 48px; height: 48px; border-radius: 14px; border: 0;
    background: var(--brand); color: #fff; box-shadow: var(--shadow-brand);
    display: grid; place-items: center; opacity: 0; visibility: hidden;
    transform: translateY(16px) scale(.9); transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); transform: translateY(-3px); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
/* بدون JS: محتوا کاملاً دیده می‌شود. با JS: انیمیشن ورود اعمال می‌شود. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin   { to { transform: rotate(360deg); } }

/* =========================================================
   صفحات داخلی (بلاگ، نمونه‌کار، درباره، تماس، ۴۰۴)
   ========================================================= */
.icon-xs { width: 15px; height: 15px; }

/* هدر صفحات داخلی */
.page-hero {
    position: relative; text-align: center; overflow: hidden;
    padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 60px);
    background: linear-gradient(180deg, var(--brand-50), #fff);
    border-bottom: 1px solid var(--line);
}
.page-title { font-size: clamp(28px, 4vw, 44px); margin-top: 8px; }
.page-lead { color: var(--muted); font-size: 17px; margin: 16px auto 0; max-width: 640px; line-height: 2; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; }

/* ---------- بلاگ ---------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.chip {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    color: var(--ink-2); font-weight: 700; font-size: 14px; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-badge {
    position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(37,99,235,.92); color: #fff;
    padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px);
}
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted-2); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card-title { font-size: 18px; line-height: 1.6; margin-bottom: 10px; }
.post-card-title a { transition: color .2s; }
.post-card-title a:hover { color: var(--brand-600); }
.post-card-excerpt { color: var(--muted); font-size: 14px; line-height: 1.95; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-600); font-weight: 700; font-size: 14px; transition: gap .2s; }
.post-more:hover { gap: 11px; }

/* صفحه‌بندی */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.page-btn {
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-2); font-weight: 700; display: inline-flex; align-items: center;
    justify-content: center; transition: all .2s var(--ease);
}
.page-btn:hover { border-color: var(--brand-300); color: var(--brand-600); }
.page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- تک‌مقاله / تک‌پروژه ---------- */
.post-head { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 44px);
    background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); }
.post-head-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; color: var(--muted-2); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs span { color: var(--muted-2); }
.post-single-title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.5; }
.post-single-meta { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.post-single-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-body-wrap { max-width: 820px; padding-block: clamp(28px, 4vw, 48px); }
.post-cover { margin: 0 0 32px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; height: auto; display: block; }

/* تایپوگرافی محتوای مقاله */
.post-content { color: var(--ink-2); font-size: 17px; line-height: 2.1; }
.post-content > * + * { margin-top: 20px; }
.post-content h2 { font-size: 24px; color: var(--ink); margin-top: 36px; line-height: 1.5; }
.post-content h3 { font-size: 20px; color: var(--ink); margin-top: 28px; }
.post-content p { margin-top: 18px; }
.post-content ul, .post-content ol { margin-top: 18px; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-content li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { max-width: 100%; height: auto; border-radius: 14px; margin-top: 22px; }
.post-content blockquote { border-inline-start: 4px solid var(--brand); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--ink); font-weight: 600; margin-top: 22px; }
.post-content code { background: var(--bg-slate); padding: 2px 7px; border-radius: 6px; font-size: .9em; direction: ltr; display: inline-block; }
.post-content .table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.post-content th, .post-content td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line); line-height: 1.7; }
.post-content thead th { background: linear-gradient(135deg, var(--brand-50), #fff); color: var(--brand-700); font-weight: 800; }
.post-content tbody tr:last-child td { border-bottom: 0; }
.post-content tbody tr:nth-child(even) { background: var(--bg-soft); }
.post-content td + td, .post-content th + th { border-inline-start: 1px solid var(--line); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tag-pill { background: var(--brand-50); color: var(--brand-700); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.post-share a { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.post-share a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.related { background: var(--bg-soft); }

/* ---------- نمونه‌کارها ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-media { position: relative; display: block; aspect-ratio: 16/9.5; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.07); }
.project-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(0deg, rgba(15,23,42,.55), transparent 55%); opacity: 0; transition: opacity .35s; }
.project-card:hover .project-overlay { opacity: 1; }
.project-view { color: #fff; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.project-body { padding: 24px; }
.project-cat { display: inline-block; background: var(--brand-50); color: var(--brand-700); padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.project-title { font-size: 20px; margin-bottom: 10px; }
.project-title a:hover { color: var(--brand-600); }
.project-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.95; }
.project-client { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.project-client b { color: var(--ink); }

.project-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 32px; }
.result-item { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 700; color: var(--ink); }
.result-item .icon-sm { color: #16a34a; flex: none; }
.project-cta { text-align: center; margin-top: 44px; padding: 40px; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid #dbeafe; border-radius: var(--radius-lg); }
.project-cta h3 { font-size: 22px; margin-bottom: 20px; }

/* ---------- درباره ما ---------- */
.about-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about-content { color: var(--ink-2); font-size: 17px; line-height: 2.1; }
.about-content h2 { font-size: 23px; color: var(--ink); margin-top: 30px; margin-bottom: 12px; }
.about-content p { margin-top: 14px; }
.about-content ul { margin-top: 14px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.about-content li { list-style: disc; }
.about-side { position: sticky; top: 96px; }
.about-logo { background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid #dbeafe; border-radius: 24px; padding: 40px; display: grid; place-items: center; box-shadow: var(--shadow); }
.about-logo img { width: 180px; height: auto; filter: drop-shadow(0 20px 30px rgba(37,99,235,.28)); }
.about-stats { background: var(--bg-soft); }

/* آمار (استفاده در درباره ما) */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 34px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-value { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--brand-600); letter-spacing: -1px; }
.stat-label { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ---------- تماس ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.contact-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-label { color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.contact-val { font-weight: 700; color: var(--ink); }
a.contact-val:hover { color: var(--brand-600); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.contact-socials a { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: all .2s; }
.contact-socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.contact-form-title { font-size: 20px; margin-bottom: 18px; }
.contact-map { margin-top: 40px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- ۴۰۴ ---------- */
.notfound { text-align: center; padding-block: clamp(60px, 12vw, 140px); }
.nf-code { font-size: clamp(80px, 18vw, 160px); font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--brand-300), var(--brand-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-title { font-size: 28px; margin-top: 12px; }
.nf-text { color: var(--muted); font-size: 17px; margin-top: 14px; }
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- اینماد در فوتر ---------- */
.footer-badges { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.enamad-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: inline-flex; }
.enamad-box img { max-height: 90px; width: auto; border-radius: 8px; }

/* =========================================================
   بازطراحی حرفه‌ای صفحات داخلی
   ========================================================= */
/* جستجوی بلاگ */
.blog-search { display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 26px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: var(--shadow-sm); }
.blog-search .icon-sm { color: var(--muted-2); flex: none; }
.blog-search input { flex: 1; border: 0; background: none; font-family: inherit; font-size: 15px; padding: 8px; outline: none; }
.blog-search button { border: 0; background: var(--brand); color: #fff; font-family: inherit; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: background .2s; }
.blog-search button:hover { background: var(--brand-600); }

/* تب‌های دسته */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 14px; transition: all .25s var(--ease); }
.tab:hover { border-color: var(--brand-300); color: var(--brand-600); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand); }
.tab-count { background: rgba(15,23,42,.08); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.tab.active .tab-count { background: rgba(255,255,255,.25); }
.search-note { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 15px; }

.empty-state { text-align: center; color: var(--muted); padding: 70px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state .icon { width: 48px; height: 48px; color: var(--muted-2); }
.empty-state p { font-size: 17px; }

/* پست ویژه */
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 44px; transition: transform .4s var(--ease), box-shadow .4s; }
.featured-post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.featured-media { position: relative; overflow: hidden; min-height: 300px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-post:hover .featured-media img { transform: scale(1.05); }
.featured-flag { position: absolute; top: 16px; inset-inline-start: 16px; background: rgba(37,99,235,.95); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.featured-body { padding: clamp(24px, 3vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.post-badge.static { position: static; display: inline-block; align-self: flex-start; background: var(--brand-50); color: var(--brand-700); margin-bottom: 14px; }
.featured-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; margin-bottom: 14px; transition: color .2s; }
.featured-post:hover .featured-title { color: var(--brand-700); }
.featured-excerpt { color: var(--muted); font-size: 15.5px; line-height: 2; margin-bottom: 18px; }
.featured-body .post-meta { margin-bottom: 18px; }

.page-btn.nav { font-weight: 700; }
.page-dots { min-width: 30px; text-align: center; color: var(--muted-2); align-self: center; }
.page-status { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted, #64748b); }
.page-status b { color: var(--brand, #2563eb); font-weight: 800; }

/* نوار پیشرفت مطالعه */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-400), var(--brand-700)); }

/* هدر تک‌پست */
.post-cat-pill { display: inline-block; background: var(--brand); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.author-chip { display: inline-flex; align-items: center; gap: 7px; }
.author-ava { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; overflow: hidden; flex: none; border: 1px solid var(--line); }
.author-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* چیدمان دوستونه تک‌پست */
.post-layout { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: clamp(28px, 4vw, 48px); max-width: 900px; }
.share-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share-label { font-size: 11px; color: var(--muted-2); font-weight: 700; writing-mode: vertical-rl; margin-bottom: 4px; }
.share-ico { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); background: #fff; transition: all .25s var(--ease); }
.share-ico svg { width: 19px; height: 19px; }
.share-ico:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.post-main { min-width: 0; }
.tags-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 13.5px; margin-inline-end: 6px; }

/* باکس نویسنده */
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 36px; }
.author-box-ava { width: 60px; height: 60px; flex: none; border-radius: 16px; background: #fff; color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; overflow: hidden; border: 1px solid var(--line); }
.author-box-ava img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.author-box-bio { color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.author-box-link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-600); font-weight: 700; font-size: 14px; margin-top: 10px; }

.share-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.share-inline-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-inline-btns a { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.share-inline-btns a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* بازطراحی درباره ما */
.about-card { background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid #dbeafe; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.about-card .about-logo { margin-bottom: 20px; padding: 0; background: none; border: 0; box-shadow: none; }
.about-card .about-logo img { width: 150px; height: auto; margin-inline: auto; filter: drop-shadow(0 18px 26px rgba(37,99,235,.28)); }
.about-facts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; text-align: start; }
.about-facts li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.about-facts .icon-sm { color: var(--brand); flex: none; }
.about-values .values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 22px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.value-ico { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-brand); }
.value-card h3 { font-size: 17px; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* بازطراحی تماس */
.contact-cards-section { padding-block: clamp(30px, 4vw, 50px) 0; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 20px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.contact-card-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.contact-card-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.contact-card-val { font-weight: 800; color: var(--ink); font-size: 15px; }
a.contact-card-val:hover { color: var(--brand-600); }
.contact-main .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
.contact-form-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-panel { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-brand); height: 100%; display: flex; flex-direction: column; }
.contact-panel h3 { font-size: 20px; margin-bottom: 20px; }
.contact-points { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.contact-side-social { margin-top: auto; }
.contact-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.contact-points .icon-sm { color: #fff; flex: none; opacity: .95; }
.contact-side-social span { font-size: 13px; opacity: .85; display: block; margin-bottom: 10px; }
.contact-side-social > div { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-side-social a { padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.15); color: #fff; font-weight: 700; font-size: 13.5px; transition: background .2s; }
.contact-side-social a:hover { background: rgba(255,255,255,.28); }

/* هیرو با پس‌زمینه‌ی بنر (درباره و تماس) */
.about-hero, .contact-hero { position: relative; overflow: hidden; border-bottom: 0; background: #0b1a47; }
.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(11,26,71,.78), rgba(11,26,71,.88)),
                url(/assets/img/about-banner.webp) center / cover no-repeat;
}
.about-hero .container, .contact-hero .container { position: relative; z-index: 1; }
.about-hero .eyebrow, .contact-hero .eyebrow { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.about-hero .page-title, .contact-hero .page-title { color: #fff; }
.about-hero .page-lead, .contact-hero .page-lead { color: rgba(255,255,255,.92); }

/* بنر و محتوای درباره ما */
.about-banner { margin-top: 36px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.about-banner img { width: 100%; height: auto; display: block; aspect-ratio: 2 / 1; object-fit: cover; }
.about-content-wrap { max-width: 820px; margin-inline: auto; color: var(--ink-2); font-size: 17px; line-height: 2.1; }
.about-content-wrap h2 { font-size: clamp(22px, 2.6vw, 27px); color: var(--ink); margin-top: 36px; margin-bottom: 14px; }
.about-content-wrap h2:first-child { margin-top: 0; }
.about-content-wrap h3 { font-size: 20px; color: var(--ink); margin-top: 26px; }
.about-content-wrap p { margin-top: 16px; }
.about-content-wrap ul { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.about-content-wrap li { list-style: none; position: relative; padding-inline-start: 28px; color: var(--ink); font-weight: 600; font-size: 15.5px; }
.about-content-wrap li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); }

/* تایم‌لاین مسیر ما */
.timeline-section { background: var(--bg-soft); }
.timeline { position: relative; max-width: 760px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 20px; width: 2px; background: linear-gradient(var(--brand), var(--brand-200)); }
.tl-item { position: relative; padding-inline-start: 60px; padding-block: 12px; }
.tl-marker { position: absolute; inset-inline-start: 11px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); display: grid; place-items: center; z-index: 1; }
.tl-marker span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; min-height: 116px; display: flex; flex-direction: column; justify-content: center; }
.tl-item:hover .tl-card { box-shadow: var(--shadow); transform: translateY(-3px); }
.tl-year { display: inline-block; align-self: flex-start; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; font-weight: 800; padding: 4px 16px; border-radius: 999px; font-size: 14.5px; margin-bottom: 12px; }
.tl-text { color: var(--ink-2); font-size: 15px; line-height: 2; }
.about-values { background: #fff; }

/* سربرگ سکشن با لینک کناری (پیش‌نمایش‌های لندینگ) */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 42px; flex-wrap: wrap; }
.section-head-row .eyebrow { margin-bottom: 12px; }
.section-head-row .link-arrow { margin-top: 0; white-space: nowrap; }
.project-grid.three { grid-template-columns: repeat(3, 1fr); }
.blog-preview { background: var(--bg-soft); }
.post-meta .dot-sep { color: var(--muted-2); }

/* مرتب‌سازی کارت‌های تماس */
.contact-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.contact-card { flex: 1 1 220px; max-width: 300px; }

/* دکمه گیت‌هاب در محتوای پروژه */
.project-links { margin-top: 28px; }
.gh-link, .post-content a.gh-link {
    display: inline-flex; align-items: center; gap: 10px; background: #1f2328; color: #fff;
    padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.gh-link svg { width: 22px; height: 22px; }
.gh-link:hover, .post-content a.gh-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { order: -1; }
    .hero-media { max-width: 250px; }
    .hero-text { max-width: none; }
    .main-nav { gap: 0; padding: 4px; }
    .nav-link { padding: 8px 12px; font-size: 13.5px; }
    .brand-name { font-size: 20px; }
    .industries-grid { grid-template-columns: 1fr; gap: 40px; }
    .industries-hub { max-width: 460px; margin-inline: auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; order: -1; }
    /* صفحات داخلی */
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .about-wrap { grid-template-columns: 1fr; gap: 32px; }
    .about-side { position: static; max-width: 340px; margin-inline: auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-values .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-main .contact-grid { grid-template-columns: 1fr; }
    .contact-panel { position: static; }
    .project-grid.three { grid-template-columns: repeat(2, 1fr); }
    .about-content-wrap ul { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .main-nav {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
        justify-self: stretch; background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
        padding: 14px 20px 22px; gap: 4px; border: none; border-bottom: 1px solid var(--line);
        border-radius: 0; box-shadow: var(--shadow);
        transform: translateY(-140%); transition: transform .35s var(--ease);
        max-height: calc(100vh - 74px); overflow-y: auto;
    }
    body.nav-open .main-nav { transform: none; }
    /* در موبایل حتی وقتی هدر اسکرول‌شده است، منوی کشویی باید پس‌زمینه داشته باشد
       (قانون دسکتاپِ .site-header.scrolled .main-nav آن را شفاف می‌کرد) */
    .site-header.scrolled .main-nav {
        background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
    }
    .nav-link { padding: 13px 16px; font-size: 16px; border-radius: 12px; }
    .nav-link.active { box-shadow: none; }
    .nav-toggle { display: block; }
    .header-actions .btn-sm { display: none; }
    /* هدر موبایل: برند و همبرگر در دو سر (چیدمان ساده و پایدار) */
    .header-inner { display: flex; justify-content: space-between; gap: 12px; }
    .site-header.scrolled .header-inner { max-width: none; }
    .brand-name { font-size: 20px; }

    .pcards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .pcards::before { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .caps-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-post { grid-template-columns: 1fr; }
    .featured-media { min-height: 220px; }
    .post-layout { grid-template-columns: 1fr; gap: 0; }
    .post-aside { display: none; }
    .form-two { grid-template-columns: 1fr; }
    .blog-search { max-width: none; }
    .project-grid.three { grid-template-columns: 1fr; }
    .section-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .timeline::before { inset-inline-start: 18px; }
}

/* موبایل: هیرو و سکشن صنایع */
@media (max-width: 600px) {
    /* هیرو */
    .hero { min-height: auto; padding-block: 40px 44px; }
    .hero-inner { gap: 28px; }
    .hero-text { text-align: center; }
    .hero-text .eyebrow { margin-bottom: 16px; }
    .hero-actions { justify-content: center; }
    .hero-media { max-width: 220px; }

    /* صنایع: از چیدمان شش‌ضلعی به شبکه‌ی چیپ */
    .industries-grid { gap: 30px; }
    .industries-text { text-align: center; margin-inline: auto; }
    .industries-text .link-arrow { display: inline-flex; }
    .industries-hub {
        height: auto; max-width: 100%; width: 100%;
        display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
    }
    .hub-node { max-width: 100%; font-size: 13px; }
    /* در موبایل چرخش/محو‌شدن غیرفعال؛ همهٔ صنایع کامل دیده شوند */
    .hub-node, .hub-node:not(.active) { position: relative; left: auto !important; top: auto !important; transform: none; opacity: 1; filter: none;
        background: #fff; border-color: var(--line); box-shadow: 0 10px 24px -12px rgba(15,23,42,.22);
        padding-block: 8px; padding-inline-start: 8px; padding-inline-end: 15px; gap: 10px; }
    .hub-node:not(.active) .hub-label { max-width: 200px; opacity: 1; }
    .hub-node:not(.active) .hub-ico { border-radius: 11px; }
    .hub-node.active { transform: none; }
    .hub-node.active::after { display: none; }
    .hub-links { display: none; }
    .hub-center {
        position: static; transform: none; width: auto; height: auto;
        flex: 0 0 100%; display: flex; justify-content: center; margin-bottom: 4px; box-shadow: none;
    }
    .hub-center::before { display: none; }
    .hub-center img { width: 116px; animation: none; }
    .hub-core-ring { display: none; }
    .hub-node {
        position: static; transform: none; margin: 0;
        box-shadow: 0 6px 16px -8px rgba(15,23,42,.2);
    }
    .hub-node:hover { transform: translateY(-3px); }

    /* صفحات داخلی */
    .post-grid { grid-template-columns: 1fr; }
    .post-share { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding-inline: 18px; }
    .brand-name { font-size: 19px; }
    .services-grid { grid-template-columns: 1fr; }
    .caps-grid { grid-template-columns: 1fr; }
    .pcards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .hero-media { max-width: 200px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .pcards { gap: 14px; }
    .footer-social { justify-content: center; }
    .about-values .values-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

/* ===================== صفحات فرود محلی (طراحی حرفه‌ای) ===================== */
/* هیرو تیرهٔ متحرک */
.landing-hero {
    background: radial-gradient(1100px 520px at 78% -12%, #1d4ed8 0%, transparent 60%),
                linear-gradient(160deg, #0a1636 0%, #0f2260 55%, #0b1a47 100%);
    border-bottom: 0; color: #fff; text-align: center;
    padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 76px);
}
.landing-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.landing-hero-bg .blob { opacity: .38; }
.landing-hero-bg .blob-1 { background: radial-gradient(circle, #3b82f6, transparent 70%); }
.landing-hero-bg .blob-2 { background: radial-gradient(circle, #60a5fa, transparent 70%); }
.landing-hero-bg .grid-overlay { opacity: .5; -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); }
.landing-glow { position: absolute; top: -120px; inset-inline-start: 50%; transform: translateX(-50%); width: 620px; height: 320px; background: radial-gradient(closest-side, rgba(96,165,250,.45), transparent); filter: blur(40px); }
.landing-hero .container { position: relative; z-index: 1; }
.landing-hero .eyebrow { background: rgba(255,255,255,.12); color: #dbeafe; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.landing-hero .page-title { color: #fff; font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.5px; line-height: 1.3; }
.landing-hero .page-title .text-grad { background: linear-gradient(90deg, #7dd3fc, #a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.landing-hero .page-lead { color: rgba(255,255,255,.9); max-width: 720px; }
.landing-hero .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.landing-hero .btn-ghost.glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(6px); }
.landing-hero .btn-ghost.glass:hover { background: rgba(255,255,255,.18); }
/* نوار ویژگی‌ها */
.landing-trust { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin: 30px auto 0; max-width: 820px; }
.landing-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #e2e8f0;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 9px 16px; backdrop-filter: blur(6px); }
.landing-trust .lt-ico { display: inline-flex; color: #7dd3fc; }

/* بدنه: محتوا + کارت محلی */
.landing-body { padding-block: clamp(44px, 6vw, 80px); }
.landing-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.landing-content { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 24px 60px -40px rgba(15,23,42,.3); }
.landing-content > h2:first-child, .landing-content > h2 { color: var(--ink); }
.landing-aside { position: sticky; top: 96px; }
.local-card { position: relative; overflow: hidden; background: linear-gradient(165deg, #0f2260, #1e3a8a); color: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 24px 50px -30px rgba(29,78,216,.6); }
.local-card::before { content: ''; position: absolute; top: -60px; inset-inline-end: -40px; width: 180px; height: 180px; background: radial-gradient(closest-side, rgba(125,211,252,.4), transparent); }
.local-card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 16px; position: relative; }
.local-card .lc-row { display: flex; align-items: center; gap: 9px; margin: 12px 0; color: rgba(255,255,255,.9); font-size: 14px; position: relative; }
.local-card .lc-row svg { color: #7dd3fc; flex-shrink: 0; }
.local-card .lc-row a { color: #fff; }
.local-card .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.local-card .btn-primary { background: #fff; color: #0f2260; }
.local-card .btn-primary:hover { background: #e0e7ff; }

/* پرسش‌های متداول */
.landing-faq .section-head { text-align: center; margin-bottom: 30px; }
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; box-shadow: 0 6px 18px -14px rgba(15,23,42,.25); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand, #2563eb) 40%, var(--line)); box-shadow: 0 16px 34px -22px rgba(37,99,235,.4); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--brand, #2563eb); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--muted, #475569); line-height: 2.1; }
.faq-answer p { margin: 0; }
@media (max-width: 860px) {
    .landing-grid { grid-template-columns: 1fr; }
    .landing-aside { position: static; }
}

/* ===================== کتابخانهٔ اسکیل‌ها ===================== */
.skills-search{display:flex;gap:8px;max-width:520px;margin:22px auto 0}
.skills-search input{flex:1;padding:13px 18px;border:1px solid var(--line);border-radius:14px;font-family:inherit;font-size:15px;background:#fff}
.skills-search input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.skills-search button{display:inline-flex;align-items:center;gap:6px;padding:0 20px;border:0;border-radius:14px;background:var(--brand);color:#fff;font-family:inherit;font-weight:700;cursor:pointer}
.skills-cats{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}
.scat{padding:7px 14px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);background:#fff}
.scat:hover{border-color:var(--brand);color:var(--brand)}
.scat.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.scat span{opacity:.7;font-size:11px}
.skills-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.skill-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s,border-color .18s}
.skill-card:hover{transform:translateY(-4px);box-shadow:0 24px 50px -30px rgba(37,99,235,.4);border-color:#c7d2fe}
.skill-card-body{padding:18px;flex:1;display:block}
.skill-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.skill-cat{background:var(--brand-wash,#eaf0ff);color:var(--brand);font-size:11px;font-weight:700;padding:3px 10px;border-radius:7px}
.skill-stars{font-size:12px;font-weight:700;color:#d97706}
.skill-title{font-size:16px;font-weight:800;margin:0 0 8px;line-height:1.6}
.skill-sum{color:var(--muted);font-size:13px;line-height:1.9;margin:0 0 12px}
.skill-tags{display:flex;flex-wrap:wrap;gap:5px}
.skill-tag{font-size:10.5px;background:#f1f5f9;color:var(--ink-2);padding:2px 8px;border-radius:6px}
.skill-card-foot{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.skill-more{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-weight:700}
/* single */
.skill-meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.skill-lang{font-size:12px;background:#f1f5f9;padding:3px 10px;border-radius:7px;font-weight:600}
.skill-src-btn{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--brand);border:1px solid var(--brand);padding:5px 12px;border-radius:9px}
.skill-body{max-width:820px}
.skill-section{margin-top:34px}
.skill-section .section-title{font-size:22px;margin-bottom:14px}
.sources-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.sources-list li{display:flex;align-items:center;gap:8px;font-size:14px}
.sources-list a{color:var(--brand);word-break:break-all}
.skill-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:36px;padding-top:24px;border-top:1px solid var(--line)}
