---
interface Props {
  title: string;
  description?: string;
}

const { title, description = "AI-Native code editor built with Rust and Tauri. Fast, native, and designed for AI-powered development." } = Astro.props;
---

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>{title}</title>
    <meta name="description" content={description} />
    <meta name="generator" content={Astro.generator} />
    
    <!-- Open Graph -->
    <meta property="og:title" content={title} />
    <meta property="og:description" content={description} />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://zblade.dev" />
    
    <!-- Favicon -->
    <link rel="icon" type="image/png" href="/zblade-logo.png" />
    
    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
    
    <!-- Styles -->
    <link rel="stylesheet" href="/styles/global.css" />
    
    <!-- Matomo -->
    <script is:inline>
      var _paq = window._paq = window._paq || [];
      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="https://kekepower.com/mtr/";
        _paq.push(['setTrackerUrl', u+'matomo.php']);
        _paq.push(['setSiteId', '19']);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Matomo Code -->
  </head>
  <body>
    <header class="site-header">
      <div class="container">
        <div class="header-content">
          <a href="/" class="logo">
            <img src="/zblade-logo.png" alt="Zaguán Blade" class="logo-image" />
          </a>
          <nav class="nav">
            <a href="/#philosophy">Why Blade</a>
            <a href="/docs">Docs</a>
            <a href="/blog">Blog</a>
            <a href="/changelog">Changelog</a>
            <a href="/#download">Download</a>
            <a href="https://zaguanai.com/pricing" target="_blank" rel="noopener">Pricing</a>
          </nav>
        </div>
      </div>
    </header>

    <slot />

    <footer class="site-footer">
      <div class="container">
        <div class="footer-content">
          <div class="footer-section">
            <h4>Zaguán Blade</h4>
            <p>AI-Native code editor for the modern developer.</p>
          </div>
          <div class="footer-section">
            <h4>Product</h4>
            <a href="/#philosophy">Why Blade</a>
            <a href="/docs">Documentation</a>
            <a href="/blog">Blog</a>
            <a href="/changelog">Changelog</a>
            <a href="/#download">Download</a>
            <a href="https://zaguanai.com/pricing" target="_blank" rel="noopener">Pricing</a>
          </div>
          <div class="footer-section">
            <h4>Zaguán AI</h4>
            <a href="https://zaguanai.com" target="_blank" rel="noopener">Main Site</a>
            <a href="https://zaguanai.com/pricing" target="_blank" rel="noopener">Subscription</a>
            <a href="https://x.com/Zaguan_AI" target="_blank" rel="noopener">X (Twitter)</a>
          </div>
        </div>
        <div class="footer-bottom">
          <p>&copy; {new Date().getFullYear()} Zaguán AI. All rights reserved.</p>
          <p>Site created and maintained with Zaguán Blade</p>
        </div>
      </div>
    </footer>
    <!-- Matomo Image Tracker-->
    <noscript>
      <img referrerpolicy="no-referrer-when-downgrade" src="https://kekepower.com/mtr/matomo.php?idsite=19&amp;rec=1" style="border:0" alt="" />
    </noscript>
    <!-- End Matomo -->
  </body>
</html>
