@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f5faf8;
  --white: #ffffff;
  --card: #ffffff;
  --soft: #f8fcfa;
  --ink: #102f30;
  --muted: #809793;
  --line: #dfede8;
  --green: #0fa486;
  --green-dark: #087763;
  --mint: #e7f6f0;
  --shadow: 0 20px 70px rgba(13, 75, 61, 0.07);
  --hero-gradient: linear-gradient(120deg, #e7f5ef, #fafdfe);
}

body.dark-mode {
  --bg: #0a1112;
  --white: #101b1c;
  --card: #111f20;
  --soft: #142526;
  --ink: #edf8f4;
  --muted: #8da9a1;
  --line: #263b3b;
  --green: #31c9a2;
  --green-dark: #54e0bc;
  --mint: #16352f;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  --hero-gradient: linear-gradient(120deg, #132c29, #101b1d);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 88px;   /* ← این خط جدید */
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.9;
  transition: background 0.3s ease, color 0.3s ease;
}

a,
button,
div,
section,
article {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1460px, calc(100% - 76px));
  margin-inline: auto;
}

.top-line {
  height: 4px;
  background: linear-gradient(90deg, #087763, #63cdb1, #087763);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1001;
}


/* HEADER */

.header {
  position: fixed !important;
  top: 4px;
  right: 0;
  left: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.dark-mode .header {
  background: rgba(10, 20, 20, 0.95);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}

.brand-text strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  padding: 28px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--green);
  border-color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px; /* فاصله کمتر بین تم و همبرگری */
}

/* دکمه منوی موبایل */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--green);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
}

.theme-toggle:hover {
  color: white;
  background: var(--green);
  transform: rotate(12deg);
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mint);
  color: var(--green-dark);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 11px 17px;
  font-size: 11px;
  font-weight: 800;
}

.header-btn b {
  font-size: 17px;
}


/* HERO */

.hero {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 0;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  background: var(--hero-gradient);
  box-shadow: var(--shadow);
}

.hero-content {
  display: contents;
}

.hero-copy {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.eyebrow span {
  color: #9bc8ba;
}

.hero h1 {
  margin: 18px 0;
  color: var(--ink);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.6;
  letter-spacing: -1.5px;
  font-weight: 900;
}

.hero h1 em,
h2 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy p {
  max-width: 510px;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.25s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 25px rgba(15, 164, 134, 0.18);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  color: var(--green);
  border-color: var(--green);
}

.btn-light {
  color: #102f30;
  background: #fff;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
}

.trust-faces {
  display: flex;
  direction: ltr;
}

.trust-faces span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  color: var(--green-dark);
  background: var(--mint);
  border: 2px solid var(--bg);
  border-radius: 50%;
  font-size: 10px;
}

.trust-faces span:last-child {
  color: #fff;
  background: var(--ink);
}

.hero-trust strong,
.hero-trust small {
  display: block;
}

.hero-trust strong {
  font-size: 11px;
}

.hero-trust small {
  color: var(--muted);
  font-size: 10px;
}


/* FOUNDER */
/* FOUNDER — اسلایدشو کامل */

.founder-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #172b2b;
}

.founder-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.founder-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0;
  transition: opacity 0.85s ease, transform 0.85s ease;
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;
}

.founder-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  pointer-events: auto;
}

.founder-card:hover .founder-slide.active {
  transform: scale(1.025);
}

.founder-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(11, 32, 31, 0.05), rgba(11, 32, 31, 0.6)),
    linear-gradient(0deg, rgba(11, 32, 31, 0.7), transparent 60%);
  pointer-events: none;
}

.founder-info {
  position: absolute;
  right: 30px;
  bottom: 28px;
  color: #fff;
  z-index: 3;
}

.founder-info span,
.founder-info strong,
.founder-info small {
  display: block;
}

.founder-info span {
  color: #b7d9ce;
  font-size: 10px;
  direction: ltr;
  text-align: right;
}

.founder-info strong {
  font-size: 18px;
  font-weight: 900;
}

.founder-info small {
  color: #d2e5df;
  font-size: 10px;
}

.founder-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 10px;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.founder-badge b {
  color: #86dfc4;
}

/* دکمه‌های قبلی و بعدی */
.founder-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.25s;
  opacity: 0;
}

.founder-card:hover .founder-nav {
  opacity: 1;
}

.founder-nav:hover {
  background: rgba(49, 201, 162, 0.85);
}

.founder-prev {
  right: 18px;
}

.founder-next {
  left: 18px;
}

/* نقطه‌ها */
.founder-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 4;
  direction: ltr;
}

.founder-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.25s;
}

.founder-dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.founder-dot.active {
  background: #31c9a2;
  width: 20px;
  border-radius: 4px;
}

/* ریسپانسیو */
@media (max-width: 850px) {
  .founder-card {
    min-height: 390px;
  }
}

@media (max-width: 600px) {
  .founder-card {
    min-height: 330px;
  }

  .founder-nav {
    display: none !important; /* موبایل: فقط سوایپ */
  }

  .founder-prev {
    right: 12px;
  }

  .founder-next {
    left: 12px;
  }
}

/* HERO STATS */

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  padding: 18px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.stat-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--mint);
  color: var(--green);
  border-radius: 14px;
  font-size: 22px;
}

.stat strong,
.stat small {
  display: block;
}

.stat strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.5;
}

.stat small {
  color: var(--muted);
  font-size: 10px;
}


/* FEATURES */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.feature > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--green);
  background: var(--mint);
  border-radius: 50%;
  font-size: 20px;
}

.feature strong,
.feature small {
  display: block;
}

.feature strong {
  font-size: 11px;
}

.feature small {
  color: var(--muted);
  font-size: 10px;
}


/* SECTIONS */

.section {
  padding-top: 90px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.kicker {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.section-head h2,
.showcase-copy h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.6;
  font-weight: 900;
}

.section-head p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 2.2;
}

.more-link {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}


/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.service-card {
  position: relative;
  min-height: 290px;
  padding: 29px 25px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 21px;
  transition: 0.25s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.number {
  position: absolute;
  top: 27px;
  left: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.featured .number {
  color: rgba(255, 255, 255, 0.55);
}

.service-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 15px;
  font-size: 25px;
}

.featured .service-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
}

.service-card p {
  min-height: 72px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 2.1;
}

.featured p {
  color: #d7f0e8;
}

.service-card a {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.featured a {
  color: #fff;
}


/* BOTS */

.bots-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.bot-card {
  min-height: 210px;
  padding: 19px 10px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: 0.25s;
}

.bot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bot-card img {
  width: 51px;
  height: 51px;
  object-fit: contain;
  margin-bottom: 10px;
}

.bot-card h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.bot-card p {
  min-height: 40px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}

.bot-card a {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}


/* SHOWCASE */

.showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 65px;
  align-items: center;
  margin-top: 90px;
  padding: 0;
  overflow: hidden;
  background: var(--hero-gradient);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.showcase-image {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #142928;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 31, 30, 0.7), transparent 70%);
}

.showcase-label {
  position: absolute;
  right: 28px;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.showcase-label > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #8ce0c8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

.showcase-label strong,
.showcase-label small {
  display: block;
}

.showcase-label strong {
  font-size: 13px;
}

.showcase-label small {
  color: #c0d8d0;
  font-size: 10px;
}

.showcase-copy {
  padding: 35px 25px 35px 0;
}

.showcase-copy p {
  max-width: 440px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.3;
}

.showcase-copy ul {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.showcase-copy li {
  margin: 11px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}


/* CTA */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  position: relative;
  overflow: hidden;
  margin-top: 90px;
  padding: 52px 60px;
  color: #fff;
  background: var(--ink);
  border-radius: 25px;
}

.cta:after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  left: -160px;
  top: -250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta h2 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.6;
}

.cta p {
  max-width: 380px;
  color: #b9d0c8;
  font-size: 12px;
  line-height: 2.3;
}


/* FOOTER */

.footer {
  margin-top: 80px;
  padding: 30px 0 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-links {
  display: flex;
  gap: 23px;
  color: var(--muted);
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--green);
}

.socials {
  display: flex;
  gap: 10px;
  direction: ltr;
}

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 27px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
}


