/* ========== Fonts ========== */
@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('../fonts/YekanBakhFaNum-VF.ttf') format('truetype-variations'),
         url('../fonts/YekanBakhFaNum-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary: #d6262a;
    --primary-dark: #a01e22;
    --primary-light: #e85155;
    --accent: #f5942a;
    --accent-dark: #d97e15;
    --success: #10b981;
    --danger: #b91c1c;
    --warning: #f59e0b;

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;

    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.08);

    --container: 1180px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'YekanBakhFaNum', Vazirmatn, Tahoma, 'IRANSans', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    margin: 0;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 14px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

.brand:hover { color: var(--primary); }

.brand-footer .brand-logo-wrap {
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 14px;
}

.brand-footer .brand-logo {
    height: 48px;
}

.site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.site-nav a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: #fff; }

.site-nav .btn-cta { margin-right: 8px; }

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: .2s;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 6px 16px rgba(214, 38, 42, 0.25);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(214, 38, 42, 0.35);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background:
        radial-gradient(60% 70% at 80% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(214, 38, 42, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.hero h1 {
    font-size: 44px;
    line-height: 1.4;
    margin: 0 0 20px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nowrap { white-space: nowrap; }

.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 0 32px;
    max-width: 540px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: relative;
    z-index: 2;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.hero-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-card-badge {
    background: var(--success);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.hero-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-kpi {
    background: var(--surface-2);
    border-radius: 10px;
    padding: 12px 14px;
}

.hero-kpi-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-kpi-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    font-family: 'YekanBakhFaNum', Vazirmatn, Tahoma, sans-serif;
}

.hero-kpi-trend {
    font-size: 10px;
    color: var(--success);
    margin-top: 2px;
}

.hero-kpi-trend.down { color: var(--danger); }

.hero-chart {
    height: 100px;
    background: linear-gradient(180deg, rgba(214, 38, 42, 0.06), transparent);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.hero-chart svg {
    width: 100%;
    height: 100%;
}

.hero-decoration {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.08;
    filter: blur(60px);
    top: -40px;
    left: -40px;
    z-index: 1;
}

/* ========== Stats Bar ========== */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'YekanBakhFaNum', Vazirmatn, Tahoma, sans-serif;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== Section ========== */
section { padding: 90px 0; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 36px;
    line-height: 1.4;
    margin: 0 0 18px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-head p {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0;
}

/* ========== Features Grid ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all .2s;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    color: #fff;
    margin-bottom: 18px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
}

/* ========== Highlights (alternating sections) ========== */
.highlight {
    padding: 80px 0;
}

.highlight + .highlight {
    border-top: 1px solid var(--border);
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.highlight:nth-child(even) .highlight-grid {
    direction: ltr;
}

.highlight:nth-child(even) .highlight-grid > * {
    direction: rtl;
}

.highlight-content h3 {
    font-size: 28px;
    margin: 0 0 16px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.4;
}

.highlight-content .label {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.highlight-content p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 0 20px;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 14px;
}

.highlight-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.highlight-visual {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-height: 320px;
    display: grid;
    place-items: center;
}

/* ========== Mock UI helpers ========== */
.mock-dashboard {
    width: 100%;
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.mock-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.mock-card {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
}

.mock-card .v {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.mock-card .l {
    color: var(--text-muted);
    font-size: 10px;
    margin-bottom: 4px;
}

.mock-bars {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 100px;
    padding-top: 16px;
}

.mock-bars .bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 4px 4px 0 0;
}

.mock-payment-link {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 320px;
}

.mock-payment-link h4 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 16px;
    text-align: center;
}

.mock-payment-link .price {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    margin: 14px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.mock-payment-link .field {
    background: var(--surface-2);
    border-radius: 6px;
    height: 36px;
    margin: 8px 0;
}

.mock-payment-link .pay-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-top: 14px;
    font-weight: 600;
}

.mock-refund-meta {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    width: 100%;
}

.mock-refund-warning {
    background: #fef0f0;
    border-right: 4px solid var(--danger);
    padding: 10px 12px;
    border-radius: 4px;
    color: #991b1b;
    font-size: 12px;
    margin-bottom: 14px;
}

.mock-refund-warning strong { color: var(--danger); }

.mock-refund-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.mock-refund-row:last-child { border-bottom: 0; }

.mock-refund-row .v { font-family: monospace; }

/* ========== Modules section ========== */
.modules {
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 24px;
}

.module-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.module-card .module-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-card h3 {
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--text);
    font-weight: 800;
}

.module-card > p {
    color: var(--text-muted);
    margin: 0 0 22px;
    font-size: 14px;
}

.module-features { list-style: none; padding: 0; margin: 0; }

.module-features li {
    padding: 8px 0;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== Comparison Table ========== */
.compare-wrap { overflow-x: auto; }

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.compare-table th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 700;
}

.compare-table td:first-child,
.compare-table th:first-child {
    text-align: right;
    color: var(--text);
    font-weight: 600;
}

.compare-table .ours {
    background: rgba(6, 182, 212, 0.04);
    color: var(--primary);
    font-weight: 700;
}

.compare-table .check { color: var(--success); font-size: 18px; }
.compare-table .cross { color: #cbd5e1; font-size: 18px; }

.compare-table tr:last-child td { border-bottom: 0; }

/* ========== FAQ ========== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.faq-item.open { box-shadow: var(--shadow); border-color: var(--primary-light); }

.faq-q {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    user-select: none;
}

.faq-q::after {
    content: '+';
    color: var(--primary);
    font-size: 24px;
    font-weight: 300;
    transition: transform .2s;
}

.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s;
    color: var(--text-muted);
}

.faq-a-inner {
    padding: 0 22px 18px;
    line-height: 1.9;
    font-size: 14px;
}

.faq-item.open .faq-a { max-height: 400px; }

/* ========== CTA section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.2;
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
    opacity: 0.3;
    border-radius: 50%;
    bottom: -200px;
    right: -100px;
}

.cta-section h2 {
    font-size: 36px;
    margin: 0 0 16px;
    font-weight: 800;
    position: relative;
}

.cta-section p {
    font-size: 17px;
    margin: 0 0 32px;
    opacity: 0.92;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-section .btn-ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cta-section .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--text);
    color: #e2e8f0;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.site-footer h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 16px;
    font-weight: 700;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    padding: 4px 0;
}

.site-footer a {
    color: #94a3b8;
    font-size: 13px;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .brand {
    color: #fff;
    margin-bottom: 12px;
}

.footer-about {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.9;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .hero-grid,
    .highlight-grid,
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero h1 { font-size: 32px; }
    .section-head h2 { font-size: 28px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-nav {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s;
    }
    .site-nav.open { max-height: 500px; }
    .mobile-toggle { display: block; }
}

@media (max-width: 580px) {
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 70px; }
    section { padding: 60px 0; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; }
}
