/* ===================================================
   معین تراز ویرا — style.css
   رنگ‌بندی: مشکی، سفید، طلایی، زرشکی
   =================================================== */

/* --- VARIABLES --- */
:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --gold: #d4a017;
  --gold-lt: #f0c040;
  --crimson: #8b1a1a;
  --crimson-lt: #b22222;
  --white: #ffffff;
  --off-white: #f5f3ee;
  --gray: #888888;
  --gray-lt: #cccccc;
  --vs-blue: #569cd6;

  --font: "Vazirmatn", "Tahoma", sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  --transition: 0.28s ease;
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.75;
  direction: rtl;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* --- CONTAINER --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.18);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.logo-svg {
  width: 38px;
  height: 38px;
  color: var(--gold);
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-lt);
  padding: 6px 12px;
  border-radius: 6px;
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-links a:hover {
  color: var(--gold);
  background: rgba(212, 160, 23, 0.08);
}
.btn-nav {
  background: var(--gold) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
}
.btn-nav:hover {
  background: var(--gold-lt) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}
.btn-primary.full-w {
  width: 100%;
  text-align: center;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 28px;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* --- SECTION BASE --- */
.section {
  padding: 90px 0;
}
.dark-section {
  background: var(--dark);
}

.section-header {
  text-align: center;
  margin-bottom: 54px;
}
.section-header.light h2,
.section-header.light p {
  color: var(--white);
}
.section-header.light .eyebrow {
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  font-size: 1.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
}
/* عنوان اصلی بخش‌ها — ۶ سایز بزرگ‌تر از قبل (از 1.7–2.4rem به حدود 2.3–3rem) */
.section-header h2 {
  font-size: clamp(2.3rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}
.section-header p {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 100px 0 60px;
}

/* لایه تصویر بک‌گراند */
/* لایه تصویر بک‌گراند */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("hero-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: blur(0px) brightness(0.75);
  transform: scale(1);
  z-index: 0;
}

/* overlay برای خوانایی متن */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.35) 0%,
    rgba(10, 10, 10, 0.15) 40%,
    rgba(10, 10, 10, 0.55) 100%
  );
  z-index: 1;
}

/* پترن قدیمی رو نگه می‌داریم ولی z-index می‌دیم */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 700px 500px at 80% 50%,
      rgba(139, 26, 26, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 500px 400px at 10% 80%,
      rgba(212, 160, 23, 0.1) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 2;
}

/* محتوای هیرو باید بالاتر از همه لایه‌ها باشه */
.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(4.5rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-title .gold {
  color: var(--gold);
}

/* زیرعنوان هیرو — دو سایز کوچک‌تر از قبل */
.hero-subtitle {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 700;
  display: block;
  line-height: 1.4;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-lt);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  padding: 0 36px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(212, 160, 23, 0.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.5s infinite;
}
@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
}

/* --- FEATURES --- */
.features {
  background: var(--black);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(212, 160, 23, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.1);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* --- MODULES --- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.module-item {
  background: var(--dark);
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition);
}
.module-item:hover {
  background: rgba(212, 160, 23, 0.06);
}
/* شماره ماژول — بدون فرمت پد، رنگ آبی VS Code */
.mod-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--vs-blue);
  margin-bottom: 6px;
  font-feature-settings: "tnum";
  direction: ltr;
  text-align: right;
}
.module-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.module-item p {
  font-size: 0.82rem;
  color: var(--gray);
}

/* --- SCREENSHOTS --- */
.screenshots {
  background: var(--black);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.screenshot-card {
  text-align: center;
}
.screenshot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  image-rendering: -webkit-optimize-contrast;
}
.screenshot-card img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 50px rgba(212, 160, 23, 0.15);
}
.screenshot-placeholder {
  background: var(--dark2);
  border: 2px dashed rgba(212, 160, 23, 0.25);
  border-radius: var(--radius);
  padding: 36px 16px;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 160px;
  justify-content: center;
}
.screenshot-placeholder span {
  font-size: 1.6rem;
}
.screenshot-placeholder small {
  font-size: 0.75rem;
  color: rgba(212, 160, 23, 0.5);
}
.screenshot-card p {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gray);
}

