@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg2: #111827;
  --card: #151d2e;
  --card-hover: #1a2438;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --blue2: #1d4ed8;
  --green: #22c55e;
  --accent: #2563eb;
  --primary: #1e3a5f;
  --topbar-bg: rgba(11, 15, 23, 0.94);
  --hero-glow: rgba(37, 99, 235, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --table-head: #0f172a;
  --diagram-bg: #ffffff;
  --btn-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  --notice-bg: rgba(37, 99, 235, 0.08);
  --notice-border: rgba(59, 130, 246, 0.28);
  --radius: 12px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-fa-body: "BTitrBd", Tahoma, "Segoe UI", Arial, sans-serif;
  --font-fa-heading: "BTitrBd", Tahoma, "Segoe UI", Arial, sans-serif;
  --transition: 180ms ease;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg2: #eef2f7;
  --card: #ffffff;
  --card-hover: #f1f5f9;
  --line: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --green: #16a34a;
  --accent: #2563eb;
  --primary: #1e3a5f;
  --topbar-bg: rgba(248, 250, 252, 0.94);
  --hero-glow: rgba(37, 99, 235, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --table-head: #e2e8f0;
  --diagram-bg: #ffffff;
  --btn-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
  --notice-bg: rgba(37, 99, 235, 0.06);
  --notice-border: rgba(37, 99, 235, 0.22);
}

@font-face {
  font-family: "BZar";
  src: url("/assets/fonts/BZar.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BTitrBd";
  src: url("/assets/fonts/BTitrBd.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, 92vw); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { order: 1; }
.menu { order: 2; flex: 1 1 auto; justify-content: flex-end; }
.nav-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand-logo-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand img,
.brand img.brand-logo,
.brand img.site-img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: var(--card);
  padding: 3px;
  box-sizing: border-box;
}
.site-img { display: block; width: 100%; min-height: 120px; object-fit: cover; background: var(--card); }
.site-img.img-fallback { object-fit: contain; padding: 24px; max-height: 280px; }
.brand strong { display: block; font-size: 1rem; }
.brand span { font-size: .78rem; color: var(--muted); }
.menu { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.menu a { color: var(--muted); font-size: .92rem; }
.menu a.active, .menu a:hover { color: var(--blue); text-decoration: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  text-decoration: none;
}
.lang a:hover { color: var(--blue); text-decoration: none; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.theme-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.theme-toggle-sun,
.theme-toggle-moon {
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
html[data-theme="dark"] .theme-toggle .theme-toggle-sun {
  display: inline-flex;
}
html[data-theme="light"] .theme-toggle .theme-toggle-moon {
  display: inline-flex;
}
.theme-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  flex-shrink: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--accent);
  color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: filter var(--transition), transform var(--transition);
}
.btn:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }
.btn.outline {
  background: transparent; color: var(--blue);
  border: 1px solid var(--blue); box-shadow: none;
}

.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(ellipse at top, var(--hero-glow), transparent 58%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-intro {
  padding-bottom: 32px;
}
.hero-intro .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.hero-intro h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  margin: 0 0 12px;
  line-height: 1.35;
  font-weight: 800;
  width: 100%;
  max-width: 100%;
}
.hero-intro .lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  margin: 0 0 20px;
  width: 100%;
  max-width: 100%;
  line-height: 1.75;
}
.hero-capabilities {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.hero-cap-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-cap-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border: 0;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.hero-cap-item:nth-child(4n) {
  border-inline-end: 0;
}
.hero-cap-item:nth-child(n+5) {
  border-bottom: 0;
}
.hero-cap-item::before {
  content: none;
}
.hero-cap-label {
  color: var(--text);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .hero-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-cap-item {
    border-inline-end: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hero-cap-item:nth-child(4n) {
    border-inline-end: 1px solid var(--line);
  }
  .hero-cap-item:nth-child(2n) {
    border-inline-end: 0;
  }
  .hero-cap-item:nth-child(n+5) {
    border-bottom: 1px solid var(--line);
  }
  .hero-cap-item:nth-child(n+7) {
    border-bottom: 0;
  }
}
@media (max-width: 520px) {
  .hero-cap-grid {
    grid-template-columns: 1fr;
  }
  .hero-cap-item {
    justify-content: flex-start;
    text-align: start;
    border-inline-end: 0;
    min-height: 42px;
  }
  .hero-cap-item:nth-child(2n) {
    border-inline-end: 0;
  }
  .hero-cap-item:nth-child(n+7) {
    border-bottom: 1px solid var(--line);
  }
  .hero-cap-item:last-child {
    border-bottom: 0;
  }
  [dir="rtl"] .hero-cap-item {
    text-align: right;
  }
}
@media (min-width: 861px) {
  .hero-intro h1 {
    font-size: clamp(1.85rem, 2.8vw, 2.75rem);
    line-height: 1.3;
  }
  .hero-intro .lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    margin-bottom: 28px;
  }
  .hero-intro .download-btn-grid {
    width: 100%;
    margin-top: 4px;
  }
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); margin: 0 0 12px; line-height: 1.2; font-weight: 800; }
.hero p.lead { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.12rem); margin: 0 0 20px; max-width: 52ch; }
.hero.hero-intro h1,
.hero.hero-intro p.lead,
.hero.hero-intro .lead {
  width: 100%;
  max-width: 100%;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

/* Platform sections (Windows / Android) */
.platform-section { padding-top: 36px; padding-bottom: 36px; }
.platform-block > h2 { margin-bottom: 6px; }
.platform-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}
.platform-copy p { margin: 0 0 14px; color: var(--text); line-height: 1.75; }
.platform-copy p:last-child { margin-bottom: 0; }
.platform-meta { color: var(--muted) !important; font-size: .92rem; }
.platform-figure,
.platform-shot {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.platform-figure img,
.platform-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: var(--card);
  min-height: 220px;
}
.platform-figure-duo img,
.platform-shot-duo img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  min-height: 0;
  height: auto;
}
.platform-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.platform-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px auto 0;
  opacity: .85;
}

