---
/**
 * LandingFooter — mockup-faithful footer for the splash page.
 *
 *   • 4-column grid: brand · Framework · Models · Community
 *   • Subtle star wash background (footer-canvas, vanilla canvas2d)
 *   • Bottom strip: "© 2026 Nibiru · Apache 2.0"  +  "Built in orbit · v0.9.2"
 *
 * The mockup's `id="docs"` anchor is preserved so in-page nav `<a href="#docs">`
 * still scrolls here.
 */
---
<footer class="footer" id="docs">
  <canvas id="footer-canvas" aria-hidden="true"></canvas>
  <div class="container footer-inner">
    <div class="footer-brand">
      <div class="brand">
        <img class="brand-mark" src="/img/nibiru-logo.png" alt="" style="height: 30px; width: auto;" />
        <span class="brand-name">Nibiru<em></em></span>
      </div>
      <p>An AI-native MMVC PHP framework. Open source. Open weights when they ship. Built to compose.</p>
    </div>
    <div class="footer-col">
      <h5>Framework</h5>
      <ul>
        <li><a href="#mmvc">MMVC pattern</a></li>
        <li><a href="#code">Quick start</a></li>
        <li><a href="/en/core/modules/">Modules</a></li>
        <li><a href="/en/start/what-is-nibiru/">Reference</a></li>
      </ul>
    </div>
    <div class="footer-col">
      <h5>AI module</h5>
      <ul>
        <li><a href="/en/ai/module/overview/">Overview</a></li>
        <li><a href="/en/ai/module/rag/">RAG plugin</a></li>
        <li><a href="/en/ai/module/agent/">Agent plugin</a></li>
        <li><a href="/en/ai/oracle/">The Oracle</a></li>
      </ul>
    </div>
    <div class="footer-col">
      <h5>Community</h5>
      <ul>
        <li><a href="https://github.com/alllinux/Nibiru">GitHub</a></li>
        <li><a href="/en/showcase/projects/">Showcase</a></li>
        <li><a href="/en/why-nibiru/">Why Nibiru</a></li>
        <li><a href="/en/ai/roadmap/">Roadmap</a></li>
      </ul>
    </div>
  </div>
  <div class="container footer-bottom">
    <span>© 2026 Nibiru · MIT licensed</span>
    <span>Built in orbit · v0.9.2</span>
  </div>
</footer>

<style is:global>
  .footer {
    position: relative;
    padding: 100px 0 60px;
    background: var(--nibiru-space);
    border-top: 1px solid var(--nibiru-line);
    overflow: hidden;
    color: var(--nibiru-star);
    /* Break out of any centring container — the footer is full-bleed */
    width: 100vw;
    margin-left: 50%;
    margin-right: 50%;
    transform: translateX(-50%);
  }
  .footer #footer-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
  }
  .footer-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: var(--nibiru-container, 1280px);
    margin: 0 auto;
    padding: 0 32px;
  }
  @media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
  }
  .footer-brand .brand {
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
  }
  .footer-brand .brand-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--nibiru-star);
  }
  .footer-brand .brand-name em { font-style: normal; font-weight: 300; }
  .footer-brand p {
    font-size: 14px;
    color: rgba(244, 238, 219, 0.55);
    max-width: 36ch;
    line-height: 1.55;
    margin: 12px 0 0;
  }
  .footer-col h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nibiru-muted);
    margin: 0 0 18px;
    font-weight: 400;
  }
  .footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
  }
  .footer-col a {
    font-size: 14px;
    color: rgba(244, 238, 219, 0.7);
    text-decoration: none;
    transition: color 160ms ease;
  }
  .footer-col a:hover { color: var(--nibiru-star); }
  .footer-bottom {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--nibiru-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nibiru-muted);
    position: relative;
    z-index: 2;
    max-width: var(--nibiru-container, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    flex-wrap: wrap;
    gap: 12px;
  }
</style>