.screenshots-note code {
  background: rgba(212, 160, 23, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  direction: ltr;
  display: inline-block;
}

/* --- DOWNLOADS --- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition:
    border-color var(--transition),
    transform var(--transition);
  color: var(--white);
}
.download-card:hover {
  border-color: var(--gold);
  transform: translateX(-4px);
}
.dl-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.dl-info {
  flex: 1;
}
.dl-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.dl-info p {
  font-size: 0.82rem;
  color: var(--gray);
}
.dl-btn {
  background: var(--gold);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- EDU LINKS --- */
.edu-links {
  background: var(--black);
}
.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.edu-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.edu-card:hover {
  transform: translateX(-4px);
}
.edu-card.telegram {
  background: linear-gradient(135deg, #0d1117 0%, #1a2636 100%);
  border-color: #229ed9;
}
.edu-card.eitaa {
  background: linear-gradient(135deg, #0d1117 0%, #1a1a0a 100%);
  border-color: var(--gold);
}
.edu-card.bale {
  background: linear-gradient(135deg, #0d1117 0%, #0a1a12 100%);
  border-color: #27ae60;
}
.edu-card svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.edu-card.telegram svg {
  color: #229ed9;
}
.edu-card.eitaa svg {
  color: var(--gold);
}
.edu-card.bale svg {
  color: #27ae60;
}
.edu-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.edu-card p {
  font-size: 0.82rem;
  color: var(--gray);
}
.arrow {
  margin-right: auto;
  font-size: 1.2rem;
  opacity: 0.5;
}

/* --- CLIENTS --- */
/* ۴ ستون در دسکتاپ، ۲ ستون در موبایل — بدون انیمیشن hover */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.client-name {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--gray-lt);
  text-align: center;
}

/* --- LICENSES --- */
.licenses {
  background: var(--black);
}
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.license-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.license-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.license-img-placeholder {
  background: rgba(212, 160, 23, 0.05);
  border: 1px dashed rgba(212, 160, 23, 0.2);
  border-radius: var(--radius);
  padding: 30px 14px;
  margin-bottom: 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.license-img-placeholder span {
  font-size: 2.5rem;
}
.license-img-placeholder p {
  font-size: 0.78rem;
  color: var(--gray);
}
.license-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.license-card p {
  font-size: 0.82rem;
  color: var(--gray);
}

/* --- NEWS --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.news-card:hover {
  border-color: rgba(212, 160, 23, 0.35);
  transform: translateY(-4px);
}
.news-date {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--crimson-lt);
  margin-bottom: 10px;
  background: rgba(139, 26, 26, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
}
.news-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.news-card p {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}
.news-link {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  transition: opacity var(--transition);
}
.news-link:hover {
  opacity: 0.75;
}

/* --- ABOUT --- */
.about {
  background: var(--black);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .eyebrow {
  margin-bottom: 12px;
}
.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.4;
}
.about-text p {
  font-size: 0.92rem;
  color: var(--gray-lt);
  line-height: 1.9;
  margin-bottom: 14px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-lt);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.about-card {
  background: var(--dark2);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 0 60px rgba(212, 160, 23, 0.07);
}
.about-logo-large svg {
  width: 120px;
  height: 120px;
  color: var(--gold);
  margin: 0 auto 20px;
}
.about-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.about-card p {
  font-size: 0.82rem;
  color: var(--gray);
}

/* --- CONTACT --- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.ci-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-lt);
}
.map-link {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}
.map-link:hover {
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition),
    opacity var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-btn:hover {
  transform: scale(1.12);
  opacity: 0.85;
}
.social-btn svg {
  width: 22px;
  height: 22px;
}
.social-btn.insta {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
  color: white;
  border: none;
}
.social-btn.tg {
  background: #229ed9;
  color: white;
  border: none;
}
.social-btn.ei {
  background: var(--gold);
  color: var(--black);
  border: none;
}
.social-btn.bale-btn {
  background: #27ae60;
  color: white;
  border: none;
}
.social-btn.bale-btn svg path {
  fill: white;
}
.edu-card.bale svg path {
  fill: #0cbc8d;
}

.contact-form-box {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.contact-form-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.contact-form-box > p {
  font-size: 0.86rem;
  color: var(--gray);
  margin-bottom: 22px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
  direction: rtl;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray);
}
.contact-form textarea {
  resize: vertical;
}

/* --- FOOTER --- */
.footer {
  background: #050505;
  border-top: 1px solid rgba(212, 160, 23, 0.12);
  padding-top: 54px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand .footer-logo .logo-svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}
.footer-brand .footer-logo span {
  font-size: 1rem;
  font-weight: 700;
}
.footer-brand p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 4px;
}
.footer-links h4,
.footer-social-block h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-links a,
.footer-social-block a {
  display: block;
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-social-block a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--gray);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    z-index: 99;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
  }
  .hamburger {
    display: flex;
  }

  .hero-stats {
    gap: 0;
  }
  .stat {
    padding: 0 18px;
  }

  .about-inner {
    gap: 36px;
  }
  .about-values {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    gap: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .stat-divider {
    display: none;
  }
  .stat {
    padding: 10px 20px;
  }
  .hero-stats {
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.edu-card.instagram {
  background: linear-gradient(135deg, #0d1117 0%, #1a0d1a 100%);
  border-color: #c13584;
}
.edu-card.instagram svg {
  color: #c13584;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.update-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: border-color var(--transition);
}
.update-card:hover {
  border-color: var(--gold);
}
.update-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.update-info {
  flex: 1;
}
.update-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}
.arch {
  background: rgba(86, 156, 214, 0.15);
  color: var(--vs-blue);
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
}
.update-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.update-version {
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
  padding: 2px 8px;
  border-radius: 5px;
}
.update-date {
  font-size: 0.78rem;
  color: var(--gray);
}

/* --- LIGHTBOX --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(212, 160, 23, 0.3);
}

/* کارت عکس — نشان بده که قابل کلیک است */
.screenshot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  image-rendering: -webkit-optimize-contrast;
  cursor: zoom-in; /* ← اینجا اضافه شد */
}
.license-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
}
