{{ define "main" }}
<section class="section section-hero container-fluid mt-n3 pb-3">
  <div class="row justify-content-center">
    <div class="col-lg-12 text-center">
      <img src="/logo.png" alt="Denkeeper logo" class="hero-logo mb-3" width="120" height="120">
      <h1>{{ .Title }}</h1>
    </div>
    <div class="col-lg-9 col-xl-8 text-center">
      <p class="lead">{{ .Params.lead | safeHTML }}</p>
      <div class="mt-4">
        <a class="btn btn-primary btn-cta rounded-pill btn-lg" href="/docs/getting-started/installation/" role="button">Get Started</a>
        <a class="btn btn-outline-primary rounded-pill btn-lg ms-2" href="https://github.com/Temikus/denkeeper" role="button"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="20" height="20" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" style="vertical-align: -0.15em; margin-right: 0.3em;"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"/></svg>GitHub</a>
      </div>
    </div>
  </div>
</section>
{{ end }}

{{ define "sidebar-prefooter" }}
{{ if site.Params.doks.backgroundDots -}}
<div class="d-flex justify-content-start">
  <div class="bg-dots"></div>
</div>
{{ end -}}
<section class="section section-md section-features">
  <div class="container">
    <div class="row justify-content-center g-4">
      <div class="col-md-8 col-lg-5">
        <div class="feature-card">
          <span class="feature-icon">&#x1f512;</span>
          <h2 class="h4">Security first</h2>
          <p>Tiered permissions (autonomous, supervised, restricted). Every capability is opt-in. Approval workflows for sensitive actions.</p>
        </div>
      </div>
      <div class="col-md-8 col-lg-5">
        <div class="feature-card">
          <span class="feature-icon">&#x1f4b0;</span>
          <h2 class="h4">Cost aware</h2>
          <p>Per-session and global budget tracking. Automatic fallback to cheaper models when funds are low.</p>
        </div>
      </div>
      <div class="col-md-8 col-lg-5">
        <div class="feature-card">
          <span class="feature-icon">&#x1f4e6;</span>
          <h2 class="h4">Single binary</h2>
          <p>One file, one TOML config, SQLite storage. No Docker required to run (but supported). Runs on a Raspberry Pi 5.</p>
        </div>
      </div>
      <div class="col-md-8 col-lg-5">
        <div class="feature-card">
          <span class="feature-icon">&#x1f916;</span>
          <h2 class="h4">Multi-agent</h2>
          <p>Run multiple agents with distinct personas, skills, and adapter bindings in a single instance.</p>
        </div>
      </div>
      <div class="col-md-8 col-lg-5">
        <div class="feature-card">
          <span class="feature-icon">&#x1f527;</span>
          <h2 class="h4">Extensible</h2>
          <p>Three extension tiers: skills (markdown), tools (MCP servers), and plugins (subprocess/Docker).</p>
        </div>
      </div>
      <div class="col-md-8 col-lg-5">
        <div class="feature-card">
          <span class="feature-icon">&#x1f4ac;</span>
          <h2 class="h4">Multi-platform</h2>
          <p>Connects to Telegram and Discord. Routes messages through Anthropic, OpenRouter, or Ollama.</p>
        </div>
      </div>
    </div>
  </div>
</section>

<section class="section section-md section-getstarted">
  <div class="container">
    <div class="row justify-content-center text-center">
      <div class="col-lg-8">
        <h2 class="mb-3">Get Started</h2>
        <p class="mb-4">Install with a single command:</p>
        <div class="install-command text-start">
          {{- highlight "curl -fsSL https://get.denkeeper.io | sh" "bash" "" -}}
        </div>
        <p class="mt-4 mb-3">Or via Homebrew:</p>
        <div class="install-command text-start">
          {{- highlight "brew install Temikus/tap/denkeeper" "bash" "" -}}
        </div>
        <p class="mt-4">Or grab a <code>.deb</code>/<code>.rpm</code> package from the <a href="https://github.com/Temikus/denkeeper/releases">releases page</a>.</p>
        <a class="btn btn-primary rounded-pill btn-lg mt-3" href="/docs/getting-started/installation/" role="button">Read the guide</a>
      </div>
    </div>
  </div>
</section>
{{ end }}

{{ define "sidebar-footer" }}
{{ end }}
