/* ریست خیلی سبک */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Vazirmatn", sans-serif;
  direction: rtl;
  background:
    radial-gradient(circle at top left, #ffffff 0, #f3f7ff 40%, #edf3ff 100%);
  color: #0f172a;
}

/* پالت رنگ نزدیک به jcprogrammer */
:root {
  --jc-bg: #f5f7ff;
  --jc-bg-soft: #edf2ff;
  --jc-surface: #ffffff;
  --jc-surface-elevated: #ffffff;

  --jc-primary: #00a2ff;          /* آبی JCID */
  --jc-primary-strong: #007bff;   /* آبی تیره‌تر برای hover */
  --jc-secondary: #00c285;        /* سبز کمکی */
  --jc-accent: #ff7a2f;           /* نارنجی برای جزئیات کوچک */

  --jc-border-subtle: rgba(148, 163, 184, 0.35);
  --jc-border-strong: rgba(148, 163, 184, 0.7);

  --jc-text-main: #0f172a;
  --jc-text-muted: #64748b;
  --jc-text-soft: #6b7280;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 22px 50px rgba(15, 23, 42, 0.16);

  --header-height: 72px;
}

/* لایه عمومی */

.container {
  width: 100%;
  max-width: 1200px;
  padding-inline: 20px;
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: right;
  max-width: 640px;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--jc-text-main);
}

.section-header p {
  margin: 0;
  color: var(--jc-text-soft);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* دکمه‌ها */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--jc-primary), var(--jc-primary-strong));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.25), var(--shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--jc-primary-strong), #0056d6);
}

.btn-secondary {
  background: #ffffff;
  color: var(--jc-primary-strong);
  border-color: rgba(0, 122, 255, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(0, 122, 255, 0.45);
  color: var(--jc-primary-strong);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--jc-text-soft);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* هدر */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0, 162, 255, 0.08);
  border: 1px solid rgba(0, 162, 255, 0.8);
  color: #0369a1;
  font-size: 0.75rem;
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-main {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jc-text-main);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--jc-text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--jc-text-muted);
  padding-block: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jc-primary), var(--jc-primary-strong));
  transition: width 0.18s ease;
}

.nav-link:hover {
  color: var(--jc-primary-strong);
}

.nav-link:hover::after {
  width: 100%;
}

/* منوی موبایل */

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #0f172a;
  border-radius: 999px;
  margin: 4px 0;
}

/* HERO */

.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0284c7;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--jc-text-main);
}

.hero-title span {
  display: block;
  font-size: 0.9em;
  color: #1d4ed8;
}

.hero-description {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--jc-text-soft);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.metric-item {
  padding: 10px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--jc-border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.metric-item dt {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.metric-item dd {
  margin: 0;
  font-size: 0.78rem;
  color: var(--jc-text-muted);
}

/* HERO media */

.hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.95);
  border: 1px solid rgba(129, 140, 248, 0.7);
  font-size: 0.78rem;
  color: #1d4ed8;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.hero-main-product {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, #e0f2ff, #f9fbff 55%, #ffffff 100%);
  padding: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(129, 140, 248, 0.6);
}

.hero-main-product::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  pointer-events: none;
}

.hero-main-product img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.hero-tag {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.78rem;
  color: var(--jc-text-main);
}

.hero-tag-top {
  inset-inline-start: 26px;
  top: 24px;
}

.hero-tag-bottom {
  inset-inline-end: 26px;
  bottom: 24px;
}

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

.hero-strip-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--jc-border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.strip-title {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jc-text-main);
}

.strip-text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--jc-text-soft);
}

/* محصولات */

.section-products {
  padding-top: 40px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--jc-border-subtle);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 162, 255, 0.7);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff 0, #f4f8ff 100%);
}

.product-media {
  padding: 14px 14px 0;
}

.product-media img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.product-body {
  padding: 14px 14px 16px;
}

.product-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--jc-text-main);
}

.product-text {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--jc-text-soft);
  line-height: 1.8;
}

.product-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tags li {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.8);
  font-size: 0.7rem;
  color: #1d4ed8;
}

.product-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--jc-primary-strong);
}

.product-link-label::after {
  content: "↗";
  font-size: 0.8em;
}

.section-cta {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

/* چرا JCID + AsanGSM */

.section-why {
  padding-top: 70px;
}

.section-why-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: flex-start;
}

.section-why h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  color: var(--jc-text-main);
}

.section-why p {
  font-size: 0.9rem;
  color: var(--jc-text-soft);
  line-height: 1.9;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

.why-list h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--jc-text-main);
}

.why-list p {
  margin: 0;
}

.why-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--jc-border-subtle);
  padding: 16px 16px 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--jc-text-main);
}

.why-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--jc-text-soft);
}

.why-contact-mini p {
  font-size: 0.85rem;
}

.contact-mini-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--jc-text-soft);
}

/* گارانتی و پشتیبانی */

.section-support {
  padding-top: 70px;
}

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

.support-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--jc-border-subtle);
  padding: 16px 16px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.support-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--jc-text-main);
}

.support-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--jc-text-soft);
  line-height: 1.8;
}

/* تماس */

.section-contact {
  padding-top: 70px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--jc-text-main);
}

.contact-content p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--jc-text-soft);
}

.contact-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--jc-text-main);
}

.contact-list li {
  margin-bottom: 4px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-note {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--jc-border-subtle);
  padding: 16px 16px 18px;
  font-size: 0.85rem;
  color: var(--jc-text-soft);
  line-height: 1.9;
}

.contact-address {
  margin-top: 8px;
}

/* فوتر */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 20px 0 26px;
  background: linear-gradient(180deg, #0f172a 0, #020617 100%);
  color: #e5e7eb;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.footer-text {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.footer-text a {
  color: #bfdbfe;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* ریسپانسیو */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

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

  .section-why-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
  }

  .main-nav {
    position: fixed;
    inset-inline: 12px;
    top: calc(var(--header-height) + 8px);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.95);
    transform: translateY(-24px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  .brand-text {
    display: none;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
