<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="theme-color" content="#0E1016" />
    <title>DEFRAG — Coming Soon</title>
    <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@300;400;600;700&display=swap" rel="stylesheet">
    <link rel="icon" href="/icons/favicon.png" />
    <link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
    <link rel="manifest" href="/manifest.json" />
    <link rel="stylesheet" href="/styles.css" />
    <meta name="description" content="DEFRAG — Synthesize your soul’s architecture into actionable clarity. Astrology × systems theory × daily curriculum." />
  </head>
  <body>
    <canvas id="bg"></canvas>
    <main class="wrap">
      <header class="nav">
        <div class="brand">DEFRAG</div>
        <nav class="nav-links">
          <a href="#learn">Learn</a>
          <a href="#manifesto">Manifesto</a>
          <a href="/status.html" rel="nofollow">Status</a>
        </nav>
      </header>

      <section class="hero">
        <h1><span class="muted">Synthesize</span> your soul’s architecture</h1>
        <p class="sub">
          Astrology × systems theory. Consciousness as code.<br />
          Daily readings, curriculum, and live metrics shaped by your natal constellation.
        </p>
        <div class="cta">
          <button id="waitlistBtn" class="btn primary">Request Early Access</button>
          <a href="#learn" class="btn ghost">Learn More</a>
        </div>
        <div class="badges">
          <a class="badge" href="/v1/health" rel="nofollow">health <span id="health">…</span></a>
          <a class="badge" href="/api/metrics.json" rel="nofollow">version <span id="version">…</span></a>
        </div>
      </section>

      <section id="learn" class="learn">
        <h2>What is DEFRAG?</h2>
        <p>
          Humanity is a fragmented operating system. <span class="em">DEFRAG is the recompiler.</span>
          We translate your natal data into daily, practical instruction—so myth becomes method.
        </p>
        <ul class="pillars">
          <li><strong>Archetypal engine</strong><br/>Jung–Bowen informed mapping of psyche & family systems.</li>
          <li><strong>Live astrology metrics</strong><br/>Natal + transits distilled into readable signal.</li>
          <li><strong>Curriculum</strong><br/>A daily stream of practices that upgrades the self.</li>
        </ul>
      </section>

      <section id="manifesto" class="manifesto">
        <h3>Spiritual Rebellion</h3>
        <p>“Nothing is random—only uncompiled.”</p>
        <p>“Your birth was an equation of time and meaning.”</p>
        <p>“We rebuild the interface between spirit and system.”</p>
      </section>

      <footer class="footer">
        <div>© <span id="y"></span> DEFRAG</div>
        <div class="links">
          <a href="mailto:hello@defrag.app">Contact</a>
          <a href="/privacy.html">Privacy</a>
        </div>
      </footer>
    </main>

    <!-- Waitlist Modal -->
    <dialog id="waitlistModal">
      <form id="waitlistForm" method="dialog" class="modal">
        <h3>Request Early Access</h3>
        <p>Be first to enter the control center.</p>
        <label>
          Email
          <input type="email" name="email" required placeholder="you@example.com" />
        </label>
        <label class="consent">
          <input type="checkbox" name="consent" required />
          I agree to receive updates from DEFRAG.
        </label>
        <div class="actions">
          <button class="btn ghost" value="cancel">Cancel</button>
          <button class="btn primary" value="ok">Request Access</button>
        </div>
        <p id="waitlistMsg" class="msg"></p>
      </form>
    </dialog>

    <script src="/scripts.js" defer></script>
  </body>
  </html>