:root{--bg:#0f172a;--card:#1e293b;--border:#334155;--accent:#3b82f6;--accent2:#8b5cf6;--accent3:#06b6d4;--text:#e2e8f0;--dim:#94a3b8;--green:#22c55e;--orange:#f59e0b;--red:#ef4444;--pink:#ec4899;--amber:#f59e0b;--lime:#84cc16;--teal:#14b8a6;--sky:#0ea5e9}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;line-height:1.6}

/* Topbar */
.topbar{position:sticky;top:0;z-index:100;background:rgba(15,23,42,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);padding:12px 24px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.topbar a{color:var(--dim);text-decoration:none;font-size:.88rem;transition:color .2s}
.topbar a:hover{color:var(--accent)}
.topbar .sep{color:var(--border)}
.topbar .current{color:var(--text);font-weight:600}

/* Layout */
.container{max-width:1200px;margin:0 auto;padding:40px 20px}
h1{font-size:2rem;font-weight:800;margin-bottom:8px}
h2{font-size:1.3rem;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:10px}
h2 .dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
h3{font-size:1rem;margin:20px 0 10px;color:var(--accent2)}
.subtitle{color:var(--dim);margin-bottom:40px;font-size:1rem}

/* Grid */
.grid{display:grid;gap:14px}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}

/* Card */
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px;transition:all .3s}
.card:hover{border-color:var(--accent);box-shadow:0 4px 20px rgba(59,130,246,.08)}
.card h4{font-size:.95rem;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.card p{color:var(--dim);font-size:.82rem;line-height:1.5}

/* Nav card */
.nav-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.nav-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:24px 16px;text-align:center;text-decoration:none;color:var(--text);transition:all .3s}
.nav-card:hover{border-color:var(--accent);transform:translateY(-3px);box-shadow:0 8px 32px rgba(59,130,246,.12)}
.nav-card .emoji{font-size:2rem;margin-bottom:8px}
.nav-card h3{margin-bottom:4px;font-size:1rem}
.nav-card p{color:var(--dim);font-size:.78rem}

/* Summary bar */
.summary-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:40px}
.s-item{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px;text-align:center}
.s-item .num{font-size:1.8rem;font-weight:800}
.s-item .label{color:var(--dim);font-size:.72rem;margin-top:2px}

/* Tags */
.tag{display:inline-block;padding:3px 10px;border-radius:10px;font-size:.72rem;font-weight:600}
.t-red{background:rgba(239,68,68,.15);color:var(--red)}
.t-orange{background:rgba(245,158,11,.15);color:var(--orange)}
.t-blue{background:rgba(59,130,246,.15);color:var(--accent)}
.t-green{background:rgba(34,197,94,.15);color:var(--green)}
.t-purple{background:rgba(139,92,246,.15);color:var(--accent2)}
.t-pink{background:rgba(236,72,153,.15);color:var(--pink)}
.t-cyan{background:rgba(6,182,212,.15);color:var(--accent3)}

/* Table */
.table-wrap{overflow-x:auto;margin-bottom:20px}
table{width:100%;border-collapse:collapse;font-size:.85rem}
th{text-align:left;padding:10px 14px;background:rgba(59,130,246,.08);border-bottom:2px solid var(--border);color:var(--accent);font-weight:600}
td{padding:10px 14px;border-bottom:1px solid var(--border);color:var(--dim)}
tr:hover td{background:rgba(59,130,246,.03)}
td:first-child{color:var(--text);font-weight:500}

/* Service grid */
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.svc{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px;text-align:center;transition:all .3s}
.svc:hover{border-color:var(--accent);transform:translateY(-1px)}
.svc .icon{font-size:1.5rem;margin-bottom:6px}
.svc h4{font-size:.85rem;margin-bottom:2px}
.svc p{color:var(--dim);font-size:.72rem}

