/* DigitalBax — صفحهٔ اصلی (کلاس‌های hm-*). فقط روی is_front_page() بارگذاری می‌شود. بدون تصویر/فونت خارجی. */
.home{padding-block:20px 8px}
.home section{margin-top:56px}
.home .hm-hero{margin-top:0}
.hm-ico{display:block;width:24px;height:24px}
.hm-eyebrow{display:block;color:var(--c-primary);font-size:.85rem;font-weight:700;margin-bottom:6px}
.hm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:20px}
.hm-head h2{margin:0;font-size:clamp(1.25rem,2.2vw,1.7rem);line-height:1.5}
.hm-head p{margin:4px 0 0;color:var(--c-muted);font-size:.95rem}
.hm-more{white-space:nowrap;font-size:.9rem;color:var(--c-primary)}

/* هیرو */
.hm-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;align-items:center;padding:clamp(24px,4.5vw,64px);border-radius:28px;background:linear-gradient(135deg,#0f2a6b 0%,#1c4fd1 58%,#3b82f6 100%);color:#fff;position:relative;overflow:hidden}
.hm-hero::before{content:"";position:absolute;inset-block-start:-140px;inset-inline-end:-100px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 70%)}
.hm-hero>*{position:relative}
.hm-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:99px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);font-size:.82rem;margin-bottom:16px}
.hm-badge::before{content:"";width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25)}
.hm-hero h1{margin:0 0 14px;color:#fff;font-size:clamp(1.55rem,3.1vw,2.6rem);line-height:1.6}
.hm-hero p{margin:0 0 26px;color:rgba(255,255,255,.88);font-size:clamp(.95rem,1.4vw,1.1rem);line-height:2;max-width:560px}
.hm-cta{display:flex;flex-wrap:wrap;gap:10px}
.hm-cta a{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border-radius:6px;font-weight:700;text-decoration:none}
.hm-cta .hm-btn{background:#fff;color:var(--c-primary-d)}
.hm-cta .hm-btn:hover{background:#eef4ff}
.hm-cta .hm-btn-ghost{border:1px solid rgba(255,255,255,.45);color:#fff}
.hm-cta .hm-btn-ghost:hover{background:rgba(255,255,255,.12)}
.hm-checks{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 20px;font-size:.88rem;color:rgba(255,255,255,.9)}
.hm-checks li::before{content:"✓";margin-inline-end:6px;color:#4ade80;font-weight:700}

/* پنل «فعالیت لحظه‌ای سفارش‌ها»: جریان پیوستهٔ سفارش‌های در حال ثبت/پرداخت/تحویل به سرور دیجیتال‌بکس (فقط CSS، بدون جاوااسکریپت) */
.hm-panel{background:#fff;color:var(--c-text);border-radius:12px;padding:18px;box-shadow:0 24px 60px rgba(8,20,60,.35)}
.hm-panel-bar{display:flex;align-items:center;gap:8px;padding-bottom:12px;margin-bottom:4px;border-bottom:var(--bw) solid var(--c-border);font-weight:700;color:var(--c-head);font-size:.9rem}
.hm-panel-bar span{margin-inline-start:auto;font-weight:400;color:var(--c-muted);font-size:.75rem}
.hm-live-dot{flex:none;width:9px;height:9px;border-radius:50%;background:#22c55e;display:inline-block;box-shadow:0 0 0 0 rgba(34,197,94,.5);animation:hm-pulse 1.8s infinite}
@keyframes hm-pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)}70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.hm-live-view{height:224px;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 14%,#000 86%,transparent)}
.hm-live-list{list-style:none;margin:0;padding:0;animation:hm-live-scroll 18s linear infinite}
@keyframes hm-live-scroll{from{transform:translateY(0)}to{transform:translateY(-50%)}}
.hm-live-list li{display:flex;align-items:center;gap:10px;padding:11px 2px;border-bottom:1px dashed var(--c-border)}
.hm-live-ico{flex:none;width:34px;height:34px;border-radius:50%;background:#eef4ff;color:var(--c-primary);display:flex;align-items:center;justify-content:center}
.hm-live-ico svg{width:17px;height:17px}
.hm-live-ico--ok{background:#dcfce7;color:#166534}
.hm-live-ico--warn{background:#fef3c7;color:#92400e}
.hm-live-row{min-width:0;flex:1}
.hm-live-row b{display:block;color:var(--c-head);font-size:.86rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-live-row small{color:var(--c-muted);font-size:.74rem}
.hm-live-foot{margin-top:10px;padding-top:12px;border-top:var(--bw) solid var(--c-border);text-align:center;font-size:.82rem;color:var(--c-muted)}
.hm-live-foot b{color:var(--c-primary);font-size:1.1rem;font-weight:700}
@media(prefers-reduced-motion:reduce){.hm-live-list{animation:none}.hm-live-dot{animation:none}}

/* نوار آمار روی هیرو */
.home .hm-stats{margin-top:-28px;position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff;border:var(--bw) solid var(--c-border);border-radius:10px;box-shadow:0 10px 30px rgba(15,42,107,.08);margin-inline:clamp(12px,3vw,40px)}
.hm-stat{padding:20px 16px;text-align:center}
.hm-stat+.hm-stat{border-inline-start:var(--bw) solid var(--c-border)}
.hm-stat strong{display:block;font-size:clamp(1.4rem,2.6vw,2rem);color:var(--c-primary);line-height:1.4}
.hm-stat span{color:var(--c-muted);font-size:.88rem}

/* دسته‌ها */
.hm-cats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.hm-cats a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px 10px;border:var(--bw) solid var(--c-border);border-radius:8px;background:#fff;text-align:center;color:var(--c-head);height:100%;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.hm-cats a:hover{border-color:var(--c-primary);box-shadow:0 8px 22px rgba(28,97,231,.12)}
.hm-cat-ico{width:60px;height:60px;border-radius:10px;background:#eef4ff;color:var(--c-primary);font-size:1.5rem;font-weight:700;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hm-cat-ico img{width:100%;height:100%;object-fit:cover}
.hm-cat-name{font-weight:700;font-size:.95rem;line-height:1.6}
.hm-cats small{color:var(--c-muted)}

/* محصولات: ۵ ستون؛ کمتر از ۱۱۰۰: ۴ ستون؛ موبایل: ۲ ستون با تعداد زوج */
.hm-products ul.products{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.hm-products ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}.hm-products ul.products>li:nth-child(n+9){display:none}}
@media(max-width:640px){.hm-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* مزیت‌ها */
.hm-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hm-feat{padding:24px;border:var(--bw) solid var(--c-border);border-radius:10px;background:#fff}
.hm-feat .hm-fi{width:48px;height:48px;border-radius:8px;background:#eef4ff;color:var(--c-primary);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.hm-feat h3{margin:0 0 6px;font-size:1.05rem;color:var(--c-head)}
.hm-feat p{margin:0;color:var(--c-muted);font-size:.92rem;line-height:1.95}

/* مراحل */
.hm-steps-wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:s}
.hm-step{position:relative;padding:24px 22px 22px;border-radius:10px;background:var(--c-surface);border:var(--bw) solid var(--c-border);counter-increment:s}
.hm-step::before{content:counter(s);display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:var(--c-primary);color:#fff;font-weight:700;margin-bottom:12px}
.hm-step h3{margin:0 0 6px;font-size:1.02rem;color:var(--c-head)}
.hm-step p{margin:0;color:var(--c-muted);font-size:.92rem;line-height:1.95}

/* باند نمایندگی */
.hm-band{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(24px,4vw,44px);border-radius:12px;background:linear-gradient(135deg,#111c3d,#1c3a8a);color:#fff}
.hm-band h2{margin:0 0 8px;color:#fff;font-size:clamp(1.2rem,2.2vw,1.6rem)}
.hm-band p{margin:0;color:rgba(255,255,255,.85);line-height:2;max-width:640px}
.hm-band a{flex:none;display:inline-flex;align-items:center;min-height:50px;padding:0 28px;border-radius:6px;background:#fff;color:var(--c-primary-d);font-weight:700;text-decoration:none}

/* مقالات و پرسش‌ها */
.hm-posts{grid-template-columns:repeat(3,minmax(0,1fr))}
.hm-faq{display:grid;gap:10px;max-width:900px;margin-inline:auto}
.hm-faq details{border:var(--bw) solid var(--c-border);border-radius:8px;background:#fff;padding:0 18px}
.hm-faq summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;font-weight:700;color:var(--c-head)}
.hm-faq summary::-webkit-details-marker{display:none}
.hm-faq summary::after{content:"+";font-size:1.4rem;color:var(--c-primary);line-height:1}
.hm-faq details[open] summary::after{content:"−"}
.hm-faq details p{margin:0 0 16px;color:var(--c-text);line-height:2}

/* متن سئویی داخل صفحه */
.home .hm-seo{padding:24px clamp(16px,3vw,36px);border:var(--bw) solid var(--c-border);border-radius:10px;background:#fff;line-height:2.05}

@media(max-width:1000px){
  .hm-hero{grid-template-columns:1fr;gap:28px}
  .hm-features{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-posts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-posts>article:nth-child(n+3){display:none}
}
@media(max-width:700px){
  .home section{margin-top:40px}
  .hm-hero{border-radius:12px}
  .hm-panel{display:none}
  .hm-cta a{flex:1 1 100%}
  .home .hm-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-20px}
  .hm-stat:nth-child(3){border-inline-start:0}
  .hm-stat:nth-child(n+3){border-top:var(--bw) solid var(--c-border)}
  .hm-features,.hm-steps-wrap{grid-template-columns:1fr}
  .hm-band{flex-direction:column;align-items:flex-start}
  .hm-band a{width:100%;justify-content:center}
  .hm-posts{grid-template-columns:1fr}
  .hm-posts>article:nth-child(n+2){display:none}
  .hm-head{align-items:flex-start;flex-direction:column;gap:6px}
}