/* RESPONSIVE */

@media (max-width: 1250px) {
  .container {
    width: calc(100% - 40px);
  }

  nav {
    gap: 14px;
  }

  .bots-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 40px 30px;
  }

  .founder-card {
    min-height: 390px;
    order: -1;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .showcase-image {
    min-height: 300px;
  }

  .showcase-copy {
    padding: 35px 28px;
  }

  .cta {
    display: block;
    padding: 40px 30px;
  }

  .cta-action {
    margin-top: 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .header-actions {
    gap: 6px; /* تم و همبرگری چسبیده */
  }

  .nav {
    gap: 12px; /* فاصله کلی کمتر در موبایل */
  }

  nav#mainNav {
    position: fixed;
    top: 0;
    left: 0; /* باز شدن از سمت چپ */
    right: auto;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 90px 28px 40px;
    background: var(--white);
    border-right: 1px solid var(--line);
    border-left: none;
    box-shadow: 20px 0 60px rgba(0,0,0,0.12);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 55;
    overflow-y: auto;
  }

  nav#mainNav.is-open {
    transform: translateX(0);
  }

  nav#mainNav a {
    width: 100%;
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 28px);
  }

  .nav {
    min-height: 70px;
    padding: 12px 0;
  }

  nav a {
    padding: 5px 0;
    white-space: nowrap;
    font-size: 10px;
  }

  .header-btn {
    display: none;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    margin-top: 15px;
  }

  .founder-card {
    min-height: 330px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-copy p {
    font-size: 12px;
  }

  .hero-actions .btn {
    flex: 1;
    padding-inline: 14px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 65px;
  }

  .section-head h2,
  .showcase-copy h2 {
    font-size: 27px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .bots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-image {
    min-height: 250px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 7px;
  }
}

/* REVIEWS */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: 0.25s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-stars {
  color: #f5a623;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card > p {
  margin: 0 0 18px;
  color: var(--ink, #222);
  font-size: 14px;
  line-height: 1.85;
  min-height: 0;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.review-author small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 850px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-copy h2 {
  margin: 10px 0 18px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.6;
  font-weight: 900;
}

.about-copy p {
  margin: 0 0 16px;
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.2;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-stats strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.4;
}

.about-stats small {
  color: var(--muted);
  font-size: 10px;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-founder {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #142928;
  min-height: 260px;
}

.about-founder-img {
  position: absolute;
  inset: 0;
}

.about-founder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.about-founder-info {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  color: #fff;
  z-index: 2;
}

.about-founder-info span,
.about-founder-info strong,
.about-founder-info small {
  display: block;
}

.about-founder-info span {
  font-size: 10px;
  color: #b7d9ce;
  margin-bottom: 4px;
}

.about-founder-info strong {
  font-size: 16px;
  font-weight: 900;
}

.about-founder-info small {
  font-size: 11px;
  color: #d2e5df;
  margin-top: 2px;
}

.about-founder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 31, 30, 0.85), transparent 55%);
  z-index: 1;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-value {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.about-value > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--mint);
  color: var(--green);
  border-radius: 12px;
  font-size: 16px;
}

.about-value strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
}

.about-value small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 850px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-founder {
    min-height: 220px;
  }
}


/* CONTACT — شیک + سازگار با دارک مود */

.contact {
  margin-top: 90px;
  padding: 0;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 320px;
}

.contact-info {
  padding: 48px 44px;
  background: #102f30;
  color: #edf8f4;
  position: relative;
  overflow: hidden;
}

body.dark-mode .contact-info {
  background: #0a1415;
}

.contact-info::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -100px;
  bottom: -120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info .kicker {
  color: #63cdb1;
}

.contact-info h2 {
  margin: 10px 0 14px;
  font-size: 28px;
  line-height: 1.55;
  font-weight: 900;
  color: #fff;
}

.contact-info h2 em {
  color: #31c9a2;
  font-style: normal;
}

.contact-info > p {
  margin: 0 0 28px;
  max-width: 360px;
  color: #a8c4bc;
  font-size: 12px;
  line-height: 2.2;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #d2e5df;
}

.contact-list .ci {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(49, 201, 162, 0.15);
  color: #31c9a2;
  border-radius: 11px;
  font-size: 14px;
}

.contact-form-wrap {
  padding: 48px 40px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-wrap h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.contact-form-wrap > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
/* founder */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 164, 134, 0.12);
}

.contact-form textarea {
  min-height: 90px;
}

.contact-form .btn {
  margin-top: 6px;
  align-self: flex-start;
}

@media (max-width: 850px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-wrap {
    padding: 36px 28px;
  }
}


/* ========== LEAD POPUP ========== */
.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 20, 0.65);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
  padding: 20px;
}

.lead-overlay.show {
  opacity: 1;
  visibility: visible;
}

.lead-modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.96);
  transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lead-overlay.show .lead-modal {
  transform: translateY(0) scale(1);
}

.lead-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
}

.lead-close:hover {
  background: var(--mint);
  color: var(--green);
}

.lead-header {
  text-align: center;
  margin-bottom: 24px;
}

.lead-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--mint);
  color: var(--green-dark);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
}

.lead-header h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
}

.lead-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}

.lead-field input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: 0.2s;
}

.lead-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 164, 134, 0.15);
}

.lead-submit {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
  padding: 14px 20px;
  font-size: 13px;
}

.lead-note {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}


/* ========== تنظیم اندازه فونت‌ها ========== */
html {
  font-size: 17px;
}

body {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* عنوان اصلی (h1) کمی کوچکتر شد */
h1 {
  font-size: clamp(2.1rem, 4.5vw, 2.9rem) !important;
}

/* عنوان‌های h2 بزرگ‌تر شدند */
h2 {
  font-size: clamp(2rem, 4.2vw, 2.8rem) !important;
}

/* بقیه عناوین */
h3 {
  font-size: 1.35rem !important;
}

/* متن‌های معمولی */
p {
  font-size: 1.05rem;
}

/* منوی هدر */
.nav a {
  font-size: 1rem !important;
}

/* کارت‌های ربات */
.bot-card h3 {
  font-size: 1.2rem !important;
}

.bot-card p {
  font-size: 0.98rem !important;
}

.bot-card .bot-link {
  font-size: 0.95rem !important;
}

/* کارت‌های خدمات */
.service-card h3 {
  font-size: 1.25rem !important;
}

.service-card p {
  font-size: 1rem !important;
}

/* نظرات */
.review-card p {
  font-size: 1.05rem !important;
}

/* درباره ما و تماس */
.about-copy p,
.contact-info p {
  font-size: 1.05rem !important;
}

/* دکمه‌ها */
.btn {
  font-size: 1rem !important;
}



/* ========== بانک شماره ========== */
.numberbank-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 4rem;
}

