/* ============================================
   landing.css — صفحه اصلی + راهنمای فروش پرداز
   استاتیک، ریسپانسیو، RTL
   ============================================ */

* {
    font-family: 'samim', Tahoma, 'Iranian Sans', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0050ff;
    --primary-dark: #003d80;
    --primary-light: #e7f0ff;
    --text: #1a2a3a;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --bg: #f5f7fa;
    --white: #ffffff;
    --success: #28a745;
    --warning: #f59e0b;
    --danger: #dc3545;
    --info: #17a2b8;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,80,255,0.15);
    --transition: all 0.25s ease;
}

body {
    font-family: 'samim', Tahoma, 'Iranian Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code {
    background: #eef2f7;
    color: var(--primary-dark);
    padding: 2px 7px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    direction: ltr;
    display: inline-block;
}
p{
    text-align: justify;
}
/* ============================================
   هدر
   ============================================ */
.site-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}


.header-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: contain;
    transition: var(--transition);
}

.header-brand:hover .header-logo {
    transform: rotate(-6deg) scale(1.05);
}

.header-titles h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.header-titles p {
    font-size: 12.5px;
    opacity: 0.85;
}

.header-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.header-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.header-nav a:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 20px;
    padding: 30px;
}

.hero-text h2 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-text h2 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   تصویر Hero — کادر ثابت + تصویر زوم‌شونده
   ============================================ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* کادر ثابت — ابعاد قفل‌شده، overflow مخفی */
.hero-visual-frame {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;      /* کادر مربع — می‌توانید 4/3 یا 16/9 بگذارید */
    border-radius: var(--radius-lg);
    overflow: hidden;         /* ← نکته کلیدی: تصویر بزرگ‌شده از کادر بیرون نزند */
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,80,255,0.15);
}

/* تصویر داخل کادر — انیمیشن زوم */
.hero-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* تصویر کامل دیده شود، بدون بریدگی */
    transform-origin: center center;
    animation: heroPulse 60s ease-in-out infinite;
}

@keyframes heroPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(2.5) translate(-130px,-30px); }
    100% { transform: scale(1); }
}
/* ============================================
   در عرض‌های کمتر از 900px → انیمیشن غیرفعال
   ============================================ */
@media (max-width: 560px) {
    .hero-visual-frame img {
        animation: none;           /* ← انیمیشن قطع می‌شود */
        transform: scale(2);       /* ← اطمینان از حالت پایه */
    }
}
.screen{
    cursor: pointer;    
    margin: 20px auto;
    border-radius: 5px 5px 5px 0px;
    transition: transform 2s;
    text-align: center;
    font-size: 80%;
}
.screen:hover{
    transform: scale(1.05);
    transition-duration: 3s;
}
/* ============================================
   بخش‌ها
   ============================================ */
.section {
    max-width: 1200px;
    margin: 44px auto 0;
    padding: 0 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 8px;
}

.section-title .icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 22px;
}

/* ============================================
   گرید کارت‌ها
   ============================================ */
.grid {
    display: grid;
    gap: 18px;
}

.grid-charts {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.grid-tools {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.grid-brand {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.08);
}

.card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
}

.card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-lg img {
    width: 130px;
    height: 130px;
    border-radius: var(--radius);
}

.card-lg.card-logo img {
    background: var(--primary-light);
    padding: 10px;
}

/* ============================================
   متن راهنما (استاتیک — همه باز)
   ============================================ */
.help-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.help-section:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.help-section-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border);
}

.help-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.help-section-title .icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.help-section-body {
    padding: 20px 22px;
}

.help-text {
    font-size: 14.5px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.9;
}

.help-section-body h4 {
    margin: 18px 0 10px;
    color: var(--text);
    font-size: 15.5px;
}

.help-steps {
    padding-right: 22px;
    margin: 10px 0;
}

.help-steps li {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.8;
}

.help-steps li ul {
    margin-top: 6px;
    padding-right: 18px;
}

.help-steps li ul li {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ============================================
   جدول راهنما
   ============================================ */
.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13.5px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.help-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 10px 12px;
    text-align: right;
    font-weight: 700;
    font-size: 13.5px;
}

.help-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.help-table tr:last-child td {
    border-bottom: none;
}

.help-table tr:hover td {
    background: #f8faff;
}

/* ============================================
   جعبه‌های راهنما (tips)
   ============================================ */
.help-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin: 14px 0;
    font-size: 13.5px;
    line-height: 1.8;
}

.help-tip i {
    margin-top: 4px;
    flex-shrink: 0;
}

.help-tip.info {
    background: #e7f0ff;
    color: var(--primary-dark);
    border-right: 4px solid var(--primary);
}

.help-tip.success {
    background: #e6f9ee;
    color: #155724;
    border-right: 4px solid var(--success);
}

.help-tip.warning {
    background: #fff7e6;
    color: #8a5200;
    border-right: 4px solid var(--warning);
}

.help-tip.danger {
    background: #fdeaea;
    color: #8a1c1c;
    border-right: 4px solid var(--danger);
}

/* ============================================
   کلیدهای میانبر
   ============================================ */
.kbd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.kbd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8faff;
    border-radius: 10px;
    font-size: 13.5px;
    border: 1px solid var(--border);
}

.kbd-item kbd {
    background: white;
    border: 1px solid var(--border);
    border-bottom: 3px solid var(--border);
    border-radius: 6px;
    padding: 3px 10px;
    font-family: 'Consolas', monospace;
    font-size: 12.5px;
    color: var(--primary-dark);
    font-weight: 700;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    background: #f8faff;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    background: white;
    cursor: default;
    border-bottom: 1px solid var(--border);
}

.faq-question i {
    color: var(--primary);
    font-size: 12px;
}

.faq-answer {
    padding: 13px 16px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.9;
}

/* ============================================
   فوتر
   ============================================ */
.site-footer {
    margin-top: 60px;
    background: #1a2a3a;
    color: #c7d2de;
    padding: 26px 20px;
    text-align: center;
    font-size: 13px;
}

.site-footer .footer-logo {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 10px;
    background: white;
    padding: 4px;
}

.site-footer strong {
    color: white;
}

.site-footer .footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer a {
    color: #8ab4ff;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: white;
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .header-brand {
        justify-content: center;
    }

    .header-nav {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .header-titles h1 {
        font-size: 17px;
    }

    .section-title {
        font-size: 18px;
    }

    .grid-charts {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .grid-tools,
    .grid-brand {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 14px;
    }

    .card img {
        width: 70px;
        height: 70px;
    }

    .hero-visual img {
        max-width: 220px;
    }

    .help-section-header {
        padding: 13px 14px;
    }

    .help-section-title {
        font-size: 15px;
    }

    .help-section-title .icon-badge {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .help-section-body {
        padding: 16px;
    }

    .help-table {
        font-size: 12.5px;
    }

    .help-table th,
    .help-table td {
        padding: 8px;
    }

    .kbd-grid {
        grid-template-columns: 1fr;
    }
}