/* Download button grid */
.download-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 0;
}
.download-btn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: filter var(--transition), border-color var(--transition), transform var(--transition);
}
a.download-btn-card {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--btn-shadow);
}
a.download-btn-card:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.download-btn-card.is-disabled {
  opacity: .62;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--card);
  border: 1px dashed var(--line);
  color: var(--muted);
  box-shadow: none;
}
.download-btn-title {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
}
.download-btn-sub {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
a.download-btn-card .download-btn-sub { color: rgba(255,255,255,.85); }

/* Platform dashboard pairs (Basic / Pro pages) */
.platform-dashboards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.platform-dashboard-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.platform-dashboard-card h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.platform-dashboard-card .figure {
  border: 0;
  border-radius: 0;
  flex: 1;
}
.platform-dashboard-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  min-height: 200px;
}
.platform-dashboard-card figcaption {
  text-align: center;
}
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.btn.disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--card);
  border: 1px dashed var(--line);
  color: var(--muted);
}
.download-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}
.android-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.35);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}
.stat-card .stat-value.is-soon {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  font-weight: 700;
}
.android-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stats-section { padding-top: 0; }
.stats-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}
.stat-card {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 180px;
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}
.stat-card .stat-icon {
  width: 32px;
  height: 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--blue);
  line-height: 1;
}
.stat-card .stat-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.stat-card .stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}
.stat-card .stat-label { color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 640px) {
  .stats-grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .stat-card {
    -webkit-box-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
  }
}

.footer-notice {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  color: var(--text); font-size: .9rem; line-height: 1.55;
}
.footer-notice-icon { flex-shrink: 0; font-size: 1.2rem; line-height: 1.45; margin-top: 1px; }
.footer-notice-text { margin: 0; flex: 1; min-width: 0; }
.footer-notice-text strong { color: var(--text); font-weight: 600; }

@media (max-width: 560px) {
  .footer-notice { font-size: .85rem; padding: 12px 14px; gap: 10px; }
}

.section { padding: 44px 0; }
.section h2 {
  font-size: 1.5rem; margin: 0 0 8px;
  border-inline-start: 4px solid var(--blue);
  padding-inline-start: 12px;
}
.section .sub { color: var(--muted); margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 108px;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 8px; color: var(--blue); font-size: 1.05rem; }
.cards .card h3 {
  font-size: 0.84rem;
  line-height: 1.35;
  min-height: 2.7em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
}
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
th { background: var(--table-head); color: var(--blue); }

.figure {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--card);
}
.figure figcaption { padding: 10px 12px; color: var(--muted); font-size: .85rem; }

.features-diagram {
  margin: 0 auto 24px;
  max-width: 920px;
}
.cards + .features-diagram {
  margin-top: 36px;
}
.features-diagram img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  min-height: 0;
  background: var(--diagram-bg);
}

.download-list { list-style: none; padding: 0; margin: 0; }
.download-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.download-list li:last-child { border-bottom: 0; }