.nb-stat {
  background: var(--card-bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.nb-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--primary, #3b82f6);
}

.nb-stat span {
  font-size: 0.95rem;
  opacity: 0.75;
}

.nb-subtitle {
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
  font-weight: 700;
}

/* دسته‌بندی‌ها */
.nb-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4.5rem;
}

.nb-cat {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: default;
}

.nb-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.nb-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

.nb-cat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.nb-cat small {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* پکیج‌ها */
.nb-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 4.5rem;
}

.nb-package {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.nb-package.featured {
  border: 2px solid var(--primary, #3b82f6);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.12);
}

.nb-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary, #3b82f6);
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-weight: 600;
}

.nb-package-header {
  margin-bottom: 1.5rem;
}

.nb-package-header span {
  display: block;
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.nb-package-header strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.nb-package ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.nb-package ul li {
  padding: 0.45rem 0;
  font-size: 0.98rem;
  position: relative;
  padding-right: 1.4rem;
}

.nb-package ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary, #3b82f6);
  font-weight: 700;
}

/* درخواست اختصاصی */
.numberbank-custom {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  color: white;
  text-align: center;
}

.nb-custom-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.nb-custom-content p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* حالت شب */
body.dark-mode .nb-stat,
body.dark-mode .nb-cat,
body.dark-mode .nb-package {
  background: #1e293b;
  border-color: #334155;
}

/* ریسپانسیو */
@media (max-width: 900px) {
  .numberbank-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nb-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nb-packages-grid {
    grid-template-columns: 1fr;
  }
}


/* ========== نوار اسکرول افقی ربات‌ها ========== */
.bots-scroll-wrap {
  position: relative;
  margin-top: 10px;
}

.bots-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 20px;
  scrollbar-width: none; /* فایرفاکس */
  -ms-overflow-style: none; /* IE */
}

.bots-scroll::-webkit-scrollbar {
  display: none; /* کروم و سافاری */
}

.bots-scroll .bot-card {
  flex: 0 0 250px; /* کمی بزرگ‌تر روی دسکتاپ */
  max-width: 250px;
}

/* دکمه‌های قبلی / بعدی */
.bots-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
  opacity: 0.9;
}

.bots-scroll-btn:hover {
  background: var(--green);
  color: #fff;
  opacity: 1;
}

.bots-scroll-prev {
  right: -8px;
}

.bots-scroll-next {
  left: -8px;
}

/* در موبایل دکمه‌ها کمی کوچک‌تر و داخل‌تر */
@media (max-width: 700px) {
  .bots-scroll .bot-card {
    flex: 0 0 180px;
    max-width: 180px;
  }

  .bots-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .bots-scroll-prev {
    right: 4px;
  }

  .bots-scroll-next {
    left: 4px;
  }
}


/* ========== نوار اسکرول افقی خدمات ========== */
.services-scroll-wrap {
  position: relative;
  margin-top: 10px;
}

.services-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 4px 26px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-scroll::-webkit-scrollbar {
  display: none;
}

.services-scroll .service-card {
  flex: 0 0 340px;
  max-width: 340px;
  min-height: 320px;
  margin: 0;
}

/* دکمه‌های قبلی / بعدی */
.services-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
  opacity: 0.9;
}

.services-scroll-btn:hover {
  background: var(--green);
  color: #fff;
  opacity: 1;
}

.services-scroll-prev {
  right: -8px;
}

.services-scroll-next {
  left: -8px;
}

@media (max-width: 700px) {
  .services-scroll .service-card {
    flex: 0 0 280px;
    max-width: 280px;
    min-height: 280px;
  }

  .services-scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .services-scroll-prev {
    right: 4px;
  }

  .services-scroll-next {
    left: 4px;
  }
}

/* ========== خدمات؛ دقیقاً مشابه بخش ربات‌ها ========== */

.services-scroll-wrap {
  position: relative;
}

.services-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-scroll::-webkit-scrollbar {
  display: none;
}

.services-scroll .service-card {
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .services-scroll .service-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
  }
}

/* =========================================================
   FINAL MOBILE - خیلی جمع‌وجور + عکس کامل + اسکرولبار
   ========================================================= */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Container ---------- */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
  }
}

/* ---------- Header ---------- */
@media (max-width: 768px) {
  .nav {
    min-height: 56px;
    gap: 6px;
  }

  .brand-text strong {
    font-size: 12px !important;
  }

  .brand-text small {
    font-size: 9px !important;
  }

  .theme-toggle,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  nav#mainNav {
    width: min(280px, 84vw);
    padding: 70px 18px 25px;
  }

  nav#mainNav a {
    font-size: 14px !important;
    padding: 12px 0;
  }
}

/* ---------- Hero + عکس اصلی (کل عکس دیده بشه) ---------- */
@media (max-width: 768px) {
  .hero {
    display: flex !important;
    flex-direction: column;
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    min-height: auto;
  }

  .founder-card {
    order: -1;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: 180px;               /* خیلی کوچک‌تر */
    aspect-ratio: auto;
    overflow: hidden;
    background: #0c1a1a;
  }

  .founder-card img,
  .founder-slide {
    width: 100% !important;
    height: 100% !important;
    max-height: 180px;
    object-fit: contain !important;  /* کل عکس دیده می‌شود */
    object-position: center center;
  }

  .founder-info {
    right: 10px;
    bottom: 10px;
  }

  .founder-info strong {
    font-size: 12px;
  }

  .founder-badge {
    top: 8px;
    left: 8px;
    font-size: 8px;
    padding: 4px 8px;
  }

  .founder-nav {
    display: none !important;
  }

  .hero-copy {
    padding: 16px 14px 14px !important;
  }

  .hero h1 {
    font-size: 20px !important;
    line-height: 1.5 !important;
    margin: 10px 0 !important;
  }

  .hero-copy p {
    font-size: 12px !important;
    line-height: 1.8 !important;
    margin-bottom: 14px !important;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 40px;
    font-size: 11px !important;
    padding: 8px 6px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px;
    padding: 10px;
  }

  .stat {
    padding: 10px 6px;
    border-radius: 10px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .stat strong {
    font-size: 14px !important;
  }

  .stat small {
    font-size: 8px;
  }
}

/* ---------- عناوین ---------- */
@media (max-width: 768px) {
  .section {
    padding-top: 36px !important;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 18px !important;
  }

  .section-head p {
    font-size: 12px !important;
  }
}

/* ---------- اسکرولبار شیک (مشترک) ---------- */
@media (max-width: 768px) {
  .services-grid,
  .bots-scroll,
  .reviews-grid,
  .nb-cats-grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 4px 2px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--green) rgba(0,0,0,0.07);
  }

  .services-grid::-webkit-scrollbar,
  .bots-scroll::-webkit-scrollbar,
  .reviews-grid::-webkit-scrollbar,
  .nb-cats-grid::-webkit-scrollbar {
    height: 5px;
  }

  .services-grid::-webkit-scrollbar-track,
  .bots-scroll::-webkit-scrollbar-track,
  .reviews-grid::-webkit-scrollbar-track,
  .nb-cats-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
  }

  .services-grid::-webkit-scrollbar-thumb,
  .bots-scroll::-webkit-scrollbar-thumb,
  .reviews-grid::-webkit-scrollbar-thumb,
  .nb-cats-grid::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 20px;
  }

  body.dark-mode .services-grid::-webkit-scrollbar-track,
  body.dark-mode .bots-scroll::-webkit-scrollbar-track,
  body.dark-mode .reviews-grid::-webkit-scrollbar-track,
  body.dark-mode .nb-cats-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
  }
}

