Skip to content

Turn any document into clean, AI-ready Markdown. Local-first desktop app: reads scanned PDFs, batches folders, runs offline, and uses far fewer tokens than vision models.

42.2 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MDFlux: turn any document into clean, AI-ready Markdown</title>
<meta name="description" content="MDFlux is a local-first desktop app that converts PDF, Office, EPUB, scans, and audio into clean, AI-ready Markdown. Reads documents other tools can't. No cloud, no account.">
<meta name="theme-color" content="#0a0a0b">
<link rel="icon" href="docs/media/favicon.png">
<link rel="canonical" href="https://ibrahimqureshae.github.io/mdflux/">

<meta property="og:type" content="website">
<meta property="og:title" content="MDFlux: clean, AI-ready Markdown from any document">
<meta property="og:description" content="Local-first desktop app. Reads scanned PDFs, batches folders, runs offline. Up to 6× fewer tokens than vision models.">
<meta property="og:url" content="https://ibrahimqureshae.github.io/mdflux/">
<meta property="og:image" content="https://raw.githubusercontent.com/ibrahimqureshae/mdflux/main/docs/media/github-social-card-1280x640.png">
<meta property="og:image:width" content="1280">
<meta property="og:image:height" content="640">
<meta property="og:site_name" content="MDFlux">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="MDFlux: clean, AI-ready Markdown from any document">
<meta name="twitter:description" content="Local-first desktop app. Reads scanned PDFs, batches folders, runs offline. Up to 6× fewer tokens than vision models.">
<meta name="twitter:image" content="https://raw.githubusercontent.com/ibrahimqureshae/mdflux/main/docs/media/github-social-card-1280x640.png">

<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=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap" rel="stylesheet">

