/* ============================================
   MOTA Reports — Shared Tech Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'JetBrains Mono',monospace;background:#020617;min-height:100vh;color:#e2e8f0;overflow-x:hidden;line-height:1.7}

/* ---- bg layers ---- */
.grid-bg{position:fixed;inset:0;z-index:0;
  background-image:linear-gradient(rgba(30,41,59,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(30,41,59,.3) 1px,transparent 1px);
  background-size:48px 48px}
.scanline{position:fixed;top:0;left:0;right:0;height:2px;z-index:1;
  background:linear-gradient(90deg,transparent,#22d3ee,transparent);animation:scan 5s ease-in-out infinite;opacity:.4;pointer-events:none}
@keyframes scan{0%{top:0}100%{top:100vh}}
.orb{position:fixed;border-radius:50%;filter:blur(120px);z-index:0;pointer-events:none}
.orb-1{width:500px;height:500px;background:rgba(34,211,238,.05);top:-150px;right:-100px}
.orb-2{width:400px;height:400px;background:rgba(167,139,250,.04);bottom:-100px;left:-50px}

.container{max-width:1200px;margin:0 auto;padding:2rem 2rem 4rem;position:relative;z-index:2}

/* ---- nav ---- */
.nav{display:flex;align-items:center;gap:.75rem;margin-bottom:2.5rem;font-size:.7rem;flex-wrap:wrap}
.nav a{color:#64748b;text-decoration:none;transition:color .2s}
.nav a:hover{color:#22d3ee}
.nav .sep{color:#334155}
.nav .current{color:#94a3b8}

/* ---- header ---- */
.page-header{margin-bottom:3rem;border-bottom:1px solid #1e293b;padding-bottom:2rem}
.page-header h1{font-size:1.6rem;font-weight:700;letter-spacing:-.03em;
  background:linear-gradient(135deg,#e2e8f0,#22d3ee);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}
.page-header .subtitle{color:#64748b;font-size:.75rem;line-height:1.6}
.page-header .meta{display:flex;gap:1rem;margin-top:.75rem;font-size:.6rem;color:#475569}
.page-header .tag{display:inline-flex;align-items:center;gap:.3rem;background:rgba(34,211,238,.06);border:1px solid rgba(34,211,238,.15);border-radius:4px;padding:.15rem .5rem;color:#22d3ee}

/* ---- section ---- */
.section{margin-bottom:3rem}
.section-anchor{display:block;position:relative;top:-80px;visibility:hidden}
.section h2{font-size:1.15rem;font-weight:700;color:#e2e8f0;margin-bottom:1.25rem;padding-left:1rem;border-left:3px solid #22d3ee;line-height:1.4}
.section h3{font-size:.9rem;font-weight:600;color:#94a3b8;margin:1.5rem 0 .75rem;display:flex;align-items:center;gap:.5rem}
.section h3::before{content:'';width:6px;height:6px;background:#22d3ee;border-radius:50%;flex-shrink:0}
.section h4{font-size:.8rem;font-weight:600;color:#64748b;margin:1rem 0 .5rem;text-transform:uppercase;letter-spacing:.05em}
.section p{font-size:.78rem;color:#94a3b8;margin-bottom:.75rem;line-height:1.75}
.section strong{color:#e2e8f0}

/* ---- conclusion box ---- */
.conclusion{background:rgba(34,211,238,.04);border:1px solid rgba(34,211,238,.15);border-radius:.75rem;padding:1.25rem 1.5rem;margin-bottom:2.5rem;font-size:.78rem;color:#94a3b8;line-height:1.75}
.conclusion strong{color:#22d3ee}

/* ---- lists ---- */
.section ul,.section ol{padding-left:1.25rem;margin-bottom:.75rem}
.section li{font-size:.75rem;color:#94a3b8;margin-bottom:.4rem;line-height:1.65}
.section li strong{color:#e2e8f0}

/* ---- tables ---- */
.table-wrap{overflow-x:auto;margin-bottom:1.5rem;border-radius:.75rem;border:1px solid #1e293b}
table{width:100%;border-collapse:collapse;font-size:.7rem}
thead{background:rgba(15,23,42,.8)}
th{text-align:left;padding:.6rem .75rem;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #1e293b;white-space:nowrap}
td{padding:.55rem .75rem;color:#94a3b8;border-bottom:1px solid rgba(30,41,59,.5);vertical-align:top}
tr:hover td{background:rgba(255,255,255,.015)}
td:first-child{color:#e2e8f0;font-weight:500}

/* ---- code / ascii art blocks ---- */
.code-block{background:rgba(15,23,42,.6);border:1px solid #1e293b;border-radius:.75rem;padding:1.25rem 1.5rem;margin-bottom:1.5rem;overflow-x:auto;font-size:.68rem;color:#94a3b8;line-height:1.6;white-space:pre;font-family:'JetBrains Mono',monospace}
.code-block .hl-cyan{color:#22d3ee}
.code-block .hl-green{color:#34d399}
.code-block .hl-amber{color:#fbbf24}
.code-block .hl-rose{color:#fb7185}
.code-block .hl-violet{color:#a78bfa}

/* ---- cards grid ---- */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem;margin-bottom:1.5rem}
.card{background:rgba(15,23,42,.55);border:1px solid #1e293b;border-radius:.75rem;padding:1.25rem;transition:all .3s}
.card:hover{border-color:rgba(34,211,238,.3);transform:translateY(-2px)}
.card h4{font-size:.8rem;font-weight:600;color:#e2e8f0;margin-bottom:.5rem;text-transform:none;letter-spacing:normal}
.card p{font-size:.7rem;color:#94a3b8;margin-bottom:.25rem}
.card .card-tag{display:inline-block;font-size:.55rem;padding:.1rem .4rem;border-radius:3px;margin-right:.3rem;margin-top:.35rem;
  background:rgba(34,211,238,.06);border:1px solid rgba(34,211,238,.15);color:#22d3ee}

/* ---- feature boxes ---- */
.feature-box{background:rgba(15,23,42,.55);border:1px solid #1e293b;border-radius:.75rem;padding:1.25rem 1.5rem;margin-bottom:1rem}
.feature-box h4{color:#e2e8f0;margin-bottom:.5rem;text-transform:none;letter-spacing:normal}

/* ---- toc sidebar ---- */
.toc{position:fixed;top:2rem;right:2rem;width:220px;background:rgba(15,23,42,.7);border:1px solid #1e293b;border-radius:.75rem;padding:1rem;z-index:10;backdrop-filter:blur(8px)}
.toc-title{font-size:.6rem;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.75rem}
.toc a{display:block;font-size:.65rem;color:#64748b;text-decoration:none;padding:.25rem 0;transition:color .2s;line-height:1.4}
.toc a:hover,.toc a.active{color:#22d3ee}
@media(max-width:1500px){.toc{display:none}}

/* ---- page nav (prev/next) ---- */
.page-nav{display:flex;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:2rem;border-top:1px solid #1e293b}
.page-nav a{display:flex;flex-direction:column;gap:.25rem;padding:1rem 1.25rem;background:rgba(15,23,42,.55);border:1px solid #1e293b;
  border-radius:.75rem;text-decoration:none;transition:all .3s;max-width:45%}
.page-nav a:hover{border-color:rgba(34,211,238,.3)}
.page-nav .nav-label{font-size:.55rem;color:#475569;text-transform:uppercase;letter-spacing:.08em}
.page-nav .nav-title{font-size:.75rem;color:#22d3ee;font-weight:600}

/* ---- footer ---- */
.footer{text-align:center;padding:2rem 0;color:#334155;font-size:.65rem;border-top:1px solid #0f172a;margin-top:3rem}

/* ---- responsive ---- */
@media(max-width:768px){
  .container{padding:1rem}
  .page-header h1{font-size:1.2rem}
  .cards{grid-template-columns:1fr}
}
