# Enterprise System Architecture

The Enterprise edition is a layered static-learning system with optional free-tier real authentication.

## 1. Presentation layer
Files:
- HTML pages
- `assets/style.css`

## 2. Core content layer
Files:
- `assets/data.js`
- `assets/extra-data.js`
- `assets/ultimate-data.js`

This layer defines:
- curriculum
- course tracks
- ultimate features
- rollout stages
- note library
- founder/brand details

## 3. Shared app logic layer
Files:
- `assets/app.js`
- `assets/ultimate.js`

This layer handles:
- rendering
- SQL playground behaviour
- progress tracking
- challenge logic
- ultimate-specific sections

## 4. Session/config layer
Files:
- `assets/site.js`
- `assets/portal.js`
- `assets/admin.js`

This layer supports demo-mode sessions and admin content updates using browser storage.

## 5. Teacher and certificate layer
Files:
- `assets/teacher.js`
- `assets/certificate.js`

This layer supports programme delivery and completion evidence.

## 6. Optional auth layer
Files:
- Supabase scripts
- `auth.html`
- `dashboard.html`

This layer upgrades identity handling when needed while keeping the platform affordable.

## 7. Resource layer
Files:
- `notes/*.md`
- `brand-kit/*.svg`

This layer strengthens teaching and launch readiness.

## Why this architecture is strong
It combines:
- strong pedagogy
- low deployment cost
- institutional usability
- gradual upgrade potential
without requiring paid AI APIs.