/* ---------- Services ---------- */
@media (max-width: 768px) {
  .services-grid .service-card {
    flex: 0 0 75%;
    width: 75%;
    min-width: 75%;
    max-width: 75%;
    min-height: 190px;
    scroll-snap-align: start;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .service-card:hover { transform: none !important; }

  .service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }

  .service-card h3 {
    font-size: 13px !important;
  }

  .service-card p {
    font-size: 11px !important;
    min-height: auto !important;
  }
}

/* ---------- Bots ---------- */
@media (max-width: 768px) {
  .bots-scroll .bot-card {
    flex: 0 0 68%;
    width: 68%;
    min-width: 68%;
    max-width: 68%;
    min-height: 160px;
    scroll-snap-align: start;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .bot-card img {
    width: 38px;
    height: 38px;
  }

  .bot-card h3 {
    font-size: 12px !important;
  }

  .bot-card p {
    font-size: 10px !important;
  }

  .bots-scroll-btn {
    display: none !important;
  }
}

/* ---------- Reviews ---------- */
@media (max-width: 768px) {
  .reviews-grid .review-card {
    flex: 0 0 80%;
    width: 80%;
    min-width: 80%;
    max-width: 80%;
    scroll-snap-align: start;
    padding: 12px 12px;
    border-radius: 12px;
  }

  .review-card:hover { transform: none !important; }

  .review-media video {
  pointer-events: none;
}
.review-media {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
  }

  .review-media img,
  .review-media video {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
  }

  .review-stars {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .review-card > p {
    font-size: 11px !important;
    line-height: 1.75 !important;
    min-height: auto !important;
    margin-bottom: 10px !important;
  }

  .review-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .review-author strong {
    font-size: 11px;
  }

  .review-author small {
    font-size: 9px;
  }
}

/* ---------- Number Bank + دسته‌بندی‌ها (اسکرول افقی) ---------- */
@media (max-width: 768px) {
  .numberbank-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    margin: 16px 0 18px;
  }

  .nb-stat {
    padding: 12px 8px;
  }

  .nb-stat strong {
    font-size: 1.1rem !important;
  }

  .nb-stat span {
    font-size: 11px;
  }

  /* دسته‌بندی‌ها افقی */
  .nb-cats-grid {
    margin-bottom: 20px;
  }

  .nb-cats-grid .nb-cat {
    flex: 0 0 42%;
    width: 42%;
    min-width: 42%;
    max-width: 42%;
    scroll-snap-align: start;
    padding: 12px 8px;
  }

  .nb-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }

  .nb-cat strong {
    font-size: 12px;
  }

  .nb-cat small {
    font-size: 10px;
  }

  .numberbank-custom {
    padding: 20px 14px !important;
    border-radius: 12px;
  }

  .nb-custom-content h3 {
    font-size: 1.1rem !important;
  }

  .nb-custom-content p {
    font-size: 12px !important;
  }
}

/* ---------- About ---------- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .about-copy h2 {
    font-size: 18px !important;
  }

  .about-copy p {
    font-size: 12px !important;
  }

  .about-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .about-stats strong {
    font-size: 14px !important;
  }

  .about-founder {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: 160px;
    overflow: hidden;
  }

  .about-founder img {
    width: 100% !important;
    height: 100% !important;
    max-height: 160px;
    object-fit: contain !important;
    object-position: center center;
  }
}

/* ---------- Contact ---------- */
@media (max-width: 768px) {
  .contact {
    margin-top: 32px;
    border-radius: 14px;
  }

  .contact-inner {
    grid-template-columns: 1fr !important;
  }

  .contact-info,
  .contact-form-wrap {
    padding: 20px 14px !important;
  }

  .contact-info h2 {
    font-size: 17px !important;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
@media (max-width: 768px) {
  .footer {
    margin-top: 32px;
    padding: 20px 0 14px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    font-size: 11px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 10px;
  }
}

/* ---------- Lead Popup ---------- */
@media (max-width: 480px) {
  .lead-modal {
    width: 92% !important;
    padding: 20px 14px 16px !important;
    border-radius: 14px;
  }

  .lead-header h3 {
    font-size: 15px !important;
  }

  .lead-field input {
    font-size: 16px !important;
  }
}

/* ---------- صفحه جزئیات ربات ---------- */
@media (max-width: 768px) {
  .bot-intro {
    grid-template-columns: 1fr !important;
    padding: 18px 14px !important;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 30px;
    border-radius: 14px;
  }

  .bot-intro-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .bot-intro h1 {
    font-size: 20px !important;
  }

  .bot-intro > div > p {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }

  .bot-intro-image {
    aspect-ratio: 16/9;
    max-height: 180px;
    border-radius: 12px;
  }

  .bot-slide {
    object-fit: contain !important;
  }

  .bot-nav {
    display: none !important; /* موبایل فقط سوایپ */
  }

  .bot-cta {
    flex-direction: column;
    text-align: center;
    padding: 22px 16px !important;
    gap: 14px;
    border-radius: 14px;
    margin-bottom: 30px;
  }

  .bot-cta h2 {
    font-size: 18px !important;
  }

  .bot-desc {
    margin-bottom: 30px;
  }

  .bot-desc-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .bot-desc-item {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .bot-desc-item strong {
    font-size: 13px;
  }

  .bot-desc-item p {
    font-size: 12px;
  }
}

/* ---------- گوشی خیلی کوچک ---------- */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 18px !important;
  }

  .founder-card {
    max-height: 150px;
  }

  .founder-card img,
  .founder-slide {
    max-height: 150px;
  }

  .services-grid .service-card,
  .bots-scroll .bot-card,
  .reviews-grid .review-card {
    flex-basis: 82%;
    width: 82%;
    min-width: 82%;
    max-width: 82%;
  }

  .nb-cats-grid .nb-cat {
    flex-basis: 48%;
    width: 48%;
    min-width: 48%;
    max-width: 48%;
  }
}
@media (max-width: 768px) {
  .founder-card {
    max-height: 180px !important;
  }

  .founder-card img,
  .founder-slide img {
    max-height: 180px !important;
    object-fit: contain !important;
    object-position: center center;
  }
}

/* =========================================================
   BLOG - دقیقاً مثل بخش ربات‌ها
   ========================================================= */

#blog .bots-scroll .bot-card {
  flex: 0 0 210px;
  max-width: 210px;
  min-height: 240px;
  padding: 14px 12px;
  text-align: right;
}

#blog .bots-scroll .bot-card h3 {
  font-size: 13px !important;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blog .bots-scroll .bot-card p {
  font-size: 11px !important;
  line-height: 1.7;
  min-height: auto !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blog .bots-scroll .bot-card img,
#blog .bots-scroll .bot-card video {
  width: 100% !important;
  height: 110px !important;
  object-fit: cover !important;
  border-radius: 12px;
  margin-bottom: 12px !important;
}