.footer {
  margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .88rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

[dir="rtl"],
html[lang="fa"] {
  font-family: var(--font-fa-heading);
}

[dir="rtl"] body,
html[lang="fa"] body {
  font-family: var(--font-fa-body);
  text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] p,
[dir="rtl"] li,
[dir="rtl"] a,
[dir="rtl"] button,
[dir="rtl"] .btn,
[dir="rtl"] .menu a,
[dir="rtl"] .brand strong,
[dir="rtl"] .brand span,
[dir="rtl"] .faq-item summary,
[dir="rtl"] .faq-answer,
[dir="rtl"] .footer,
[dir="rtl"] .footer-notice,
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] p,
html[lang="fa"] li,
html[lang="fa"] a,
html[lang="fa"] button,
html[lang="fa"] .btn,
html[lang="fa"] .menu a,
html[lang="fa"] .brand strong,
html[lang="fa"] .brand span,
html[lang="fa"] .faq-item summary,
html[lang="fa"] .faq-answer,
html[lang="fa"] .footer,
html[lang="fa"] .footer-notice {
  font-family: var(--font-fa-heading);
  font-weight: normal;
}

html[lang="fa"] .hero h1,
[dir="rtl"] .hero h1 {
  font-size: clamp(calc(1.75rem + 3px), calc(3.5vw + 3px), calc(2.65rem + 3px));
}

html[lang="fa"] .section h2,
[dir="rtl"] .section h2 {
  font-size: calc(1.5rem + 3px);
}

html[lang="fa"] .card h3,
[dir="rtl"] .card h3,
html[lang="fa"] .faq-pricing .card h3,
[dir="rtl"] .faq-pricing .card h3 {
  font-size: calc(1.05rem + 3px);
}
html[lang="fa"] .cards .card h3,
[dir="rtl"] .cards .card h3 {
  font-size: 0.84rem;
}

html[lang="fa"] .section h1,
html[lang="fa"] .privacy-content h1,
[dir="rtl"] .section h1,
[dir="rtl"] .privacy-content h1 {
  font-size: clamp(calc(1.6rem + 3px), calc(3vw + 3px), calc(2.1rem + 3px));
}

html[lang="fa"] .faq-page h1,
[dir="rtl"] .faq-page h1 {
  font-size: clamp(calc(1.6rem + 5px), calc(3vw + 5px), calc(2.1rem + 5px));
}

html[lang="fa"] .faq-item summary,
[dir="rtl"] .faq-item summary {
  font-size: calc(1rem + 5px);
}

html[lang="fa"] .faq-intro,
[dir="rtl"] .faq-intro {
  font-size: calc(1.05rem + 5px);
}

[dir="ltr"] body { text-align: left; }

@media (max-width: 960px) {
  .download-btn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-hero-grid {
    grid-template-columns: 1fr;
  }
  .platform-showcase,
  .platform-dashboards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .download-btn-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 10px;
  }
  .brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 120px);
    order: 1;
  }
  .brand img,
  .brand img.brand-logo,
  .brand img.site-img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
  }
  .brand span { display: none; }
  .nav-actions {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    order: 2;
    gap: 8px;
    margin-inline-start: auto;
    position: relative;
    z-index: 3;
  }
  .nav-actions .lang {
    display: inline-flex !important;
    visibility: visible !important;
  }
  .menu {
    display: none;
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
  }
  .nav.open .menu {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .menu .lang { display: none !important; }
}

