:root{
  --bg:#080a0e; --panel:#0b0f16; --panel2:#0a0d14; --stroke:rgba(118,104,201,.28);
  --text:#e8eaf1; --muted:#a6a7bc; --acc:#a679ff; --teal:#64ffda; --green:#7ee787;
  --radius:16px; --shadow:0 18px 55px rgba(0,0,0,.55);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; background:
  linear-gradient(180deg, #0a0d14, #080a0e);
  color:var(--text); font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height:1.6; overflow-x:hidden}
.wrap{width:min(1200px,92vw); margin:0 auto}
.noise{position:fixed; inset:0; pointer-events:none; opacity:.06; background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=')}

.top{position:sticky; top:0; z-index:50; backdrop-filter: blur(8px);
  background:linear-gradient(180deg, rgba(10,13,20,.85), rgba(10,13,20,.45)); border-bottom:1px solid rgba(166,121,255,.15)}
.top-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0}
.brand{display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none}
.brand img{width:34px; height:34px; border-radius:10px; box-shadow:var(--shadow)}
.brand span{font-weight:900; letter-spacing:.3px}
.nav{display:flex; gap:16px; align-items:center}
.nav a{color:var(--muted); text-decoration:none; position:relative}
.nav a::after{content:""; position:absolute; left:0; bottom:-3px; height:2px; width:0; background:linear-gradient(90deg,var(--acc),var(--teal)); transition:width .25s ease}
.nav a:hover::after{width:100%}
.btn{display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border-radius:12px; border:1px solid rgba(166,121,255,.35); background:rgba(166,121,255,.12); color:var(--text); text-decoration:none; font-weight:800}

.layout{display:grid; grid-template-columns:280px 1fr; gap:20px; padding:40px 0}
.sidebar.term{position:sticky; top:72px; height:fit-content}
.term{background:linear-gradient(180deg, var(--panel), var(--panel2)); border:1px solid var(--stroke); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden}
.term-head{display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid rgba(118,104,201,.22); background:linear-gradient(180deg, rgba(166,121,255,.14), rgba(166,121,255,.06)); font-family:'JetBrains Mono', monospace; color:var(--muted)}
.led{width:10px;height:10px;border-radius:50%}.led.r{background:#ff5f56}.led.y{background:#ffbd2e}.led.g{background:#27c93f}
.term-body{padding:16px 16px 18px; font-family:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace; color:#C8FACC}
.prompt{color:var(--green)}
.hr{height:1px; background:rgba(118,104,201,.22); margin:10px 0}
.line a{color:#cfe; text-decoration:none}
.line a:hover{text-decoration:underline}

.hero-term .ascii{color:#a6a7bc; opacity:.85; margin:0}
.welcome{margin:6px 0 10px}.type{border-right:2px solid var(--green)}
.tag{display:inline-block; margin:6px 0 10px; font-weight:800; letter-spacing:.25em; color:rgba(100,255,218,.8)}
.grid-cards{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:8px 0 12px}
.card{position:relative; padding:12px 14px; border-radius:12px; border:1px solid rgba(166,121,255,.22); background:linear-gradient(180deg, rgba(166,121,255,.08), rgba(166,121,255,.03)); overflow:hidden; transition:transform .25s ease, border-color .25s ease}
.card::before{content:attr(data-title); position:absolute; top:-38%; left:-10%; font-weight:800; font-size:40px; letter-spacing:.08em; color:rgba(166,121,255,.08); white-space:nowrap; transform:rotate(-12deg); animation:movefont 9s linear infinite}
.card:hover{transform:translateY(-3px); border-color:rgba(100,255,218,.5)}
@keyframes movefont{0%{transform:translateX(0) rotate(-12deg)}100%{transform:translateX(-60%) rotate(-12deg)}}
.banner{width:100%; margin-top:10px; border-radius:12px; border:1px solid rgba(166,121,255,.18)}

.section{margin-bottom:20px}
.two-col{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px}
.md h2{margin:0 0 8px}
.bullets{margin:0; padding-left:18px}

.foot{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:40px 0 80px; color:var(--muted)}
.foot img{width:26px; height:26px; border-radius:6px}

@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .grid-cards{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
}