/* موبایل */
@media (max-width: 768px) {
  #blog .bots-scroll .bot-card {
    flex: 0 0 170px;
    max-width: 170px;
    min-height: 210px;
    padding: 12px 10px;
  }

  #blog .bots-scroll .bot-card img,
  #blog .bots-scroll .bot-card video {
    height: 90px !important;
  }

  #blog .bots-scroll-btn {
    display: none !important;
  }
}

/* =========================================================
   صفحه لیست وبلاگ (blog list page)
   ========================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #142928;
}

.blog-image img,
.blog-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img,
.blog-card:hover .blog-image video {
  transform: scale(1.05);
}

.blog-content {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.blog-content h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.blog-content h3 a {
  color: var(--ink);
  transition: color 0.2s;
}

.blog-content h3 a:hover {
  color: var(--green);
}

.blog-content > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  margin-top: auto;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s;
}

.blog-link:hover {
  color: var(--green);
}

/* ریسپانسیو */
@media (max-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-content {
    padding: 16px 14px 18px;
  }

  .blog-content h3 {
    font-size: 15px;
  }
}

/* =========================================================
   صفحه لیست وبلاگ - ۴ کارت در هر ردیف
   ========================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #142928;
}

.blog-image img,
.blog-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img,
.blog-card:hover .blog-image video {
  transform: scale(1.05);
}

.blog-content {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.blog-content h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.blog-content h3 a {
  color: var(--ink);
  transition: color 0.2s;
}

.blog-content h3 a:hover {
  color: var(--green);
}

.blog-content > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  margin-top: auto;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s;
}

.blog-link:hover {
  color: var(--green);
}

/* ریسپانسیو */
@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* فاصله مناسب برای فوتر در صفحات داخلی */
main {
  min-height: 60vh;
}

.section {
  padding-bottom: 60px;
}

.footer {
  margin-top: 80px;
}

/* برای صفحات بلاگ که padding-top کم دارن */
.section.container[style*="padding-top"] {
  padding-bottom: 80px;
}

/* فاصله مناسب فوتر */
main {
  min-height: calc(100vh - 320px);
}

.footer {
  margin-top: 90px;
  padding-top: 35px;
  padding-bottom: 25px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

.blog-card {
  position: relative;
  overflow: hidden;
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  cursor: pointer;
}

.blog-card-link:hover .blog-link {
  color: var(--green);
}


/* ========== Review Cards - جلوگیری از بهم ریختگی ========== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #fff);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  height: 100%;
  overflow: hidden;
}

.dark-mode .review-card {
  background: var(--card-bg);
  border-color: rgba(255,255,255,0.08);
}

/* مهم‌ترین بخش: ارتفاع ثابت برای عکس و ویدیو */
.review-media {
  position: relative;
  width: 100%;
  height: 180px !important;          /* ارتفاع ثابت */
  min-height: 180px;
  max-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--mint);
  cursor: pointer;
  flex-shrink: 0;
}

.review-media img,
.review-media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;      /* عکس کش نیاید */
  display: block;
  transition: transform 0.3s ease;
}

.review-media:hover img,
.review-media:hover video {
  transform: scale(1.04);
}

/* آیکون پخش برای ویدیو */
.review-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  pointer-events: none;
  transition: background 0.25s ease;
}

.review-media:hover .review-play-icon {
  background: rgba(0,0,0,0.5);
}

/* متن نظر */
.review-card > p {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
}

/* ستاره‌ها */
.review-stars {
  margin-bottom: 12px;
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 1px;
}

/* نویسنده */
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-media {
    height: 200px !important;
    min-height: 200px;
    max-height: 200px;
  }
}

/* ========== Fix قطعی اندازه عکس/ویدیو نظرات ========== */

.reviews-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.review-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  max-width: 100% !important;
}

/* ارتفاع ثابت اجباری */
.review-card .review-media {
  width: 100% !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  margin-bottom: 16px !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.review-card .review-media img,
.review-card .review-media video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 180px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* جلوگیری از بزرگ شدن کارت */
.review-card img,
.review-card video {
  max-height: 180px !important;
}


.review-media {
  cursor: pointer;
  position: relative;
}

.review-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 32px;
  pointer-events: none;
}

/* Lightbox */
.media-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.media-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-content video {
  background: #000;
}


.about-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.about-preview-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2.1;
  margin-bottom: 20px;
}

.about-preview-image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: #142928;
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.about-preview-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: #fff;
  z-index: 2;
}

.about-preview-badge strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.about-preview-badge span {
  font-size: 12px;
  color: #b7d9ce;
}

.about-preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,31,30,0.8), transparent 55%);
}