.privacy-content { max-width: 720px; }
.privacy-content h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.privacy-content p { margin: 0 0 16px; color: var(--text); line-height: 1.75; }
.privacy-content p.sub { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.privacy-content ul {
  margin: 0 0 16px; padding-inline-start: 1.4rem;
  color: var(--text); line-height: 1.75;
}
.privacy-content li { margin-bottom: 8px; }
.privacy-content strong { color: var(--blue); font-weight: 700; }

.faq-page { max-width: 860px; }
.faq-page h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.faq-intro {
  color: var(--muted); font-size: 1.05rem; line-height: 1.75;
  margin: 0 0 28px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item[open] summary { color: var(--blue); border-bottom: 1px solid var(--line); }
.faq-answer {
  padding: 16px 18px 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: .95rem;
}
.faq-answer p { margin: 0 0 12px; color: var(--text); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 8px 0 12px; padding-inline-start: 1.4rem; color: var(--text); }
.faq-answer li { margin-bottom: 10px; }
.faq-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.faq-pricing .card h3 { font-size: 1rem; }
.faq-cta { margin-top: 32px; text-align: center; }

.page-hero-band {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}
.page-hero-band h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-hero-band .sub {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

html[lang="en"] body,
html[lang="en"] .menu a,
html[lang="en"] .btn,
html[lang="en"] .brand strong {
  font-family: var(--font);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Phase 2: Enterprise page layouts --- */
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-intro {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-intro .lead,
.page-intro .sub {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.75;
}
.page-intro .lead { font-size: 1.05rem; margin-top: 8px; }
.page-intro .tutorial-overview {
  margin: 10px 0 0;
  padding: 0 1.2em 0 0;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.85;
}
.page-intro .tutorial-overview li { margin-bottom: 6px; }

.guide-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 28px 0 36px;
}
.guide-block {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
}
.guide-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}
.guide-block h2.is-collapsible {
  cursor: pointer;
  user-select: none;
}
.guide-block h2.is-collapsible:hover {
  color: var(--blue);
}
.guide-readmore-wrap {
  position: relative;
}
.guide-readmore-wrap.is-short .guide-readmore-fade,
.guide-readmore-wrap.is-short .guide-readmore-btn {
  display: none;
}
.guide-readmore-wrap.is-expanded .guide-readmore-fade {
  display: none;
}
.guide-readmore-body {
  max-height: 10.5em;
  overflow: hidden;
  line-height: 1.8;
  font-size: .94rem;
  color: var(--text);
  transition: max-height 320ms ease;
}
.guide-readmore-body.is-expanded {
  max-height: none;
}
.guide-readmore-body p {
  margin: 0 0 12px;
}
.guide-readmore-body h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.guide-readmore-body h3:first-child {
  margin-top: 0;
}
.guide-readmore-body ol,
.guide-readmore-body ul {
  margin: 0 0 14px;
  padding-inline-start: 1.35em;
}
.guide-readmore-body li {
  margin-bottom: 8px;
}
.guide-readmore-body li:last-child {
  margin-bottom: 0;
}
.guide-readmore-body a {
  color: var(--blue);
  word-break: break-word;
}
.guide-readmore-body strong {
  font-weight: 700;
}
.guide-readmore-body .guide-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.guide-readmore-body .guide-note {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius);
  background: var(--notice-bg);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.75;
}
.guide-readmore-body .guide-figure {
  margin: 14px auto 18px;
  max-width: 56%;
}
.guide-readmore-body .guide-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.guide-readmore-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 42px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--card));
  pointer-events: none;
}
.guide-readmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 9px 18px;
  border: 1px solid var(--notice-border);
  border-radius: 999px;
  background: var(--notice-bg);
  color: var(--blue);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.guide-readmore-btn:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
}
.guide-readmore-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .guide-block {
    padding: 16px 14px 14px;
  }
  .guide-readmore-body {
    max-height: 9.5em;
    font-size: .9rem;
  }
}

.trust-section {
  padding-top: 28px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.trust-section h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  border: 0;
  padding: 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.trust-item strong {
  color: var(--text);
  font-size: .95rem;
}
.trust-item span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.download-panel h2,
.section-block > h2 {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.workflow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.workflow-steps li,
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.5;
}
.workflow-steps li::before,
.step-item::before {
  content: attr(data-step);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: .92rem;
}

.download-panel {
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.download-panel .download-btn-grid {
  margin-top: 16px;
}

.section-subtitle {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color var(--transition), transform var(--transition);
}
.doc-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}
.doc-card h3 {
  margin: 0;
  font-size: .98rem;
  color: var(--text);
}
.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  flex: 1;
}
.doc-card .btn {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: .85rem;
}

.cta-band {
  margin-top: 32px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card), var(--bg2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}
.cta-band strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}
.cta-band .split-actions {
  flex-shrink: 0;
}
.split-actions .btn,
.split-actions .btn.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
  white-space: nowrap;
}
.split-actions .btn:hover,
.split-actions .btn.outline:hover {
  filter: none;
  transform: none;
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
  text-decoration: none;
}

.section-block {
  margin-top: 36px;
}
.section-block > h2 {
  margin-bottom: 8px;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
}
.redirect-shell {
  text-align: center;
  padding: 32px 24px;
}
.redirect-logo {
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.redirect-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.redirect-msg {
  margin: 0 0 12px;
  color: var(--muted);
}
.redirect-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.redirect-links a:hover {
  text-decoration: underline;
}
