# FairDraw Gateway - Investor Site Package

Static deploy package. No build step required.

## Product framing

FairDraw Gateway is verifiable prize campaign infrastructure for brands, creators, and communities.
The website package is an investor-facing static artifact and simulation layer.

## Files

| File | Purpose |
|------|---------|
| `index.html` | Main investor landing page (self-contained) |
| `technical-docs.html` | Technical documentation hub |
| `smart-contracts.html` | Draw integrity and contract references page |
| `TECHNICAL_OVERVIEW.md` | Functional audit and implementation overview |
| `ARCHITECTURE.md` | Architecture and runtime module summary |
| `privacy.html` | Privacy policy page |
| `terms.html` | Terms of service page |
| `_headers` | Security + cache headers (Cloudflare Pages / Netlify) |
| `robots.txt` | Crawl policy and sitemap reference |
| `sitemap.xml` | Search engine URL map |

## Implementation Truth Map

- Live: Merchant dashboard surface, embed widget surface, draw integrity flow representation, FD-PROOF artifact model.
- Beta: Campaign API facade, allowed origins and key facade messaging, payment mode surface references.
- Roadmap: ERC-1155 standard, SDK/webhooks, dedicated public proof explorer, compliance modules, governance options.

## Deploy options

### Namecheap Shared Hosting (cPanel)
1. In Namecheap cPanel, open **File Manager** and go to `public_html/` (or your add-on domain document root).
2. Remove/backup old website files from the target directory.
3. Upload all repository root files directly into the target root (not into a nested folder).
4. Make sure hidden files are visible and `.htaccess` is uploaded.
5. If your domain is not already on HTTPS, enable SSL in Namecheap before going live.
6. Purge any Namecheap/Supersonic CDN cache (if enabled), then hard refresh browser cache.

Quick deploy (one command):
1. Ensure shell access and SSH key are already configured.
2. Run from project root: `./deploy.sh`

Optional overrides (example):
`SSH_HOST=server105.web-hosting.com SSH_PORT=21098 SSH_USER=fairhvjd SSH_KEY=~/.ssh/fairdraw_namecheap ./deploy.sh`

What is already included for Namecheap in this repo:
- Apache security and cache config in `.htaccess`
- `robots.txt` and `sitemap.xml` for crawl indexing
- Fully static pages (no build step required)

### Cloudflare Pages
1. Connect this repository.
2. Build command: *(leave empty)*
3. Build output directory: *(leave empty)* or `.`
4. Publish from repository root.

### Netlify
Drag-and-drop the repository root at **app.netlify.com/drop**

### GitHub Pages
Push folder contents to a `gh-pages` branch root.

### Vercel
`vercel --cwd .`

## Notes
- No dependencies, no build step, no Node required
- Google Fonts loaded via CDN (requires internet)
- Draw flow demo uses browser-native `crypto.subtle` in simulation mode (no wallet or chain connection required)
- Product roadmap text is directional and should remain labeled as roadmap, not current capability
