/* ============================================================
   استفینو — فرانور | استایل واحد (نسخه بازطراحی‌شده)
   جایگزین: root-fix, pill-fix, slide1-fixes, hero-image-fix,
            layout-fix, content-polish, restructure
   ============================================================ */

/* ---------- فونت لوکال (متغیر، زیرمجموعه fa + latin) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/v1.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/v3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- توکن‌ها ---------- */
:root {
  --ink: #08275c;          /* تیترها */
  --ink-2: #0b3978;
  --body-c: #3d5a7d;       /* متن */
  --muted: #647c9d;
  --blue: #1269c5;
  --blue-deep: #0d4d98;
  --teal: #12a97d;
  --teal-ink: #0a7a5c;     /* kicker — کنتراست ≥4.5:1 روی سفید */
  --mint: #83e5bf;
  --line: #dbe8f4;
  --bg: #ffffff;
  --bg-soft: #f5faff;
  --bg-mist: #eef6f2;
  --ring: 0 0 0 3px rgba(18, 169, 125, .25);
  --shadow-sm: 0 1px 2px rgba(9, 47, 104, .05);
  --shadow-md: 0 1px 2px rgba(9, 47, 104, .05), 0 14px 36px rgba(9, 47, 104, .08);
  --shadow-lg: 0 2px 4px rgba(9, 47, 104, .06), 0 24px 60px rgba(9, 47, 104, .14);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- ریست ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, system-ui, -apple-system, sans-serif;
  color: var(--body-c);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.4; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(18, 105, 197, .18); }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.skip-link {
  position: fixed; top: -48px; right: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; text-decoration: none; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- تایپوگرافی ---------- */
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.35; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.45; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.22rem); line-height: 2; color: var(--body-c); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--teal-ink); font-weight: 800; font-size: .95rem; margin: 0 0 14px;
}
.kicker::before { content: ''; width: 28px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mint), var(--teal)); }
.kicker-light { color: #9fe8cf; }
.grad-text {
  background: linear-gradient(100deg, var(--blue) 10%, var(--teal) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-no {
  font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #c3d9ee;
  margin: 0 0 6px; user-select: none;
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue-deep); color: #fff; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 14px; padding: 14px 28px;
  font-size: 1rem; font-weight: 800; line-height: 1.6;
  box-shadow: 0 10px 24px rgba(13, 77, 152, .28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); background: #0a3f7e; box-shadow: 0 16px 32px rgba(13, 77, 152, .34); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 20px; font-size: .9rem; border-radius: 12px; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(3, 20, 50, .3); }
.btn-light:hover { background: #eef6ff; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-deep); text-decoration: none; font-weight: 800;
  border: 1.5px solid #bcd6ef; border-radius: 14px; padding: 12.5px 24px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--blue); background: #f2f8ff; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-deep); font-weight: 800; text-decoration: none; margin-top: 22px;
}
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(-4px); }
/* جهت فلش متن‌لینک‌ها سابقاً بررسی شد: فارسی (RTL) به چپ ✓ — فقط hover انگلیسی اصلاح شد */
html[lang="en"] .text-link:hover svg { transform: translateX(4px); }

/* نوار اعتماد زیر دکمه‌های هیرو */
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--teal-ink); flex-shrink: 0; }

