/* ═══════════════════════════════════════════
   پیرنگ — فایل CSS مشترک
   مسیر: /web/css/peirang.css
═══════════════════════════════════════════ */

/* ─── فونت ─── */
@font-face {
    font-family: IRANSans;
    src: url('../fonts/IRANSans.eot');
    src: url('../fonts/IRANSans.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSans.woff2') format('woff2'),
         url('../fonts/IRANSans.woff') format('woff'),
         url('../fonts/IRANSans.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: IRANSans;
    src: url('../fonts/IRANSans_Bold.eot');
    src: url('../fonts/IRANSans_Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSans_Bold.woff2') format('woff2'),
         url('../fonts/IRANSans_Bold.woff') format('woff'),
         url('../fonts/IRANSans_Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* ─── ریست و متغیرها ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue:   #1565c0;
    --blue2:  #1976d2;
    --blue3:  #42a5f5;
    --green:  #2e7d32;
    --green2: #43a047;
    --gold:   #f9a825;
    --light:  #e3f2fd;
    --dark:   #0d2137;
    --text:   #1a2a3a;
    --muted:  #546e7a;
    --white:  #ffffff;
    --r:      18px;
    --sh:     0 8px 32px rgba(21,101,192,.13);
}

html { scroll-behavior: smooth; }

body {
    font-family: IRANSans, Tahoma, sans-serif;
    background: #f0f6ff;
    color: var(--text);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.9;
}

/* ─── ناوبری ─── */
nav {
    position: fixed; top: 0; right: 0; left: 0; z-index: 900;
    background: rgba(13,33,55,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 38px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { color: #fff; font-size: 1.25rem; font-weight: 700; }
.nav-brand-sub  { color: rgba(255,255,255,.55); font-size: .65rem; margin-top: 5px;}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,.82); text-decoration: none;
    font-size: .79rem; padding: 6px 10px; border-radius: 8px;
    transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-cta {
    background: var(--green2) !important; color: #fff !important;
    border-radius: 10px !important; padding: 7px 16px !important; font-weight: 700;
}
.nav-cta:hover { background: var(--green) !important; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ─── هیرو ─── */
#home {
    min-height: 100vh;
    background: linear-gradient(145deg, #0d2137 0%, #1565c0 55%, #1e88e5 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 100px 24px 60px;
    padding-bottom: 0;
    position: relative; overflow: hidden;
}
#home::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
    max-width: 1080px; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
    position: relative; z-index: 1;
}
.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff; font-weight: 700; line-height: 1.45; margin-bottom: 16px;
}
.hero-text h1 span { color: var(--gold); }
.hero-text p { font-size: 1rem; color: rgba(255,255,255,.82); line-height: 1.9; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 22px; border-radius: 12px;
    font-family: IRANSans, sans-serif; font-size: .9rem; font-weight: 700;
    cursor: pointer; text-decoration: none; border: none;
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn-green   { background: var(--green2); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; }

.hero-video {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    background: #000; aspect-ratio: 16/9;
}
.hero-video > div { width: 100%; height: 100%; }

/* ─── بخش‌ها — مشترک ─── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
    text-align: center; font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700; color: var(--blue); margin-bottom: 8px;
}
.section-sub {
    text-align: center; color: var(--muted);
    font-size: .92rem; margin-bottom: 44px;
}
.divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--blue2), var(--blue3));
    border-radius: 4px; margin: 12px auto 40px;
}

/* ─── امکانات ─── */
#features { background: #fff; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--light); border-radius: var(--r);
    padding: 26px 20px; text-align: center;
    transition: transform .25s, box-shadow .25s;
    border: 1px solid rgba(21,101,192,.08);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.feat-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue2), var(--blue3));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; font-size: 1.4rem;
}
.feature-card h3 { font-size: .93rem; font-weight: 700; margin-bottom: 7px; color: var(--blue); }
.feature-card p  { font-size: .81rem; color: var(--muted); line-height: 1.8; }

/* ─── ویدئو معرفی ─── */
#intro { background: #f0f6ff; }
.video-section-inner { max-width: 900px; margin: 0 auto; }
.video-wrap {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 16px 48px rgba(21,101,192,.2);
    aspect-ratio: 16/9; background: #000; width: 100%;
}
.video-wrap > div { width: 100%; height: 100%; }
.video-tagline {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 32px; flex-wrap: wrap;
}
.video-tag {
    background: rgba(21,101,192,.08); border: 1px solid rgba(21,101,192,.15);
    border-radius: 50px; padding: 5px 14px;
    font-size: .8rem; color: var(--blue); font-weight: 700;
}

/* ─── تعرفه ─── */
#pricing { background: #fff; }

.billing-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.bill-btn {
    padding: 8px 20px; border-radius: 50px; border: 2px solid var(--blue2);
    font-family: IRANSans, sans-serif; font-size: .82rem; font-weight: 700;
    cursor: pointer; background: transparent; color: var(--blue2); transition: .2s;
}
.bill-btn.active { background: var(--blue2); color: #fff; }

/* 4 ستونی
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } 
*/ 
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.plan-card {
    background: #fff; border-radius: var(--r);
    padding: 28px 18px 22px; text-align: center;
    border: 2px solid transparent;
    box-shadow: var(--sh); position: relative; transition: .25s;
    display: flex; flex-direction: column;
}
.plan-card:hover { border-color: var(--blue2); transform: translateY(-4px); }
.plan-card.popular {
    border-color: var(--blue2);
    background: linear-gradient(160deg, #e3f2fd, #fff);
}
.badge-popular {
    position: absolute; top: -14px; right: 50%; transform: translateX(50%);
    background: var(--gold); color: #4a3000;
    font-size: .73rem; font-weight: 700; padding: 4px 14px; border-radius: 50px;
}
.plan-name   { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.plan-trans  { font-size: 1.5rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.plan-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 6px;
}
.plan-price  { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.plan-price small { font-size: .72rem; font-weight: 400; }
.plan-total {
    font-size: .78rem;
    text-align: center;
    margin-top: -8px;
    margin-bottom: 8px;
    min-height: 1.4em;
}
.plan-save {
    display: inline-block; background: #e8f5e9; color: var(--green);
    font-size: .73rem; font-weight: 700; padding: 2px 10px;
    border-radius: 50px; margin-bottom: 16px;
}
.plan-save-pct {
    font-size: .72rem;
    font-weight: 700;
    color: var(--green);
    padding: 2px 8px;
    border-radius: 50px;
}
.plan-save-pct:not(.hide) {
    background: #e8f5e9;
}
.plan-save.hide { visibility: hidden; }

.plan-features { list-style: none; text-align: right; margin-bottom: 20px; }
.plan-features li {
    font-size: .79rem; padding: 5px 0;
    border-bottom: 1px solid #f0f4f8;
    color: var(--muted); display: flex; align-items: center; gap: 7px;
}
.plan-features li::before { content: '✔'; color: var(--green2); font-size: .78rem; flex-shrink: 0; }
.plan-features li:last-child { border: none; }

.plan-per-trans {
    font-size: .75rem; color: var(--muted);
    margin-bottom: 14px;
}
.btn-plan {
    width: 100%; padding: 11px; border-radius: 12px; border: none;
    background: var(--green2); color: #fff;
    font-family: IRANSans, sans-serif; font-size: .88rem; font-weight: 700;
    cursor: pointer; text-decoration: none; display: block; transition: .2s;
    margin-top: auto;
}
.btn-plan:hover { background: var(--green); }

.pricing-note { text-align: justified; margin-top: 20px; font-size: .79rem; color: var(--muted); line-height: 2.1; }

/* ─── مشکل ← راه‌حل ─── */
#solutions { background: #f0f6ff; }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.sol-card {
    background: #fff; border-radius: var(--r); overflow: hidden;
    box-shadow: var(--sh); transition: .25s;
    display: flex; flex-direction: column;
}
.sol-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(21,101,192,.17); }

.sol-problem {
    background: linear-gradient(135deg, #37474f, #546e7a);
    padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px;
}
.sol-problem-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.sol-problem h3  { color: #fff; font-size: .88rem; font-weight: 700; line-height: 1.5; }
.sol-problem p   { color: rgba(255,255,255,.72); font-size: .77rem; margin-top: 5px; line-height: 1.7; }

.sol-answer { padding: 18px 20px; border-top: 2px solid var(--light); 
              display: flex; flex-direction: column; flex: 1;}
.sol-answer-label {
    display: flex; align-items: center; gap: 7px;
    color: var(--green); font-size: .78rem; font-weight: 700; margin-bottom: 8px;
}
.sol-answer-label span { font-size: 1rem; }
.sol-answer p { color: var(--muted); font-size: .8rem; line-height: 1.8; }
.sol-feature {
    display: flex; align-items: center; gap: 6px; margin-top: 10px;
    background: var(--light); border-radius: 8px; padding: 6px 10px;
    font-size: .76rem; color: var(--blue); font-weight: 700;
    margin-top: auto;
}
.sol-feature::before { content: '⚡'; font-size: .8rem; }

/* ─── نظر کاربران ─── */
#testimonials { background: #fff; overflow: hidden; padding-bottom: 40px; }

.testimonials-track-wrap {
    position: relative; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.testimonials-track {
    display: flex; gap: 20px;
    animation: scrollTrack 60s linear infinite;
    width: max-content;
}
.testimonials-track:hover { animation-play-state: paused; }

@keyframes scrollTrack {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.test-card {
    background: #f8fbff; border-radius: var(--r);
    padding: 22px 20px; min-width: 300px; max-width: 340px;
    box-shadow: var(--sh); border-right: 4px solid var(--blue2);
    flex-shrink: 0;
}
.test-card p    { font-size: .84rem; color: var(--text); line-height: 1.85; margin-bottom: 12px; }
.test-footer    { display: flex; justify-content: space-between; align-items: center; }
.test-author    { font-size: .78rem; font-weight: 700; color: var(--blue); }
.stars          { color: var(--gold); font-size: .85rem; }

/* ─── مستندات: FAQ & SLA ─── */
#docs { background: var(--light); }

.docs-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
    max-width: 900px; margin: 0 auto;
}
.doc-card {
    border-radius: var(--r); padding: 32px 28px; text-align: center;
    position: relative; overflow: hidden;
    transition: .25s; cursor: pointer; border: none; width: 100%;
    font-family: IRANSans, sans-serif;
}
.doc-card:hover { transform: translateY(-4px); }
.doc-card.faq-card {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    box-shadow: 0 10px 30px rgba(21,101,192,.35);
}
.doc-card.sla-card {
    background: linear-gradient(135deg, #37474f, #546e7a);
    box-shadow: 0 10px 30px rgba(55,71,79,.3);
}
.doc-card::before {
    content: ''; position: absolute; top: -40px; left: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.doc-card-icon  { font-size: 2.8rem; margin-bottom: 14px; display: block; }
.doc-card h3    { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.doc-card p     { color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.7; margin-bottom: 18px; }
.doc-card-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
    color: #fff; border-radius: 50px; padding: 8px 20px;
    font-family: IRANSans, sans-serif; font-size: .82rem; font-weight: 700;
    transition: .2s; cursor: pointer;
}
.doc-card:hover .doc-card-btn { background: rgba(255,255,255,.28); }

/* ─── تماس ─── */
#contact {
    background: linear-gradient(135deg, var(--dark), var(--blue2));
    padding: 70px 24px;
}
#contact .section-title { color: #fff; }
#contact .section-sub   { color: rgba(255,255,255,.7); }
#contact .divider       { background: var(--gold); }

.contact-cards { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.contact-card {
    background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
    border-radius: var(--r); padding: 22px 30px; text-align: center;
    color: #fff; min-width: 190px; border: 1px solid rgba(255,255,255,.15);
}
.contact-card .cc-icon { font-size: 1.9rem; margin-bottom: 9px; }
.contact-card h4       { font-size: .83rem; opacity: .72; margin-bottom: 5px; }
.contact-card a,
.contact-card p        { color: var(--gold); font-size: .97rem; font-weight: 700; text-decoration: none; }

/* ─── فوتر ─── */
footer {
    background: var(--dark); color: rgba(255,255,255,.5);
    text-align: center; padding: 20px 16px; font-size: .77rem; line-height: 1.9;
}
footer a { color: var(--blue3); text-decoration: none; }

/* ─── لایت‌باکس ─── */
.lb-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(10,20,40,.9); backdrop-filter: blur(7px);
    justify-content: center; align-items: center; padding: 16px;
}
.lb-overlay.open { display: flex; }

.lb-box {
    background: #fff; border-radius: 20px; width: 100%; max-width: 860px;
    max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,.55); overflow: hidden;
}
.lb-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px; border-bottom: 1px solid #e0e8f0; flex-shrink: 0;
}
.lb-header.faq-hdr { background: linear-gradient(135deg, #1565c0, #1976d2); }
.lb-header.sla-hdr { background: linear-gradient(135deg, #37474f, #546e7a); }
.lb-header h2      { font-size: .95rem; font-weight: 700; color: #fff; }
.lb-close {
    background: rgba(255,255,255,.2); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 50%; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s;
}
.lb-close:hover { background: rgba(255,255,255,.35); }

.lb-body { overflow-y: auto; direction: rtl; flex: 1; }
.lb-body iframe {
    width: 100%; height: 100%; min-height: 70vh; border: none;
    display: block; direction: rtl;
}

/* ─── صفحات doc (faq.html · sla.html) ─── */
body.doc-page {
    background: #fff;
    padding: 28px 32px;
    font-size: .88rem;
    max-width: 860px;
    margin: 0 auto;
    text-align: right;
}
body.doc-page h1 {
    font-size: 1.35rem; font-weight: 700; color: var(--blue);
    margin: 0 0 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--light); line-height: 1.5;
}
body.doc-page h2 {
    font-size: 1rem; font-weight: 700; color: var(--blue);
    margin: 28px 0 10px; padding-right: 10px;
    border-right: 3px solid var(--blue3);
}
body.doc-page p   { margin-bottom: 12px; line-height: 2; }
body.doc-page ul,
body.doc-page ol  { padding-right: 24px; margin-bottom: 12px; }
body.doc-page li  { margin-bottom: 6px; line-height: 1.9; }
body.doc-page strong { font-weight: 700; color: var(--text); }
body.doc-page a   { color: var(--blue2); }

body.doc-page pre {
    font-family: IRANSans, Tahoma, sans-serif;
    direction: rtl; text-align: right;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 2; font-size: .87rem;
    color: var(--text);
    background: transparent; border: none;
    margin: 0; padding: 0;
}

/* ─── ریسپانسیو ─── */
@media (max-width: 1000px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-video { order: -1; }
    nav { padding: 0 14px; }
    .nav-links {
        display: none; position: fixed; top: 68px; right: 0; left: 0;
        background: #0d2137; flex-direction: column; gap: 0;
        padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1);
    }
    .nav-links.open { display: flex; }
    .nav-links li   { width: 100%; }
    .nav-links a    { display: block; padding: 10px 22px; border-radius: 0; }
    .hamburger      { display: flex; }
    .docs-row       { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    .plans-grid    { grid-template-columns: 1fr; }
}

.vol-badge {
    display: inline-block;
    background: rgba(67,160,71,.15);
    color: var(--green);
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    margin-right: 4px;
}

/*____________ Live stats ______________*/
#live-stats {
  background: linear-gradient(90deg, #0d47a1 0%, #1565c0 50%, #0d47a1 100%);
  padding: 0;
  width: 100%;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 28px 24px;
  gap: 0;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.stat-num {
  font-family: IRANSans, sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  direction: rtl;
  flex-direction: row-reverse; 
}

.stat-label {
  font-family: IRANSans, sans-serif;
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  letter-spacing: .02em;
  text-align: center;
}
.stat-sep {
  width: 1px;
  background: rgba(255,255,255,.2);
  margin: 4px 0;
  align-self: stretch;
}
@media (max-width: 540px) {
  .stats-inner { flex-direction: column; gap: 18px; padding: 24px 16px; }
  .stat-sep    { width: 40px; height: 1px; align-self: center; }
}

.stat-num small {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
}

.plan-badge-base {
    background: rgba(21,101,192,.1);
    color: var(--blue);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
}
.plan-price-orig-wrap {
    min-height: 1.6em;
    text-align: center;
    margin-top: 8px;
    /* margin-bottom: 4px; */
}
.plan-price-orig {
    min-height: 1.8em;
    font-size: .82rem;
    color: var(--muted);
    text-decoration: line-through;
    display: block;
    text-align: center;
}
.plan-price-orig small {
    font-size: .72rem;
    font-weight: 400;
}