hesabixWpTheme/front-page.php

612 lines
36 KiB
PHP

<?php
/**
* صفحه نخست — اتاق فرمان آینده، MCP، آزادی متن‌باز
*
* @package Hesabix2
*/
get_header();
$wrap = 'fp-wrap';
$arc_url = function_exists('hesabix2_fp_arc_url') ? hesabix2_fp_arc_url() : 'https://arc.hesabix.ir';
$shad_url = function_exists('hesabix2_fp_shad_url') ? hesabix2_fp_shad_url() : 'https://app.hesabix.ir';
$fp_stats = function_exists('hesabix2_fp_stats') ? hesabix2_fp_stats() : array();
$compare_url = function_exists('hesabix2_versions_compare_url') ? hesabix2_versions_compare_url() : home_url('/arc-shadoman/');
$dev_status_url = function_exists('hesabix2_development_page_url') ? hesabix2_development_page_url() : home_url('/development/');
$android_url = function_exists('hesabix2_android_page_url') ? hesabix2_android_page_url() : home_url('/android/');
$windows_url = function_exists('hesabix2_windows_page_url') ? hesabix2_windows_page_url() : home_url('/windows/');
$helo_url = function_exists('hesabix2_helo_page_url') ? hesabix2_helo_page_url() : home_url('/helo/');
$mod_url = function_exists('hesabix2_module_page_url') ? 'hesabix2_module_page_url' : null;
$cta_label = function_exists('hesabix2_fp_cta_primary_label') ? hesabix2_fp_cta_primary_label() : __('شروع رایگان', 'hesabix2');
$fp_h1 = function_exists('hesabix2_fp_hero_title') ? hesabix2_fp_hero_title() : __('اتاق فرمان کسب‌وکارِ آینده', 'hesabix2');
$fp_subtitle = function_exists('hesabix2_fp_hero_subtitle_for_visitor') ? hesabix2_fp_hero_subtitle_for_visitor() : '';
$fp_ab_variant = function_exists('hesabix2_fp_hero_ab_variant') ? hesabix2_fp_hero_ab_variant() : 'a';
$trust_badges = function_exists('hesabix2_fp_trust_badges') ? hesabix2_fp_trust_badges() : array();
$pricing_tiers = function_exists('hesabix2_fp_pricing_tiers') ? hesabix2_fp_pricing_tiers() : array();
$testimonials = function_exists('hesabix2_fp_testimonials') ? hesabix2_fp_testimonials() : array();
$start_steps = function_exists('hesabix2_fp_getting_started_steps') ? hesabix2_fp_getting_started_steps() : array();
$faq_items = function_exists('hesabix2_fp_faq_items') ? array_slice(hesabix2_fp_faq_items(), 0, 5) : array();
$tour_scenes = function_exists('hesabix2_fp_tour_scenes') ? hesabix2_fp_tour_scenes() : array();
$integrations = function_exists('hesabix2_fp_key_integrations') ? hesabix2_fp_key_integrations() : array();
$freedom = function_exists('hesabix2_fp_freedom_pillars') ? hesabix2_fp_freedom_pillars() : array();
$mcp_url = function_exists('hesabix2_fp_chatgpt_url') ? hesabix2_fp_chatgpt_url() : home_url('/chatgpt-hesabix/');
$mcp_endpoint = function_exists('hesabix2_fp_mcp_endpoint') ? hesabix2_fp_mcp_endpoint() : 'https://arc.hesabix.ir/api/v1/ai/mcp';
$plugins_url = $mod_url ? call_user_func($mod_url, 'platform') . '#plugins' : home_url('/#connect');
$platform_url = $mod_url ? call_user_func($mod_url, 'platform') : $arc_url;
$agents_url = $mod_url ? call_user_func($mod_url, 'agents') : $mcp_url;
$industry_cards = function_exists('hesabix2_fp_industry_cards') ? hesabix2_fp_industry_cards() : array();
$plugin_items = function_exists('hesabix2_fp_plugin_highlights') ? hesabix2_fp_plugin_highlights() : array();
$faq_more_url = $mod_url ? call_user_func($mod_url, 'faq') : home_url('/#faq');
$brand_mark = get_template_directory_uri() . '/assets/brand/hesabix-mark.svg';
$entry_attrs = static function ($entry, $url) {
return function_exists('hesabix2_entry_link_attrs') ? hesabix2_entry_link_attrs($entry, $url) : '';
};
$tour_icons = array(
'finance' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M9 7h6m-7 4h8M8 15h3m5 6H8a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414A1 1 0 0120 9.414V19a2 2 0 01-2 2z"/>',
'sales' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"/>',
'ops' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"/>',
'ai' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"/>',
);
?>
<main id="main-content" class="front-page-main">
<section class="fp-hero" data-fp-ab-variant="<?php echo esc_attr($fp_ab_variant); ?>">
<div class="fp-hero__fx" aria-hidden="true">
<canvas id="fp-hero-canvas" class="fp-hero__canvas"></canvas>
<span class="fp-hero__aurora fp-hero__aurora--a"></span>
<span class="fp-hero__aurora fp-hero__aurora--b"></span>
<span class="fp-hero__aurora fp-hero__aurora--c"></span>
<span class="fp-hero__grid"></span>
<span class="fp-hero__grain"></span>
</div>
<div class="<?php echo esc_attr($wrap); ?> fp-hero__inner">
<div class="fp-hero__copy">
<p class="fp-hero__eyebrow fp-reveal">
<span class="fp-hero__live" aria-hidden="true"></span>
<?php esc_html_e('پلتفرم متن‌باز مدیریت کسب‌وکار · GPL-۳', 'hesabix2'); ?>
</p>
<h1 class="fp-hero__title fp-reveal"><?php echo esc_html($fp_h1); ?></h1>
<?php if ($fp_subtitle) : ?>
<p class="fp-hero__lede fp-reveal"><?php echo esc_html($fp_subtitle); ?></p>
<?php endif; ?>
<ul class="fp-hero__pills fp-reveal" aria-label="<?php esc_attr_e('تمایزهای اصلی', 'hesabix2'); ?>">
<li><?php esc_html_e('سرور MCP', 'hesabix2'); ?></li>
<li><?php esc_html_e('از مغازه تا صنعت', 'hesabix2'); ?></li>
<li><?php esc_html_e('متن‌باز و رایگان', 'hesabix2'); ?></li>
</ul>
<div class="fp-hero__actions fp-reveal">
<a href="<?php echo esc_url($arc_url); ?>" target="_blank" rel="noopener noreferrer"<?php echo $entry_attrs('arc', $arc_url); ?> class="fp-btn fp-btn--accent" data-fp-ab-cta="hero">
<span><?php echo esc_html($cta_label); ?></span>
<span class="fp-btn__shine" aria-hidden="true"></span>
</a>
<a href="#mcp" class="fp-btn fp-btn--ghost">
<?php esc_html_e('ببینید MCP چطور کار می‌کند', 'hesabix2'); ?>
<span aria-hidden="true">↓</span>
</a>
</div>
</div>
<div class="fp-stage fp-reveal" data-fp-stage>
<div class="fp-stage__space" data-fp-space>
<span class="fp-stage__orbit fp-stage__orbit--a"></span>
<span class="fp-stage__orbit fp-stage__orbit--b"></span>
<span class="fp-stage__core"></span>
<div class="fp-deck" aria-hidden="true">
<div class="fp-deck__chrome">
<span></span><span></span><span></span>
<em><?php esc_html_e('آرک · اتاق فرمان', 'hesabix2'); ?></em>
</div>
<div class="fp-deck__body">
<aside class="fp-deck__rail">
<b></b><b></b><b></b><b></b>
</aside>
<div class="fp-deck__main">
<div class="fp-kpis">
<div><small><?php esc_html_e('فروش دوره', 'hesabix2'); ?></small><strong>۱۸۴</strong></div>
<div><small><?php esc_html_e('مانده', 'hesabix2'); ?></small><strong>۴۲</strong></div>
<div><small><?php esc_html_e('مودیان', 'hesabix2'); ?></small><strong><?php esc_html_e('ارسال شد', 'hesabix2'); ?></strong></div>
</div>
<div class="fp-chart">
<span style="--h:42%"></span><span style="--h:68%"></span>
<span style="--h:51%"></span><span style="--h:86%"></span>
<span style="--h:73%"></span><span style="--h:59%"></span>
<span style="--h:91%"></span>
</div>
<div class="fp-rows"><i></i><i></i><i></i></div>
</div>
</div>
</div>
<aside class="fp-floatcard fp-floatcard--mcp">
<header>
<img src="<?php echo esc_url($brand_mark); ?>" alt="" width="18" height="18">
<?php esc_html_e('MCP · ChatGPT', 'hesabix2'); ?>
</header>
<p><?php esc_html_e('فروش این ماه را با ماه قبل مقایسه کن', 'hesabix2'); ?></p>
<div class="fp-floatcard__result">
<span aria-hidden="true">✦</span>
<?php esc_html_e('گزارش آماده است · رشد ۱۸٪', 'hesabix2'); ?>
</div>
</aside>
<aside class="fp-floatcard fp-floatcard--oss"><?php esc_html_e('GPL-۳ · متن‌باز', 'hesabix2'); ?></aside>
<aside class="fp-floatcard fp-floatcard--live">
<i></i>
<?php esc_html_e('مودیان متصل', 'hesabix2'); ?>
</aside>
</div>
</div>
</div>
</section>
<section class="fp-trust" aria-label="<?php esc_attr_e('اعتماد و آمار', 'hesabix2'); ?>">
<div class="<?php echo esc_attr($wrap); ?> fp-trust__inner">
<?php if (!empty($trust_badges)) : ?>
<ul class="fp-trust__badges">
<?php foreach ($trust_badges as $badge) : ?>
<li class="fp-trust__badge fp-reveal">
<span class="fp-trust__mark" aria-hidden="true"></span>
<?php echo esc_html($badge['label']); ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if (!empty($fp_stats)) : ?>
<div class="fp-trust__stats">
<?php foreach ($fp_stats as $stat) : ?>
<div class="fp-stat fp-reveal">
<span class="fp-stat__value">
<span data-stat-value="<?php echo esc_attr((string) $stat['value']); ?>">0</span>
<?php if (!empty($stat['suffix'])) : ?>
<small><?php echo esc_html($stat['suffix']); ?></small>
<?php endif; ?>
</span>
<span class="fp-stat__label"><?php echo esc_html($stat['label']); ?></span>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
</section>
<section id="mcp" class="fp-mcp" aria-labelledby="fp-mcp-title">
<div class="<?php echo esc_attr($wrap); ?> fp-mcp__grid">
<div class="fp-mcp__copy fp-reveal">
<p class="fp-kicker fp-kicker--on-dark"><?php esc_html_e('هوش متصل', 'hesabix2'); ?></p>
<h2 id="fp-mcp-title"><?php esc_html_e('ChatGPT و Claude روی دادهٔ واقعی کسب‌وکار شما', 'hesabix2'); ?></h2>
<p><?php esc_html_e('سرور MCP حسابیکس دستیار را به مالی، اشخاص، انبار و عملیات مجاز وصل می‌کند. از مغازه تا کارخانه همان پرسش است؛ پاسخ از همان دفتری می‌آید که فاکتور را صادر کرده — با نقش شما.', 'hesabix2'); ?></p>
<ul class="fp-mcp__tools" data-fp-mcp-tools>
<li class="is-active"><?php esc_html_e('گزارش فروش دوره', 'hesabix2'); ?></li>
<li><?php esc_html_e('ماندهٔ اشخاص', 'hesabix2'); ?></li>
<li><?php esc_html_e('موجودی انبار', 'hesabix2'); ?></li>
<li><?php esc_html_e('اقدام با تأیید شما', 'hesabix2'); ?></li>
</ul>
<div class="fp-mcp__actions">
<a href="<?php echo esc_url($agents_url); ?>" class="fp-btn fp-btn--sky"><?php esc_html_e('ایجنت و MCP', 'hesabix2'); ?></a>
<a href="<?php echo esc_url($mcp_url); ?>" class="fp-btn fp-btn--ghost"><?php esc_html_e('اتصال ChatGPT', 'hesabix2'); ?></a>
<code class="fp-mcp__url" dir="ltr"><?php echo esc_html($mcp_endpoint); ?></code>
</div>
</div>
<div class="fp-mcp__visual fp-reveal" aria-hidden="true">
<div class="fp-mcp-card">
<div class="fp-mcp-card__head">
<span><?php esc_html_e('حسابیکس در ChatGPT', 'hesabix2'); ?></span>
<em><?php esc_html_e('متصل', 'hesabix2'); ?></em>
</div>
<div class="fp-mcp-card__ask" data-fp-mcp-ask><?php esc_html_e('فروش این ماه را با ماه قبل مقایسه کن و ماندهٔ مشتریان را خلاصه کن.', 'hesabix2'); ?></div>
<div class="fp-mcp-card__out">
<strong><?php esc_html_e('خلاصهٔ حسابیکس آماده است', 'hesabix2'); ?></strong>
<p data-fp-mcp-out><?php esc_html_e('رشد فروش نسبت به دورهٔ قبل ثبت شد. فهرست مانده‌ها از دادهٔ حساب شما خوانده شده است.', 'hesabix2'); ?></p>
</div>
<div class="fp-mcp-card__grid">
<div><small><?php esc_html_e('فروش', 'hesabix2'); ?></small><b><?php esc_html_e('گزارش دوره', 'hesabix2'); ?></b></div>
<div><small><?php esc_html_e('اشخاص', 'hesabix2'); ?></small><b><?php esc_html_e('مانده‌ها', 'hesabix2'); ?></b></div>
<div><small><?php esc_html_e('مجوز', 'hesabix2'); ?></small><b><?php esc_html_e('نقش شما', 'hesabix2'); ?></b></div>
</div>
</div>
<span class="fp-mcp__orbit"></span>
</div>
</div>
</section>
<?php if (!empty($tour_scenes)) : ?>
<section id="features" class="fp-tour" aria-labelledby="fp-tour-title">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-reveal">
<p class="fp-kicker"><?php esc_html_e('محصول', 'hesabix2'); ?></p>
<h2 id="fp-tour-title"><?php esc_html_e('یک هسته؛ چهار لایهٔ عملیات', 'hesabix2'); ?></h2>
<p class="fp-section-head__desc"><?php esc_html_e('مالی، فروش، عملیات و هوش مصنوعی روی یک منبع حقیقت — بدون پرش بین چند نرم‌افزار.', 'hesabix2'); ?></p>
</header>
<div class="fp-tour__layout" data-fp-tour>
<div class="fp-tour__tabs" role="tablist" aria-label="<?php esc_attr_e('صحنه‌های محصول', 'hesabix2'); ?>">
<?php foreach ($tour_scenes as $i => $scene) :
$sid = sanitize_html_class((string) $scene['id']);
?>
<button
type="button"
class="fp-tour__tab<?php echo 0 === $i ? ' is-active' : ''; ?>"
role="tab"
id="fp-tour-tab-<?php echo esc_attr($sid); ?>"
aria-selected="<?php echo 0 === $i ? 'true' : 'false'; ?>"
aria-controls="fp-tour-panel-<?php echo esc_attr($sid); ?>"
data-tour-tab="<?php echo esc_attr($sid); ?>"
>
<span class="fp-tour__tab-icon" aria-hidden="true">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"><?php echo isset($tour_icons[ $sid ]) ? $tour_icons[ $sid ] : $tour_icons['finance']; ?></svg>
</span>
<span class="fp-tour__tab-copy">
<strong><?php echo esc_html($scene['label']); ?></strong>
<em><?php echo esc_html($scene['kicker']); ?></em>
</span>
<span class="fp-tour__tab-progress" aria-hidden="true"></span>
</button>
<?php endforeach; ?>
</div>
<div class="fp-tour__stage">
<?php foreach ($tour_scenes as $i => $scene) :
$sid = sanitize_html_class((string) $scene['id']);
?>
<div
class="fp-tour__panel<?php echo 0 === $i ? ' is-active' : ''; ?>"
id="fp-tour-panel-<?php echo esc_attr($sid); ?>"
role="tabpanel"
aria-labelledby="fp-tour-tab-<?php echo esc_attr($sid); ?>"
data-tour-panel="<?php echo esc_attr($sid); ?>"
<?php echo 0 === $i ? '' : 'hidden'; ?>
>
<div class="fp-tour__text">
<p class="fp-tour__kicker"><?php echo esc_html($scene['kicker']); ?></p>
<h3><?php echo esc_html($scene['title']); ?></h3>
<p><?php echo esc_html($scene['desc']); ?></p>
<?php if (!empty($scene['points'])) : ?>
<ul>
<?php foreach ($scene['points'] as $point) : ?>
<li><?php echo esc_html($point); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<a href="<?php echo esc_url($scene['url']); ?>" class="fp-tour__more">
<?php echo esc_html($scene['cta']); ?>
<span aria-hidden="true">←</span>
</a>
</div>
<div class="fp-ui fp-ui--<?php echo esc_attr($sid); ?>" aria-hidden="true">
<div class="fp-ui__chrome"><span></span><span></span><span></span></div>
<?php if ('finance' === $sid) : ?>
<div class="fp-ui__body">
<div class="fp-ui__bars">
<span style="--h:42%"></span><span style="--h:68%"></span>
<span style="--h:51%"></span><span style="--h:86%"></span>
<span style="--h:73%"></span><span style="--h:59%"></span>
</div>
<div class="fp-ui__ledger">
<i></i><i></i><i></i>
</div>
</div>
<?php elseif ('sales' === $sid) : ?>
<div class="fp-ui__body fp-ui__pipeline">
<div class="fp-ui__col"><b></b><b></b></div>
<div class="fp-ui__col"><b></b><b></b><b></b></div>
<div class="fp-ui__col"><b></b></div>
</div>
<?php elseif ('ops' === $sid) : ?>
<div class="fp-ui__body fp-ui__grid">
<span></span><span></span><span></span>
<span></span><span></span><span></span>
</div>
<?php else : ?>
<div class="fp-ui__body fp-ui__ai">
<div class="fp-ui__bubble"><?php esc_html_e('پیشنهاد: ورک‌فلو فاکتور → پیام', 'hesabix2'); ?></div>
<div class="fp-ui__pulse"></div>
</div>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<p class="fp-tour__all fp-reveal">
<a href="<?php echo esc_url($platform_url); ?>"><?php esc_html_e('مشاهدهٔ همهٔ امکانات پلتفرم', 'hesabix2'); ?> <span aria-hidden="true">←</span></a>
</p>
</div>
</section>
<?php endif; ?>
<?php if (!empty($industry_cards)) : ?>
<section id="scope" class="fp-scope" aria-labelledby="fp-scope-title">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-reveal">
<p class="fp-kicker"><?php esc_html_e('مقیاس', 'hesabix2'); ?></p>
<h2 id="fp-scope-title"><?php esc_html_e('از مغازه تا مجتمع صنعتی', 'hesabix2'); ?></h2>
<p class="fp-section-head__desc"><?php esc_html_e('یک هستهٔ منعطف. صنف با فاکتور شروع می‌کند؛ کارخانه BOM روشن می‌کند؛ هلدینگ نقش و ایجنت می‌گیرد. سیستم عوض نمی‌شود.', 'hesabix2'); ?></p>
</header>
<div class="fp-scope__grid">
<?php foreach ($industry_cards as $card) : ?>
<a href="<?php echo esc_url($card['url']); ?>" class="fp-scope__card fp-reveal">
<strong><?php echo esc_html($card['title']); ?></strong>
<span><?php echo esc_html($card['lead']); ?></span>
</a>
<?php endforeach; ?>
</div>
</div>
</section>
<?php endif; ?>
<?php if (!empty($integrations)) : ?>
<section id="connect" class="fp-connect" aria-labelledby="fp-connect-title">
<div class="<?php echo esc_attr($wrap); ?> fp-connect__inner fp-reveal">
<div class="fp-connect__copy">
<h2 id="fp-connect-title"><?php esc_html_e('به کانال‌های فروش وصل شوید', 'hesabix2'); ?></h2>
<p><?php esc_html_e('مودیان، فروشگاه و مارکت‌پلیس روی همان دادهٔ آرک.', 'hesabix2'); ?></p>
</div>
<ul class="fp-connect__list">
<?php foreach ($integrations as $item) : ?>
<li>
<strong><?php echo esc_html($item['title']); ?></strong>
<span><?php echo esc_html($item['hint']); ?></span>
</li>
<?php endforeach; ?>
</ul>
<a href="<?php echo esc_url($plugins_url); ?>" class="fp-connect__link"><?php esc_html_e('افزونه‌ها و یکپارچه‌سازی', 'hesabix2'); ?></a>
</div>
</section>
<?php endif; ?>
<?php if (!empty($plugin_items)) : ?>
<section id="plugins" class="fp-plugins" aria-labelledby="fp-plugins-title">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-section-head--row fp-reveal">
<div>
<p class="fp-kicker"><?php esc_html_e('افزونه', 'hesabix2'); ?></p>
<h2 id="fp-plugins-title"><?php esc_html_e('وقتی رشد کردید روشن کنید', 'hesabix2'); ?></h2>
</div>
<a href="<?php echo esc_url($plugins_url); ?>" class="fp-section-head__more"><?php esc_html_e('همهٔ افزونه‌ها', 'hesabix2'); ?></a>
</header>
<ul class="fp-plugins__list">
<?php foreach ($plugin_items as $item) : ?>
<li>
<a href="<?php echo esc_url($item['url']); ?>">
<strong><?php echo esc_html($item['title']); ?></strong>
<span><?php echo esc_html($item['hint']); ?></span>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</section>
<?php endif; ?>
<section id="opensource" class="fp-oss">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-section-head--on-dark fp-reveal">
<p class="fp-kicker fp-kicker--on-dark"><?php esc_html_e('آزادی', 'hesabix2'); ?></p>
<h2><?php esc_html_e('رایگان، متن‌باز، داده مال شماست', 'hesabix2'); ?></h2>
<p class="fp-section-head__desc"><?php esc_html_e('حسابیکس قفل فروشنده ندارد. کد را بخوانید، فورک کنید، و همیشه به اطلاعات خودتان دسترسی داشته باشید.', 'hesabix2'); ?></p>
</header>
<?php if (!empty($freedom)) : ?>
<div class="fp-oss__pillars">
<?php foreach ($freedom as $pillar) : ?>
<article class="fp-oss__pillar fp-reveal">
<p><?php echo esc_html($pillar['kicker']); ?></p>
<h3><?php echo esc_html($pillar['title']); ?></h3>
<span><?php echo esc_html($pillar['desc']); ?></span>
</article>
<?php endforeach; ?>
</div>
<?php endif; ?>
<div class="fp-oss__actions fp-reveal">
<a href="https://source.hesabix.ir" target="_blank" rel="noopener noreferrer" class="fp-btn fp-btn--sky"><?php esc_html_e('مخازن کد', 'hesabix2'); ?></a>
<a href="<?php echo esc_url($dev_status_url); ?>" class="fp-btn fp-btn--ghost"><?php esc_html_e('وضعیت توسعه', 'hesabix2'); ?></a>
<a href="https://www.gnu.org/licenses/gpl-3.0.html" target="_blank" rel="noopener noreferrer" class="fp-btn fp-btn--ghost"><?php esc_html_e('مجوز GPL-۳', 'hesabix2'); ?></a>
</div>
<?php if (!empty($start_steps)) : ?>
<ol class="fp-oss__steps fp-reveal">
<?php foreach ($start_steps as $i => $step) : ?>
<li>
<span><?php echo esc_html((string) ($i + 1)); ?></span>
<div>
<strong><?php echo esc_html($step['title']); ?></strong>
<em><?php echo esc_html($step['desc']); ?></em>
</div>
</li>
<?php endforeach; ?>
</ol>
<?php endif; ?>
</div>
</section>
<?php if (!empty($pricing_tiers)) : ?>
<section id="pricing" class="fp-pricing">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-reveal">
<p class="fp-kicker"><?php esc_html_e('قیمت', 'hesabix2'); ?></p>
<h2><?php esc_html_e('شفاف؛ بدون پلن پنهان', 'hesabix2'); ?></h2>
<p class="fp-section-head__desc"><?php esc_html_e('پلتفرم رایگان است. افزونه‌ها اختیاری‌اند و فقط اگر نیاز داشته باشید.', 'hesabix2'); ?></p>
</header>
<div class="fp-pricing__grid">
<?php foreach ($pricing_tiers as $tier) :
$highlight = !empty($tier['highlight']);
$cta_url = !empty($tier['cta_url']) ? $tier['cta_url'] : $arc_url;
$cta_entry = !empty($tier['cta_entry']) ? $tier['cta_entry'] : '';
?>
<article class="fp-price fp-reveal<?php echo $highlight ? ' fp-price--featured' : ''; ?>">
<?php if ($highlight) : ?>
<p class="fp-price__badge"><?php esc_html_e('پیشنهادی', 'hesabix2'); ?></p>
<?php endif; ?>
<h3><?php echo esc_html($tier['name']); ?></h3>
<p class="fp-price__amount"><?php echo esc_html($tier['price']); ?></p>
<p class="fp-price__note"><?php echo esc_html($tier['price_note']); ?></p>
<?php if (!empty($tier['features'])) : ?>
<ul>
<?php foreach ($tier['features'] as $feat) : ?>
<li><?php echo esc_html($feat); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<a href="<?php echo esc_url($cta_url); ?>"<?php echo $cta_entry ? ' target="_blank" rel="noopener noreferrer"' . $entry_attrs($cta_entry, $cta_url) : ''; ?> class="<?php echo $highlight ? 'fp-btn fp-btn--accent' : 'fp-btn fp-btn--soft'; ?>"<?php echo ('arc' === $cta_entry) ? ' data-fp-ab-cta="pricing"' : ''; ?>>
<?php echo esc_html($tier['cta_label']); ?>
</a>
</article>
<?php endforeach; ?>
</div>
</div>
</section>
<?php endif; ?>
<?php if (!empty($testimonials)) : ?>
<section class="fp-proof" aria-labelledby="fp-proof-title">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-reveal">
<p class="fp-kicker"><?php esc_html_e('صدای کاربران', 'hesabix2'); ?></p>
<h2 id="fp-proof-title"><?php esc_html_e('کسب‌وکارهایی که با آرک کار می‌کنند', 'hesabix2'); ?></h2>
</header>
<div class="fp-proof__grid">
<?php foreach ($testimonials as $t) : ?>
<blockquote class="fp-quote fp-reveal">
<p><?php echo esc_html($t['quote']); ?></p>
<footer>
<span class="fp-quote__avatar"><?php echo esc_html($t['initial']); ?></span>
<span>
<strong><?php echo esc_html($t['name']); ?></strong>
<em><?php echo esc_html($t['role']); ?></em>
</span>
</footer>
</blockquote>
<?php endforeach; ?>
</div>
</div>
</section>
<?php endif; ?>
<?php
$blog_query = new WP_Query(
array(
'post_type' => 'post',
'posts_per_page' => 3,
'post_status' => 'publish',
'orderby' => 'date',
'no_found_rows' => true,
)
);
if ($blog_query->have_posts()) :
$blog_home = get_option('page_for_posts') ? get_permalink(get_option('page_for_posts')) : home_url('/');
?>
<section class="fp-journal" aria-labelledby="fp-journal-title">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-section-head--row fp-reveal">
<div>
<p class="fp-kicker"><?php esc_html_e('وبلاگ', 'hesabix2'); ?></p>
<h2 id="fp-journal-title"><?php esc_html_e('از تحریریهٔ حسابیکس', 'hesabix2'); ?></h2>
</div>
<a href="<?php echo esc_url($blog_home); ?>" class="fp-section-head__more"><?php esc_html_e('همهٔ مقالات', 'hesabix2'); ?></a>
</header>
<div class="fp-journal__grid">
<?php
while ($blog_query->have_posts()) :
$blog_query->the_post();
?>
<article class="fp-journal__card fp-reveal">
<a href="<?php the_permalink(); ?>">
<?php if (has_post_thumbnail()) : ?>
<span class="fp-journal__thumb"><?php the_post_thumbnail('medium_large', array('loading' => 'lazy', 'decoding' => 'async')); ?></span>
<?php endif; ?>
<time datetime="<?php echo esc_attr(get_the_date('c')); ?>"><?php echo esc_html(get_the_date()); ?></time>
<h3><?php the_title(); ?></h3>
<p><?php echo esc_html(wp_trim_words(get_the_excerpt(), 16)); ?></p>
</a>
</article>
<?php endwhile; ?>
</div>
</div>
</section>
<?php
wp_reset_postdata();
endif;
?>
<section class="fp-devices" aria-labelledby="fp-devices-title">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-reveal">
<p class="fp-kicker"><?php esc_html_e('همراه شما', 'hesabix2'); ?></p>
<h2 id="fp-devices-title"><?php esc_html_e('روی دستگاه شما، یا از نرم‌افزار قبلی', 'hesabix2'); ?></h2>
</header>
<div class="fp-devices__row">
<a href="<?php echo esc_url($android_url); ?>" class="fp-device fp-reveal">
<span class="fp-device__icon" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z"/></svg>
</span>
<strong><?php esc_html_e('اندروید', 'hesabix2'); ?></strong>
<span><?php esc_html_e('دانلود APK مستقیم', 'hesabix2'); ?></span>
</a>
<a href="<?php echo esc_url($windows_url); ?>" class="fp-device fp-reveal">
<span class="fp-device__icon" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/></svg>
</span>
<strong><?php esc_html_e('ویندوز', 'hesabix2'); ?></strong>
<span><?php esc_html_e('نصب MSI دسکتاپ', 'hesabix2'); ?></span>
</a>
<a href="<?php echo esc_url($helo_url); ?>" class="fp-device fp-reveal">
<span class="fp-device__icon" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"/></svg>
</span>
<strong><?php esc_html_e('مهاجرت از هلو', 'hesabix2'); ?></strong>
<span><?php esc_html_e('انتقال اشخاص، کالا و اسناد', 'hesabix2'); ?></span>
</a>
</div>
</div>
</section>
<?php if (!empty($faq_items)) : ?>
<section id="faq" class="fp-faq">
<div class="<?php echo esc_attr($wrap); ?>">
<header class="fp-section-head fp-reveal">
<p class="fp-kicker"><?php esc_html_e('پرسش', 'hesabix2'); ?></p>
<h2><?php esc_html_e('قبل از شروع', 'hesabix2'); ?></h2>
</header>
<div class="fp-faq__list">
<?php foreach ($faq_items as $faq) : ?>
<div class="fp-faq-item">
<button type="button" class="fp-faq-question" aria-expanded="false">
<span><?php echo esc_html($faq['q']); ?></span>
<span class="fp-faq-icon" aria-hidden="true"></span>
</button>
<div class="fp-faq-answer" hidden>
<p><?php echo esc_html($faq['a']); ?></p>
</div>
</div>
<?php endforeach; ?>
</div>
<p class="fp-faq__more fp-reveal">
<a href="<?php echo esc_url($faq_more_url); ?>"><?php esc_html_e('همهٔ پرسش‌های متداول', 'hesabix2'); ?></a>
</p>
</div>
</section>
<?php endif; ?>
<section class="fp-final-cta" aria-labelledby="fp-final-cta-title">
<div class="fp-final-cta__bg" aria-hidden="true"></div>
<div class="fp-final-cta__inner <?php echo esc_attr($wrap); ?>">
<h2 id="fp-final-cta-title" class="fp-final-cta__title"><?php esc_html_e('اتاق فرمان کسب‌وکارتان را روشن کنید', 'hesabix2'); ?></h2>
<p class="fp-final-cta__desc"><?php esc_html_e('ثبت‌نام رایگان است. متن‌باز است. افزونه‌ها اختیاری‌اند؛ دسترسی به داده‌هایتان همیشه رایگان می‌ماند.', 'hesabix2'); ?></p>
<div class="fp-final-cta__actions">
<a href="<?php echo esc_url($arc_url); ?>" target="_blank" rel="noopener noreferrer"<?php echo $entry_attrs('arc', $arc_url); ?> class="fp-final-cta__btn-primary" data-fp-ab-cta="final"><?php echo esc_html($cta_label); ?></a>
<a href="<?php echo esc_url($mcp_url); ?>" class="fp-final-cta__btn-secondary"><?php esc_html_e('اتصال به ChatGPT', 'hesabix2'); ?></a>
</div>
<p class="fp-final-cta__legacy">
<?php esc_html_e('کاربر نسخهٔ شادمان هستید؟', 'hesabix2'); ?>
<a href="<?php echo esc_url($shad_url); ?>" target="_blank" rel="noopener noreferrer"<?php echo $entry_attrs('shad', $shad_url); ?>><?php esc_html_e('ورود به پنل شادمان', 'hesabix2'); ?></a>
<span aria-hidden="true">·</span>
<a href="<?php echo esc_url($compare_url); ?>"><?php esc_html_e('مقایسه با آرک', 'hesabix2'); ?></a>
</p>
</div>
</section>
</main>
<?php get_footer(); ?>