@media (max-width: 850px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* ========== نظرات - حالت نواری موبایل (مثل ربات‌ها) ========== */

@media (max-width: 768px) {

  .reviews-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 6px 4px 18px !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--green) rgba(0,0,0,0.08);
  }

  .reviews-grid::-webkit-scrollbar {
    height: 5px;
  }

  .reviews-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
  }

  .reviews-grid::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 20px;
  }

  body.dark-mode .reviews-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
  }

  .reviews-grid .review-card {
    flex: 0 0 78% !important;
    width: 78% !important;
    min-width: 78% !important;
    max-width: 78% !important;
    scroll-snap-align: start;
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  .reviews-grid .review-card:hover {
    transform: none !important;
  }

  .review-media {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }

  .review-media img,
  .review-media video {
    height: 140px !important;
    max-height: 140px !important;
  }

  .review-stars {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .review-card > p {
    font-size: 12px !important;
    line-height: 1.9 !important;
    margin-bottom: 12px !important;
    min-height: auto !important;
  }

  .review-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  .review-author strong {
    font-size: 12px !important;
  }

  .review-author small {
    font-size: 10px !important;
  }
}

/* گوشی‌های خیلی کوچک */
@media (max-width: 430px) {
  .reviews-grid .review-card {
    flex: 0 0 82% !important;
    width: 82% !important;
    min-width: 82% !important;
    max-width: 82% !important;
  }

  .review-media {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
  }

  .review-media img,
  .review-media video {
    height: 120px !important;
    max-height: 120px !important;
  }
}

/* =========================================================
   MOBILE FINAL FIX
   نظرات نواری + درباره ما + ریسپانسیو نهایی
   ========================================================= */
@media (max-width: 768px) {
  .reviews-grid { display:flex !important; flex-wrap:nowrap !important; width:100% !important; overflow-x:auto !important; overflow-y:hidden !important; gap:12px !important; padding:5px 2px 17px !important; margin:0 !important; scroll-snap-type:x mandatory; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:var(--green) rgba(0,0,0,.07); }
  .reviews-grid::-webkit-scrollbar { height:5px; }
  .reviews-grid::-webkit-scrollbar-track { background:rgba(0,0,0,.06); border-radius:20px; }
  .reviews-grid::-webkit-scrollbar-thumb { background:var(--green); border-radius:20px; }
  body.dark-mode .reviews-grid::-webkit-scrollbar-track { background:rgba(255,255,255,.08); }
  .reviews-grid .review-card { flex:0 0 82% !important; width:82% !important; min-width:82% !important; max-width:82% !important; height:auto !important; min-height:0 !important; padding:15px !important; border-radius:15px !important; scroll-snap-align:start; overflow:hidden !important; }
  .reviews-grid .review-card:hover { transform:none !important; }
  .reviews-grid .review-media { width:100% !important; height:135px !important; min-height:135px !important; max-height:135px !important; margin-bottom:10px !important; border-radius:11px !important; overflow:hidden !important; }
  .reviews-grid .review-media img, .reviews-grid .review-media video { width:100% !important; height:135px !important; max-height:135px !important; object-fit:cover !important; }
  .reviews-grid .review-stars { font-size:12px !important; margin-bottom:7px !important; }
  .reviews-grid .review-card > p { font-size:12px !important; line-height:1.9 !important; min-height:0 !important; margin:0 0 12px !important; }
  .reviews-grid .review-avatar { width:34px !important; height:34px !important; font-size:12px !important; }
  .reviews-grid .review-author strong { font-size:11px !important; }
  .reviews-grid .review-author small { font-size:9px !important; }

  .about-grid { display:flex !important; flex-direction:column !important; gap:20px !important; }
  .about-copy { width:100% !important; }
  .about-copy h2 { font-size:21px !important; line-height:1.7 !important; margin:6px 0 12px !important; }
  .about-copy p { max-width:none !important; font-size:12px !important; line-height:2 !important; margin-bottom:12px !important; }
  .about-stats { display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:7px !important; margin-top:18px !important; padding-top:15px !important; }
  .about-stats strong { font-size:15px !important; }
  .about-stats small { font-size:9px !important; }

  .about-founder, .about-preview-image { display:none !important; }

  .about-side { width:100% !important; display:flex !important; flex-direction:column !important; gap:9px !important; }
  .about-values { width:100% !important; display:flex !important; flex-direction:column !important; gap:8px !important; }
  .about-value { width:100% !important; padding:11px 12px !important; gap:10px !important; border-radius:13px !important; }
  .about-value > span { width:34px !important; height:34px !important; font-size:14px !important; border-radius:10px !important; }
  .about-value strong { font-size:11px !important; }
  .about-value small { font-size:9px !important; line-height:1.7 !important; }

  .section { padding-top:36px !important; }
  .container { width:calc(100% - 28px) !important; }
  .section-head { margin-bottom:14px !important; }
  .section-head h2 { font-size:20px !important; line-height:1.6 !important; }
  .section-head p { font-size:11px !important; line-height:1.9 !important; }
  .services-grid, .bots-scroll, .nb-cats-grid { overflow-x:auto !important; }
  .services-grid .service-card { flex:0 0 75% !important; width:75% !important; min-width:75% !important; max-width:75% !important; }
  .bots-scroll .bot-card { flex:0 0 68% !important; width:68% !important; min-width:68% !important; max-width:68% !important; }
}

@media (max-width:430px) {
  .reviews-grid .review-card { flex-basis:86% !important; width:86% !important; min-width:86% !important; max-width:86% !important; }
  .reviews-grid .review-media, .reviews-grid .review-media img, .reviews-grid .review-media video { height:125px !important; min-height:125px !important; max-height:125px !important; }
  .about-stats { gap:5px !important; }
  .about-stats strong { font-size:13px !important; }
  .about-stats small { font-size:8px !important; }
}

/* =========================================================
   BLOG RESPONSIVE
========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: start;
}

.blog-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e7edf2);
    transition: .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.blog-card-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

/* تصویر */
.blog-image {
    width: 100%;
    height: 175px;
    overflow: hidden;
    position: relative;
    background: #edf2f5;
}

.blog-image img,
.blog-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* محتوا */
.blog-content {
    padding: 15px 16px 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    font-size: 11px;
    color: var(--muted, #7d8995);
}

.blog-content h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 800;
    color: var(--text, #18222d);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.blog-content p {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted, #7d8995);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.blog-link {
    display: inline-flex;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--green, #15966b);
}


/* =========================================================
   لپ‌تاپ
========================================================= */

@media (max-width: 1200px) {

    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .blog-image {
        height: 155px;
    }

    .blog-content {
        padding: 14px;
    }

    .blog-content h3 {
        font-size: 15px;
    }
}


/* =========================================================
   تبلت
========================================================= */

@media (max-width: 900px) {

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .blog-image {
        height: 150px;
    }

    .blog-content {
        padding: 13px;
    }

    .blog-content h3 {
        font-size: 14px;
    }

    .blog-content p {
        font-size: 11.5px;
    }
}


/* =========================================================
   موبایل
   دو مقاله کنار هم
========================================================= */

@media (max-width: 600px) {

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .blog-card {
        border-radius: 13px;
    }

    .blog-image {
        height: 115px;
    }

    .blog-content {
        padding: 10px;
    }

    .blog-meta {
        font-size: 9px;
        gap: 3px;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
    }

    .blog-content h3 {
        font-size: 12.5px;
        line-height: 1.65;
        margin-bottom: 5px;
    }

    .blog-content p {
        font-size: 10px;
        line-height: 1.7;
        margin-bottom: 7px;
    }

    .blog-link {
        font-size: 10.5px;
    }
}


/* =========================================================
   موبایل خیلی کوچک
========================================================= */

@media (max-width: 380px) {

    .blog-grid {
        gap: 8px;
    }

    .blog-image {
        height: 105px;
    }

    .blog-content {
        padding: 9px;
    }

    .blog-content h3 {
        font-size: 11.5px;
    }

    .blog-content p {
        font-size: 9.5px;
    }

    .blog-link {
        font-size: 10px;
    }
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .blog-card {
    background: var(--card-dark, #101923);
    border-color: #1d2b3a;
}

body.dark-mode .blog-content h3 {
    color: #f3f7fb;
}

body.dark-mode .blog-content p {
    color: #8795a5;
}


.bots-scroll.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.bots-scroll {
  cursor: grab;
}


/* ========== اسلایدر خدمات / نظرات / ربات‌ها — اتو + لوپ + نوار ========== */
.auto-slide-wrap {
  overflow: hidden;           /* اسکرول native نداریم؛ با transform حرکت می‌کنه */
  width: 100%;
  margin-top: 10px;
  cursor: grab;
  position: relative;
  padding-bottom: 10px;
  /* نوار سفارشی پایین — پیش‌فرض مخفی */
  --bar-opacity: 0;
}
.auto-slide-wrap::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 4px;
  border-radius: 10px;
  background: rgba(15, 164, 134, 0.45);
  opacity: var(--bar-opacity);
  transition: opacity 0.25s ease;
  pointer-events: none;
}
/* نوار فقط وقتی موس روی اسلایدر است */
.auto-slide-wrap:hover,
.auto-slide-wrap.is-dragging {
  --bar-opacity: 1;
}

.auto-slide-wrap.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.auto-slide-track {
  display: flex;
  gap: 17px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  animation: none !important;
}

.auto-slide-track > .service-card {
  flex: 0 0 auto;
  width: max(240px, 22vw);
  max-width: 320px;
}
.auto-slide-track > .review-card {
  flex: 0 0 auto;
}

/* کارت وبلاگ داخل اسلایدر */
.auto-slide-track > .blog-bot-card {
  flex: 0 0 220px !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  text-align: right;
  padding: 14px 12px;
}
.auto-slide-track > .blog-bot-card img,
.auto-slide-track > .blog-bot-card video {
  width: 100% !important;
  height: 110px !important;
  object-fit: cover !important;
  border-radius: 12px;
  margin-bottom: 10px !important;
  display: block;
}
.auto-slide-track > .blog-bot-card .blog-card-placeholder {
  width: 100%;
  height: 110px;
  background: var(--mint, #e8f8f3);
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green, #0fa486);
  font-size: 28px;
}
.auto-slide-track > .blog-bot-card h3 {
  font-size: 13px !important;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auto-slide-track > .blog-bot-card p {
  font-size: 11px !important;
  line-height: 1.6;
  min-height: auto !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 700px) {
  .auto-slide-track {
    gap: 12px;
  }
  /* موبایل: عرض بیشتر، ارتفاع کمتر */
  .auto-slide-track > .service-card,
  .auto-slide-track > .review-card {
    width: min(300px, 84vw) !important;
    max-width: 300px !important;
  }
  .auto-slide-track > .blog-bot-card {
    flex: 0 0 min(200px, 72vw) !important;
    width: min(200px, 72vw) !important;
    min-width: min(200px, 72vw) !important;
    max-width: min(200px, 72vw) !important;
    padding: 10px 10px !important;
  }
  .auto-slide-track > .blog-bot-card img,
  .auto-slide-track > .blog-bot-card video,
  .auto-slide-track > .blog-bot-card .blog-card-placeholder {
    height: 85px !important;
    margin-bottom: 8px !important;
  }
  .auto-slide-wrap {
    --bar-opacity: 0.35;
  }
  .auto-slide-wrap:hover,
  .auto-slide-wrap.is-dragging {
    --bar-opacity: 0.8;
  }
}

.auto-slide-wrap .slide-btn {
  display: none !important;
}

/* دکمه‌های ‹ › فقط با هاور (ربات‌ها و وبلاگ) */
.bots-scroll-wrap .bots-scroll-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.25s, color 0.25s;
}
.bots-scroll-wrap:hover .bots-scroll-btn {
  opacity: 0.95;
  pointer-events: auto;
}
@media (hover: none), (max-width: 700px) {
  .bots-scroll-wrap .bots-scroll-btn {
    opacity: 0.8;
    pointer-events: auto;
  }
}

.bots-scroll.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.bots-scroll {
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}


/* ================================================================
   UI POLISH LAYER — شیک، ریسپانسیو، انیمیشن‌دار
   ================================================================ */

/* جلوگیری از بهم‌ریختگی افقی در همه سایزها */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, svg, iframe {
  max-width: 100%;
  height: auto;
}
.container, .section, .hero, .header {
  max-width: 100%;
  box-sizing: border-box;
}

/* ---------- دکمه‌های اسکرول: فقط با هاور ---------- */
.bots-scroll-wrap .bots-scroll-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-60%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s, color 0.25s !important;
}
.bots-scroll-wrap:hover .bots-scroll-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(-60%) scale(1);
}
/* موبایل/تبلت بدون هاور: دکمه‌ها مخفی بمانند — اسکرول لمسی کافیست */
@media (hover: none) {
  .bots-scroll-wrap .bots-scroll-btn {
    display: none !important;
  }
}

/* ---------- ظاهر شدن نرم المان‌ها هنگام اسکرول ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- شناور نرم (floating) ---------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatYSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes softBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.float-anim {
  animation: floatY 5s ease-in-out infinite;
}
.float-anim-slow {
  animation: floatYSoft 7s ease-in-out infinite;
}
.pulse-glow {
  animation: pulseGlow 2.8s ease-out infinite;
}

/* ---------- کارت‌ها: هاور شیک ---------- */
.bot-card,
.service-card,
.review-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease !important;
}
.bot-card:hover,
.service-card:hover,
.review-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
}
.bot-card img {
  transition: transform 0.45s ease;
}
.bot-card:hover img {
  transform: scale(1.06);
}

