/* بازطراحی بصری صفحه اصلی — فقط داخل .sgm-home اعمال می‌شود */

.sgm-home {
  background: #f4f7f5;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(26,154,108,.08), transparent 40%),
    radial-gradient(circle at 88% 30%, rgba(99,102,241,.07), transparent 42%);
}

/* Hero: گرادیان متحرک و کارت شیشه‌ای */
.sgm-home .sgm-hero {
  background: linear-gradient(125deg, #050b14 0%, #0b1f1a 45%, #111a3a 100%);
  background-size: 200% 200%;
  animation: sgm-hero-shift 18s ease infinite;
}
@keyframes sgm-hero-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.sgm-home .sgm-badge {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(110,231,183,.35);
  box-shadow: 0 0 24px rgba(110,231,183,.15);
}
.sgm-home .sgm-hero-lead { font-size: 1.08rem; }
.sgm-home .sgm-hero-trust li {
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.sgm-home .sgm-dashboard {
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(26,154,108,.18);
  transition: transform .5s ease;
}
.sgm-home .sgm-dashboard:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(2deg); }
.sgm-home .sgm-bar {
  transition: height .6s ease, filter .3s ease;
}
.sgm-home .sgm-bar:hover { filter: brightness(1.3); }

/* Buttons */
.sgm-home .btn {
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}
.sgm-home .btn:hover { transform: translateY(-2px); }
.sgm-home .btn-primary {
  background: linear-gradient(135deg, #1a9a6c, #0f766e);
  border: none;
}
.sgm-home .sgm-btn-glow:hover { box-shadow: 0 12px 40px rgba(26,154,108,.45); }

/* Section headers */
.sgm-home .sgm-section-tag {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(26,154,108,.1);
  border: 1px solid rgba(26,154,108,.2);
}
.sgm-home .sgm-section-head h2,
.sgm-home .sgm-why-copy h2 {
  background: linear-gradient(120deg, #0f172a, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cards: lift and glow on hover */
.sgm-home .sgm-card,
.sgm-home .price-card,
.sgm-home .sgm-faq details {
  border-radius: 20px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sgm-home .sgm-card:hover,
.sgm-home .price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,23,42,.12);
  border-color: rgba(26,154,108,.35);
}
.sgm-home .price-card.featured {
  background: linear-gradient(160deg, #0f172a, #0b3b32);
  color: #e2e8f0;
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(15,118,110,.35);
}
.sgm-home .price-card.featured .price,
.sgm-home .price-card.featured h3 { color: #fff; }
.sgm-home .price-card.featured ul,
.sgm-home .price-card.featured .price small { color: rgba(226,232,240,.8); }

/* Steps & FAQ */
.sgm-home .sgm-step-num {
  box-shadow: 0 8px 24px rgba(26,154,108,.35);
}
.sgm-home .sgm-faq details[open] {
  border-color: rgba(26,154,108,.35);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.sgm-home .sgm-faq summary { transition: color .2s ease; }
.sgm-home .sgm-faq summary:hover { color: #0f766e; }

/* CTA band */
.sgm-home .sgm-cta {
  background: linear-gradient(120deg, #050b14, #0f3d33 50%, #1e1b4b);
  background-size: 200% 200%;
  animation: sgm-hero-shift 14s ease infinite;
}

/* کاهش انیمیشن برای کاربرانی که حرکت را غیرفعال کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  .sgm-home .sgm-hero,
  .sgm-home .sgm-cta { animation: none; }
  .sgm-home *, .sgm-home *::before, .sgm-home *::after { transition-duration: .01ms !important; }
}

/* Footer credit */
.footer-credit {
  margin-top: .6rem;
  font-size: .9rem;
  color: #94a3b8;
}
.footer-credit a {
  color: #6ee7b7;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(110,231,183,.5);
}
.footer-credit a:hover { color: #fff; border-bottom-style: solid; }

/* ───────── بازطراحی سکشن‌های صفحه اصلی ───────── */

/* نوار آمار: کارت شناور که روی هیرو قرار می‌گیرد */
.sgm-home .sgm-stats-bar {
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 2;
}
.sgm-home .sgm-stats-inner {
  margin-top: -3.5rem;
  padding: 1.6rem 2rem;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15,118,110,.12);
  box-shadow: 0 30px 70px rgba(15,23,42,.14);
  color: #0f172a;
}
.sgm-home .sgm-stat-item strong {
  background: linear-gradient(120deg, #0f766e, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sgm-home .sgm-stat-item span { color: #475569; opacity: 1; }

/* سکشن‌ها: ریتم عمودی و پس‌زمینه‌های متفاوت */
.sgm-home .sgm-section { padding: 6.5rem 0; }
.sgm-home .sgm-section-head {
  max-width: 46rem;
  margin-bottom: 3rem;
}
.sgm-home .sgm-section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.3;
  background: linear-gradient(120deg, #0f172a 30%, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sgm-home .sgm-section-tag {
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(15,118,110,.09);
  border: 1px solid rgba(15,118,110,.2);
  font-size: .8rem;
}
.sgm-home .sgm-section-lead { font-size: 1.02rem; }
.sgm-home .sgm-section-dark .sgm-section-head h2 {
  background: none;
  color: #fff;
}

/* ماژول‌ها: بنتو با کارت‌های شیشه‌ای و نوار رنگی بالا */
.sgm-home #modules {
  background:
    radial-gradient(circle at 90% 10%, rgba(99,102,241,.08), transparent 40%),
    #f4f7f5;
}
.sgm-home .sgm-bento { gap: 1.25rem; }
.sgm-home .sgm-card {
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.06);
}
.sgm-home .sgm-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent-a, #1a9a6c), var(--accent-b, #6366f1));
  opacity: .9;
}
.sgm-home .sgm-card-orgdesk { --accent-a: #2563eb; --accent-b: #6366f1; }
.sgm-home .sgm-card-attend { --accent-a: #dc2626; --accent-b: #f97316; }
.sgm-home .sgm-card-transport { --accent-a: #0891b2; --accent-b: #06b6d4; }
.sgm-home .sgm-card-team { --accent-a: #7c3aed; --accent-b: #a855f7; }
.sgm-home .sgm-card-billing { --accent-a: #ca8a04; --accent-b: #eab308; }
.sgm-home .sgm-card-backup { --accent-a: #059669; --accent-b: #34d399; }
.sgm-home .sgm-card-admin { --accent-a: #475569; --accent-b: #94a3b8; }
.sgm-home .sgm-card h3 { font-size: 1.15rem; color: #0f172a; }
.sgm-home .sgm-card-lg {
  background: linear-gradient(150deg, #0b1f1a 0%, #0f172a 70%, #1e1b4b 100%);
  border-color: transparent;
  color: #e2e8f0;
}
.sgm-home .sgm-card-lg::after {
  content: "";
  position: absolute; width: 260px; height: 260px;
  left: -80px; bottom: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,.35), transparent 70%);
  pointer-events: none;
}
.sgm-home .sgm-card-lg h3 { color: #fff; font-size: 1.5rem; }
.sgm-home .sgm-card-lg p { color: rgba(226,232,240,.78); font-size: 1rem; }
.sgm-home .sgm-card-lg .sgm-tags li {
  background: rgba(110,231,183,.14); color: #6ee7b7;
}
.sgm-home .sgm-card-sheets { background: linear-gradient(150deg, #0b1f1a 0%, #0f172a 70%, #1e1b4b 100%); }
.sgm-home .mod-icon {
  width: 56px; height: 56px; border-radius: 18px;
}
.sgm-home .sgm-card .sgm-tags li {
  background: #f1f5f9; color: #334155;
}
.sgm-home .sgm-card:hover::before { opacity: 1; }

/* نحوه کار: تایم‌لاین افقی با خط اتصال */
.sgm-home #workflow {
  background:
    radial-gradient(circle at 15% 0%, rgba(26,154,108,.18), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(99,102,241,.18), transparent 45%),
    #0a0f1a;
}
.sgm-home .sgm-steps {
  position: relative;
  gap: 1.5rem;
}
.sgm-home .sgm-steps::before {
  content: "";
  position: absolute; top: 34px; right: 16%; left: 16%; height: 2px;
  background: linear-gradient(90deg, #6366f1, #1a9a6c);
  opacity: .5;
}
.sgm-home .sgm-steps li {
  position: relative;
  padding: 2rem 1.6rem;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease;
}
.sgm-home .sgm-steps li:hover {
  transform: translateY(-6px);
  border-color: rgba(110,231,183,.4);
}
.sgm-home .sgm-step-num {
  width: 60px; height: 60px; border-radius: 18px;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #1a9a6c, #6366f1);
  color: #fff;
  box-shadow: 0 12px 30px rgba(26,154,108,.35);
  margin-bottom: 1.2rem;
}
.sgm-home .sgm-steps h3 { font-size: 1.2rem; }
.sgm-home .sgm-steps p { font-size: .98rem; }

/* چرا ما: پنل شیشه‌ای با چک‌لیست چیپ‌دار */
.sgm-home .sgm-why-grid { gap: 4rem; }
.sgm-home .sgm-why-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.35; }
.sgm-home .sgm-checklist { display: grid; gap: .6rem; margin-top: 1.75rem; }
.sgm-home .sgm-checklist li {
  padding: .75rem 1rem .75rem 2.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
  color: #334155;
  transition: transform .2s ease, border-color .2s ease;
}
.sgm-home .sgm-checklist li:hover { transform: translateX(-4px); border-color: rgba(26,154,108,.35); }
.sgm-home .sgm-checklist li::before {
  right: auto; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1a9a6c, #0f766e);
  color: #fff; font-size: .72rem;
}
.sgm-home .sgm-why-visual {
  padding: 2.5rem 1rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(26,154,108,.12), transparent 60%),
    linear-gradient(160deg, #ffffff, #eef4f1);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 30px 60px rgba(15,23,42,.08);
}
.sgm-home .sgm-orbit-node {
  width: 74px; height: 74px; margin: -37px;
  font-size: .82rem;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  color: #0f172a;
}
.sgm-home .sgm-orbit-center {
  inset: 36%;
  font-size: 1.2rem;
  letter-spacing: .04em;
}

/* پلن‌ها */
.sgm-home #pricing-preview { background: #f4f7f5; }
.sgm-home .pricing-grid { gap: 1.25rem; }
.sgm-home .price-card {
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,.07);
}
.sgm-home .price-card h3 { font-size: 1.2rem; }
.sgm-home .price { font-size: 1.7rem; color: #0f172a; }

/* سوالات متداول */
.sgm-home #faq { background: #fff; }
.sgm-home .sgm-faq details {
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: #f8faf9;
  border: 1px solid rgba(15,23,42,.06);
  margin-bottom: .75rem;
}
.sgm-home .sgm-faq summary { font-size: 1.02rem; color: #0f172a; }

/* CTA پایانی */
.sgm-home .sgm-cta {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}
.sgm-home .sgm-cta::before {
  content: "";
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(110,231,183,.25), transparent 70%);
  pointer-events: none;
}
.sgm-home .sgm-cta h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  background: linear-gradient(120deg, #ffffff, #6ee7b7 60%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .sgm-home .sgm-stats-inner { margin-top: -2rem; }
  .sgm-home .sgm-steps::before { display: none; }
  .sgm-home .sgm-why-grid { gap: 2.5rem; }
}