/* لینک نقشه روی آدرس شرکت */
.company-row > a.c-maplink { flex: 1; min-width: 0; display: block; text-decoration: none; }
.company-row .c-maplink .c-value { transition: color .2s; }
.company-row .c-maplink:hover .c-value { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- ناوبری ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand-farnoor { height: 44px; width: auto; }
.brand-staffino { height: 38px; width: auto; }
.brand-sep { width: 1px; height: 28px; background: #c9dcef; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 700;
  padding: 6px 2px; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2.5px;
  border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; background: none; border: 0; color: var(--ink); cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
}
.menu-btn:hover { background: rgba(9, 47, 104, .06); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px max(4vw, 16px) 20px;
}
.mobile-menu a { text-decoration: none; color: var(--ink-2); font-weight: 700; padding: 12px 10px; border-radius: 12px; }
.mobile-menu a:hover { background: var(--bg-soft); }
.mobile-menu .btn { margin-top: 8px; }
.mobile-menu.open { display: flex; }

/* ---------- قهرمان ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 90px)) 0 clamp(48px, 7vh, 90px);
  background:
    radial-gradient(58rem 34rem at 88% -10%, rgba(19, 105, 197, .1), transparent 60%),
    radial-gradient(46rem 30rem at 4% 110%, rgba(18, 169, 125, .12), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(36px, 5vw, 80px); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #e3f0ff; color: var(--ink-2);
  border-radius: 999px; padding: 10px 20px;
  font-size: 1.02rem; font-weight: 800;
}
.pill svg { color: var(--blue); }
.pill-mint { background: #e0f8ec; }
.pill-mint svg { color: var(--teal-ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; }
.hero-art img { filter: drop-shadow(0 30px 45px rgba(9, 47, 104, .16)); }

/* ---------- سکشن‌ها ---------- */
.section { padding: clamp(88px, 12vh, 150px) 0; scroll-margin-top: calc(var(--nav-h) + 8px); }
.section-soft { background: linear-gradient(180deg, #fbfdff, var(--bg-soft)); }
.section-mist { background: linear-gradient(180deg, #f7fcf9, var(--bg-mist)); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-head .lead { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-art { order: 1; }
.split-copy .lead { margin-top: 16px; }
.split-art img { filter: drop-shadow(0 26px 40px rgba(9, 47, 104, .13)); }
/* امکانات (۰۳) و دسته‌بندی‌ها (۰۶): محتوا سمت راست، تصویر سمت چپ */
.features-split .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.features-split .feature-card { padding: 16px 18px; }
.features-split .feature-card h3 { font-size: .98rem; margin: 10px 0 2px; }
.features-split .feature-card p { font-size: .85rem; }
.cats-split .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.cats-split .cat-chip { padding: 9px 12px; font-size: .85rem; }

/* آمار */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
}
.stat b { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat span { font-size: .88rem; font-weight: 700; color: var(--muted); }

/* مراحل راهکار */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: step; }
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.steps b {
  flex: 0 0 34px; height: 34px; display: grid; place-items: center;
  border-radius: 12px; font-size: .8rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 6px 14px rgba(18, 105, 197, .25);
}
.steps h3 { font-size: .98rem; margin-bottom: 2px; }
.steps p { font-size: .84rem; color: var(--muted); line-height: 1.7; }

/* ویژگی‌ها */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.05rem; margin: 14px 0 4px; }
.feature-card p { font-size: .9rem; color: var(--muted); }
.icon-chip {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; color: var(--blue-deep);
  background: linear-gradient(135deg, #d9f6ea, #d4e9ff);
}

/* لیست‌های کوچک مزایا/گزارش */
.mini-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-list li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mini-list li .icon-chip { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; }
.mini-list h3 { font-size: .95rem; }
.mini-list p { font-size: .82rem; color: var(--muted); line-height: 1.7; }

/* دسته‌بندی خدمات */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; font-size: .88rem; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s;
}
.cat-chip:hover { transform: translateY(-2px); border-color: #b9d7f0; }
.cat-chip svg { color: var(--teal-ink); flex-shrink: 0; }

/* تصویر عریض */
.wide-art { margin-top: clamp(40px, 6vh, 60px); }
.wide-art img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* یک تجربه، دو نگاه */
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dual-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 28px 0; box-shadow: var(--shadow-md); overflow: hidden;
}
.dual-card h3 { font-size: 1.2rem; }
.dual-card p { color: var(--muted); font-size: .95rem; margin: 4px 0 20px; }
.dual-card img { border-radius: 14px 14px 0 0; }

/* کارت اطلاعات شرکت */
.company-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 8px 22px; margin-top: 28px;
}
.company-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #edf4fa; }
.company-row:last-child { border-bottom: 0; }
.company-row > svg { flex: 0 0 20px; color: var(--teal-ink); }
.company-row > a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.company-row .c-label { flex: 0 0 90px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.company-row .c-value { color: var(--ink); font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.company-row .c-value[dir="ltr"] { text-align: right; }

/* کلید تغییر زبان */
.lang-link {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #bcd6ef; border-radius: 10px;
  padding: 5px 12px; text-decoration: none;
  font-size: .8rem; font-weight: 800; color: var(--blue-deep);
  transition: border-color .2s, background .2s;
}
.lang-link:hover { border-color: var(--blue); background: #f2f8ff; }
.footer .lang-link { border-color: rgba(185, 205, 234, .35); color: #9fc0e8; display: inline; padding: 3px 10px; }
.footer .lang-link:hover { color: #fff; border-color: #9fc0e8; background: none; }

/* نسخه انگلیسی (LTR) */
html[lang="en"] .field select {
  background-position: calc(100% - 24px) calc(50% - 2.5px), calc(100% - 18px) calc(50% - 2.5px);
}
html[lang="en"] .quote-card blockquote::before { content: none; }

/* درباره ما */
.about-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px; margin-top: 28px; }
.about-facts > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
}
.about-facts b { color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.about-facts span { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* دمو (پنل تیره) */
.section-dark {
  background:
    radial-gradient(52rem 30rem at 85% 0%, rgba(31, 141, 214, .35), transparent 60%),
    radial-gradient(44rem 26rem at 8% 100%, rgba(18, 169, 125, .25), transparent 60%),
    linear-gradient(160deg, #06224d, #0a3f7e);
}
.demo-panel {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(36px, 5vw, 80px);
}
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #c6d9f2; }
.demo-points { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 10px; }
.demo-points li {
  display: flex; align-items: baseline; gap: 12px;
  color: #dceafc; font-size: .95rem;
}
.demo-points b { color: #fff; font-size: 1rem; }
.demo-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); align-self: center; }
.demo-art img {
  background: rgba(255, 255, 255, .94); border-radius: var(--r-lg);
  padding: 18px; box-shadow: 0 40px 80px rgba(2, 12, 32, .45);
}
.sec-no.demo-no { -webkit-text-stroke-color: #7ea4d4; }

/* ---------- فرم تماس ---------- */
.form-card {
  background: linear-gradient(150deg, #ffffff, #f6fbff);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: clamp(22px, 3vw, 36px);
}
.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 800; color: var(--ink-2); }
.field input, .field select {
  height: 48px; padding: 0 16px;
  border: 1.5px solid #cadcea; border-radius: 13px;
  background: #f7fafd; color: var(--ink);
  font-size: .95rem; font-weight: 600; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue-deep) 50%), linear-gradient(135deg, var(--blue-deep) 50%, transparent 50%); background-position: calc(18px) calc(50% - 2.5px), calc(24px) calc(50% - 2.5px); background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field select:hover { border-color: #93bedd; background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: var(--ring); }
.field input:invalid:not(:placeholder-shown) { border-color: #d66a7c; }
.field-error { color: #b34258; font-size: .78rem; font-weight: 700; }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn-submit { min-height: 50px; font-size: 1rem; margin-top: 4px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .85rem; font-weight: 700; color: #b34258; min-height: 1.2em; }
.form-status.ok { color: var(--teal-ink); }
.form-success {
  grid-column: 1 / -1; text-align: center;
  background: #e9f9f1; border: 1px solid #bfe9d6; border-radius: var(--r-md);
  padding: 26px 20px; color: var(--teal-ink);
}
.form-success svg { color: var(--teal); margin-inline: auto; }
.form-success h3 { color: #076248; margin: 10px 0 4px; font-size: 1.05rem; }
.form-success p { font-size: .9rem; color: #155f4c; }
.contact-info { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-info a {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink-2); font-weight: 700;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; width: fit-content;
  transition: border-color .2s, transform .2s var(--ease);
}
.contact-info a:hover { border-color: var(--teal); transform: translateX(-3px); }
.contact-info svg { color: var(--teal-ink); }
.contact-art { margin-top: 32px; }
.contact-art img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* ---------- فوتر ---------- */
.footer { background: linear-gradient(180deg, #071f47, #051734); color: #b9cdea; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: clamp(48px, 8vh, 80px) 0 40px;
}
.footer h3 { color: #fff; font-size: .95rem; margin: 0 0 16px; }
.footer a { display: block; text-decoration: none; padding: 5px 0; font-size: .9rem; transition: color .2s; }
/* ستون تماس فوتر: ایمیل/تلفن همیشه راست‌چین (مقاوم به bidi) */
html[dir="rtl"] .footer a[href^="mailto:"] { direction: ltr; text-align: right; unicode-bidi: isolate; }
html[dir="rtl"] .footer a[href^="tel:"] { text-align: right; }
.footer a:hover { color: #fff; }
.footer-brand p { font-size: .9rem; line-height: 1.9; margin-top: 14px; max-width: 300px; }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-nid { display: block; font-size: .8rem; margin-top: 8px; color: #7f9cc4; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(185, 205, 234, .15);
  padding: 20px 0 26px; font-size: .82rem; color: #7f9cc4;
}
.footer-bottom a { display: inline; color: #9fc0e8; }

/* ---------- انیمیشن reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal[data-delay="6"] { transition-delay: .48s; }
.reveal[data-delay="7"] { transition-delay: .56s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- افکت‌های تصویر و هیرو ---------- */
/* ورود تصاویر: کمی بزرگ‌تر شروع می‌کنند و داخل قاب جمع می‌شوند */
.split-art.reveal img, .wide-art.reveal img, .hero-art.reveal img {
  transform: scale(1.045);
  transition: opacity .65s var(--ease), transform .9s var(--ease);
}
.split-art.reveal.in img, .wide-art.reveal.in img, .hero-art.reveal.in img {
  transform: scale(1);
}
/* شنای ملایم تصویر هیرو */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-art.in img { animation: hero-float 7s ease-in-out 1s infinite; }

/* ---------- رضایت حریم خصوصی فرم ---------- */
.form-consent {
  grid-column: 1 / -1;
  font-size: .78rem; line-height: 1.8; color: var(--muted);
  margin-top: 2px;
}

/* ---------- نوار CTA چسبان موبایل ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(9, 47, 104, .1);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; min-height: 48px; }
.sticky-cta small { display: block; text-align: center; color: var(--muted); font-size: .72rem; margin-bottom: 6px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .split, .demo-panel { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: 0; }
  .split-reverse .split-art { order: 1; }
  .split-art { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav-actions .btn { display: none; } /* در صفحه‌های کوچک جا نمی‌شود؛ در منو و نوار پایین هست */
  .brand-farnoor { height: 38px; }
  .brand-staffino { height: 32px; }
  .brand-sep { height: 22px; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); line-height: 1.45; }
  .lead { font-size: 1rem; }
  .hero-pills { margin-top: 26px; }
  .pill { font-size: .92rem; padding: 9px 16px; }
  .hero-cta .btn, .hero-cta .btn-ghost { flex: 1 1 auto; justify-content: center; }
  .steps, .mini-list { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 1.35rem; }
  .feature-grid, .cat-grid, .dual-grid { grid-template-columns: 1fr; }
  .features-split .feature-grid, .cats-split .cat-grid { grid-template-columns: 1fr; }
  .company-row { flex-wrap: wrap; }
  .company-row .c-label { flex-basis: 74px; }
  .consult-form { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .sec-head { margin-bottom: 32px; }
  .section { padding: 72px 0; }
  /* فاصله از نوار CTA چسبان */
  body:has(.sticky-cta.visible) .footer-bottom { padding-bottom: calc(26px + 76px + env(safe-area-inset-bottom, 0px)); }
}

/* نوتیفیکیشن‌بار iOS: نوار چسبان فقط در تبلت/موبایل */
@media (max-width: 1024px) {
  .sticky-cta { display: block; }
}
@media (min-width: 1025px) {
  .sticky-cta { display: none; }
}

/* ---------- حرکت کاهش‌یافته ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-art.in img { animation: none; }
  .sticky-cta { transition: none; }
}

/* ---------- حالت تیره (کلید دستی + پیش‌فرض از سیستم‌عامل — توسط اسکریپت head تنظیم می‌شود) ---------- */
html[data-theme="dark"] {
  --ink: #e8f1fb;
  --ink-2: #c9dcf2;
  --body-c: #b3c6de;
  --muted: #8ba4c4;
  --blue: #4a9ce8;
  --blue-deep: #2f7cc9;
  --teal: #2ec08d;
  --teal-ink: #4fd6a4;
  --line: #223852;
  --bg: #0a1628;
  --bg-soft: #0d1c30;
  --bg-mist: #0c1e2e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .section-soft { background: linear-gradient(180deg, rgba(255, 255, 255, .02), var(--bg-soft)); }
html[data-theme="dark"] .section-mist { background: linear-gradient(180deg, rgba(255, 255, 255, .02), var(--bg-mist)); }
html[data-theme="dark"] .skip-link { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
html[data-theme="dark"] .nav.scrolled { background: rgba(10, 22, 40, .8); }
html[data-theme="dark"] .brand { background: rgba(255, 255, 255, .95); padding: 5px 12px; border-radius: 12px; }
html[data-theme="dark"] .menu-btn:hover { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .mobile-menu { background: rgba(10, 22, 40, .96); }
html[data-theme="dark"] .btn:hover { background: #3a8ad4; }
html[data-theme="dark"] .btn-ghost { border-color: #2c4a6e; color: #9cc4ee; }
html[data-theme="dark"] .btn-ghost:hover { border-color: var(--blue); background: rgba(74, 156, 232, .12); }
html[data-theme="dark"] .lang-link { border-color: #2c4a6e; color: #9cc4ee; }
html[data-theme="dark"] .lang-link:hover { border-color: var(--blue); background: rgba(74, 156, 232, .12); }
html[data-theme="dark"] .theme-btn { border-color: #2c4a6e; color: #ffd668; }
html[data-theme="dark"] .theme-btn:hover { border-color: #ffd668; background: rgba(255, 214, 104, .1); }
html[data-theme="dark"] .theme-btn .ic-sun { display: block; }
html[data-theme="dark"] .theme-btn .ic-moon { display: none; }
html[data-theme="dark"] .sec-no { -webkit-text-stroke-color: #2e4a6e; }
html[data-theme="dark"] .pill { background: rgba(74, 156, 232, .14); }
html[data-theme="dark"] .pill-mint { background: rgba(18, 169, 125, .14); }
html[data-theme="dark"] .icon-chip { background: linear-gradient(135deg, rgba(18, 169, 125, .16), rgba(74, 156, 232, .18)); color: #8cc8f2; }
html[data-theme="dark"] .stat, html[data-theme="dark"] .steps li, html[data-theme="dark"] .feature-card, html[data-theme="dark"] .mini-list li, html[data-theme="dark"] .cat-chip, html[data-theme="dark"] .dual-card, html[data-theme="dark"] .company-card, html[data-theme="dark"] .about-facts > div, html[data-theme="dark"] .contact-info a { background: #10233c; }
html[data-theme="dark"] .cat-chip:hover { border-color: #35577d; }
html[data-theme="dark"] .company-row { border-bottom-color: #1b3049; }
html[data-theme="dark"] .form-card { background: linear-gradient(150deg, #10233c, #0e1f36); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select { background: #0d2036; border-color: #2c4a6e; }
html[data-theme="dark"] .field input:hover, html[data-theme="dark"] .field select:hover { border-color: #3f6791; background: #12294a; }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field select:focus { background: #12294a; }
html[data-theme="dark"] .form-success { background: rgba(18, 169, 125, .12); border-color: rgba(18, 169, 125, .35); }
html[data-theme="dark"] .form-success h3 { color: #7fe6c0; }
html[data-theme="dark"] .form-success p { color: #a9d9c8; }
html[data-theme="dark"] .sticky-cta { background: rgba(10, 22, 40, .94); border-top: 1px solid var(--line); }

/* کلید حالت روز/شب */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: none; border: 1.5px solid #bcd6ef; color: var(--blue-deep);
  transition: border-color .2s, background .2s;
}
.theme-btn:hover { border-color: var(--blue); background: #f2f8ff; }
.theme-btn .ic-sun { display: none; }