/* ---------- دکمه‌های اصلی ---------- */
.btn, .header-btn, a.btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
.btn:hover, .header-btn:hover, a.btn:hover {
  transform: translateY(-2px);
}

/* اتواسلاید با JS (scrollLeft) — بدون CSS animation */

/* ---------- هدر چسبان شیک ---------- */
.header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ---------- عنوان سکشن‌ها ---------- */
.section-head h2 em {
  background: linear-gradient(120deg, var(--green, #10b981), #059669, var(--green, #10b981));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

/* ---------- ریسپانسیو محکم — هیچ چیزی بیرون نزند ---------- */
@media (max-width: 1250px) {
  .bots-scroll .bot-card {
    flex: 0 0 min(200px, 42vw) !important;
    max-width: min(200px, 42vw) !important;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .auto-slide-track > .service-card,
  .auto-slide-track > .review-card {
    width: min(240px, 72vw) !important;
    max-width: 280px !important;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.4 !important;
  }
  .section-head h2 {
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
  }
  .bots-scroll .bot-card {
    flex: 0 0 min(170px, 70vw) !important;
    max-width: min(170px, 70vw) !important;
  }
  .bots-scroll-wrap {
    margin-left: -4px;
    margin-right: -4px;
  }
}
@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .header-actions .header-btn span {
    display: none;
  }
}

/* جلوگیری از پرش layout هنگام فونت */
.bot-card, .service-card, .review-card {
  min-width: 0;
}

/* لینک‌های منو — زیرخط انیمیشنی */
.nav a {
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--green, #10b981);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* لایت‌باکس و پاپ‌آپ نرم‌تر */
#leadOverlay, .lightbox {
  transition: opacity 0.3s ease;
}


/* ============================================================
   FIX v9: اسلایدر transform — اتو + لوپ + درگ + نوار هاور
   ============================================================ */

/* وبلاگ */
.bots-scroll {
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* اسلایدر: درگ با JS، بدون اسکرول native */
.auto-slide-wrap {
  touch-action: pan-y; /* عمودی صفحه آزاد؛ افقی با JS */
  user-select: none;
  -webkit-user-select: none;
}
.auto-slide-track {
  animation: none !important;
}
.auto-slide-track a,
.auto-slide-track button {
  user-select: none;
  -webkit-user-select: none;
}

/* کارت ربات داخل اسلایدر بی‌نهایت */
.auto-slide-track > .bot-card:not(.blog-bot-card) {
  flex: 0 0 250px !important;
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
}
@media (max-width: 900px) {
  .auto-slide-track > .bot-card:not(.blog-bot-card) {
    flex: 0 0 165px !important;
    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;
    padding: 12px 10px !important;
  }
  .auto-slide-track > .bot-card:not(.blog-bot-card) img {
    width: 48px !important;
    height: 48px !important;
  }
  .auto-slide-track > .bot-card:not(.blog-bot-card) h3 {
    font-size: 13px !important;
  }
  .auto-slide-track > .bot-card:not(.blog-bot-card) p {
    font-size: 11px !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}
@media (max-width: 600px) {
  .auto-slide-track > .bot-card:not(.blog-bot-card) {
    flex: 0 0 155px !important;
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    padding: 10px 9px !important;
  }
}

/* محو شدن جذاب هنگام نمایش */
.reveal {
  opacity: 0 !important;
  transform: translateY(36px) scale(0.97) !important;
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s ease !important;
}
.reveal.revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
}

/* کارت نظرات در اسلایدر — خوانا روی دسکتاپ و موبایل */
.auto-slide-track > .review-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  padding: 22px 20px !important;
  width: min(300px, 28vw) !important;
  max-width: 320px !important;
  min-width: 260px !important;
}
.auto-slide-track > .review-card .review-stars {
  flex: 0 0 auto !important;
  font-size: 15px !important;
  margin-bottom: 10px !important;
  color: #f5a623 !important;
}
.auto-slide-track > .review-card .review-media {
  flex: 0 0 auto !important;
  height: 140px !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  border-radius: 12px;
}
.auto-slide-track > .review-card .review-media img,
.auto-slide-track > .review-card .review-media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.auto-slide-track > .review-card > p {
  flex: 1 1 auto !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: var(--ink, #1a1a1a) !important;
  margin: 0 0 14px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 6 !important;
  line-clamp: 6;
  -webkit-box-orient: vertical !important;
}
.auto-slide-track > .review-card .review-author {
  margin-top: auto !important;
  flex: 0 0 auto !important;
  gap: 10px !important;
}
.auto-slide-track > .review-card .review-author strong {
  font-size: 14px !important;
  color: var(--ink) !important;
}
.auto-slide-track > .review-card .review-author small {
  font-size: 12px !important;
}
.auto-slide-track > .review-card .review-avatar {
  width: 42px !important;
  height: 42px !important;
  font-size: 15px !important;
}

@media (max-width: 700px) {
  .auto-slide-track > .review-card {
    width: min(300px, 84vw) !important;
    min-width: min(280px, 80vw) !important;
    max-width: 300px !important;
    padding: 16px 14px !important;
  }
  .auto-slide-track > .review-card .review-media {
    height: 100px !important;
  }
  .auto-slide-track > .review-card > p {
    -webkit-line-clamp: 5 !important;
    line-clamp: 5;
    font-size: 14px !important;
    line-height: 1.75 !important;
  }
  .auto-slide-track > .review-card .review-author strong {
    font-size: 13px !important;
  }
  .auto-slide-track > .review-card .review-stars {
    font-size: 14px !important;
  }
  /* خدمات */
  .auto-slide-track > .service-card {
    padding: 14px 12px !important;
  }
  .auto-slide-track > .service-card h3 {
    font-size: 14px !important;
  }
  .auto-slide-track > .service-card p {
    font-size: 12px !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* ربات‌ها: فشرده‌تر از نظر ارتفاع */
  .auto-slide-track > .bot-card:not(.blog-bot-card) {
    padding: 8px 8px !important;
  }
  .auto-slide-track > .bot-card:not(.blog-bot-card) img {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 6px !important;
  }
  .auto-slide-track > .bot-card:not(.blog-bot-card) h3 {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  .auto-slide-track > .bot-card:not(.blog-bot-card) p {
    font-size: 10px !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0 !important;
  }
}

/* ============================================================
   اسکرول‌بار شیک — کل سایت (لایت + دارک)
   ============================================================ */

/* فایرفاکس */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 164, 134, 0.45) transparent;
}
body.dark-mode {
  scrollbar-color: rgba(15, 164, 134, 0.55) rgba(255, 255, 255, 0.04);
}

/* کروم، اج، سافاری */
html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.55), rgba(15, 164, 134, 0.35));
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 48px;
}
html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.85), rgba(15, 164, 134, 0.55));
  background-clip: padding-box;
  border: 2px solid transparent;
}
html::-webkit-scrollbar-thumb:active {
  background: var(--green, #0fa486);
  background-clip: padding-box;
  border: 2px solid transparent;
}
html::-webkit-scrollbar-corner {
  background: transparent;
}

/* دارک مود */
body.dark-mode ~ html::-webkit-scrollbar-thumb,
body.dark-mode {
  /* fallback handled below via html.dark if needed */
}
html:has(body.dark-mode)::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
html:has(body.dark-mode)::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.65), rgba(15, 164, 134, 0.4));
  background-clip: padding-box;
  border: 2px solid transparent;
}
html:has(body.dark-mode)::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.9), rgba(15, 164, 134, 0.6));
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* پشتیبانی مرورگرهای بدون :has — از body مستقیم */
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body::-webkit-scrollbar-track {
  background: transparent;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.55), rgba(15, 164, 134, 0.35));
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 48px;
}
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.85), rgba(15, 164, 134, 0.55));
  background-clip: padding-box;
  border: 2px solid transparent;
}
body.dark-mode::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
body.dark-mode::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.65), rgba(15, 164, 134, 0.4));
  background-clip: padding-box;
  border: 2px solid transparent;
}
body.dark-mode::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(15, 164, 134, 0.9), rgba(15, 164, 134, 0.6));
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ============================================================
   خدمات — دسکتاپ گرید ثابت | موبایل نوار افقی ۴تایی
   ============================================================ */