<style>
  :root{
    --blue:#3b82f6;
    --blue-light:#6aa1f5;
    --blue-deep:#2563eb;
    --green:#3fb950;
    --paper:#faf9f5;
    --bg:#0a0a0b;
    --panel:#0e0e10;
    --card:#16161a;
    --border:#1c1c22;
    --hairline:#2c2c33;
    --accent-border:#29395c;
    --text:#fafafa;
    --text-2:#cfccd6;
    --muted:#9a96a4;
    --muted-2:#8b8792;
    --maxw:1200px;
    --r-card:16px;
    --r-inset:10px;
    --r-pill:999px;
    --f-display:'Space Grotesk',sans-serif;
    --f-body:'IBM Plex Sans',sans-serif;
    --f-mono:'IBM Plex Mono',monospace;
    --f-serif:'Newsreader',serif;
  }

  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--f-body);
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
  }
  img{max-width:100%;display:block}
  a{color:inherit;text-decoration:none}

  /* ── Layout helpers ─────────────────────────────────────── */
  .wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}
  section{padding:96px 0;position:relative}
  .eyebrow{
    font-family:var(--f-mono);
    font-size:12px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--muted-2);
    margin-bottom:14px;
  }
  .eyebrow .dot{
    display:inline-block;width:8px;height:8px;border-radius:50%;
    background:var(--blue);margin-right:10px;vertical-align:middle;
  }
  h1,h2,h3{font-family:var(--f-display);font-weight:600;letter-spacing:-.02em;line-height:1.08}
  h2{font-size:clamp(28px,4vw,42px)}
  h3{font-size:20px;letter-spacing:-.01em}
  .lead{font-size:clamp(16px,1.8vw,19px);color:var(--text-2);max-width:62ch}

  /* ── Nav ────────────────────────────────────────────────── */
  nav{
    position:sticky;top:0;z-index:50;
    background:rgba(10,10,11,.82);
    backdrop-filter:saturate(140%) blur(12px);
    -webkit-backdrop-filter:saturate(140%) blur(12px);
    border-bottom:1px solid var(--border);
  }
  nav .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px}
  .lockup{display:flex;align-items:center;gap:12px}
  .mark{
    width:32px;height:32px;border-radius:8px;background:var(--blue);
    display:flex;align-items:center;justify-content:center;
    font-family:var(--f-display);font-weight:700;font-size:16px;color:#fff;
  }
  .lockup .name{font-family:var(--f-display);font-size:19px;font-weight:600;letter-spacing:-.02em}
  .lockup .name b{color:var(--blue-light);font-weight:600}
  .nav-links{display:flex;align-items:center;gap:28px;font-size:14px;color:var(--muted)}
  .nav-links a:hover{color:var(--text)}
  .nav-cta{
    font-family:var(--f-mono);font-size:13px;color:#fff;
    padding:9px 18px;border-radius:var(--r-pill);
    background:var(--blue);border:1px solid var(--blue);
    transition:background .15s ease;
  }
  .nav-cta:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
  .nav-burger{display:none;background:none;border:1px solid var(--hairline);border-radius:8px;color:var(--text);padding:8px 10px;cursor:pointer;font-family:var(--f-mono);font-size:12px}

  /* ── Buttons / chips ────────────────────────────────────── */
  .btn{
    display:inline-flex;align-items:center;gap:10px;
    font-family:var(--f-mono);font-size:15px;font-weight:500;
    padding:14px 26px;border-radius:var(--r-pill);
    background:var(--blue);color:#fff;border:1px solid var(--blue);
    transition:background .15s ease,transform .15s ease;
  }
  .btn:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
  .btn-ghost{
    background:transparent;color:var(--text-2);
    border:1px solid var(--hairline);
  }
  .btn-ghost:hover{border-color:var(--blue-light);color:var(--text)}
  .chips{display:flex;flex-wrap:wrap;gap:10px}
  .chip{
    font-family:var(--f-mono);font-size:13px;color:var(--text-2);
    padding:7px 15px;border:1px solid var(--hairline);border-radius:var(--r-pill);
  }

  /* ── Hero ───────────────────────────────────────────────── */
  .hero{padding:72px 0 64px;overflow:hidden}
  .hero .glow{
    position:absolute;top:-180px;left:50%;transform:translateX(-50%);
    width:880px;height:380px;border-radius:50%;pointer-events:none;
    background:radial-gradient(circle,rgba(59,130,246,.18),transparent 70%);
  }
  .hero-inner{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center}
  .hero h1{
    font-size:clamp(34px,6vw,58px);
    line-height:1.04;letter-spacing:-.025em;
    max-width:18ch;margin:18px 0;
  }
  .hero h1 em{color:var(--blue-light);font-style:normal}
  .hero .sub{font-size:clamp(17px,2.2vw,22px);color:var(--muted);margin-bottom:28px}
  .hero-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:20px}
  .hero-stage{
    margin:48px auto 0;width:100%;max-width:680px;
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.55);
  }
  .hero-stage img{
    border-radius:var(--r-inset);border:1px solid var(--hairline);
    width:100%;height:auto;
  }

  /* ── Section header ─────────────────────────────────────── */
  .sec-head{max-width:760px;margin-bottom:48px}
  .sec-head.center{margin-left:auto;margin-right:auto;text-align:center}
  .sec-head h2{margin-bottom:14px}
  .sec-head .lead{margin-bottom:0}

  /* ── Proof section ──────────────────────────────────────── */
  .proof{background:linear-gradient(180deg,var(--bg) 0%,var(--panel) 100%)}
  .proof-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
  .proof-stat{
    font-family:var(--f-display);font-weight:600;
    font-size:clamp(40px,6vw,72px);line-height:1;letter-spacing:-.03em;
    color:var(--blue-light);margin-bottom:18px;
  }
  .proof-stat small{font-size:.4em;color:var(--text);font-weight:500;letter-spacing:-.01em;display:block;margin-top:8px}
  .proof-table{
    width:100%;border-collapse:collapse;margin:24px 0;
    font-family:var(--f-mono);font-size:14px;
    background:var(--card);border:1px solid var(--border);border-radius:var(--r-inset);overflow:hidden;
  }
  .proof-table th,.proof-table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--border)}
  .proof-table tr:last-child td{border-bottom:0}
  .proof-table th{color:var(--muted);font-weight:500;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
  .proof-table td:last-child{text-align:right;color:var(--text)}
  .proof-table tr.ok td:last-child{color:var(--green)}
  .proof-table tr.zero td:last-child{color:var(--muted)}
  .proof-poster{
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:18px;display:flex;justify-content:center;
  }
  .proof-poster img{border-radius:var(--r-inset);max-height:560px;width:auto;border:1px solid var(--hairline)}

  /* ── Features ───────────────────────────────────────────── */
  .features-poster{
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:18px;margin-bottom:48px;display:flex;justify-content:center;
  }
  .features-poster img{border-radius:var(--r-inset);max-height:520px;width:auto;border:1px solid var(--hairline)}
  .feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
  .feature{
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:24px;
  }
  .feature .ic{
    width:38px;height:38px;border-radius:10px;background:var(--card);border:1px solid var(--hairline);
    display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:16px;
  }
  .feature h3{margin-bottom:8px}
  .feature p{font-size:14px;color:var(--muted);line-height:1.55}

  /* ── How it works ───────────────────────────────────────── */
  .how{background:var(--panel)}
  .step{
    display:grid;grid-template-columns:300px 1fr;gap:48px;align-items:center;
    margin-bottom:48px;
  }
  .step:last-child{margin-bottom:0}
  .step.flip .step-text{order:2}
  .step.flip .step-media{order:1}
  .step-text .step-num{
    display:flex;align-items:center;gap:12px;margin-bottom:16px;
    font-family:var(--f-mono);font-size:13px;
  }
  .step-text .step-num b{color:var(--blue);font-weight:500}
  .step-text .step-num .line{height:1px;width:34px;background:var(--hairline)}
  .step-text .step-num .label{letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);font-size:12px}
  .step-text h3{font-size:clamp(24px,3vw,30px);line-height:1.08;margin-bottom:14px}
  .step-text p{font-size:16px;color:var(--muted);line-height:1.55;max-width:38ch}
  .step-media{
    background:var(--bg);border:1px solid var(--border);border-radius:var(--r-card);padding:18px;
    display:flex;justify-content:center;
  }
  .step-media img{
    border-radius:var(--r-inset);border:1px solid var(--hairline);
    max-height:380px;width:auto;box-shadow:0 18px 44px rgba(0,0,0,.5);
  }

  /* ── Compare ────────────────────────────────────────────── */
  .compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
  .compare-table{
    width:100%;border-collapse:collapse;
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);overflow:hidden;
  }
  .compare-table th,.compare-table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--border);font-size:14px}
  .compare-table tr:last-child td{border-bottom:0}
  .compare-table th{
    font-family:var(--f-display);font-weight:600;font-size:14px;
    color:var(--muted);background:var(--card);
  }
  .compare-table th.yes{color:var(--text)}
  .compare-table th.mf{color:var(--blue-light)}
  .compare-table td:first-child{color:var(--muted)}
  .compare-table td.yes{color:var(--text-2)}
  .compare-table td.mf{color:var(--text);font-weight:500}
  .compare-table td.mf strong{color:var(--green);font-weight:500}
  .compare-poster{
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:18px;display:flex;justify-content:center;position:sticky;top:88px;
  }
  .compare-poster img{border-radius:var(--r-inset);max-height:560px;width:auto;border:1px solid var(--hairline)}

  /* ── Audience ───────────────────────────────────────────── */
  .audience-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
  .audience{
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:24px 22px;
  }
  .audience .em{font-size:24px;margin-bottom:12px}
  .audience h3{font-size:15px;line-height:1.3;margin-bottom:8px;font-family:var(--f-body);font-weight:600;letter-spacing:0}
  .audience p{font-size:13px;color:var(--muted);line-height:1.5}

  /* ── Formats ────────────────────────────────────────────── */
  .formats{background:var(--panel)}
  .format-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
  .format-col{
    background:var(--card);border:1px solid var(--border);border-radius:var(--r-card);padding:22px 24px;
  }
  .format-col .label{
    font-family:var(--f-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
    color:var(--muted-2);margin-bottom:14px;
  }
  .format-col ul{list-style:none;display:flex;flex-direction:column;gap:8px}
  .format-col li{font-size:14px;color:var(--text-2)}
  .format-col li .tag{
    font-family:var(--f-mono);font-size:11px;color:var(--blue-light);margin-left:6px;
  }

  /* ── CTA band ───────────────────────────────────────────── */
  .cta-band{
    background:linear-gradient(135deg,var(--blue) 0%,var(--blue-deep) 100%);
    border-radius:24px;padding:64px 48px;text-align:center;
    position:relative;overflow:hidden;
  }
  .cta-band h2{color:#fff;margin-bottom:14px;font-size:clamp(26px,4vw,38px)}
  .cta-band p{color:rgba(255,255,255,.88);font-size:18px;margin-bottom:28px}
  .cta-band .btn{background:#fff;color:var(--blue-deep);border-color:#fff}
  .cta-band .btn:hover{background:var(--paper);border-color:var(--paper)}
  .cta-band .sponsor{display:flex;gap:12px;justify-content:center;margin-top:20px;flex-wrap:wrap}
  .cta-band .sponsor a{
    font-family:var(--f-mono);font-size:13px;color:#fff;
    padding:9px 18px;border:1px solid rgba(255,255,255,.4);border-radius:var(--r-pill);
    transition:background .15s ease;
  }
  .cta-band .sponsor a:hover{background:rgba(255,255,255,.12)}

  /* ── Footer ─────────────────────────────────────────────── */
  footer{padding:56px 0 40px;border-top:1px solid var(--border)}
  footer .wrap{display:grid;grid-template-columns:1fr 2fr;gap:48px}
  footer .brand .lockup{margin-bottom:14px}
  footer .brand p{font-size:13px;color:var(--muted);max-width:34ch}
  footer .cols{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
  footer .col .h{
    font-family:var(--f-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
    color:var(--muted-2);margin-bottom:14px;
  }
  footer .col ul{list-style:none;display:flex;flex-direction:column;gap:9px}
  footer .col a{font-size:13px;color:var(--text-2)}
  footer .col a:hover{color:var(--blue-light)}
  footer .built{
    margin-top:48px;padding-top:24px;border-top:1px solid var(--border);
    display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;
    font-family:var(--f-mono);font-size:12px;color:var(--muted);
  }
  footer .built a{color:var(--text-2)}
  footer .built a:hover{color:var(--blue-light)}

  /* ── Cleanup modes ─────────────────────────────────────── */
  .cleanup-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
  .cleanup-shot{
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  }
  .cleanup-shot img{border-radius:var(--r-inset);border:1px solid var(--hairline);width:100%;height:auto}
  .shot-caption{margin:12px 0 0;font-size:13px;color:var(--muted);text-align:center;line-height:1.45}
  .modes{display:flex;flex-direction:column;gap:14px}
  .mode{
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);
    padding:20px 22px;display:flex;gap:16px;align-items:flex-start;
  }
  .mode .dot-c{width:10px;height:10px;border-radius:50%;margin-top:7px;flex:none}
  .mode .dot-c.off{background:var(--green)}
  .mode .dot-c.rule{background:var(--blue)}
  .mode .dot-c.ai{background:var(--blue-light)}
  .mode h3{font-size:16px;margin-bottom:6px;font-family:var(--f-body);font-weight:600;letter-spacing:0}
  .mode .tag{
    font-family:var(--f-mono);font-size:11px;color:var(--muted-2);margin-left:8px;
    padding:2px 8px;border:1px solid var(--hairline);border-radius:var(--r-pill);
  }
  .mode p{font-size:14px;color:var(--muted);line-height:1.5}

  /* ── Responsive ─────────────────────────────────────────── */
  @media (max-width:980px){
    .nav-links{display:none}
    .nav-burger{display:inline-block}
    .proof-grid,.compare-grid,.cleanup-grid{grid-template-columns:1fr}
    .compare-poster{position:static}
    .feature-grid{grid-template-columns:repeat(2,1fr)}
    .audience-grid{grid-template-columns:repeat(2,1fr)}
    .format-grid{grid-template-columns:repeat(2,1fr)}
    .step{grid-template-columns:1fr;gap:24px}
    .step.flip .step-text,.step.flip .step-media{order:initial}
    .step-text{max-width:none}
    footer .wrap{grid-template-columns:1fr;gap:32px}
    footer .cols{grid-template-columns:repeat(2,1fr)}
  }
  @media (max-width:560px){
    section{padding:64px 0}
    .wrap{padding:0 20px}
    .feature-grid,.audience-grid,.format-grid{grid-template-columns:1fr}
    .cta-band{padding:40px 24px}
  }
  @media (prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    *{transition:none !important}
  }
</style>
</head>
<body>

<!-- ════════════════ NAV ════════════════ -->
<nav>
  <div class="wrap">
    <a class="lockup" href="#top" aria-label="MDFlux home">
      <span class="mark">M↓</span>
      <span class="name"><b>MD</b>Flux</span>
    </a>
    <div class="nav-links">
      <a href="#features">Features</a>
      <a href="#proof">The proof</a>
      <a href="#how">How it works</a>
      <a href="#compare">vs MarkItDown</a>
      <a href="https://github.com/ibrahimqureshae/mdflux">GitHub</a>
      <a class="nav-cta" href="https://github.com/ibrahimqureshae/mdflux/releases/latest">Download</a>
    </div>
    <button class="nav-burger" aria-label="Open menu" onclick="document.querySelector('.nav-links').style.display='flex';this.style.display='none'">Menu</button>
  </div>
</nav>

<main id="top">

<!-- ════════════════ HERO ════════════════ -->
<section class="hero">
  <div class="glow"></div>
  <div class="wrap hero-inner">
    <div class="eyebrow"><span class="dot"></span>Reads documents other tools can't.</div>
    <h1>Converts documents into clean, <em>AI-ready Markdown.</em></h1>
    <p class="sub">On your machine. No upload.</p>
    <p class="sub" style="font-size:14px;opacity:.65;margin-top:8px">Works with PDF · DOCX · PPTX · XLSX · EPUB · HTML · CSV · JSON · XML · TXT · MD · images · audio</p>
    <div class="chips">
      <span class="chip">Open Source</span>
      <span class="chip">MIT</span>
      <span class="chip">Local-first</span>
      <span class="chip">Windows</span>
      <span class="chip">Linux</span>
    </div>
    <div class="hero-cta" style="margin-top:28px">
      <a class="btn" href="https://github.com/ibrahimqureshae/mdflux/releases/latest">⬇ Download for Windows</a>
      <a class="btn btn-ghost" href="https://github.com/ibrahimqureshae/mdflux/releases/latest">⬇ Linux x64</a>
      <a class="btn btn-ghost" href="#proof">See the proof ↓</a>
    </div>
    <div class="hero-stage">
      <img src="docs/media/demo-hero.gif" alt="MDFlux: drop a document, get clean Markdown in seconds" width="1080" height="675">
    </div>
  </div>
</section>

<!-- ════════════════ SEE IT IN ACTION ════════════════ -->
<section id="demo">
  <div class="wrap">
    <div class="sec-head center">
      <div class="eyebrow"><span class="dot"></span>See it in action · three steps</div>
      <h2>Select. Convert. Done.</h2>
    </div>
    <div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:10px">
      <div style="background:#0e0e10;border:1px solid #1c1c22;border-radius:16px;padding:18px">
        <div style="display:flex;align-items:center;gap:10px;margin-bottom:14px"><span style="color:#3b82f6;font-weight:600;font-size:14px">01</span><span style="font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a96a4">Select</span></div>
        <img src="docs/media/fetching-files.gif" alt="Select a folder of mixed files" loading="lazy" style="width:100%;border-radius:10px;border:1px solid #23232a;display:block">
        <p style="font-size:14px;color:#9a96a4;line-height:1.55;margin-top:14px">Grab a folder of mixed files. PDFs, Office docs, scans, web pages. No conversion settings to pick.</p>
      </div>
      <div style="background:#0e0e10;border:1px solid #1c1c22;border-radius:16px;padding:18px">
        <div style="display:flex;align-items:center;gap:10px;margin-bottom:14px"><span style="color:#3b82f6;font-weight:600;font-size:14px">02</span><span style="font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a96a4">Convert</span></div>
        <img src="docs/media/converting-to-markdown.gif" alt="Convert documents to clean Markdown" loading="lazy" style="width:100%;border-radius:10px;border:1px solid #23232a;display:block">
        <p style="font-size:14px;color:#9a96a4;line-height:1.55;margin-top:14px">One drop turns the whole batch into AI-ready Markdown, locally. OCR recovers text from scans others read as empty.</p>
      </div>
      <div style="background:#0e0e10;border:1px solid #1c1c22;border-radius:16px;padding:18px">
        <div style="display:flex;align-items:center;gap:10px;margin-bottom:14px"><span style="color:#3b82f6;font-weight:600;font-size:14px">03</span><span style="font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a96a4">Stays healthy</span></div>
        <img src="docs/media/diagnostics.gif" alt="Dependency health and diagnostics" loading="lazy" style="width:100%;border-radius:10px;border:1px solid #23232a;display:block">
        <p style="font-size:14px;color:#9a96a4;line-height:1.55;margin-top:14px">Dependency health and diagnostics run on-device. See exactly what's installed and working.</p>
      </div>
    </div>
  </div>
</section>

<!-- ════════════════ PROOF ════════════════ -->
<section class="proof" id="proof">
  <div class="wrap">
    <div class="sec-head">
      <div class="eyebrow"><span class="dot"></span>The proof · fewer tokens, lower cost</div>
      <h2>About 2 to 6× fewer tokens than a vision model.</h2>
      <p class="lead">Every time a document gets read by an LLM, you pay for it in tokens. Sending pages as images is an expensive way to spend them. MDFlux hands the model clean Markdown instead, and the saving lands on every single call that reads the document.</p>
    </div>
    <div style="max-width:820px;margin:0 auto 14px">
      <div style="font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#3b82f6;font-weight:600;margin-bottom:16px;text-align:center">Why clean Markdown costs fewer tokens</div>
      <div style="display:grid;gap:11px">
        <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">You pay for pixels, not words.</b> A page sent to a vision model as an image costs a fixed chunk of tokens, often well over a thousand, no matter how little text is on it. The same page as Markdown is usually a few hundred.</p>
        <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">Plain text tokenizes efficiently.</b> Markdown is just text, with no image data, no markup bloat, no base64 blobs.</p>
        <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">Clean beats raw.</b> MDFlux strips the broken layout, repeated whitespace, and junk that pad out messy extractions, so you don't spend tokens on noise.</p>
        <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">Structure stays compact.</b> Headings, tables, and lists carry the document's meaning in very few tokens.</p>
        <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">It compounds.</b> The saving lands on every single call that reads the document, across a whole pipeline or batch.</p>
      </div>
    </div>
    <div class="proof-grid">
      <div>
        <div class="proof-stat">5.7×<small>lighter than vision on scanned pages</small></div>
        <p style="color:var(--text-2);font-size:16px;margin-bottom:24px">Point a plain extractor at a scanned, image-only PDF and you get zero usable text. MDFlux's OCR recovers it, and even then stays lighter than the vision route.</p>
        <table class="proof-table">
          <thead><tr><th>Scanned, image-only PDF</th><th>Usable tokens</th></tr></thead>
          <tbody>
            <tr class="zero"><td>Plain text extractor</td><td>0</td></tr>
            <tr><td>Vision model (page as image)</td><td>10,731</td></tr>
            <tr class="ok"><td>MDFlux (OCR → Markdown)</td><td>1,893</td></tr>
          </tbody>
        </table>
        <p style="color:var(--muted);font-size:14px">Full text recovered in about 5.7× fewer tokens than the vision model, which still has to OCR the image on its end anyway.</p>
      </div>
      <div class="proof-poster">
        <img src="docs/media/poster-2-vs-vision-1080x1350.png" alt="Two to six times fewer tokens than a vision model" width="540" height="675">
      </div>
    </div>
  </div>
</section>

<!-- ════════════════ FEATURES ════════════════ -->
<section id="features">
  <div class="wrap">
    <div class="sec-head center">
      <div class="eyebrow"><span class="dot"></span>What it does</div>
      <h2>Everything around the engine that makes it usable.</h2>
      <p class="lead" style="margin:14px auto 0">Built on Microsoft's MarkItDown. What MDFlux adds is the OCR, the desktop app, the batching, the reliability, and the privacy-by-default packaging.</p>
    </div>
    <div class="features-poster">
      <img src="docs/media/poster-1-capability-1080x1350.png" alt="MDFlux capability overview" width="432" height="540">
    </div>
    <div class="feature-grid">
      <div class="feature"><div class="ic">💸</div><h3>Fewer tokens, lower cost</h3><p>Clean Markdown costs about 2 to 6× fewer tokens than sending pages to a vision model. Every LLM call that reads the document is cheaper.</p></div>
      <div class="feature"><div class="ic">🔒</div><h3>Local and private</h3><p>Your documents never leave your machine. No cloud, no API key, no account.</p></div>
      <div class="feature"><div class="ic">🔍</div><h3>Reads scanned PDFs</h3><p>Built-in OCR recovers text from scans that other tools treat as blank.</p></div>
      <div class="feature"><div class="ic">🧱</div><h3>Real structure</h3><p>Proper Markdown with headings, tables, and lists intact. Readable, greppable, diff-able.</p></div>
      <div class="feature"><div class="ic">🖥️</div><h3>No terminal needed</h3><p>Portable app. Unzip, run, click through a one-time setup. Done.</p></div>
      <div class="feature"><div class="ic">📦</div><h3>Many formats</h3><p>PDF, DOCX, PPTX, XLSX, EPUB, HTML, CSV, JSON, XML, TXT, Markdown, images, and audio.</p></div>
      <div class="feature"><div class="ic">🔁</div><h3>Batch a whole folder</h3><p>Convert everything at once, with progress, cancellation, and per-file diagnostics.</p></div>
      <div class="feature"><div class="ic">🧹</div><h3>Optional cleanup</h3><p>Off, rule-based, or an AI pass (local or API). The Changes tab shows what cleanup added or removed.</p></div>
    </div>
  </div>
</section>

<!-- ════════════════ HOW IT WORKS ════════════════ -->
<section class="how" id="how">
  <div class="wrap">
    <div class="sec-head">
      <div class="eyebrow"><span class="dot"></span>How it works · three steps</div>
      <h2>Select. Convert. Done, all on your machine.</h2>
      <p class="lead">The first launch sets up a private, self-contained Python environment (one time, needs internet). Every conversion after that runs fully offline.</p>
    </div>

    <div class="step">
      <div class="step-text">
        <div class="step-num"><b>01</b><span class="line"></span><span class="label">Set up</span></div>
        <h3>A one-time, self-contained setup.</h3>
        <p>MDFlux provisions its own private Python 3.12 environment on first launch. After that it runs fully offline, every time. No terminal, no admin rights, no manual installs.</p>
      </div>
      <div class="step-media">
        <img src="docs/media/screenshot-setup.png" alt="MDFlux first-run setup screen: provisions a private, self-contained Python environment" width="600" height="444" loading="lazy">
      </div>
    </div>

    <div class="step flip">
      <div class="step-text">
        <div class="step-num"><b>02</b><span class="line"></span><span class="label">Convert</span></div>
        <h3>Drop → clean Markdown.</h3>
        <p>One drop turns a file or a whole batch into AI-ready Markdown, locally. OCR recovers text from scans that other tools read as empty. Cancel any time, with progress per file.</p>
      </div>
      <div class="step-media">
        <img src="docs/media/converting-to-markdown.gif" alt="Converting a document to clean Markdown" width="600" height="400">
      </div>
    </div>

    <div class="step">
      <div class="step-text">
        <div class="step-num"><b>03</b><span class="line"></span><span class="label">Stays healthy</span></div>
        <h3>Everything local &amp; checked.</h3>
        <p>Dependency health and diagnostics run on-device. You see exactly what's installed and working, and a clear next step instead of a silent empty file when something's off.</p>
      </div>
      <div class="step-media">
        <img src="docs/media/screenshot-diagnostics.png" alt="MDFlux diagnostics panel: dependency health and per-file status" width="600" height="444" loading="lazy">
      </div>
    </div>
  </div>
</section>

<!-- ════════════════ CLEANUP MODES ════════════════ -->
<section id="cleanup">
  <div class="wrap">
    <div class="sec-head">
      <div class="eyebrow"><span class="dot"></span>Cleanup modes · a per-run switch</div>
      <h2>Off, rule-based, or a local AI pass.</h2>
      <p class="lead">Tidy up messy extraction, or don't. The default is Off: no LLM, fully offline. You decide per run, per batch. Nothing is forced on you.</p>
    </div>
    <div class="cleanup-grid">
      <div class="cleanup-shot">
        <img src="docs/media/screenshot-cleanup-modes.png" alt="MDFlux cleanup mode selector: Off, Rule-based, Local AI, and API options" width="600" height="444" loading="lazy">
      </div>
      <div class="modes">
        <div class="mode">
          <span class="dot-c off"></span>
          <div>
            <h3>Off <span class="tag">default</span></h3>
            <p>No LLM. Raw MarkItDown output, exactly as the engine produced it. Fully offline, zero compute overhead.</p>
          </div>
        </div>
        <div class="mode">
          <span class="dot-c rule"></span>
          <div>
            <h3>Rule-based <span class="tag">offline</span></h3>
            <p>Deterministic cleanup passes, fix broken tables, collapse whitespace, normalise headings. No LLM, no surprise rewrites, always the same output.</p>
          </div>
        </div>
        <div class="mode">
          <span class="dot-c ai"></span>
          <div>
            <h3>Local AI <span class="tag">Ollama · offline</span></h3>
            <p>An optional pass through a model running on your machine via Ollama. Still offline, still private. Bring your own model, the app doesn't manage weights in v1.</p>
          </div>
        </div>
        <div class="mode">
          <span class="dot-c" style="background:var(--muted)"></span>
          <div>
            <h3>API <span class="tag">bring-your-own-key</span></h3>
            <p>For when you want a frontier model's cleanup. Pick the provider in Diagnostics (DeepSeek, OpenAI, and other OpenAI-compatible endpoints), then Test the key. Clearly marked, never the default, never required.</p>
          </div>
        </div>
      </div>
    </div>
    <div class="cleanup-shot" style="margin-top:48px;max-width:600px;margin-left:auto;margin-right:auto">
      <img src="docs/media/screenshot-changes.png" alt="Changes tab after cleanup, showing added and removed lines" width="600" height="444" loading="lazy">
      <p class="shot-caption">The Changes tab after cleanup: what was added or removed, line by line.</p>
    </div>
  </div>
</section>

<!-- ════════════════ COMPARE ════════════════ -->
<section id="compare">
  <div class="wrap">
    <div class="sec-head">
      <div class="eyebrow"><span class="dot"></span>How it compares</div>
      <h2>MDFlux vs Microsoft MarkItDown.</h2>
      <p class="lead">MDFlux is built on MarkItDown, which is a genuinely great conversion library. The point isn't to beat the engine, it's to make that engine genuinely usable day to day.</p>
    </div>
    <div class="compare-grid">
      <table class="compare-table">
        <thead>
          <tr><th></th><th class="yes">MarkItDown</th><th class="mf">MDFlux</th></tr>
        </thead>
        <tbody>
          <tr><td>Core conversion engine</td><td class="yes">yes</td><td class="mf">yes (uses MarkItDown)</td></tr>
          <tr><td>Scanned / image-only PDFs</td><td class="yes">≈ 0 characters</td><td class="mf"><strong>built-in OCR recovers text</strong></td></tr>
          <tr><td>Install and run</td><td class="yes">pip + terminal</td><td class="mf">portable app, no terminal</td></tr>
          <tr><td>Dependency setup</td><td class="yes">manual</td><td class="mf">sets itself up on first launch</td></tr>
          <tr><td>Batch a whole folder</td><td class="yes">write your own script</td><td class="mf"><strong>built in, concurrent, with progress</strong></td></tr>
          <tr><td>Timeouts and cancel</td><td class="yes">can hang, no feedback</td><td class="mf"><strong>streams progress, cancellable</strong></td></tr>
          <tr><td>Cleanup modes</td><td class="yes">raw output</td><td class="mf">Off, rule-based, or local AI</td></tr>
          <tr><td>Preview &amp; diagnostics</td><td class="yes">none</td><td class="mf"><strong>rendered preview + health panel</strong></td></tr>
          <tr><td>Audio transcription</td><td class="yes">plugin or Azure</td><td class="mf">local, built in</td></tr>
          <tr><td>Privacy</td><td class="yes">local if you wire it up</td><td class="mf"><strong>local by default</strong></td></tr>
        </tbody>
      </table>
      <div class="compare-poster">
        <img src="docs/media/poster-3-vs-markitdown-1080x1350.png" alt="MDFlux next to MarkItDown" width="540" height="675">
      </div>
    </div>
  </div>
</section>

<!-- ════════════════ AUDIENCE ════════════════ -->
<section id="audience">
  <div class="wrap">
    <div class="sec-head center">
      <div class="eyebrow"><span class="dot"></span>Who it's for</div>
      <h2>Built for anyone who feeds documents to a model.</h2>
    </div>
    <div class="audience-grid">
      <div class="audience"><div class="em">🤖</div><h3>AI &amp; RAG builders</h3><p>Feed clean, structured source documents to any model instead of raw text or pricey vision tokens.</p></div>
      <div class="audience"><div class="em">🔬</div><h3>Researchers</h3><p>Batch-convert papers, reports, and scanned archives into searchable Markdown.</p></div>
      <div class="audience"><div class="em">🧑‍💻</div><h3>Developers</h3><p>Get diff-able, version-controllable text out of binary document formats.</p></div>
      <div class="audience"><div class="em">📝</div><h3>Writers &amp; analysts</h3><p>Pull clean copy out of PDFs and Office files without the formatting mess.</p></div>
      <div class="audience"><div class="em">🔒</div><h3>Privacy-conscious</h3><p>Convert sensitive contracts, records, and decks with nothing ever uploaded.</p></div>
    </div>
  </div>
</section>

<!-- ════════════════ FORMATS ════════════════ -->
<section class="formats" id="formats">
  <div class="wrap">
    <div class="sec-head">
      <div class="eyebrow"><span class="dot"></span>Supported formats</div>
      <h2>One app, most of your files.</h2>
    </div>
    <div class="format-grid">
      <div class="format-col">
        <div class="label">Documents</div>
        <ul>
          <li>PDF <span class="tag">incl. scanned · OCR</span></li>
          <li>EPUB</li>
          <li>TXT</li>
          <li>Markdown</li>
        </ul>
      </div>
      <div class="format-col">
        <div class="label">Office</div>
        <ul>
          <li>DOCX</li>
          <li>PPTX</li>
          <li>XLSX</li>
        </ul>
      </div>
      <div class="format-col">
        <div class="label">Web &amp; data</div>
        <ul>
          <li>HTML</li>
          <li>CSV</li>
          <li>JSON</li>
          <li>XML</li>
        </ul>
      </div>
      <div class="format-col">
        <div class="label">Other</div>
        <ul>
          <li>Audio → transcript <span class="tag">local</span></li>
          <li>OCR on images <span class="tag">local</span></li>
        </ul>
      </div>
    </div>
  </div>
</section>

<!-- ════════════════ CTA BAND ════════════════ -->
<section style="padding-bottom:96px">
  <div class="wrap">
    <div class="cta-band">
      <h2>Download for Windows or Linux. Free. MIT-licensed.</h2>
      <p>Portable archive. No installer, no admin rights, no account, no cloud.</p>
      <a class="btn" href="https://github.com/ibrahimqureshae/mdflux/releases/latest">⬇ Get MDFlux</a>
      <div class="sponsor">
        <a href="https://github.com/sponsors/ibrahimqureshae">❤ Sponsor on GitHub</a>
        <a href="https://buymeacoffee.com/mibrahim99">☕ Buy me a coffee</a>
        <a href="https://www.paypal.me/mibrahimqr">💳 PayPal</a>
        <a href="https://github.com/ibrahimqureshae/mdflux">★ Star the repo</a>
      </div>
    </div>
  </div>
</section>

</main>

<!-- ════════════════ FOOTER ════════════════ -->
<footer>
  <div class="wrap">
    <div class="brand">
      <div class="lockup">
        <span class="mark">M↓</span>
        <span class="name"><b>MD</b>Flux</span>
      </div>
      <p>Turn any document into clean, AI-ready Markdown, on your machine. Local-first, MIT-licensed, built on open source.</p>
    </div>
    <div class="cols">
      <div class="col">
        <div class="h">Product</div>
        <ul>
          <li><a href="#features">Features</a></li>
          <li><a href="#proof">The proof</a></li>
          <li><a href="#how">How it works</a></li>
          <li><a href="#formats">Formats</a></li>
        </ul>
      </div>
      <div class="col">
        <div class="h">Repo</div>
        <ul>
          <li><a href="https://github.com/ibrahimqureshae/mdflux">GitHub</a></li>
          <li><a href="https://github.com/ibrahimqureshae/mdflux/releases/latest">Releases</a></li>
          <li><a href="https://github.com/ibrahimqureshae/mdflux/issues">Issues</a></li>
          <li><a href="ROADMAP.md">Roadmap</a></li>
        </ul>
      </div>
      <div class="col">
        <div class="h">Project</div>
        <ul>
          <li><a href="CONTRIBUTING.md">Contributing</a></li>
          <li><a href="CHANGELOG.md">Changelog</a></li>
          <li><a href="SECURITY.md">Security</a></li>
          <li><a href="CODE_OF_CONDUCT.md">Code of conduct</a></li>
        </ul>
      </div>
      <div class="col">
        <div class="h">Support</div>
        <ul>
          <li><a href="https://github.com/sponsors/ibrahimqureshae">Sponsor</a></li>
          <li><a href="https://buymeacoffee.com/mibrahim99">Buy me a coffee</a></li>
          <li><a href="https://www.paypal.me/mibrahimqr">PayPal</a></li>
          <li><a href="https://github.com/ibrahimqureshae/mdflux/blob/main/README.md#troubleshooting">Troubleshooting</a></li>
        </ul>
      </div>
    </div>
  </div>
  <div class="wrap built">
    <span>MIT · © 2026 ibrahimqureshae · Built on <a href="https://github.com/microsoft/markitdown">MarkItDown</a> · <a href="https://tauri.app/">Tauri</a> · <a href="https://github.com/RapidAI/RapidOCR">RapidOCR</a> · <a href="https://github.com/pypdfium2-team/pypdfium2">pypdfium2</a></span>
    <a href="https://claude.com/claude-code"><img src="https://img.shields.io/badge/Built%20with-Claude%20Code-D97757?logo=claude&logoColor=white" height="20" alt="Built with Claude Code"></a>
  </div>
</footer>

</body>
</html>