/* Code block */
.code-block{background:#0d1117;border:1px solid var(--border);border-radius:12px;padding:18px;overflow-x:auto;font-family:'Cascadia Code','Fira Code','Consolas',monospace;font-size:.8rem;line-height:1.7;color:#c9d1d9;position:relative}
.code-block .lang{position:absolute;top:8px;right:12px;font-size:.68rem;color:var(--dim);text-transform:uppercase;letter-spacing:1px}
.code-block pre{margin:0}
.key{color:#7ee787}
.str{color:#a5d6ff}
.num{color:#79c0ff}
.bool{color:#ff7b72}
.comment{color:#8b949e}

/* Diagram */
.diagram{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px;font-family:'Cascadia Code','Fira Code','Consolas',monospace;font-size:.76rem;line-height:1.8;overflow-x:auto;white-space:pre}
.diagram .hl{color:var(--accent);font-weight:700}
.diagram .hi{color:var(--pink);font-weight:700}
.diagram .gr{color:var(--green);font-weight:700}
.diagram .dim{color:var(--dim)}

/* Before-after */
.before-after{display:grid;grid-template-columns:1fr 36px 1fr;gap:10px;align-items:start;margin:16px 0}
.ba-box{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:14px;font-family:'Cascadia Code','Fira Code','Consolas',monospace;font-size:.76rem;line-height:1.7;overflow-x:auto}
.ba-box.before{border-color:rgba(239,68,68,.3)}
.ba-box.after{border-color:rgba(34,197,94,.3)}
.ba-arrow{display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:var(--dim)}
.ba-label{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px;display:block}
.ba-label.red{color:var(--red)}
.ba-label.green{color:var(--green)}

/* Highlight box */
.highlight{background:rgba(34,197,94,.06);border:1px solid rgba(34,197,94,.2);border-radius:14px;padding:18px;margin-bottom:16px}
.highlight h4{color:var(--green);margin-bottom:6px;font-size:.95rem}
.highlight p{color:var(--dim);font-size:.85rem;line-height:1.5}

/* Issue card */
.issue-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}
.issue{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px;transition:all .3s}
.issue:hover{border-color:var(--accent)}
.issue h4{font-size:.92rem;margin-bottom:6px;display:flex;align-items:center;gap:6px}
.issue>p{color:var(--dim);font-size:.82rem;line-height:1.5;margin-bottom:10px}
.issue .fix{font-size:.8rem;padding:10px 14px;background:rgba(34,197,94,.05);border:1px solid rgba(34,197,94,.12);border-radius:8px;line-height:1.6}
.issue .fix strong{color:var(--green)}

/* Risk card */
.risk-matrix{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.risk{background:var(--card);border-left:4px solid;border-radius:0 12px 12px 0;padding:16px 18px}
.risk h4{font-size:.9rem;margin-bottom:6px}
.risk p{color:var(--dim);font-size:.82rem;line-height:1.5}
.risk .fix{margin-top:8px;font-size:.8rem;padding:8px 12px;background:rgba(255,255,255,.03);border-radius:8px}
.risk .fix strong{color:var(--green)}
.risk-critical{border-color:var(--red)}
.risk-high{border-color:var(--orange)}
.risk-medium{border-color:var(--accent)}
.risk-low{border-color:var(--green)}

/* Capability card */
.cap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.cap{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px;transition:all .3s}
.cap:hover{border-color:var(--accent)}
.cap h4{font-size:.92rem;margin-bottom:4px;display:flex;align-items:center;gap:6px}
.cap p{color:var(--dim);font-size:.8rem;line-height:1.4;margin-bottom:6px}
.cap-methods{display:flex;flex-wrap:wrap;gap:3px}
.mtag{padding:2px 7px;border-radius:5px;font-size:.68rem;font-weight:600;font-family:'Cascadia Code','Fira Code','Consolas',monospace;background:rgba(59,130,246,.1);color:var(--accent)}
.mtag.green{background:rgba(34,197,94,.1);color:var(--green)}
.mtag.purple{background:rgba(139,92,246,.1);color:var(--accent2)}
.mtag.pink{background:rgba(236,72,153,.1);color:var(--pink)}
.mtag.orange{background:rgba(245,158,11,.1);color:var(--orange)}
.mtag.cyan{background:rgba(6,182,212,.1);color:var(--accent3)}
.mtag.red{background:rgba(239,68,68,.1);color:var(--red)}

/* Hero */
.hero{text-align:center;padding:60px 20px 32px;background:linear-gradient(135deg,#0f172a 0%,#1e1b4b 50%,#0f172a 100%);position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 30% 50%,rgba(59,130,246,.06) 0%,transparent 50%),radial-gradient(circle at 70% 50%,rgba(139,92,246,.06) 0%,transparent 50%);animation:pulse 8s ease-in-out infinite}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.hero h1{font-size:2.5rem;font-weight:800;background:linear-gradient(135deg,var(--accent),var(--accent2),var(--accent3));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;position:relative}
.hero p{color:var(--dim);font-size:1.1rem;margin-top:10px;position:relative}
.hero .badge{display:inline-block;margin-top:16px;padding:5px 14px;border-radius:18px;background:rgba(59,130,246,.12);border:1px solid rgba(59,130,246,.25);color:var(--accent);font-size:.82rem;position:relative}

/* Footer */
footer{text-align:center;padding:40px 20px;color:var(--dim);font-size:.78rem;border-top:1px solid var(--border);margin-top:40px}
footer a{color:var(--accent);text-decoration:none}
footer a:hover{text-decoration:underline}

/* Section */
.section{margin-bottom:40px}

/* Backlog / Task table */
.module{margin-bottom:40px}
.module h2{font-size:1.15rem;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.module h2 .dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.task-table{width:100%;border-collapse:collapse;font-size:.82rem;margin-bottom:12px}
.task-table th{text-align:left;padding:8px 12px;background:rgba(59,130,246,.06);border-bottom:2px solid var(--border);color:var(--accent);font-weight:600;font-size:.75rem}
.task-table td{padding:7px 12px;border-bottom:1px solid var(--border);color:var(--dim);font-size:.82rem}
.task-table tr:hover td{background:rgba(59,130,246,.02)}
.task-table td:first-child{color:var(--text);font-weight:500;font-family:'Cascadia Code','Fira Code','Consolas',monospace;font-size:.78rem;white-space:nowrap}
.task-table td:nth-child(2){color:var(--text)}