.services-static-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
  width: 100%;
}
.services-static-grid .service-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100%;
  box-sizing: border-box;
}
.services-static-grid .empty-services {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

@media (max-width: 1100px) {
  .services-static-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* موبایل: نوار افقی — هر ۴ تا کنار هم، قابل کشیدن */
@media (max-width: 700px) {
  .services-static-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding: 4px 2px 14px !important;
    margin: 0 !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 164, 134, 0.5) transparent;
  }
  .services-static-grid::-webkit-scrollbar {
    height: 4px;
  }
  .services-static-grid::-webkit-scrollbar-thumb {
    background: rgba(15, 164, 134, 0.5);
    border-radius: 10px;
  }
  .services-static-grid .service-card {
    flex: 0 0 72% !important;
    width: 72% !important;
    min-width: 72% !important;
    max-width: 72% !important;
    scroll-snap-align: start;
    padding: 14px 12px !important;
  }
  .services-static-grid .service-card h3 {
    font-size: 14px !important;
  }
  .services-static-grid .service-card p {
    font-size: 12px !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .services-static-grid .empty-services {
    flex: 0 0 100%;
  }
}

/* ============================================================
   اکشن‌های شیک — حس زنده بودن سایت
   ============================================================ */

/* کارت‌ها: هاور نرم */
.bot-card,
.service-card,
.review-card,
.blog-bot-card,
.license-card,
.achievement-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease !important;
}
.bot-card:hover,
.service-card:hover,
.review-card:hover,
.blog-bot-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(15, 164, 134, 0.14) !important;
  border-color: rgba(15, 164, 134, 0.3) !important;
}

/* دکمه اصلی: نبض ملایم */
@keyframes softPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(15, 164, 134, 0.25); }
  50% { box-shadow: 0 8px 32px rgba(15, 164, 134, 0.45); }
}
.btn-primary,
.header-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
.btn-primary:hover,
.header-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
}
.btn-primary {
  animation: softPulse 3s ease-in-out infinite;
}
.btn-primary:hover {
  animation: none;
}

/* لینک‌های منو */
.nav a {
  transition: color 0.25s ease !important;
}
.nav a:hover {
  color: var(--green, #0fa486) !important;
}

/* آیکون ربات‌ها کمی شناور */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.bot-card img,
.service-icon {
  transition: transform 0.35s ease;
}
.bot-card:hover img {
  animation: iconFloat 1.2s ease-in-out infinite;
}
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* استات‌های هیرو */
.stat {
  transition: transform 0.3s ease, background 0.3s ease;
}
.stat:hover {
  transform: translateY(-3px);
}

/* سکشن‌ها هنگام ورود به ویو — نرم‌تر */
.reveal {
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease !important;
}

/* فوکوس کیبورد خوانا */
a:focus-visible,
button:focus-visible,
.service-card-clickable:focus-visible {
  outline: 2px solid var(--green, #0fa486);
  outline-offset: 3px;
  border-radius: 8px;
}

/* کاهش حرکت برای کاربرانی که ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
