<?php $lang = stb_lang(); ?>
<section class="ven-wrap" id="venture-section" aria-labelledby="ven-heading">
<style>
.ven-wrap{background:#060809;padding:96px 0;position:relative;overflow:hidden}
.ven-wrap::before{content:'';position:absolute;top:-300px;left:-150px;width:700px;height:700px;background:radial-gradient(circle,rgba(200,16,46,.13) 0%,transparent 65%);pointer-events:none}
.ven-wrap::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(255,255,255,.011) 2px,rgba(255,255,255,.011) 4px);pointer-events:none}
.ven-corner{position:absolute;width:40px;height:40px;border-color:#C8102E;border-style:solid;opacity:.35}
.ven-corner-tl{top:20px;left:20px;border-width:2px 0 0 2px}
.ven-corner-tr{top:20px;right:20px;border-width:2px 2px 0 0}
.ven-corner-bl{bottom:20px;left:20px;border-width:0 0 2px 2px}
.ven-corner-br{bottom:20px;right:20px;border-width:0 2px 2px 0}
.ven-inner{max-width:1280px;margin:0 auto;padding:0 40px;position:relative;z-index:1}
@media(max-width:768px){.ven-inner{padding:0 20px}}
/* Header */
.ven-header{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:52px;flex-wrap:wrap}
.ven-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:4px;background:rgba(200,16,46,.08);border:1px solid rgba(200,16,46,.28);font-size:10px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#C8102E;margin-bottom:14px;font-family:'IBM Plex Mono',monospace}
.ven-badge-dot{width:6px;height:6px;border-radius:50%;background:#C8102E;animation:ven-blink 1.2s step-start infinite}
@keyframes ven-blink{0%,100%{opacity:1}50%{opacity:0}}
.ven-title{font-family:'Bebas Neue','IBM Plex Sans',sans-serif;font-size:clamp(44px,6vw,82px);line-height:.95;letter-spacing:.04em;color:#fff;margin-bottom:14px}
.ven-title span{color:#C8102E;text-shadow:0 0 40px rgba(200,16,46,.4)}
.ven-subtitle{font-size:15px;line-height:1.7;color:rgba(255,255,255,.48);max-width:420px}
.ven-header-right{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
@media(max-width:768px){.ven-header-right{align-items:flex-start}}
.ven-live{display:flex;align-items:center;gap:8px;padding:8px 16px;background:rgba(20,224,163,.05);border:1px solid rgba(20,224,163,.2);border-radius:4px;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#14e0a3;font-family:'IBM Plex Mono',monospace}
.ven-live-dot{width:7px;height:7px;border-radius:50%;background:#14e0a3;box-shadow:0 0 8px #14e0a3;animation:ven-pulse 2s ease-in-out infinite}
@keyframes ven-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.75)}}
.ven-big-stat{text-align:right;font-family:'IBM Plex Mono',monospace}
@media(max-width:768px){.ven-big-stat{text-align:left}}
.ven-big-val{font-size:52px;font-weight:700;color:#fff;line-height:1;letter-spacing:-.02em}
.ven-big-val em{color:#C8102E;font-style:normal}
.ven-big-label{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.3);margin-top:4px}
/* Grid */
.ven-grid{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start}
@media(max-width:960px){.ven-grid{grid-template-columns:1fr}}
/* Left — challenge box */
.ven-challenge{background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.07);border-radius:12px;overflow:hidden}
.ven-challenge-bar{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.06)}
.ven-challenge-bar-title{font-size:9px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.35);font-family:'IBM Plex Mono',monospace}
.ven-challenge-bar-id{font-size:9px;font-weight:600;color:rgba(200,16,46,.65);font-family:'IBM Plex Mono',monospace;letter-spacing:.1em}
/* Phases */
.ven-phase{display:grid;grid-template-columns:40px 1fr auto;gap:18px;align-items:center;padding:20px 22px;border-bottom:1px solid rgba(255,255,255,.045);transition:background .15s}
.ven-phase:last-child{border-bottom:none}
.ven-phase:hover{background:rgba(255,255,255,.02)}
.ven-phase-num{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;font-family:'IBM Plex Mono',monospace;flex-shrink:0}
.ven-num-red{background:rgba(200,16,46,.12);border:1px solid rgba(200,16,46,.45);color:#C8102E;box-shadow:0 0 14px rgba(200,16,46,.18)}
.ven-num-green{background:rgba(20,224,163,.08);border:1px solid rgba(20,224,163,.3);color:#14e0a3}
.ven-num-dim{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.09);color:rgba(255,255,255,.2)}
.ven-phase-name{font-size:14px;font-weight:600;color:#fff;margin-bottom:4px}
.ven-phase-rule{font-size:11.5px;color:rgba(255,255,255,.38);font-family:'IBM Plex Mono',monospace;letter-spacing:.01em}
.ven-phase-prog{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:80px}
.ven-prog-bar{width:80px;height:3px;background:rgba(255,255,255,.07);border-radius:2px;overflow:hidden}
.ven-prog-fill{height:100%;border-radius:2px;transition:width 1.2s cubic-bezier(.16,1,.3,1)}
.ven-fill-red{background:linear-gradient(90deg,#C8102E,#ff3354)}
.ven-fill-green{background:linear-gradient(90deg,#14e0a3,#00ffc8)}
.ven-fill-dim{background:rgba(255,255,255,.09)}
.ven-prog-val{font-size:11px;font-weight:700;font-family:'IBM Plex Mono',monospace;letter-spacing:.04em}
.ven-val-red{color:#C8102E}
.ven-val-green{color:#14e0a3}
.ven-val-dim{color:rgba(255,255,255,.18)}
/* Metrics */
.ven-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.05);border-top:1px solid rgba(255,255,255,.05)}
@media(max-width:540px){.ven-metrics{grid-template-columns:repeat(2,1fr)}}
.ven-metric{background:#060809;padding:18px 20px;display:flex;flex-direction:column;gap:5px}
.ven-metric-val{font-size:22px;font-weight:700;font-family:'IBM Plex Mono',monospace;letter-spacing:-.01em}
.ven-mval-green{color:#14e0a3}
.ven-mval-red{color:#C8102E}
.ven-mval-white{color:rgba(255,255,255,.85)}
.ven-metric-key{font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.28)}
/* Right panel */
.ven-panel{display:flex;flex-direction:column;gap:12px}
.ven-panel-label{font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.28);font-family:'IBM Plex Mono',monospace;padding:0 2px;margin-bottom:2px}
.ven-size-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.ven-size-btn{padding:13px 6px;border-radius:8px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);font-size:13px;font-weight:700;color:rgba(255,255,255,.45);font-family:'IBM Plex Mono',monospace;cursor:pointer;transition:all .15s;text-align:center}
.ven-size-btn:hover{border-color:rgba(200,16,46,.4);color:#fff;background:rgba(200,16,46,.05)}
.ven-size-btn.sel{border-color:#C8102E;color:#fff;background:rgba(200,16,46,.1);box-shadow:0 0 16px rgba(200,16,46,.12)}
.ven-size-btn small{display:block;font-size:9px;font-weight:500;color:rgba(255,255,255,.25);letter-spacing:.06em;text-transform:uppercase;margin-top:2px}
/* Readout */
.ven-readout{background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.07);border-radius:10px;overflow:hidden}
.ven-readout-hdr{padding:11px 16px;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.05);font-size:9px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.22);font-family:'IBM Plex Mono',monospace}
.ven-readout-row{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid rgba(255,255,255,.04);font-size:12px}
.ven-readout-row:last-child{border-bottom:none}
.ven-rkey{color:rgba(255,255,255,.38);font-weight:500}
.ven-rval{font-family:'IBM Plex Mono',monospace;font-weight:700;font-size:12px;letter-spacing:.02em}
.ven-rval-green{color:#14e0a3}
.ven-rval-red{color:#C8102E}
.ven-rval-white{color:rgba(255,255,255,.8)}
/* CTA */
.ven-cta{background:linear-gradient(135deg,rgba(200,16,46,.1),rgba(200,16,46,.04));border:1px solid rgba(200,16,46,.22);border-radius:10px;padding:22px 18px;text-align:center}
.ven-cta-text{font-size:12.5px;color:rgba(255,255,255,.45);line-height:1.6;margin-bottom:14px}
.ven-cta-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px;border-radius:8px;background:linear-gradient(135deg,#C8102E,#a00d24);color:#fff;font-size:14px;font-weight:700;letter-spacing:.02em;cursor:pointer;text-decoration:none;border:none;box-shadow:0 4px 24px rgba(200,16,46,.32);transition:filter .18s,transform .12s}
.ven-cta-btn:hover{filter:brightness(1.1);transform:translateY(-1px);color:#fff}
.ven-cta-btn svg{stroke:#fff;fill:none;width:15px;height:15px}
.ven-cta-note{margin-top:9px;font-size:11px;color:rgba(255,255,255,.22)}
.ven-cta-note a{color:rgba(255,255,255,.38);text-decoration:underline;text-decoration-color:rgba(255,255,255,.15)}

/* ── Venture RTL ── */
body.rtl .ven-inner{direction:rtl}
body.rtl .ven-header{text-align:right}
body.rtl .ven-header-right{text-align:right;align-items:flex-end}
body.rtl .ven-kicker{flex-direction:row-reverse;justify-content:flex-end}
body.rtl .ven-badge{flex-direction:row}
/* Challenge cards — text right-aligned */
body.rtl .ven-challenge{direction:rtl;text-align:right}
body.rtl .ven-challenge-bar{flex-direction:row-reverse}
body.rtl .ven-challenge-bar-title{text-align:right}
body.rtl .ven-challenge-bar-id{text-align:right}
/* Big stats — right-to-left flow */
body.rtl .ven-stats{direction:rtl;justify-content:flex-start}
body.rtl .ven-big-stat{text-align:right}
body.rtl .ven-big-val{text-align:right}
body.rtl .ven-big-label{text-align:right}
/* CTA — reversed */
body.rtl .ven-cta{flex-direction:row-reverse;text-align:right}
body.rtl .ven-cta-text{text-align:right}
body.rtl .ven-cta-btn{flex-direction:row}
body.rtl .ven-cta-btn svg{transform:scaleX(-1)}
body.rtl .ven-cta-note{text-align:right;flex-direction:row-reverse}
/* Grid layout */
body.rtl .ven-grid{direction:rtl}
</style>
<!-- Corners -->
<div class="ven-corner ven-corner-tl" aria-hidden="true"></div>
<div class="ven-corner ven-corner-tr" aria-hidden="true"></div>
<div class="ven-corner ven-corner-bl" aria-hidden="true"></div>
<div class="ven-corner ven-corner-br" aria-hidden="true"></div>
<div class="ven-inner">
  <!-- Header -->
  <div class="ven-header">
    <div>
      <div class="ven-badge"><div class="ven-badge-dot"></div><?php echo $lang==='fa' ? 'معاملات با سرمایه شرکت' : 'PROP TRADING'; ?></div>
      <h2 class="ven-title" id="ven-heading">STB<br><span><?php echo $lang==='fa' ? 'ونچر' : 'VENTURE'; ?></span></h2>
      <p class="ven-subtitle"><?php echo $lang==='fa' ? 'با سرمایه‌ی ما معامله کنید و سود را برای خود نگه دارید. صندوق پراپ تریدینگ STB تریدرهای حرفه‌ای را تا ۲۰۰،۰۰۰ دلار تأمین مالی می‌کند.' : 'Trade our capital. Keep the profit. STB Venture funds qualified traders with accounts up to $200,000.'; ?></p>
    </div>
    <div class="ven-header-right">
      <div class="ven-live"><div class="ven-live-dot"></div><?php echo $lang==='fa' ? 'چالش زنده' : 'CHALLENGE LIVE'; ?></div>
      <div class="ven-big-stat">
        <div class="ven-big-val">85<em>%</em></div>
        <div class="ven-big-label"><?php echo $lang==='fa' ? 'تقسیم سود' : 'PROFIT SPLIT'; ?></div>
      </div>
    </div>
  </div>
  <!-- Grid -->
  <div class="ven-grid">
    <!-- Left: Phases -->
    <div class="ven-challenge">
      <div class="ven-challenge-bar">
        <span class="ven-challenge-bar-title"><?php echo $lang==='fa' ? 'مسیر ارزیابی' : 'EVALUATION PATHWAY'; ?></span>
        <span class="ven-challenge-bar-id">STV-2024-EVAL</span>
      </div>
      <?php
      $phases = $lang==='fa'?[
        ['1','ven-num-red','چالش فاز ۱','هدف سود ۸٪ · افت روزانه ۵٪ · افت کلی ۱۰٪','ven-fill-red','ven-val-red',68,'68%'],
        ['2','ven-num-dim','چالش فاز ۲','هدف سود ۵٪ · همان قوانین مدیریت ریسک','ven-fill-dim','ven-val-dim',0,'--'],
        ['✓','ven-num-green','تأیید هویت','ارائه مدارک KYC و امضای قرارداد','ven-fill-green','ven-val-green',100,'تکمیل'],
        ['$','ven-num-dim','حساب فاند شده','شروع معامله با سرمایه واقعی STB','ven-fill-dim','ven-val-dim',0,'در انتظار'],
      ]:[
        ['1','ven-num-red','Phase 1 Challenge','8% profit target · 5% daily drawdown · 10% max drawdown','ven-fill-red','ven-val-red',68,'68%'],
        ['2','ven-num-dim','Phase 2 Challenge','5% profit target · Same risk management rules','ven-fill-dim','ven-val-dim',0,'--'],
        ['✓','ven-num-green','Identity Verification','Submit KYC documents and sign trader agreement','ven-fill-green','ven-val-green',100,'COMPLETE'],
        ['$','ven-num-dim','Funded Account','Begin trading with real STB capital','ven-fill-dim','ven-val-dim',0,'PENDING'],
      ];
      foreach($phases as $p): ?>
      <div class="ven-phase">
        <div class="ven-phase-num <?php echo $p[1]; ?>"><?php echo $p[0]; ?></div>
        <div><div class="ven-phase-name"><?php echo esc_html($p[2]); ?></div><div class="ven-phase-rule"><?php echo esc_html($p[3]); ?></div></div>
        <div class="ven-phase-prog">
          <div class="ven-prog-bar"><div class="ven-prog-fill <?php echo $p[4]; ?>" style="width:<?php echo $p[6]; ?>%"></div></div>
          <span class="ven-prog-val <?php echo $p[5]; ?>"><?php echo $p[7]; ?></span>
        </div>
      </div>
      <?php endforeach; ?>
      <!-- Metrics -->
      <div class="ven-metrics">
        <?php $mx=$lang==='fa'?[['۸٪','هدف سود','ven-mval-green'],['۱۰٪','حداکثر افت','ven-mval-red'],['۳۰','روز معامله','ven-mval-white'],['۸۵٪','تقسیم سود','ven-mval-green']]:[['8%','Profit Target','ven-mval-green'],['10%','Max Drawdown','ven-mval-red'],['30','Trading Days','ven-mval-white'],['85%','Profit Split','ven-mval-green']];
        foreach($mx as $m): ?>
        <div class="ven-metric"><div class="ven-metric-val <?php echo $m[2]; ?>"><?php echo $m[0]; ?></div><div class="ven-metric-key"><?php echo $m[1]; ?></div></div>
        <?php endforeach; ?>
      </div>
    </div>
    <!-- Right panel -->
    <div class="ven-panel">
      <div class="ven-panel-label"><?php echo $lang==='fa' ? 'انتخاب اندازه حساب' : 'SELECT ACCOUNT SIZE'; ?></div>
      <div class="ven-size-grid">
        <?php $sizes=[['$10K','10,000'],['$25K','25,000'],['$50K','50,000'],['$100K','100,000'],['$200K','200,000'],['CUSTOM','?']];
        foreach($sizes as $i=>$s): ?>
        <div class="ven-size-btn<?php echo $i===2?' sel':''; ?>" onclick="venPick(this,'<?php echo $s[1]; ?>')" role="radio" tabindex="0" aria-checked="<?php echo $i===2?'true':'false'; ?>"><?php echo $s[0]; ?><small><?php echo $lang==='fa' ? 'دلار' : 'USD'; ?></small></div>
        <?php endforeach; ?>
      </div>
      <div class="ven-readout">
        <div class="ven-readout-hdr">// <?php echo $lang==='fa' ? 'شرایط حساب' : 'ACCOUNT CONDITIONS'; ?></div>
        <div id="ven-conds">
          <?php $rows=$lang==='fa'?[['سرمایه حساب','$50,000','ven-rval-green'],['هدف فاز ۱','$4,000 (8%)','ven-rval-white'],['هدف فاز ۲','$2,500 (5%)','ven-rval-white'],['افت روزانه','$2,500 (5%)','ven-rval-red'],['حداکثر افت','$5,000 (10%)','ven-rval-red'],['تقسیم سود','85%','ven-rval-green'],['لوریج','1:100','ven-rval-white']]:[['Account Capital','$50,000','ven-rval-green'],['Phase 1 Target','$4,000 (8%)','ven-rval-white'],['Phase 2 Target','$2,500 (5%)','ven-rval-white'],['Daily Drawdown','$2,500 (5%)','ven-rval-red'],['Max Drawdown','$5,000 (10%)','ven-rval-red'],['Profit Split','85%','ven-rval-green'],['Leverage','1:100','ven-rval-white']];
          foreach($rows as $r): ?><div class="ven-readout-row"><span class="ven-rkey"><?php echo esc_html($r[0]); ?></span><span class="ven-rval <?php echo $r[2]; ?>"><?php echo esc_html($r[1]); ?></span></div><?php endforeach; ?>
        </div>
      </div>
      <div class="ven-cta">
        <p class="ven-cta-text"><?php echo $lang==='fa' ? 'یک‌بار هزینه ارزیابی پرداخت کنید. چالش را قبول شوید و هزینه در اولین برداشت بازگردانده می‌شود.' : 'Pay a one-time evaluation fee. Pass the challenge and the fee is refunded on your first payout.'; ?></p>
        <a href="/NewSite/venture/" class="ven-cta-btn"><?php echo $lang==='fa' ? 'شروع چالش' : 'Start the Challenge'; ?><svg viewBox="0 0 24 24"><path d="M5 12h14M12 5l7 7-7 7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
        <p class="ven-cta-note"><?php echo $lang==='fa' ? '<a href="/NewSite/venture/">مشاهده همه حساب‌ها</a> · بدون اشتراک ماهانه' : '<a href="/NewSite/venture/">View all accounts</a> · No monthly subscription'; ?></p>
      </div>
    </div>
  </div>
</div>
<script>
(function(){
var D={'10,000':[['Account Capital','$10,000','ven-rval-green'],['Phase 1 Target','$800 (8%)','ven-rval-white'],['Phase 2 Target','$500 (5%)','ven-rval-white'],['Daily Drawdown','$500 (5%)','ven-rval-red'],['Max Drawdown','$1,000 (10%)','ven-rval-red'],['Profit Split','80%','ven-rval-green'],['Leverage','1:100','ven-rval-white']],'25,000':[['Account Capital','$25,000','ven-rval-green'],['Phase 1 Target','$2,000 (8%)','ven-rval-white'],['Phase 2 Target','$1,250 (5%)','ven-rval-white'],['Daily Drawdown','$1,250 (5%)','ven-rval-red'],['Max Drawdown','$2,500 (10%)','ven-rval-red'],['Profit Split','80%','ven-rval-green'],['Leverage','1:100','ven-rval-white']],'50,000':[['Account Capital','$50,000','ven-rval-green'],['Phase 1 Target','$4,000 (8%)','ven-rval-white'],['Phase 2 Target','$2,500 (5%)','ven-rval-white'],['Daily Drawdown','$2,500 (5%)','ven-rval-red'],['Max Drawdown','$5,000 (10%)','ven-rval-red'],['Profit Split','85%','ven-rval-green'],['Leverage','1:100','ven-rval-white']],'100,000':[['Account Capital','$100,000','ven-rval-green'],['Phase 1 Target','$8,000 (8%)','ven-rval-white'],['Phase 2 Target','$5,000 (5%)','ven-rval-white'],['Daily Drawdown','$5,000 (5%)','ven-rval-red'],['Max Drawdown','$10,000 (10%)','ven-rval-red'],['Profit Split','85%','ven-rval-green'],['Leverage','1:100','ven-rval-white']],'200,000':[['Account Capital','$200,000','ven-rval-green'],['Phase 1 Target','$16,000 (8%)','ven-rval-white'],['Phase 2 Target','$10,000 (5%)','ven-rval-white'],['Daily Drawdown','$10,000 (5%)','ven-rval-red'],['Max Drawdown','$20,000 (10%)','ven-rval-red'],['Profit Split','85%','ven-rval-green'],['Leverage','1:100','ven-rval-white']],'?':[['Account Capital','Custom','ven-rval-white'],['Phase 1 Target','8% of balance','ven-rval-white'],['Phase 2 Target','5% of balance','ven-rval-white'],['Daily Drawdown','5% of balance','ven-rval-red'],['Max Drawdown','10% of balance','ven-rval-red'],['Profit Split','Up to 85%','ven-rval-green'],['Leverage','1:100','ven-rval-white']]};
window.venPick=function(el,size){
  document.querySelectorAll('.ven-size-btn').forEach(function(b){b.classList.remove('sel');b.setAttribute('aria-checked','false')});
  el.classList.add('sel');el.setAttribute('aria-checked','true');
  var rows=D[size];if(!rows)return;
  var c=document.getElementById('ven-conds');if(!c)return;
  c.innerHTML='';
  rows.forEach(function(r){c.innerHTML+='<div class="ven-readout-row"><span class="ven-rkey">'+r[0]+'</span><span class="ven-rval '+r[2]+'">'+r[1]+'</span></div>'});
};
document.querySelectorAll('.ven-size-btn').forEach(function(b){b.addEventListener('keydown',function(e){if(e.key==='Enter'||e.key===' '){e.preventDefault();b.click()}})});
var done=false;
function anim(){if(done)return;var s=document.getElementById('venture-section');if(!s)return;if(s.getBoundingClientRect().top<window.innerHeight*.9){done=true;document.querySelectorAll('.ven-prog-fill').forEach(function(b){var w=b.style.width;b.style.width='0%';setTimeout(function(){b.style.width=w},150)})}}
window.addEventListener('scroll',anim,{passive:true});setTimeout(anim,500);
})();
</script>
</section>