<?php
// AdityaHost public site footer. Optional: $footerInside (string).
$footerInside = $footerInside ?? '';
$navActive = $navActive ?? '';
?>
<footer class="site-footer">
  <div class="wrap">
    <div class="footer-grid">
      <div class="footer-brand">
        <a href="index.php" class="brand">
          <span class="brand-mark"><img src="assets/img/logo.svg" width="20" height="20" alt="AdityaHost"></span>
          Aditya<b>Host</b>
        </a>
        <p>The simple, secure way to verify FamPay UPI payments in your apps, bots and websites — no commission cuts, no middleman, no business account needed.</p>
        <div class="footer-social">
          <a href="https://t.me/Aditya268" target="_blank" rel="noopener" title="Telegram: @Aditya268"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="m22 2-7 20-4-9-9-4Z"/><path d="M22 2 11 13"/></svg></a>
          <a href="https://wa.me/917738733069" target="_blank" rel="noopener" title="WhatsApp: +91 77387 33069"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a9 9 0 0 0-7.8 13.5L3 21l4.6-1.2A9 9 0 1 0 12 3Z"/><path d="M9 9.5c0 3 2.5 5.5 5.5 5.5l1.5-1.5-2-1.5-1 .5a4 4 0 0 1-2-2l.5-1L10.5 8Z"/></svg></a>
          <a href="https://instagram.com/adityahost.in" target="_blank" rel="noopener" title="Instagram: @adityahost.in"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="2.5" width="19" height="19" rx="5"/><circle cx="12" cy="12" r="4.2"/><circle cx="17.3" cy="6.7" r="1.1" fill="currentColor" stroke="none"/></svg></a>
          <a href="https://discord.com/users/aditya_2006_19" target="_blank" rel="noopener" title="Discord: @aditya_2006_19"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6.5c-2 .7-3.5 2.2-4.5 4.3-.8 1.7-1 3.7-.6 5.6C3.4 19 4.7 20.8 6.6 21.2l.8-1.9M8 6.5C10 5.8 12.6 5.5 15.3 5.8c2.3.3 4 1 5 1.7M8 6.5c1-2.3 2.5-3.6 4.6-3.9M4.8 18.5l1-2.7M19 8c.6 1.1.9 2.5 1 4 .1 1.6-.3 3.4-1.2 5.1-.8 1.6-2 3-3.7 3.5l-.9-2.2"/><path d="M9 19c1.4.5 3 .7 4.6.6M9.5 12h.01M14.5 12h.01M19 8v10.6"/></svg></a>
        </div>
      </div>
      <div class="footer-col">
        <h4>Product</h4>
        <a href="index.php#features">Features</a>
        <a href="index.php#pricing">Pricing</a>
        <a href="demo.php">Test Demo</a>
        <a href="register.php">Get Started</a>
      </div>
      <div class="footer-col">
        <h4>Developers</h4>
        <a href="docs.php">Documentation</a>
        <a href="docs.php#qr">QR Order API</a>
        <a href="docs.php#verify">Verify Payment</a>
        <a href="docs.php#checkout">Checkout Page</a>
      </div>
      <div class="footer-col">
        <h4>Blog</h4>
        <a href="blog.php#fampay-api-guide">FamPay API Guide</a>
        <a href="blog.php#upiqr-website">UPI QR on Website</a>
        <a href="blog.php#app-password">App Password Guide</a>
        <a href="blog.php">All posts</a>
      </div>
      <div class="footer-col">
        <h4>Support</h4>
        <a href="https://wa.me/917738733069" target="_blank" rel="noopener">WhatsApp: +91 77387 33069</a>
        <a href="https://t.me/Aditya268" target="_blank" rel="noopener">Telegram: @Aditya268</a>
        <a href="https://instagram.com/adityahost.in" target="_blank" rel="noopener">Instagram: @adityahost.in</a>
        <a href="https://discord.com/users/aditya_2006_19" target="_blank" rel="noopener">Discord: @aditya_2006_19</a>
        <a href="contact.php">Contact form</a>
      </div>
      <div class="footer-col">
        <h4>Company</h4>
        <a href="about.php">About Us</a>
        <a href="contact.php">Contact</a>
        <a href="terms.php">Terms of Service</a>
        <a href="privacy.php">Privacy Policy</a>
        <a href="refund-policy.php">Refund Policy</a>
      </div>
    </div>
    <div class="footer-disclaimer">UPI &amp; QR payments are processed through your own FamPay account. AdityaHost is not affiliated with, endorsed by, or connected to FamPay, Trio Technologies Pvt Ltd, NPCI, or any bank. All product names, logos and brands are property of their respective owners.</div>
    <div class="footer-legal">
      <p>© <?= date('Y') ?> AdityaHost (adityahost.in). All rights reserved.</p>
      <p>
        <a href="sitemap.xml">Sitemap</a>
      </p>
    </div>
  </div>
</footer>
<?= $footerInside ?>
<script src="assets/animations.js?v=1" defer></script>
<script>
(function(){
  var io;
  if('IntersectionObserver' in window){
    io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting){e.target.classList.add('in');io.unobserve(e.target);}});},{threshold:.12});
    document.querySelectorAll('.reveal').forEach(function(el){io.observe(el);});
  } else {
    document.querySelectorAll('.reveal').forEach(function(el){el.classList.add('in');});
  }
  var counters=document.querySelectorAll('.stat-num[data-count]');
  counters.forEach(function(el){
    var target=parseFloat(el.getAttribute('data-count')),dec=parseInt(el.getAttribute('data-decimals')||'0',10),pre=el.getAttribute('data-prefix')||'';
    if(!el.hasAttribute('data-animated')){
      el.setAttribute('data-animated','1');
      var start=0,cur=parseFloat(el.textContent.replace(/[^0-9.]/g,''))||0;
      var step=function(t){var pr=Math.min(t/1600,1);var v=cur+(target-cur)*pr;el.textContent=pre+v.toFixed(dec);if(pr<1)requestAnimationFrame(step);};
      requestAnimationFrame(step);
    }
  });
})();
</script>
</body>
</html>