┌──────────────────────────────────────────────────────────┐
│ CLIENT LAYER (TLS 1.3) │
│ • SDK (JavaScript/Python) │
│ • Dashboard (Next.js) │
│ • Webhooks (HMAC-SHA256) │
└──────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────┐
│ API GATEWAY (Rate Limiting + Auth) │
│ • Fastify API Server │
│ • API Key Authentication (bcrypt) │
│ • Per-Customer Rate Limiting │
│ • CORS Protection │
└──────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────┐
│ APPLICATION LAYER (Row-Level Security) │
│ • 5 Intelligence Engines │
│ • Multi-Tenant Isolation │
│ • Audit Logging │
└──────────────────────────────────────────────────────────┘
↓
┌──────────────────────────────────────────────────────────┐
│ DATABASE LAYER (PostgreSQL RLS) │
│ • AES-256 Encryption at Rest │
│ • Row-Level Security Policies │
│ • Automated Backups │
└──────────────────────────────────────────────────────────┘